Interview Prep/Terraform/Variables, Locals, Outputs and Types

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.

All Terraform questions Roadmap: Terraform

More on Variables, Locals, Outputs and Types