Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provider template v2.2.0 unsupported on darwin_arm64 #5

Open
ddericco opened this issue Sep 21, 2022 · 0 comments
Open

Provider template v2.2.0 unsupported on darwin_arm64 #5

ddericco opened this issue Sep 21, 2022 · 0 comments

Comments

@ddericco
Copy link
Contributor

The terraform-provider-template provider has been deprecated and is not supported on M1/Apple ARM CPU architecture: hashicorp/terraform-provider-template#85

Output from terraform init on an M1 Mac:

$ terraform init
Initializing modules...
- compute in modules/compute
- connect_vpc in modules/connect_vpc
- iam_kms in modules/iam_kms
- key_pairs in modules/key_pairs
- remote_vpc in modules/remote_vpc
- transit_gateway in modules/transit_gateway
- transit_gateway.tgw_vpc_route in modules/tgw_vpc_route
- vpc in modules/vpc
- vpc_endpoints in modules/vpc_endpoints

Initializing the backend...

Initializing provider plugins...
- Finding latest version of hashicorp/random...
- Finding latest version of hashicorp/external...
- Finding latest version of hashicorp/template...
- Finding hashicorp/aws versions matching "~> 4.4"...
- Installing hashicorp/random v3.4.3...
- Installed hashicorp/random v3.4.3 (signed by HashiCorp)
- Installing hashicorp/external v2.2.2...
- Installed hashicorp/external v2.2.2 (signed by HashiCorp)
- Installing hashicorp/aws v4.31.0...
- Installed hashicorp/aws v4.31.0 (signed by HashiCorp)
╷
│ Error: Incompatible provider version
│ 
│ Provider registry.terraform.io/hashicorp/template v2.2.0 does not have a package available for your current
│ platform, darwin_arm64.
│ 
│ Provider releases are separate from Terraform CLI releases, so not all providers are available for all
│ platforms. Other versions of this provider may have different platforms supported.

Looking at the code, the deprecated provider appears to be used to provision the user_data for the CSR instances.

An alternative approach here would be to leverage the built-in templatefile function instead: https://www.terraform.io/language/functions/templatefile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant