-
-
Notifications
You must be signed in to change notification settings - Fork 575
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
instance_type_replica not honoured #220
Comments
instance_type_replica
not honoured when instance_type
is set
@svenlito I think this is intentional, from the
If you want different types used on your read replicas specify the
gives me:
|
@rnrsr what I found is that whether I remove the |
I don't think that's accurate, if i just try changing the
So it did ignore the master instance |
I get: No changes. Infrastructure is up-to-date.
This means that Terraform did not detect any differences between your
configuration and real physical resources that exist. As a result, no
actions need to be performed. |
|
➔ t version
Terraform v0.14.2
+ provider registry.terraform.io/hashicorp/aws v3.39.0
+ provider registry.terraform.io/hashicorp/random v3.1.0
+ provider registry.terraform.io/hashicorp/vault v2.19.1
+ provider registry.terraform.io/terraform-providers/mysql v1.9.0
Your version of Terraform is out of date! The latest version
is 0.15.3. You can update by downloading from https://www.terraform.io/downloads.html
|
wierd. tried a re- |
Doing both, bumping to |
This didn't help. |
interesting, what i notice this |
Currently |
if |
Oh, I think this is an off by one type of mistake then.. |
I think this should be https://github.com/terraform-aws-modules/terraform-aws-rds-aurora/blob/master/main.tf#L119 instance_class = try(lookup(var.instances_parameters[count.index], "instance_type"), count.index + 1 > 0 ? coalesce(var.instance_type_replica, var.instance_type) : var.instance_type) |
I think #193 is somewhat related |
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 creating a cluster where
instance_type
is set,instance_type_replica
is ignored andinstance_type
is used for replica instances.I believe this was introduced here #211
Reproduction
Steps to reproduce the behavior:
create autoscaling example with
instance_type
andinstance_type_replica
defined.Expected behavior
instance_type_replica
to be honoured.Actual behavior
instance_type_replica
usesinstance_type
valueThe text was updated successfully, but these errors were encountered: