diff --git a/workers_launch_template.tf b/workers_launch_template.tf index 3b16ff1..1602437 100644 --- a/workers_launch_template.tf +++ b/workers_launch_template.tf @@ -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 }