Created
April 27, 2018 00:22
-
-
Save varrix/5181fdb798b5f77c84bad8c25424d9c1 to your computer and use it in GitHub Desktop.
Simple script to download, unzip, and relocate the terraform binary for v0.11.7
This file contains 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/sh | |
# ensure we have the unzip on the CLI | |
sudo apt-get install unzip | |
# what version of terraform do we want? | |
VER=0.11.7 | |
# download $VER of terraform | |
wget https://releases.hashicorp.com/terraform/$VER/terraform_$VER_linux_amd64.zip | |
# unzip binary | |
unzip terraform_$VER_linux_amd64.zip | |
# relocate binary | |
sudo mv terraform /usr/local/bin/ | |
# verify install | |
terraform --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment