kics
kics copied to clipboard
fix(terraform): fix child modules parse tfplan file
Closes #7265
Reason for Proposed Changes
- When pasrsing tfplan file: If there are child modules, each child module overrides the resources in the module above it
Proposed Changes
- initialize the resource map only once
- use address as resource identifier, as the name is only unique in a module.
I submit this contribution under the Apache-2.0 license.