Skip to content

Instantly share code, notes, and snippets.

@jmlrt
Created June 27, 2017 09:45
Show Gist options
  • Save jmlrt/eb4bb0b347b179bb36b5f85cfb8ea5fa to your computer and use it in GitHub Desktop.
Save jmlrt/eb4bb0b347b179bb36b5f85cfb8ea5fa to your computer and use it in GitHub Desktop.
Unattend terraform / terragrunt
#!/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