kics icon indicating copy to clipboard operation
kics copied to clipboard

fix(terraform): fix child modules parse tfplan file

Open nirfirefly opened this issue 1 year ago • 0 comments

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.

nirfirefly avatar Oct 03 '24 21:10 nirfirefly