-
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
[Bug]: Unable to remove RDS Global Cluster and associated RDS Clusters at one go #39909
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Hey @ktrenchev 👋 Thank you for taking the time to raise this! While we understand Terraform configurations can get pretty complicated, it's often quite difficult to reproduce scenarios like this without any logging or configuration samples. Are you able to provide debug logs (redacted as necessary) if you're unable to provide a configuration as you'd initially indicated? One thing that came to up when taking a quick look at this while triaging was the |
Greetings @justinretzolk!, Unfortunately I'm unable to provide debug logs. I did play around with the
I'll be happy with a confirmation that the deletion of a Global RDS Cluster and associated RDS Clusters at one go is supported (meaning there is something wrong with my setup, which, unfortunately, is not unlikely). |
Thanks for the additional information here @ktrenchev 👍 Completely understand re:logging and configuration samples. I'll let someone from the team or community speak to some of the more specifics here. Edit: I had a thought that using a later provider version may help, given that we've migrated most of the provider to use AWS SDK for Go V2. In doing so, I noticed the following in the release notes for
It may be worth upgrading to at least provider version |
@justinretzolk do you know what was changed , i still using same aws provider 5.0.0 like before , but since october 13 its start failing , i cant upgrade my provider to new version because i need to do a lot of changes in my terraform infrastructure |
steps to reproduce ,
you can see that its start deleting the instance in east region , and then when trying to promote east cluster from the global db , it didn't wait to finish promoting and start the deletion directlly , so its failing on |
@justinretzolk i already have the force_destroy on the aws_rds_global_cluster resource and it still happen |
Warning This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
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 issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Terraform Core Version
0.13.7
AWS Provider Version
4.53.0
Affected Resource(s)
aws_rds_global_cluster
aws_rds_cluster
Expected Behavior
I want to be able to delete both the RDS Global Cluster and the associated RDS Clusters with a single
terraform destroy
invocation.Actual Behavior
When
terraform destroy
is called it:terraform destroy
operation fails to delete the other RDS Cluster and the RDS Global Cluster.terraform destroy
deletes the leftover RDS Global Cluster and RDS Cluster.Relevant Error/Panic Output Snippet
Terraform Configuration Files
N/A, setup is way too complicated to extract the exact configuration.
Steps to Reproduce
terraform destroy
.Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: