You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ tf plan
╷
│ Error: Ambiguous attribute key
│
│ on test.tf line 12, in output "map_b":
│ 12: local.foo : "baz"
│
│ If this expression is intended to be a reference, wrap it in parentheses. If it's instead intended as a literal name containing periods, wrap it in quotes to create a string literal.
$ tflint -vTFLint version 0.39.1
$ terraform -vTerraform v1.2.6
The text was updated successfully, but these errors were encountered:
Warning: Interpolation-only expressions are deprecated in Terraform v0.12.14 (terraform_deprecated_interpolation)
on main.tf line 7:
7: "${local.foo}" : "baz"
Reference: https://github.com/terraform-linters/tflint/blob/v0.39.1/docs/rules/terraform_deprecated_interpolation.md
Introduction
With a recent change, tflint now returns a Warning when I have an interpolation-only string attribute in a map.
Applying the suggestion results in invalid HCL that Terraform rejects.
Expected Behavior
It should not suggest/warn on interpolation-only string attributes in a map.
Actual behavior
Running tflint over the example playbook results in this warning:
Warning: Interpolation-only expressions are deprecated in Terraform v0.12.14 (terraform_deprecated_interpolation)
Step to Reproduce
Run this example against tflint 0.39.1:
Additional Context
This is the (invalid) suggestion:
Running this results in an error from Terraform:
The text was updated successfully, but these errors were encountered: