Created
December 8, 2019 08:52
-
-
Save chrisdlangton/7ca206e1ccd600dd4bab120f0f6dc635 to your computer and use it in GitHub Desktop.
Single command to install the latest version of Hahicorp Terraform for Linux amd64
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
echo "https://releases.hashicorp.com/terraform/$(curl -s https://checkpoint-api.hashicorp.com/v1/check/terraform | \ | |
jq -r -M '.current_version')/terraform_$(curl -s https://checkpoint-api.hashicorp.com/v1/check/terraform | \ | |
jq -r -M '.current_version')_linux_amd64.zip" | \ | |
xargs wget -q -O temp.zip; \ | |
unzip temp.zip; \ | |
chmod +x terraform; \ | |
sudo mv terraform /usr/local/bin/; \ | |
rm temp.zip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment