You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the same issue. Checks are failing even with terraform-aws-modules
It is probably only the checks which have a connection type defined are failing here.
This module is failing CKV2_AWS_61: "Ensure that an S3 bucket has a lifecycle configuration" and CKV2_AWS_6: "Ensure that S3 bucket has a Public Access block" which should obviously pass.
This issue exists with both terraform and terraform_plan framework
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
Thanks!
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: