Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(terraform): Fix foreach multi attributes in field #6707

Merged
merged 3 commits into from
Sep 8, 2024

Conversation

SteveVaknin
Copy link
Contributor

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Description

  • Fix the foreach handler to support multi attributes in same field
  • For example - tags = merge(each.value.tags, { Name = each.value.name }, {})
  • Added test for this case

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

@SteveVaknin SteveVaknin changed the title Steve/fix/foreach merge Fix(terraform): Fix foreach multi attributes in field Sep 8, 2024
@SteveVaknin SteveVaknin changed the title Fix(terraform): Fix foreach multi attributes in field fix(terraform): Fix foreach multi attributes in field Sep 8, 2024
@SteveVaknin SteveVaknin merged commit 3e4f1bb into main Sep 8, 2024
41 of 42 checks passed
@SteveVaknin SteveVaknin deleted the steve/fix/foreach-merge branch September 8, 2024 10:43
pull bot pushed a commit to tooniez/checkov that referenced this pull request Sep 8, 2024
)

Fix(terraform): Fix foreach multi attributes in field
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.

3 participants