Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
chore: add multi_az_enabled variable
Browse files Browse the repository at this point in the history
  • Loading branch information
pjuniorlima committed Sep 22, 2022
1 parent d0cb004 commit a2672e7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a2672e7

Please sign in to comment.