-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add deletion_protection argument to google_secret_manager_secret #13661
Comments
I'm not sure that we want to apply clientside That's not to say this this is wholly out of consideration, or that we don't think it's a valid request- I'll leave the issue open in our "Backlog" milestone to allow discussion / for it to collect addtl input from other users. Our stance for resources outside of databases is that this needs to be solved at the Terraform Core level, and we'd filed hashicorp/terraform#24658 to track that feedback (and have emphasized it as a priority through internal channels several times!) |
Marking forward/exempt since this is currently in backlog. |
Closing based on #13661 (comment) + no new feedback. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Description
The accidental deletion of secret manager secrets can be very disruptive if the secret is used by a production service.
Terraforms
lifecycle { prevent_destroy=true }
solves this issue in a blunt way but it is not really useable if you use terraform modules to provide a unified way of creating secrets across the organisation.It would be very useful to have an option to set the
deletion_protection
argument forgoogle_secret_manager_secret
similarly to how you can do it for thegoogle_sql_database_instance
resource. This would allow us to prevent accidental deletions while still providing a good developer experience with terraform modules.New or Affected Resource(s)
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: