Skip to content

Instantly share code, notes, and snippets.

@joe-niland
Last active December 11, 2020 06:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joe-niland/1b81ab5c8ebf7f8b5e4265af0b71f093 to your computer and use it in GitHub Desktop.
Save joe-niland/1b81ab5c8ebf7f8b5e4265af0b71f093 to your computer and use it in GitHub Desktop.
Terragrunt assume-role
# 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
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