2020-10-07 13:49:40 +05:00
|
|
|
#!/bin/bash -e
|
2019-12-13 09:48:00 -05:00
|
|
|
################################################################################
|
2023-11-22 21:49:23 +01:00
|
|
|
## File: install-terraform.sh
|
|
|
|
|
## Desc: Install terraform
|
2019-12-13 09:48:00 -05:00
|
|
|
################################################################################
|
|
|
|
|
|
2022-05-23 22:47:07 +09:00
|
|
|
source $HELPER_SCRIPTS/install.sh
|
|
|
|
|
|
2019-12-13 09:48:00 -05:00
|
|
|
# Install Terraform
|
2023-11-29 20:25:29 +01:00
|
|
|
download_url=$(curl -fsSL https://api.releases.hashicorp.com/v1/releases/terraform/latest | jq -r '.builds[] | select((.arch=="amd64") and (.os=="linux")).url')
|
|
|
|
|
archive_path=$(download_with_retry "${download_url}")
|
|
|
|
|
unzip -qq "$archive_path" -d /usr/local/bin
|
2019-12-13 09:48:00 -05:00
|
|
|
|
2023-11-22 21:49:23 +01:00
|
|
|
invoke_tests "Tools" "Terraform"
|