Avi
Avi

Reputation: 1633

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

Upvotes: 23

Views: 25157

Answers (4)

kvendingoldo
kvendingoldo

Reputation: 420

you can use tenv instead of tfenv : https://github.com/tofuutils/tenv

Upvotes: 0

AeonM
AeonM

Reputation: 314

tfswitch You switch between different versions of terraform : https://tfswitch.warrensbox.com/

Upvotes: 1

Ervin Szilagyi
Ervin Szilagyi

Reputation: 16775

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.

Upvotes: 21

Tehseen
Tehseen

Reputation: 451

You can set the env var TFENV_ARCH and use tfenv

TFENV_ARCH=amd64 tfenv install 0.14.0

Upvotes: 45

Related Questions