Skip to content

Instantly share code, notes, and snippets.

@chris
Last active August 7, 2020 22:01
Show Gist options
  • Save chris/e06f5f5b86fc7d3a33b4da319ea199a6 to your computer and use it in GitHub Desktop.
Save chris/e06f5f5b86fc7d3a33b4da319ea199a6 to your computer and use it in GitHub Desktop.
Example ~/.aws/credentials file using role profiles
[mycompany_myiamuser_orgaccount]
aws_access_key_id=ABCDEFGHIJKLMNOPQRST
aws_secret_access_key=abcdefghijklmnopqrstuvwxyz123566789
region=us-west-2
[mycompany_somerole_devaccount]
role_arn=arn:aws:iam::11111111111:role/OrganizationAccountAccessRole
source_profile=mycompany_myiamuser_orgaccount
[mycompany_somerole_prodaccount]
role_arn=arn:aws:iam::22222222222:role/OrganizationAccountAccessRole
source_profile=mycompany_myiamuser_orgaccount
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment