diff --git a/main.tf b/main.tf index eedbb81..6c09c9b 100644 --- a/main.tf +++ b/main.tf @@ -63,7 +63,7 @@ resource "aws_elasticache_replication_group" "default" { # one available read replica. Clusters without read replicas do not provide high availability or fault tolerance. # https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/AutoFailover.html automatic_failover_enabled = var.automatic_failover_enabled - + multi_az_enabled = var.multi_az_enabled # Redis at-rest encryption is an optional feature to increase data security by encrypting on-disk data during sync # and backup or snapshot operations. Because there is some processing needed to encrypt and decrypt the data, # enabling at-rest encryption can have some performance impact during these operations. diff --git a/variables.tf b/variables.tf index a4d09fd..1752d71 100644 --- a/variables.tf +++ b/variables.tf @@ -77,6 +77,12 @@ variable "automatic_failover_enabled" { description = "Specifies whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails." } +variable "multi_az_enabled" { + default = true + type = bool + description = "Specifies whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails." +} + variable "at_rest_encryption_enabled" { default = true type = bool