I managed to get it working by doing the following:
- Remove any existing Terraform binary (
/usr/bin/terraformand/or/usr/local/bin/terraform) - Install m1-terraform-provider-helper
2.1brew install kreuzwerker/taps/m1-terraform-provider-helper - Install Terraform
3.1brew tap hashicorp/tap
3.2brew install hashicorp/tap/terraform - Install the
hashicorp/templateversionv2.2.0
4.1m1-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