Created
April 22, 2019 15:11
-
-
Save kouk/d10187bb9ca5710e7398fe63caeb813a to your computer and use it in GitHub Desktop.
tfexec.sh
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
#!/bin/sh | |
NAME=$(basename $0) | |
PROFILE=${NAME#tf} | |
export TERRAGRUNT_DOWNLOAD=.terragrunt-cache-$PROFILE | |
exec env -u TF_DATA_DIR aws-vault exec $PROFILE -- "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
e.g. if you have a AWS profile called
env-stage
: