Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting export TFENV_ARCH=arm on Apple Silicon results in curl: (22) The requested URL returned error: 403 #319

Closed
nodesocket opened this issue Feb 5, 2022 · 6 comments

Comments

@nodesocket
Copy link

nodesocket commented Feb 5, 2022

MacBook-Pro ➜  tfenv install 1.0.4
Installing Terraform v1.0.4
Downloading release tarball from https://releases.hashicorp.com/terraform/1.0.4/terraform_1.0.4_darwin_arm.zip
curl: (22) The requested URL returned error: 403

Tarball download failed

My ~/.zshrc simply has:

export TFENV_ARCH=arm
@nodesocket
Copy link
Author

Needs to be arm64. The README.md should probably be updated to default to arm64 since arm is gonna be pretty rare these days. I suspect most people are coming from Apple Silicon machines.

@mattlubner
Copy link

In case anyone else comes across this issue and is also still on an older version of terraform, I had to use TFENV_ARCH=amd64 tfenv install 0.15.5 to get around the 403 error on my M1 mac.

It seems that, without TFENV_ARCH being set, newer versions of tfenv don't use appropriate defaults for older terraform versions, which results in the 403 error.

@mhemken-vts
Copy link

The solution to use TFENV_ARCH=amd64 does not solve the situation where you need arm64. This is 100% a blocking issue for those of us with a company issued M1 while maintaining stuff at pre 1.0 versions.

@dylan-chong
Copy link

https://releases.hashicorp.com/terraform/0.13.7/

Looking at this page there's a terraform_0.13.7_darwin_amd64.zip link but not one for arm64. Is this a typo? on Hashicorp's part?

@rgeraskin
Copy link

So it seems that there is no terraform 0.13.7 for darwin arm64. Looks like darwin arm64 build starts from 1.0.2

@Zordrak
Copy link
Collaborator

Zordrak commented Jul 14, 2022

Between the comments above and the README updates in master, this issue seems resolved.

@Zordrak Zordrak closed this as completed Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants