Skip to content

Commit

Permalink
Merge pull request #202 from tablexi/va-add-multi_az_enabled-var-for-…
Browse files Browse the repository at this point in the history
…elasticache

Add multi_az_enabled argument to aws/elasticache
  • Loading branch information
vandrijevik authored Mar 18, 2021
2 parents e658974 + 7686e86 commit adde755
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions aws/elasticache/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ resource "aws_elasticache_replication_group" "mod" {
count = local.elasticache_replication_group ? 1 : 0
engine_version = var.engine_version
maintenance_window = var.maintenance_window
multi_az_enabled = var.multi_az_enabled
node_type = var.node_type
number_cache_clusters = var.num_nodes
parameter_group_name = aws_elasticache_parameter_group.mod[0].id
Expand Down
5 changes: 5 additions & 0 deletions aws/elasticache/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ variable "maintenance_window" {
description = "Set the weekly maintenance window for the cluster. The format is ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC)"
}

variable "multi_az_enabled" {
default = false
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."
}

variable "name" {
}

Expand Down

0 comments on commit adde755

Please sign in to comment.