tfutils / tfenv

Terraform version manager
MIT License
4.48k stars 454 forks source link

Version 0.12.19 access denied - 403 #329

Closed dhananjay-thakur closed 2 years ago

dhananjay-thakur commented 2 years ago

$ tfenv install 0.12.19 [INFO] Installing Terraform v0.12.19 [INFO] Downloading release tarball from https://releases.hashicorp.com/terraform/0.12.19/terraform_0.12.19_darwin_arm64.zip

=#=-

curl: (22) The requested URL returned error: 403 Tarball download failed

Also, I am getting 403 - Forbidden error while accessing this link: https://releases.hashicorp.com/terraform/0.12.19/terraform_0.12.19_darwin_arm64.zip

harsha-chamarthi commented 2 years ago

Hello @dhananjay-thakur, this is failing because darwin_arm64 does not exist. There is only (https://releases.hashicorp.com/terraform/0.12.19/terraform_0.12.19_darwin_amd64.zip)

The first release of Terraform that provide an arm64 binary is 1.0.2

By using TFENV_ARCH=amd64, as mentioned here(https://github.com/tfutils/tfenv#tfenv_arch) in the readme. You should be able to install version 0.12.19

dhananjay-thakur commented 2 years ago

Hi @harsha-chamarthi , I followed the below steps but still facing the same issue.

[INFO] TFENV_ARCH=arm tfenv install 0.12.19 Installing Terraform v0.12.19 Downloading release tarball from https://releases.hashicorp.com/terraform/0.12.19/terraform_0.12.19_darwin_arm.zip

=#=-

curl: (22) The requested URL returned error: 403 Tarball download failed

harsha-chamarthi commented 2 years ago

@dhananjay-thakur, It should be TFENV_ARCH=amd64 tfenv install 0.12.19 and not TFENV_ARCH=arm tfenv install 0.12.19

dhananjay-thakur commented 2 years ago

@harsha-chamarthi Thank you so much! It is working fine for me. :)