Created
June 27, 2017 09:45
-
-
Save jmlrt/eb4bb0b347b179bb36b5f85cfb8ea5fa to your computer and use it in GitHub Desktop.
Unattend terraform / terragrunt
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 | |
ENV=$1 | |
# Install terraform | |
if [ ! -x terraform ] | |
then | |
wget -q https://releases.hashicorp.com/terraform/0.8.8/terraform_0.8.8_linux_amd64.zip | |
unzip terraform_0.8.8_linux_amd64.zip | |
chmod +x terraform | |
fi | |
# Install terragrunt | |
if [ ! -x terragrunt ] | |
then | |
wget -q https://github.com/gruntwork-io/terragrunt/releases/download/v0.11.0/terragrunt_linux_amd64 | |
mv terragrunt_linux_amd64 terragrunt | |
chmod +x terragrunt | |
fi | |
export PATH=. | |
terragrunt apply -var env=$ENV |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment