Skip to content

Instantly share code, notes, and snippets.

@davesade
Last active June 28, 2018 10:33
Show Gist options
  • Save davesade/53d024413acf9dee77b8dc6ace9a83d3 to your computer and use it in GitHub Desktop.
Save davesade/53d024413acf9dee77b8dc6ace9a83d3 to your computer and use it in GitHub Desktop.
Memory refresher

AWS CLI

aws sts assume-role --role-arn <<target_role_ARN>> --role-session-name DEMONSTRATION

Export to ENV VAR

export AWS_ACCESS_KEY_ID=...
export AWS_SECRET_ACCESS_KEY=...
export AWS_SESSION_TOKEN=...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment