Skip to content

Commit 3ecdc20

Browse files
authored
fix: Replace list with tolist function for working with terraform v0.15.0 (#1317)
1 parent c12c186 commit 3ecdc20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

workers_launch_template.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ resource "aws_launch_template" "workers_launch_template" {
385385
}
386386

387387
dynamic "instance_market_options" {
388-
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))
388+
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)])
389389
content {
390390
market_type = instance_market_options.value
391391
}

0 commit comments

Comments
 (0)