Skip to content

Instantly share code, notes, and snippets.

@scarybot
Created January 22, 2020 14:09
Show Gist options
  • Save scarybot/0e3288436e83013b37aa59bc793acdb6 to your computer and use it in GitHub Desktop.
Save scarybot/0e3288436e83013b37aa59bc793acdb6 to your computer and use it in GitHub Desktop.
Sample AWS config file for multi-account model
# Master profile
[profile master]
aws_access_key_id = (access key id)
aws_secret_access_key = (secret access key)
region = eu-west-1
# Slave profiles
[profile development]
source_profile = master
region = eu-west-1
role_arn = arn:aws:iam::(sub-account number):role/(role name)
mfa_serial = arn:aws:iam::(master account number):mfa/myusername
# (continue with your other roles in other accounts)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment