-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
resource/aws_rds_cluster: Add deletion_protection argument #6010
Conversation
``` --- PASS: TestAccAWSRDSCluster_DeletionProtection (158.31s) --- PASS: TestAccAWSRDSCluster_SnapshotIdentifier_DeletionProtection (402.09s) ```
Nice job, I am waiting for the PR to be merged. But @bflad, I have questions:
What if someone set Or we need add comments in README, such as, with new feature of |
Hi @ozbillwang 👋 Good question. There are two similar, but different goals achieved by the lifecycle
For the few service APIs that implement their own "prevent destroy" behavior like To specifically answer your questions:
I'm not sure (personally) if anything specifically needs to be done or documented here, but we would be open to suggestions in a new issue or pull request. Understanding how
Terraform will return an error during plan or apply, preventing the database from being removed via Terraform. The database can still be removed outside Terraform. We do not have any code hook back into the
All of these are valid use cases:
If we were to add documentation about this somewhere, I would recommend it would be in a shared location that is linked to by multiple resources, rather than duplicating the content with every resource that supports an API-level deletion protection mechanism. I'm not sure if that makes sense within the provider though as its not provider specific. |
This has been released in version 1.39.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "aws" {
version = "~> 1.39.0"
}
# ... other configuration ... |
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. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Closes #6007
Changes proposed in this pull request:
deletion_protection
argument toaws_rds_cluster
resourceOutput from acceptance testing: