Skip to content

newer terraform versions(>=0.12.?) 'Warning: Interpolation-only expressions...

Using new terraform (v0.14.7), terraform apply complains:

Warning: Interpolation-only expressions are deprecated

  on .terraform/modules/ec2_dns_maintainer/main.tf line 22, in resource "aws_iam_role" "lambda-role":
  22:     Service           = "${var.service_name}"

Chg interpolations to newer syntax.

The changes in this merge request probably work for terraform >= v0.12.x.

Merge request reports