-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
terraform_plan - modules - for_each / count issues #6113
Comments
I have the same issue. Checks are failing even with terraform-aws-modules
This module is failing |
Thanks for contributing to Checkov! We've automatically marked this issue as stale to keep our issues list tidy, because it has not had any activity for 6 months. It will be closed in 14 days if no further activity occurs. Commenting on this issue will remove the stale tag. If you want to talk through the issue or help us understand the priority and context, feel free to add a comment or join us in the Checkov slack channel at codifiedsecurity.slack.com |
Hi, is there any update on this issue? or workaround to handle this situation? |
Describe the issue
Hi,
Some AWS checks failed when resource is created with for_each or count element in modules.
Checks example :
Cmd :
checkov -f tfplan2.json --check "CKV2_AWS_6,CKV_AWS_145" --framework "terraform_plan" --repo-root-for-plan-enrichment .
Result :
Examples
main.tf
or
../modules/aws-s3/main.tf
Desktop (please complete the following information):
Additional context
Checks passed if i use module for one resource :
Checks failed with for_each/count :
TF Plan example :
Thanks
The text was updated successfully, but these errors were encountered: