Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

RDS Cluster cannot be updated with replacement #25714

Open
autarchprinceps opened this issue Jul 6, 2022 · 1 comment
Open

RDS Cluster cannot be updated with replacement #25714

autarchprinceps opened this issue Jul 6, 2022 · 1 comment
Labels
bug Addresses a defect in current functionality. service/rds Issues and PRs that pertain to the rds service.

Comments

@autarchprinceps
Copy link

autarchprinceps commented Jul 6, 2022

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform CLI and Terraform AWS Provider Version

Terraform 1.2.3
AWS Provider 4.21.0

Affected Resource(s)

  • aws_rds_cluster
  • aws_db_instance

Terraform Configuration Files

e.g. KMS change or snapshot change to force a replacement

~ kms_key_id = "arn:aws:kms:region:account:key/key_id1" -> "arn:aws:kms:region:account:key/key_id2" # forces replacement

Expected Behavior

The RDS cluster replacement needs to destroy resources depending on it, particularly the DB Instances, before deleting itself, and then recreating the dependant resources. Just like the cluster itself, they need replacement if their cluster changes, they cannot be assumed to be updatable in place.

Actual Behavior

Error: error deleting RDS Cluster (clustername): InvalidDBClusterStateFault: Cluster cannot be deleted, it still contains DB instances in non-deleting state.

@autarchprinceps autarchprinceps changed the title RDS Cluster cannot be RDS Cluster cannot be updated with replacement Jul 6, 2022
@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. service/rds Issues and PRs that pertain to the rds service. labels Jul 6, 2022
@justinretzolk justinretzolk added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels Jul 6, 2022
@codezninja
Copy link

Just hit this issue as well. Any thoughts on how to fix this on the provider side? Currently my only workaround is to scale instances down to 0 before making destructive changes to the cluster

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Addresses a defect in current functionality. service/rds Issues and PRs that pertain to the rds service.
Projects
None yet
Development

No branches or pull requests

3 participants