github.com/hugorut/terraform@v1.1.3/website/docs/language/functions/min.mdx (about) 1 --- 2 page_title: min - Functions - Configuration Language 3 description: The min function takes one or more numbers and returns the smallest number. 4 --- 5 6 # `min` Function 7 8 `min` takes one or more numbers and returns the smallest number from the set. 9 10 ## Examples 11 12 ``` 13 > min(12, 54, 3) 14 3 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 > min([12, 54, 3]...) 22 3 23 ``` 24 25 ## Related Functions 26 27 * [`max`](/language/functions/max), which returns the _greatest_ number from a set.