fix: Replace list with tolist function for working with terraform v0.15.0 (#1317)

This commit is contained in:
Neven Miculinic
2021-05-04 21:58:44 +02:00
committed by GitHub
parent c12c186432
commit 3ecdc20ce6

View File

@@ -385,7 +385,7 @@ resource "aws_launch_template" "workers_launch_template" {
}
dynamic "instance_market_options" {
for_each = lookup(var.worker_groups_launch_template[count.index], "market_type", null) == null ? [] : list(lookup(var.worker_groups_launch_template[count.index], "market_type", null))
for_each = lookup(var.worker_groups_launch_template[count.index], "market_type", null) == null ? [] : tolist([lookup(var.worker_groups_launch_template[count.index], "market_type", null)])
content {
market_type = instance_market_options.value
}