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

Remove interpolation-only expressions #32

Merged
merged 1 commit into from
Dec 21, 2020

Conversation

Baldinof
Copy link
Contributor

Hi!

Interpolation-only expressions are deprecated since terraform 0.11

Terraform warning:

Warning: Interpolation-only expressions are deprecated

  on .terraform/modules/memorystore/main.tf line 44, in module "enable_apis":
  44:   project_id  = "${var.project}"

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.

Closes #31

@morgante morgante merged commit f4896f6 into terraform-google-modules:master Dec 21, 2020
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

Successfully merging this pull request may close these issues.

Interpolation warning for project_id
2 participants