Skip to content

Getting AWS Credentials

perpil edited this page Dec 26, 2023 · 14 revisions

Prequisites

Getting AWS credentials requires you to either have configured your personal AWS account in settings or to have setup some Speedrun Configuration for the page and to have created the necessary Speedrun roles.

Getting CLI credentials

Note

Getting CLI credentials requires that you have a working version of perl installed on your computer and a bash or zsh like shell. If you don't have this setup, you can use AWS CloudShell. On Windows, you need something akin to WSL installed.

  1. First install srinit
  2. Each day run srinit once to authenticate your account.

Federating into the AWS Console

To federate into the AWS console, use the #federate or #federateService template. To use federate, you must set the value of path or the wiki content to the path in the AWS console. For example to federate into S3, you could either do this:

#federate {"path":"s3"}

Or this:

#federate
/s3/home?region=${region}

Requesting CLI credentials with a template

To wrap a command with credentials, either set "credentials": true (in your template or config) or add the .withCreds extension when you use the template i.e. use #copy.withCreds

#copy.withCreds
aws sts get-caller-identity

Launching CloudShell

If you have configured your personal AWS account role in settings to have at least these permissions launch it using the button below.

Caution

It is important to use a non-shared account to access cloudshell, i.e. a personal account, otherwise your instance of srinit may be authenticated as the last person who used it.

#federate {"path":"cloudshell"}