Last active
July 22, 2020 15:55
-
-
Save rdok/9f4cdc60397cd3a4ec8ed0abb96ab92f to your computer and use it in GitHub Desktop.
Docker terraform
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
terraform() { | |
docker run --rm -it \ | |
-w /workbench/app \ | |
-v ${HOME}/.aws:/workbench/.aws \ | |
-v ${HOME}/.terraform.d/:/workbench/.terraform.d/ \ | |
-v ${PWD}:/workbench/app \ | |
-u $(id -u):$(id -g) \ | |
-e HOME=/workbench \ | |
hashicorp/terraform:light "$@" | |
} | |
alias aws='docker run --rm -ti -v ~/.aws:/root/.aws -v $(pwd):/aws amazon/aws-cli' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment