From 4d6ce38166b6942984d53fc83a0a71593c2d82ee Mon Sep 17 00:00:00 2001 From: Vasilii Polikarpov <126792224+vpolikarpov-akvelon@users.noreply.github.com> Date: Tue, 10 Oct 2023 13:52:01 +0200 Subject: [PATCH] [Ubuntu] Pin Terraform 1.5.7 (#8504) --- images/linux/scripts/installers/terraform.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/images/linux/scripts/installers/terraform.sh b/images/linux/scripts/installers/terraform.sh index 0e8f55537..9e424a3e9 100644 --- a/images/linux/scripts/installers/terraform.sh +++ b/images/linux/scripts/installers/terraform.sh @@ -7,10 +7,12 @@ source $HELPER_SCRIPTS/install.sh # Install Terraform -URL=$(curl -fsSL https://api.releases.hashicorp.com/v1/releases/terraform/latest | jq -r '.builds[] | select((.arch=="amd64") and (.os=="linux")).url') +# Pin Terraform until v1.6.1 is released +# Ref: https://github.com/hashicorp/terraform/issues/33977 +URL=$(curl -fsSL https://api.releases.hashicorp.com/v1/releases/terraform/1.5.7 | jq -r '.builds[] | select((.arch=="amd64") and (.os=="linux")).url') ZIP_NAME="terraform_linux_amd64.zip" download_with_retries "${URL}" "/tmp" "${ZIP_NAME}" unzip -qq "/tmp/${ZIP_NAME}" -d /usr/local/bin rm -f "/tmp/${ZIP_NAME}" -invoke_tests "Tools" "Terraform" \ No newline at end of file +invoke_tests "Tools" "Terraform"