Closed jfchevrette closed 8 months ago
This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days
This issue was automatically closed because of stale in 10 days
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. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Description
When making a change to a cluster parameter which forces a resource re-creation, and also not using randomly generated cluster_instance identifier (or prefix), AWS returns a
DBClusterAlreadyExistsFault
error, since theaws_rds_cluster
resource is being created first before the existing one is destroyedVersions
Module version [Required]: 8.3
Terraform version: 1.4.6
Provider version(s):
Reproduction Code [Required]
Steps to reproduce the behavior:
var.master_username
Expected behavior
Because
master_username
onaws_rds_cluster
does not support in-place update, the resource must be re-created. Because of this, terraform wants to replace both theaws_rds_cluster
andaws_rds_cluster_instance
(s)Terraform should destroy the DB instances and cluster first, and then create them
Actual behavior
Terraform starts with trying to create a new
aws_rds_cluster
first, before destroying the previous one, but with the same name (because I am not usingcluster_identifier_prefix
?)Terminal Output Screenshot(s)
Additional context
I think if I would be using cluster_identifier_prefix this would not be a problem because terraform would attempt to create a new cluster and new instances first, with a generated name based on the prefix. But because I am not using this and instead defining a fixed cluster_identifier the order of operations must be different.