terraformapple-m1terraform-provider-azuredarwin

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

Solution

  • 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.