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