-
-
Notifications
You must be signed in to change notification settings - Fork 178
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
Output instance endpoints, add attributes to random_pet
that force a new instance
#236
Conversation
random_pet
that force a new instance
/terratest |
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.
thanks @finchr
These changes were released in v1.13.0. |
Is this not a breaking change with potential of data loss, especially for clusters of size 1? In that case it should be described as backwards incompatible and have a conditional flag to prevent recreation/destroy of existing resources. |
Hi @mihaiplesa this is not a breaking change, it just covers a few missed attributes from a previous PR which might have caused problems if certain attributes were changed and also adds the instance endpoints to the output. |
@@ -336,13 +339,13 @@ module "rds_identifier" { | |||
resource "aws_rds_cluster_instance" "default" { | |||
count = local.cluster_instance_count | |||
identifier = "${module.rds_identifier[0].id}-${count.index + 1}" | |||
cluster_identifier = coalesce(join("", aws_rds_cluster.primary[*].id), join("", aws_rds_cluster.secondary[*].id)) | |||
cluster_identifier = random_pet.instance[0].keepers.cluster_identifier |
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.
this is forcing a replacement in the resource "aws_rds_cluster_instance" "default" {
now that these attribute values are changing (even if the end result value is the same). this would cause a recreate of the database instance... see example plan above
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.
…new instance
what
why
references