-
-
Notifications
You must be signed in to change notification settings - Fork 839
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
Dynamic block for versioning added #118
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bridgecrew has found infrastructure configuration errors in this PR ⬇️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change details
-
Error ID Change Path Resource BC_AWS_NETWORKING_52 Added /main.tf aws_s3_bucket.default
/test all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @nnsense
what
Enabling
versioning
on a bucket is a permanent action that cannot be disabled. For this reason, whenversioning
attribute is added to the s3 resource, the bucket is prepared to beversioned
and put in suspended mode. The only way to avoid this and keep the versioning disabled is to not add theversioning
attribute at all.We were discussing this in this bug and @aknysh posted a snipped which is removing the attribute, making it possible to set
versioning
off instead of enabled but suspended.I'm just adding that snippet, there's another PR which is apparently changing more than just the versioning and it seems abandoned (opened in February 2021, had no updates from August).
Note: there's a comment into this module's main:
But I see that some basic handling for dynamic blocks has been added in checkov
bridgecrewio/checkov#836
So if you're using checkov it would be interesting to remove the comment and see if it works now
why