enterprise-setup icon indicating copy to clipboard operation
enterprise-setup copied to clipboard

Terraform > 0.11 support

Open eddiewebb opened this issue 5 years ago • 0 comments

Throws warning, that will soon become errors if not addressed.

Warning: Interpolation-only expressions are deprecated

  on modules/aws_sqs/main.tf line 27, in resource "aws_iam_role_policy" "mod_role_policy":
  27:   role = "${aws_iam_role.mod_role.id}"

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.

eddiewebb avatar Dec 04 '19 14:12 eddiewebb