github.com/muratcelep/terraform@v1.1.0-beta2-not-internal-4/website/docs/language/functions/max.html.md (about)

     1  ---
     2  layout: "language"
     3  page_title: "max - Functions - Configuration Language"
     4  sidebar_current: "docs-funcs-numeric-max"
     5  description: |-
     6    The max function takes one or more numbers and returns the greatest number.
     7  ---
     8  
     9  # `max` Function
    10  
    11  `max` takes one or more numbers and returns the greatest number from the set.
    12  
    13  ## Examples
    14  
    15  ```
    16  > max(12, 54, 3)
    17  54
    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  > max([12, 54, 3]...)
    25  54
    26  ```
    27  
    28  ## Related Functions
    29  
    30  * [`min`](./min.html), which returns the _smallest_ number from a set.