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

interpolation syntax in cloud-dns #1143

Open
yugandhar-btc opened this issue Jun 28, 2022 · 0 comments
Open

interpolation syntax in cloud-dns #1143

yugandhar-btc opened this issue Jun 28, 2022 · 0 comments

Comments

@yugandhar-btc
Copy link

yugandhar-btc commented Jun 28, 2022

when we ran the terraform init, it is Warning with Interpolation-only expressions are deprecated .

reference path:-
dns_zones
gke_clusters

Observed behavior

Warning: Interpolation-only expressions are deprecated

on main.tf line 165, in module "example_dev":
165: records = ["${google_compute_global_address.ingress_static_ip.address}"]

Terraform 0.11 and earlier required all non-constant expressions to be
provided via interpolation syntax, but this pattern is now deprecated. To
silence this warning, remove the "${ sequence from the start and the }"
sequence from the end of this expression, leaving just the inner expression.

Terraform Configuration

module "example_qa" {
  source  = "terraform-google-modules/cloud-dns/google"
  version = "~> 3.0.0"

  name       = "example-qa"
  project_id = module.project.project_id
  domain     = "example-qa.example.com."
  type       = "public"

  recordsets = [
    {
      name    = "XXXXXXX"
      records = ["${google_compute_global_address.ingress_static_ip.address}"]
      ttl     = 30
      type    = "A"
    },
    {
      name    = "XXXXXXX"
      records = ["${google_compute_global_address.ingress_static_ip.address}"]
      ttl     = 30
      type    = "A"
    },
  ]

}

Terraform Version

Terraform v0.14.0

Additional information

#182

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