Skip to content

Instantly share code, notes, and snippets.

@kouk
Created April 22, 2019 15:11
Show Gist options
  • Save kouk/d10187bb9ca5710e7398fe63caeb813a to your computer and use it in GitHub Desktop.
Save kouk/d10187bb9ca5710e7398fe63caeb813a to your computer and use it in GitHub Desktop.

Revisions

  1. kouk created this gist Apr 22, 2019.
    5 changes: 5 additions & 0 deletions tfexec.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    #!/bin/sh
    NAME=$(basename $0)
    PROFILE=${NAME#tf}
    export TERRAGRUNT_DOWNLOAD=.terragrunt-cache-$PROFILE
    exec env -u TF_DATA_DIR aws-vault exec $PROFILE -- "$@"