Skip to content

bug(terraform): for_each iterated over DynamicPseudoType due to locals not evaluated first #9187

Description

@nikpivkin

for_each was being evaluated before the locals were evaluated which was making it iterate over a cty.DynamicPseudoType which meant it was iterating over the keys of a single instance resource instead of the values of the for_each.

Discussed in #9155

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.scan/misconfigurationIssues relating to misconfiguration scanning

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions