-
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
r/aws_rds_cluster: Fix InvalidDBClusterStateFault
errors when deleting clusters that are members of a global cluster
#40333
Conversation
…apshot because the database cluster test-secondary-cluster isn't currently in the available state" on Delete.
Community NoteVoting for Prioritization
For Submitters
|
InvalidDBClusterStateFault
errors when deleting clusters that are members of a global clusterInvalidDBClusterStateFault
errors when deleting clusters that are members of a global cluster
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.
LGTM 🎉
% make testacc PKG=rds TESTS=TestAccRDSCluster_GlobalClusterIdentifierTakeFinalSnapshot
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/rds/... -v -count 1 -parallel 20 -run='TestAccRDSCluster_GlobalClusterIdentifierTakeFinalSnapshot' -timeout 360m
2024/12/02 09:43:38 Initializing Terraform AWS Provider...
=== RUN TestAccRDSCluster_GlobalClusterIdentifierTakeFinalSnapshot
=== PAUSE TestAccRDSCluster_GlobalClusterIdentifierTakeFinalSnapshot
=== CONT TestAccRDSCluster_GlobalClusterIdentifierTakeFinalSnapshot
--- PASS: TestAccRDSCluster_GlobalClusterIdentifierTakeFinalSnapshot (289.84s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/rds 296.414s
This functionality has been released in v5.81.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
When an RDS DB Cluster is removed from a Global Cluster it is in
promoting
state for a while.If an attempt to delete the DB Cluster (with a final snapshot) is made while it is in this state, the
InvalidDBClusterStateFault: Can't create a snapshot because the database cluster ... isn't currently in the available state
error is raised.Address this by waiting for the DB Cluster to become
available
after removal from the Global Cluster.Relations
Closes #39909.
Output from Acceptance Testing
Failure is unrelated to this change and is occurring in CI: