Skip to content

Instantly share code, notes, and snippets.

@shmick
Created February 13, 2019 15:10
Show Gist options
  • Save shmick/490625156fb1009df736440417312e3d to your computer and use it in GitHub Desktop.
Save shmick/490625156fb1009df736440417312e3d to your computer and use it in GitHub Desktop.
~/.aws/config example
# ~/.aws/config example
[profile org-master]
aws_access_key_id=AK...
aws_secret_access_key=AY...
region=us-east-1
[profile org-acctfoo]
role_arn = arn:aws:iam::111111111111:role/OrganizationAccountAccessRole
source_profile = org-master
region=us-east-1
[profile org-acctbar]
role_arn = arn:aws:iam::222222222222:role/OrganizationAccountAccessRole
source_profile = org-master
region=us-east-1
# aws --profile org-acctfoo ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment