Skip to content
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!: adds settings.deletion_protection_enabled to modules #404

Merged
merged 4 commits into from
Jan 14, 2023

Conversation

KelvinVenancio
Copy link
Contributor

Team,

The new provider version 4.48.0 introduced a new feature deletion_protection_enabled to guard against deletion from all surfaces. We would like to use this feature together with the existing deletion_protection that already blocks deletion via Terraform.

Until version 4.47.0, we activated this option manually and since it didn't exist in the provider, it didn't drift. Today, we have more than 50 database instances between MySQL and PostgreSQL alarming drift due to this feature of the provider. This PR corrects and resolves this issue.

We appreciate if this can make it into the 14.0.0 release that will be released (if there are no errors and/or considerations in this PR, of course.).

Thanks.

@KelvinVenancio KelvinVenancio requested a review from a team as a code owner January 11, 2023 17:22
@google-cla
Copy link

google-cla bot commented Jan 11, 2023

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.

Copy link
Contributor

@apeabody apeabody left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution @KelvinVenancio!

Please increase the relevant provider versions to >= 4.48.0 for the new capability as well. For example:

version = ">= 4.45.0, < 5.0"

@apeabody apeabody changed the title feat: adds settings.deletion_protection_enabled to modules feat!: adds settings.deletion_protection_enabled to modules Jan 11, 2023
@KelvinVenancio
Copy link
Contributor Author

Hi @apeabody, you're welcome. Sorry, completely forgot, my mistake. I have fixed it now. Thank you.

@apeabody apeabody self-assigned this Jan 11, 2023
@comment-bot-dev
Copy link

@KelvinVenancio
Thanks for the PR! 🚀
✅ Lint checks have passed.

@bharathkkb bharathkkb merged commit af48cd3 into terraform-google-modules:master Jan 14, 2023
@apeabody apeabody removed their assignment Jan 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants