Skip to content

Instantly share code, notes, and snippets.

@JoostvDoorn
Created January 30, 2018 13:00
Show Gist options
  • Save JoostvDoorn/1432fd2fe958c15ab1b3d2b629f03276 to your computer and use it in GitHub Desktop.
Save JoostvDoorn/1432fd2fe958c15ab1b3d2b629f03276 to your computer and use it in GitHub Desktop.
Update terraform
cd /tmp
wget $(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")
unzip terraform_$(curl -s https://checkpoint-api.hashicorp.com/v1/check/terraform | jq -r -M '.current_version')_linux_amd64.zip
cp terraform $(which terraform)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment