» list Function

list takes an arbitrary number of arguments and returns a list containing those values in the same order.

» Examples

> list("a", "b", "c")
[
  "a",
  "b",
  "c",
]

Do not use the above form in Terraform v0.12 or above. Instead, use the built-in list construction syntax, which achieves the same result:

> ["a", "b", "c"]
[
  "a",
  "b",
  "c",
]
  • tolist converts a set value to a list.