github.com/hugorut/terraform@v1.1.3/website/docs/language/functions/list.mdx (about) 1 --- 2 page_title: list - Functions - Configuration Language 3 description: The list function constructs a list from some given elements. 4 --- 5 6 # `list` Function 7 8 The `list` function is no longer available. Prior to Terraform v0.12 it was 9 the only available syntax for writing a literal list inside an expression, 10 but Terraform v0.12 introduced a new first-class syntax. 11 12 To update an expression like `list(a, b, c)`, write the following instead: 13 14 ``` 15 tolist([a, b, c]) 16 ``` 17 18 The `[ ... ]` brackets construct a tuple value, and then the `tolist` function 19 then converts it to a list. For more information on the value types in the 20 Terraform language, see [Type Constraints](/language/expressions/types). 21 22 ## Related Functions 23 24 * [`concat`](/language/functions/concat) produces a new list by concatenating together the 25 elements from other lists. 26 * [`tolist`](/language/functions/tolist) converts a set or tuple value to a list.