What are `object` and `tuple` types?
IntermediateConceptVariables, Locals, Outputs and Types
Answer
object({ name = string, port = number }) is a fixed set of named attributes with individual types. tuple([string, number]) is a fixed-length list with a type per position. Use objects for structured input; they validate shape at plan time, unlike any or loose maps.
More on Variables, Locals, Outputs and Types
How do you declare an input variable?BeginnerIn what order does Terraform load variable values?BeginnerHow do you define an output and what is it for?BeginnerWhat is the difference between locals and variables?BeginnerWhat are the primitive types in Terraform?BeginnerHow do list, set and map differ?Intermediate