Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

setting up terraform v0.14.0 on Apple M1

Any pointers how to setup Terraform v0.14.0 on a Apple M1 , as tfenv doesn't support v0.14.0 on Apple M1

tfenv install v0.14.0
Installing Terraform v0.14.0
Downloading release tarball from https://releases.hashicorp.com/terraform/0.14.0/terraform_0.14.0_darwin_arm64.zip
curl: (22) The requested URL returned error: 403

Tarball download failed
like image 288
Avi Avatar asked Sep 13 '25 15:09

Avi


2 Answers

You can set the env var TFENV_ARCH and use tfenv

TFENV_ARCH=amd64 tfenv install 0.14.0
like image 67
Tehseen Avatar answered Sep 15 '25 23:09

Tehseen


If you are using tfenv, you can override the architecture with TFENV_ARCH environment variables: TFENV_ARCH=amd64. See docs.

If you are not using tfenv:

Terraform is a simple executable, you can download it and unzip it from here: https://releases.hashicorp.com/terraform/0.14.0/:

wget https://releases.hashicorp.com/terraform/0.14.0/terraform_0.14.0_darwin_amd64.zip

unzip terraform_0.14.0_darwin_amd64.zip

Please note, there is no arm64 build for osx, but the amd64 works just fine on a Mac M1.

Now you can copy the extracted executable in a folder like /usr/local/bin, which should be on your PATH, so you can run terraform command from anywhere in your system.

like image 41
Ervin Szilagyi Avatar answered Sep 15 '25 23:09

Ervin Szilagyi