Skip to content

Commit 3cb86c6

Browse files
committed
Try to fix cloud_storage error for Elasticsearch version prior 7.9
1 parent 5b2f7ed commit 3cb86c6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

main.tf

+5-1
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,12 @@ resource "aws_elasticsearch_domain" "default" {
158158
}
159159
}
160160

161-
cold_storage_options {
161+
162+
dynamic "cold_storage_options" {
163+
for_each = var.cold_storage_enabled ? [true] : []
164+
content {
162165
enabled = var.cold_storage_enabled
166+
}
163167
}
164168
}
165169

0 commit comments

Comments
 (0)