Terraform Type Constraints (Collection & Structural)
Last updated
Last updated
Type constraints control the type of variable values
Primitive (Single type value)
number, string, bool
Complex (Multiple types in a single variable)
list, tuple, map, object
Collection types allow multiple values of one primitive types to be grouped together.
Constructors of these Collections include:
list(type)
map(type)
set(type)
Structural types allow multiple values of different primitive types to be grouped together
Constructors of these Collections include:
object(type)
tuple(type)
set(type)
Any is a placeholder for primitive type yet to be decided
Actual type will be determined at runtime