Skip to content

Commit 470ba57

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

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

main.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,11 @@ resource "aws_elasticsearch_domain" "default" {
158158
}
159159
}
160160

161-
cold_storage_options {
161+
dynamic "cold_storage_options" {
162+
for_each = var.cold_storage_enabled ? [true] : []
163+
content {
162164
enabled = var.cold_storage_enabled
165+
}
163166
}
164167
}
165168

0 commit comments

Comments
 (0)