We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
terraform_deprecated_index
1 parent 599e680 commit 7ca30d9Copy full SHA for 7ca30d9
docs/rules/terraform_deprecated_index.md
@@ -53,3 +53,21 @@ Terraform v0.12 supports traditional square brackets for accessing list items by
53
## How To Fix
54
55
Switch to the square bracket syntax when accessing items in list, including resources that use `count`.
56
+
57
+Example:
58
59
+```hcl
60
+locals {
61
+ list = [{a = "b}, {a = "c"}]
62
+ value = list.*.a
63
+}
64
+```
65
66
+Change this to:
67
68
69
70
71
+ value = list[*].a
72
73
0 commit comments