Skip to content

Commit

Permalink
fix: Do not create default zone_awareness_config if it not set (#3)
Browse files Browse the repository at this point in the history
Co-authored-by: Bryant Biggs <bryantbiggs@gmail.com>
  • Loading branch information
strangeman and bryantbiggs authored Apr 9, 2024
1 parent 4f4bf73 commit 3a1f79f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ resource "aws_opensearch_domain" "this" {
warm_type = try(cluster_config.value.warm_type, null)

dynamic "zone_awareness_config" {
for_each = try([cluster_config.value.zone_awareness_config], [{}])
for_each = try([cluster_config.value.zone_awareness_config], [])

content {
availability_zone_count = try(zone_awareness_config.value.availability_zone_count, null)
Expand Down

0 comments on commit 3a1f79f

Please sign in to comment.