STS Credentials Basics
1) Create a user (CloudShell)
aws iam create-user --user-name USERNAME2) Add them to a group, granting them some permissions if the group has any
aws iam add-user-to-group --user-name USERNAME --group-name GROUPNAME3) Verify
aws iam list-groups-for-user --user-name USERNAME4) Create an access key for our user
aws iam create-access-key --user-name USERNAME5) Add the keys as environment variables (Attack machine)
export AWS_SECRET_ACCESS_KEY=40_CHAR_ACCESS_KEY
export AWS_ACCESS_KEY_ID=AKIA_ACCESS_KEY_ID6) Set these environment variables in AWS CLI
aws configure7) Validate
8) Assume role you want
9) Set output
10) Validate
Last updated