From 3b2adb81d62df08c902dc1a1de0e362a9b125e36 Mon Sep 17 00:00:00 2001 From: ted Date: Thu, 9 Jan 2020 15:27:53 -0800 Subject: [PATCH] apply to main_vpc too --- main_vpc.tf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main_vpc.tf b/main_vpc.tf index 596d73b..ef76311 100644 --- a/main_vpc.tf +++ b/main_vpc.tf @@ -106,7 +106,12 @@ resource "aws_elasticsearch_domain" "es_vpc" { dedicated_master_enabled = "${var.instance_count >= var.dedicated_master_threshold ? true : false}" dedicated_master_count = "${var.instance_count >= var.dedicated_master_threshold ? 3 : 0}" dedicated_master_type = "${var.instance_count >= var.dedicated_master_threshold ? (var.dedicated_master_type != "false" ? var.dedicated_master_type : var.instance_type) : ""}" - zone_awareness_enabled = "${var.es_zone_awareness}" + + zone_awareness_config { + availability_zone_count = "${var.es_availability_zone_count}" + } + + zone_awareness_enabled = "${var.es_zone_awareness}" } # advanced_options {