From a2672e7ff29281f47017e06fbd9782564c075284 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paulo=20J=C3=BAnior=20do=20Nascimento=20Lima?= Date: Thu, 22 Sep 2022 16:11:33 -0300 Subject: [PATCH] chore: add multi_az_enabled variable --- main.tf | 2 +- variables.tf | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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