aws-samples / aws-network-firewall-terraform

This repository contains terraform code to deploy the necessary resources to get started to test AWS Network Firewall.
MIT No Attribution
67 stars 30 forks source link

web-service.tf uses deprecated `template` provider, fails on M1 CPU #9

Open ddericco opened 11 months ago

ddericco commented 11 months ago

The web service configuration file web-service.tf uses the template_file data source to populate the userdata for the EC2 web host instances. This provider is no longer supported and will not work on newer device architectures like M1 Mac processors.

Expected behavior

Terraform provider will initializer successfully on M1 Mac

Actual behavior

See example output

Example output

$ terraform init
Initializing the backend...

Initializing provider plugins...
- Finding hashicorp/aws versions matching ">= 3.28.0"...
- Finding hashicorp/random versions matching ">= 2.3.0"...
- Finding latest version of hashicorp/template...
- Installing hashicorp/aws v5.17.0...
- Installed hashicorp/aws v5.17.0 (signed by HashiCorp)
- Installing hashicorp/random v3.5.1...
- Installed hashicorp/random v3.5.1 (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.

Related items

Relates #7

References

https://github.com/hashicorp/terraform-provider-template/issues/85 https://registry.terraform.io/providers/hashicorp/template/latest/docs