Template v2.2.0 does not have a package available - Mac M1

I managed to get it working by doing the following:

  1. Remove any existing Terraform binary (/usr/bin/terraform and/or /usr/local/bin/terraform)
  2. Install m1-terraform-provider-helper
    2.1 brew install kreuzwerker/taps/m1-terraform-provider-helper
  3. Install Terraform
    3.1 brew tap hashicorp/tap
    3.2 brew install hashicorp/tap/terraform
  4. Install the hashicorp/template version v2.2.0
    4.1 m1-terraform-provider-helper install hashicorp/template -v v2.2.0

My terraform version now:

➜  ~ terraform --version
Terraform v1.1.5
on darwin_arm64

FYI @amaudy

8 Likes