2020-10-07 13:49:40 +05:00
|
|
|
#!/bin/bash -e
|
2019-12-13 09:48:00 -05:00
|
|
|
################################################################################
|
|
|
|
|
## File: terraform.sh
|
|
|
|
|
## Desc: Installs terraform
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
|
|
# Install Terraform
|
|
|
|
|
TERRAFORM_VERSION=$(curl -s https://checkpoint-api.hashicorp.com/v1/check/terraform | jq -r .current_version)
|
|
|
|
|
curl -LO "https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip"
|
2021-03-31 16:07:25 +03:00
|
|
|
unzip -qq "terraform_${TERRAFORM_VERSION}_linux_amd64.zip" -d /usr/local/bin
|
2019-12-13 09:48:00 -05:00
|
|
|
rm -f "terraform_${TERRAFORM_VERSION}_linux_amd64.zip"
|
|
|
|
|
|
2020-12-29 10:02:46 +03:00
|
|
|
invoke_tests "Tools" "Terraform"
|