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
Having a merge() which contains an inline defined object seems to change the output of locals from ${local.common_tags} in the universal json format to local.common_tags.
Testing has shows this is occurs when the merge() is present. It also must be in a second file, if the resource and the provider block are in the same file this doesn't occur.
The text was updated successfully, but these errors were encountered:
granular-ryanbonham
changed the title
bug(Terraform): Merge with object changes input for kics
bug(Terraform): merge with object changes input for kics
Jul 14, 2024
granular-ryanbonham
changed the title
bug(Terraform): merge with object changes input for kics
bug(terraform): merge with object changes input for kics
Jul 14, 2024
Having a merge() which contains an inline defined object seems to change the output of locals from
${local.common_tags}
in the universal json format tolocal.common_tags
.Expected Behavior
Parsing scanning this terraform file
Generates this json which contains the expected result of
"tags": "${local.common_tags}"
(Which results are expected from KICS?)
Actual Behavior
Now we add a second tf file with a resource which contains a merge() of our local with another object..
provider.tf
main.tf
Note the json now says
"tags": "local.common_tags"
for the provider's default_tags, which is not expected.Testing has shows this is occurs when the merge() is present. It also must be in a second file, if the resource and the provider block are in the same file this doesn't occur.
The text was updated successfully, but these errors were encountered: