From 3ecdc20ce6c14d3e5c8d974b860f705ee67cfd9f Mon Sep 17 00:00:00 2001 From: Neven Miculinic Date: Tue, 4 May 2021 21:58:44 +0200 Subject: [PATCH] fix: Replace `list` with `tolist` function for working with terraform v0.15.0 (#1317) --- workers_launch_template.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }