Concat two lists in terraform
Solution 1:
You can do this as follows:
FinalList = [for v1, v2 in zipmap(local.samplelist1, local.samplelist2): "${local.str1},${v1},${local.str2},${local.str3},${v2},${local.str4}"]
You can do this as follows:
FinalList = [for v1, v2 in zipmap(local.samplelist1, local.samplelist2): "${local.str1},${v1},${local.str2},${local.str3},${v2},${local.str4}"]