-
-
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
S3 buckets created with versioning #76
Comments
Correct me if i'm wrong, but it gets worse with disabled lifecycle rules, as now we get an ever growing bucket, as |
This is a pretty nasty bug, any chance of getting a fix anytime soon? |
I did some testing and it seems that this isn't related the module, but it's related terraform and what Apparently,
This will turn it on and enable:
I really don't know how this can be sorted out, if just by mentioning an attribute will enable it (suspended), the only thing to do would be to remove it entirely based on a variable, but I'm not aware that's possible in terraform |
https://www.terraform.io/docs/language/expressions/dynamic-blocks.html @nnsense ^ |
Hey, that worked! Why you didn't add it into the module? If you don't have time I can create a PR :) |
...there's already a PR.. Open from February.. :'( |
@nnsense the PR is very old and convoluted. |
I'm doing just that :) Question: there's a comment:
But now I see that some basic handling for dynamic blocks has been added in checkov So if you're using checkov it would be interesting to remove the comment and see if it works now |
Closing this because #118 is merged |
Describe the Bug
It's related to
aws_s3_bucket
resource bug or feature: hashicorp/terraform-provider-aws#4494In short setting
versioning
to false, actually creates versioned bucket with suspended versioning:Expected Behavior
Bucket with versioning actually disabled
Steps to Reproduce
Try to create unversioned bucket
The text was updated successfully, but these errors were encountered: