github.com/hugorut/terraform@v1.1.3/website/docs/language/functions/max.mdx (about) 1 --- 2 page_title: max - Functions - Configuration Language 3 description: The max function takes one or more numbers and returns the greatest number. 4 --- 5 6 # `max` Function 7 8 `max` takes one or more numbers and returns the greatest number from the set. 9 10 ## Examples 11 12 ``` 13 > max(12, 54, 3) 14 54 15 ``` 16 17 If the numbers are in a list or set value, use `...` to expand the collection 18 to individual arguments: 19 20 ``` 21 > max([12, 54, 3]...) 22 54 23 ``` 24 25 ## Related Functions 26 27 * [`min`](/language/functions/min), which returns the _smallest_ number from a set.