How to run plan on arm (mac) with outdated template provider?

Hello,

I’m trying to run terraform init but getting:

Provider registry.terraform.io/hashicorp/template v2.2.0 does not have a package available for your current platform, darwin_arm64.

I know that it is deprecated provider and we are thinking to replace it in future.

To run init/plan I tried to trick the terraform by using

/usr/bin/arch -x86_64 /usr/bin/env bash --login

...
$ arch
i386

But it still says

Provider registry.terraform.io/hashicorp/template v2.2.0 does not have a package available for your current platform, darwin_arm64.

What would you recommend to quickly fix this?
My target is to run plan and verify my changes before applying them to git for team review.

You are running the shell under rosetta, but you probably still have an arm64 terraform binary. Installing an amd64 terraform binary should run automatically, and init the amd64 versions of the providers as well.

1 Like