picatz / terraform-google-nomad

📗 Terraform Module for Nomad clusters with Consul on GCP
https://registry.terraform.io/modules/picatz/nomad/google
MIT License
78 stars 16 forks source link

Interpolation-only Expressions Are Deprecated #7

Closed picatz closed 4 years ago

picatz commented 4 years ago
$ terraform validate .

Warning: Interpolation-only expressions are deprecated

  on modules/open-port/firewall.tf line 6, in resource "google_compute_firewall" "open_port":
   6:     protocol = "${var.protocol}"

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.

Template interpolation syntax is still used to construct strings from
expressions when the template includes multiple interpolation sequences or a
mixture of literal strings and interpolations. This deprecation applies only
to templates that consist entirely of a single interpolation sequence.

(and 4 more similar warnings elsewhere)