by shigemk2


Terraform zipmap

見て覚える感じ 二つのlistを合わせて一つのmapを作る

> zipmap(["a", "b"], [1, 2])
  "a" = 1
  "b" = 2

Each pair of elements with the same index from the two lists will be used as the key and value of an element in the resulting map. If the same value appears multiple times in keyslist then the value with the highest index is used in the resulting map.

same indexって書いてあるから、二つのlistの要素数が違ってたらダメなんじゃないか?