Skip to content

Commit 4f006ee

Browse files
fix: Update map function to work in Terraform 0.15 (#44)
1 parent d748db0 commit 4f006ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ locals {
99

1010
# List of maps with key and route values
1111
vpc_attachments_with_routes = chunklist(flatten([
12-
for k, v in var.vpc_attachments : setproduct([map("key", k)], v["tgw_routes"]) if length(lookup(v, "tgw_routes", {})) > 0
12+
for k, v in var.vpc_attachments : setproduct([{ key = k }], v["tgw_routes"]) if length(lookup(v, "tgw_routes", {})) > 0
1313
]), 2)
1414
}
1515

0 commit comments

Comments
 (0)