Created
January 22, 2020 14:09
-
-
Save scarybot/0e3288436e83013b37aa59bc793acdb6 to your computer and use it in GitHub Desktop.
Sample AWS config file for multi-account model
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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