Created
December 25, 2024 00:55
-
-
Save lordjabez/33c82c64a1c652cabd00370f30da9f63 to your computer and use it in GitHub Desktop.
Run terraform in Docker
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/bash -e | |
TF_VERSION=1.1.6 | |
docker run -i -t --platform linux/amd64 -e AWS_PROFILE="$AWS_PROFILE" -v "$HOME/.aws":/root/.aws -v "$PWD":/mnt -w /mnt "hashicorp/terraform:$TF_VERSION" $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment