F5Networks / terraform-gcp-bigip-module

Terraform module for Deploying BIG-IP in GCP
Apache License 2.0
9 stars 11 forks source link

Template_file not compatible with M1 and terraform versions #31

Closed JeffGiroux closed 1 year ago

JeffGiroux commented 1 year ago

The template provider is causing terraform initialize errors for M1 users. The data template_file resource was to be used prior to terraform .11 and now .12 and on should use templatefile instead. Please update all the GCP BIG-IP code to remove data template_file resources and use local templatefile instead.

error

│ 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.

JeffGiroux commented 1 year ago

similar to azure issue https://github.com/F5Networks/terraform-azure-bigip-module/issues/38

JeffGiroux commented 1 year ago

Bad blocks...

in main.tf

data "template_file" "startup_script" {

metadata_startup_script = replace(coalesce(var.custom_user_data, data.template_file template = file("${path.module}/startup-script.tpl")

KrithikaChidambaram commented 1 year ago

Hi Jeff, Internal tracking ID for this request is: INFRAANO-922. Thanks!