github.com/hugorut/terraform@v1.1.3/website/docs/language/functions/values.mdx (about) 1 --- 2 page_title: values - Functions - Configuration Language 3 description: The values function returns a list of the element values in a given map. 4 --- 5 6 # `values` Function 7 8 `values` takes a map and returns a list containing the values of the elements 9 in that map. 10 11 The values are returned in lexicographical order by their corresponding _keys_, 12 so the values will be returned in the same order as their keys would be 13 returned from [`keys`](/language/functions/keys). 14 15 ## Examples 16 17 ``` 18 > values({a=3, c=2, d=1}) 19 [ 20 3, 21 2, 22 1, 23 ] 24 ``` 25 26 ## Related Functions 27 28 * [`keys`](/language/functions/keys) returns a list of the _keys_ from a map.