diff --git a/README.md b/README.md index 2c26887..6b74f49 100644 --- a/README.md +++ b/README.md @@ -390,7 +390,7 @@ In general, PRs are welcome. We follow the typical "fork-and-pull" Git workflow. ## Copyright -Copyright © 2017-2021 [Cloud Posse, LLC](https://cpco.io/copyright) +Copyright © 2017-2022 [Cloud Posse, LLC](https://cpco.io/copyright) diff --git a/main.tf b/main.tf index dc24c3e..f1aa688 100644 --- a/main.tf +++ b/main.tf @@ -152,7 +152,7 @@ resource "aws_elasticsearch_domain" "default" { warm_type = var.warm_enabled ? var.warm_type : null dynamic "zone_awareness_config" { - for_each = var.availability_zone_count > 1 ? [true] : [] + for_each = var.availability_zone_count > 1 && var.zone_awareness_enabled ? [true] : [] content { availability_zone_count = var.availability_zone_count }