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

fix: use `templatefile` function instead of Template Provider #7

Open wafuwafu13 opened 1 year ago

wafuwafu13 commented 1 year ago

Issue #, if available: Thanks for awesome sample!

Description of changes: I failed terraform init because of deprecated Template Provider

~/Desktop/aws-network-firewall-terraform
$ terraform --version
Terraform v1.4.4
on darwin_arm64
+ provider registry.terraform.io/hashicorp/aws v4.63.0
+ provider registry.terraform.io/hashicorp/random v3.5.1

~/Desktop/aws-network-firewall-terraform
$ terraform init

Initializing the backend...

Initializing provider plugins...
- Reusing previous version of hashicorp/random from the dependency lock file
- Reusing previous version of hashicorp/aws from the dependency lock file
- Finding latest version of hashicorp/template...
- Using previously-installed hashicorp/random v3.5.1
- Using previously-installed hashicorp/aws v4.63.0
╷
│ 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.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.