Skip to content

Instantly share code, notes, and snippets.

@tony612
Created August 16, 2016 09:26
Show Gist options
  • Save tony612/5531b9ac09057ef00f7369d693b92c59 to your computer and use it in GitHub Desktop.
Save tony612/5531b9ac09057ef00f7369d693b92c59 to your computer and use it in GitHub Desktop.
install/update terraform on linux_amd64
#!/bin/bash
# update_terraform.sh 0.6.16
VERSION=$1
wget -nc https://releases.hashicorp.com/terraform/$VERSION/terraform_$VERSION\_linux_amd64.zip
unzip -o terraform_$VERSION\_linux_amd64.zip -d terraform_$VERSION
rm /home/deployer/terraform
ln -s /home/deployer/terraform_$VERSION /home/deployer/terraform
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment