Type Constraints - Tuple

We will learn how to use Tuple type constraints in your Terraform project.

We'll cover the following


A tuple is a strongly typed collection of one or more values. So, for example, we could define a tuple of three values: string, number, number, or two values: string, string. Once a tuple is defined, it always has to contain the number of values defined in that tuple. The values also have to be of the correct type and in the correct order based upon the type.

Get hands-on with 1000+ tech skills courses.