-
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_instance: fix destroy error when cluster instance is in a read replica #40409
Conversation
Community NoteVoting for Prioritization
For Submitters
|
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 TESTARGS='-run=TestAccRDSClusterInstance_Replica_basic\|TestAccRDSClusterInstance_basic' PKG=rds
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=TestAccRDSClusterInstance_Replica_basic\|TestAccRDSClusterInstance_basic -timeout 360m
2024/12/04 08:40:41 Initializing Terraform AWS Provider...
=== RUN TestAccRDSClusterInstance_basic
=== PAUSE TestAccRDSClusterInstance_basic
=== RUN TestAccRDSClusterInstance_Replica_basic
=== PAUSE TestAccRDSClusterInstance_Replica_basic
=== CONT TestAccRDSClusterInstance_basic
=== CONT TestAccRDSClusterInstance_Replica_basic
--- PASS: TestAccRDSClusterInstance_basic (1282.68s)
--- PASS: TestAccRDSClusterInstance_Replica_basic (3219.67s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/rds 3224.927s
This functionality has been released in v5.80.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! |
Description
When a
aws_rds_cluster_instance
is a part ofaws_rds_cluster
destroying failing with the following error:This adds a
force_destroy
virtual attribute that will allow practitioners to destroy instances that are a part of a replica cluster. This process promotes the cluster to a standalone cluster so that the instance can be deleted.reproduction in test
Relations
Closes #6749
References
Output from Acceptance Testing