-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Changing the cluster identifier in an aws_rds_cluster resource should not destroy/recreate the cluster #20363
Comments
Referenced in #507 |
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you! |
Appears to be resolved in the 5.0.0 release of the AWS provider. Thank you! |
still not solved for |
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. |
Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform version:
1.0.3
AWS provider version:
3.42.0
Affected Resource(s)
Terraform Configuration Files
NOTE: Creating the networking infrastructure (VPC, subnets, and db subnet group) are left as an exercise to the reader since they are not relevant to the issue.
Debug Output
https://gist.github.com/gblues/082f3fac11b5a6bc72c717f25493a94b
Expected Behavior
The cluster should be renamed.
Actual Behavior
The cluster is destroyed and re-created, meaning any data stored in the cluster is lost.
Steps to Reproduce
"${local.instance_identifier}-cluster"
terraform plan
Important Factoids
By contrast, the AWS console allows one to modify the cluster and change the cluster ID with no data loss.
References
I found an issue opened years ago on this issue on the main terraform repo, but it was never interacted with:
hashicorp/terraform#11636
The text was updated successfully, but these errors were encountered: