Skip to content

Commit adde755

Browse files
authored
Merge pull request #202 from tablexi/va-add-multi_az_enabled-var-for-elasticache
Add multi_az_enabled argument to aws/elasticache
2 parents e658974 + 7686e86 commit adde755

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

aws/elasticache/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ resource "aws_elasticache_replication_group" "mod" {
4242
count = local.elasticache_replication_group ? 1 : 0
4343
engine_version = var.engine_version
4444
maintenance_window = var.maintenance_window
45+
multi_az_enabled = var.multi_az_enabled
4546
node_type = var.node_type
4647
number_cache_clusters = var.num_nodes
4748
parameter_group_name = aws_elasticache_parameter_group.mod[0].id

aws/elasticache/variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ variable "maintenance_window" {
3232
description = "Set the weekly maintenance window for the cluster. The format is ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC)"
3333
}
3434

35+
variable "multi_az_enabled" {
36+
default = false
37+
description = "(Optional) Specifies whether to enable Multi-AZ Support for the replication group. If true, automatic_failover_enabled must also be enabled. Defaults to false."
38+
}
39+
3540
variable "name" {
3641
}
3742

0 commit comments

Comments
 (0)