Skip to content

Conversation

maxamel
Copy link
Contributor

@maxamel maxamel commented Oct 11, 2025

This PR fixes handling of tf_plan enrichment in the presence of for_each/count when sometimes the computed resource_id would not match the original TF definition.

Solves #7315

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my feature, policy, or fix is effective and works
  • New and existing tests pass locally with my changes

@maxamel maxamel changed the title fix handling of resource_id for enrichment in tf_plan feat(terraform_plan): fix handling of resource_id for enrichment in tf_plan Oct 11, 2025
@maxamel maxamel marked this pull request as ready for review October 12, 2025 05:53
@rotemavni rotemavni merged commit 7f1a823 into main Oct 12, 2025
149 of 153 checks passed
@rotemavni rotemavni deleted the fix_tf_plan_resource_id branch October 12, 2025 12:17
Saarett pushed a commit that referenced this pull request Oct 12, 2025
…f_plan (#7329)

* fix handling of resource_id for enrichment in tf_plan

* add test case for tf for_each

---------

Co-authored-by: Max Amelchenko <mamelchenko@paloaltonetworks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants