Terraform-aws-eks: Warning: Interpolation-only expressions are deprecated

Created on 14 Nov 2019  路  1Comment  路  Source: terraform-aws-modules/terraform-aws-eks

Hi, with terraform version 0.12.14 you have this error:

Warning: Interpolation-only expressions are deprecated

on .terraform/modules/eks/terraform-aws-modules-terraform-aws-eks-55ff38c/kubectl.tf line 4, in resource "local_file" "kubeconfig":
4: filename = "${substr(var.config_output_path, -1, 1) == "/" ? "${var.config_output_path}kubeconfig_${var.cluster_name}" : var.config_output_path}"

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.

Thanks

Most helpful comment

When this fix will be released?

>All comments

When this fix will be released?

Was this page helpful?
0 / 5 - 0 ratings