Skip to content

Commit cb4e3b8

Browse files
author
igorkotof
committed
added multi_az_enabled var
1 parent be2627d commit cb4e3b8

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

main.tf

+4
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ resource "aws_elasticache_replication_group" "default" {
6464
# https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/AutoFailover.html
6565
automatic_failover_enabled = var.automatic_failover_enabled
6666

67+
# (Optional) Specifies whether to enable Multi-AZ Support for the replication group.
68+
# If true, automatic_failover_enabled must also be enabled. Defaults to false
69+
multi_az_enabled = var.multi_az_enabled
70+
6771
# Redis at-rest encryption is an optional feature to increase data security by encrypting on-disk data during sync
6872
# and backup or snapshot operations. Because there is some processing needed to encrypt and decrypt the data,
6973
# enabling at-rest encryption can have some performance impact during these operations.

variables.tf

+6
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ variable "automatic_failover_enabled" {
6464
description = "Specifies whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails."
6565
}
6666

67+
variable "multi_az_enabled" {
68+
default = false
69+
type = bool
70+
description = "Specifies whether to enable Multi-AZ Support for the replication group. If true, automatic_failover_enabled must also be enabled."
71+
}
72+
6773
variable "at_rest_encryption_enabled" {
6874
default = true
6975
type = bool

0 commit comments

Comments
 (0)