16

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
Frant
  • 5,382
  • 1
  • 16
  • 22
Avi
  • 1,453
  • 4
  • 18
  • 43

3 Answers3

29

You can set the env var TFENV_ARCH and use tfenv

TFENV_ARCH=amd64 tfenv install 0.14.0
Tehseen
  • 291
  • 1
  • 2
  • 2
16

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.

Ervin Szilagyi
  • 14,274
  • 2
  • 25
  • 40
0

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

AeonM
  • 194
  • 1
  • 9