Last active
December 11, 2020 06:06
-
-
Save joe-niland/1b81ab5c8ebf7f8b5e4265af0b71f093 to your computer and use it in GitHub Desktop.
Terragrunt assume-role
This file contains hidden or 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
# typically located at ~/.aws/config | |
[profile source-profile] | |
output=json | |
region=ap-southeast-2 | |
mfa_serial=arn:aws:iam::123456789123:mfa/my-name | |
# assumes default backend, you can also use `--backend=file` or others | |
credential_process=aws-vault exec aws-vault-profile --json --prompt=osascript | |
[profile org-stage-role] | |
region=ap-southeast-2 | |
role_arn=arn:aws:iam::123456789123:role/Allow-AdminAccess | |
source_profile=source-profile | |
# For aws-vault only: | |
include_profile=source-profile |
This file contains hidden or 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
export AWS_SDK_LOAD_CONFIG=1 | |
export AWS_PROFILE=org-stage-role | |
terragrunt init |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment