-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
aws_elasticache_replication_group setting multi-az to false when automatic_failover_enabled is true #17376
Comments
Seems related:
We don't set |
I've run into the I've opened #17605 for this issue. |
I have a deeper issue. I maintain a number of different AWS environments, some of which (large) utilise multi AZ and some of which (small) don't. The environments which do NOT utilise multi AZ also use clusters but only resolve to having a single cluster for the interpolated Therefore, there is no version of the AWS provider that will satisfy both deployments:
Summary: the implementation of Terraform in respect of clustering and multi AZ config for Redis has been very poorly implemented and is no longer congruent with AWS. |
I'm dealing with the issue described by @DoctorPolski :( |
Hello everyone, This change in v3.26.0 is due to a change in the AWS API. Previously, setting The reason Terraform is proposing changing @DoctorPolski, v3.26.0 should work fine with your "small" environments. You can configure a cluster with no replicas, using resource "aws_elasticache_replication_group" "example" {
...
cluster_mode {
num_node_groups = 1
replicas_per_node_group = 0
}
} If that doesn't work, please open a new issue showing the Terraform configuration that you're using. I'm going to close this issue, since the handling of |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform v0.13.6
Affected Resource(s)
Terraform Configuration Files
and var redis_automatic_failover = true
Expected Behavior
After upgrading to tf13 I expected no changes when running terraform plan/apply.
Is it now necessary to also specify multi-az?
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/elasticache_replication_group#automatic_failover_enabled
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/elasticache_replication_group#multi_az_enabled
Is multi_az_enabled redundant or new? or is the default to false new or overriding the old default that would occur when automatic_failover_enabled was set to true?
Actual Behavior
Terraform wants to change multi-az to false.
Automatic failover is still enabled. Primary is in one AZ and the replica is in another AZ but multi-az is now setting to false.
Steps to Reproduce
The text was updated successfully, but these errors were encountered: