Skip to content

Instantly share code, notes, and snippets.

@klang
Created January 23, 2017 13:59
Show Gist options
  • Save klang/877fabe24f14ef26f0bfe7891de6dd09 to your computer and use it in GitHub Desktop.
Save klang/877fabe24f14ef26f0bfe7891de6dd09 to your computer and use it in GitHub Desktop.
aws credentials configuration
# ~/aws/config
[profile main-account-with-no-resources]
aws_access_key_id=...
aws_secret_access_key=...
[profile sub-account-with-resources]
region = eu-west-1
role_arn=arn:aws:iam::<account number for sub-account-with-resources>:role/dashsoft-iam
source_profile=dashsoftiam
mfa_serial=arn:aws:iam::<account number for main-accont-with-no-resources>:mfa/<user-name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment