Skip to content

Instantly share code, notes, and snippets.

@mikaelkrief
Created January 26, 2020 15:32
Show Gist options
  • Save mikaelkrief/34bdd9a9ac378a541fa813d655bd36c5 to your computer and use it in GitHub Desktop.
Save mikaelkrief/34bdd9a9ac378a541fa813d655bd36c5 to your computer and use it in GitHub Desktop.
TERRAFORM_VERSION="0.12.20"
curl -Os https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip \
&& curl -Os https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_SHA256SUMS \
&& curl https://keybase.io/hashicorp/pgp_keys.asc | gpg --import \
&& curl -Os https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_SHA256SUMS.sig \
&& gpg --verify terraform_${TERRAFORM_VERSION}_SHA256SUMS.sig terraform_${TERRAFORM_VERSION}_SHA256SUMS \
&& shasum -a 256 -c terraform_${TERRAFORM_VERSION}_SHA256SUMS 2>&1 | grep "${TERRAFORM_VERSION}_linux_amd64.zip:\sOK" \
&& unzip -o terraform_${TERRAFORM_VERSION}_linux_amd64.zip -d /usr/local/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment