Skip to content

Instantly share code, notes, and snippets.

@chrisdlangton
Created December 8, 2019 08:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisdlangton/7ca206e1ccd600dd4bab120f0f6dc635 to your computer and use it in GitHub Desktop.
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
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