-
Notifications
You must be signed in to change notification settings - Fork 568
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
feat!: soft-delete configuration #309
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
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 for the PR @SHA65536. Could you also update the min provider to 5.22 https://github.com/terraform-google-modules/terraform-google-cloud-storage/blob/master/versions.tf#L23
@bharathkkb Let me know if there's something else I need to do? I don't know how to properly update the metadata |
/gcbrun |
@bharathkkb can you help explain the reason for min provider 5.22 for this change? Can this be backported to a 4.x version of the provider? Can we get this change backported to 4.x ? IHAC that is using 4.x of the provider and they need this change to be implemented on 4.x as otherwise they will need to upgrade to 5.x of the provider which will be a large and cumbersome task. |
This option does not exist on 4.x and defaults to a retention of 7 days, which will result in additional costs starting august |
@SHA65536 it looks like it does for version 4.85.0, or is this a bug in the docs? https://registry.terraform.io/providers/hashicorp/google/4.85.0/docs/resources/storage_bucket#soft_delete_policy |
@victorcadena Hey, 4.85.0 came out 6 days ago, and they added the soft delete policy to there (2 months after the original pr, and 1 week after my last comment) |
Actually just noticed, the early 5.x versions (until 5.22) don't have soft delete, so I don't know how can we force >4.85 while also having <5.22 |
Closes #301
I'm new to contributing so I hope I did all that is needed
Tested this on our infra