Skip to content

Commit d24c09d

Browse files
author
Steve Huff
committed
more conditional magic to try to reduce churn
1 parent 2cd8423 commit d24c09d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ resource "aws_elasticsearch_domain" "es" {
2727
instance_type = "${var.instance_type}"
2828
instance_count = "${var.instance_count}"
2929
dedicated_master_enabled = "${var.instance_count >= 10 ? true : false}"
30-
dedicated_master_count = 3
31-
dedicated_master_type = "${var.dedicated_master_type ? var.dedicated_master_type : var.instance_type}"
30+
dedicated_master_count = "${var.instance_count >= 10 ? 3 : 0}"
31+
dedicated_master_type = "${var.instance_count >= 10 ? (var.dedicated_master_type ? var.dedicated_master_type : var.instance_type) : ""}"
3232
zone_awareness_enabled = "${var.es_zone_awareness}"
3333
}
3434

0 commit comments

Comments
 (0)