github.com/jaredpalmer/terraform@v1.1.0-alpha20210908.0.20210911170307-88705c943a03/website/docs/language/functions/min.html.md (about) 1 --- 2 layout: "language" 3 page_title: "min - Functions - Configuration Language" 4 sidebar_current: "docs-funcs-numeric-min" 5 description: |- 6 The min function takes one or more numbers and returns the smallest number. 7 --- 8 9 # `min` Function 10 11 `min` takes one or more numbers and returns the smallest number from the set. 12 13 ## Examples 14 15 ``` 16 > min(12, 54, 3) 17 3 18 ``` 19 20 If the numbers are in a list or set value, use `...` to expand the collection 21 to individual arguments: 22 23 ``` 24 > min([12, 54, 3]...) 25 3 26 ``` 27 28 ## Related Functions 29 30 * [`max`](./max.html), which returns the _greatest_ number from a set.