Skip to content

Commit 3a1f79f

Browse files
fix: Do not create default zone_awareness_config if it not set (#3)
Co-authored-by: Bryant Biggs <bryantbiggs@gmail.com>
1 parent 4f4bf73 commit 3a1f79f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ resource "aws_opensearch_domain" "this" {
106106
warm_type = try(cluster_config.value.warm_type, null)
107107

108108
dynamic "zone_awareness_config" {
109-
for_each = try([cluster_config.value.zone_awareness_config], [{}])
109+
for_each = try([cluster_config.value.zone_awareness_config], [])
110110

111111
content {
112112
availability_zone_count = try(zone_awareness_config.value.availability_zone_count, null)

0 commit comments

Comments
 (0)