...

/

Type constraints - List

Type constraints - List

Learn how to use the Terraform type constraints List.

List

A list is a type of a list. You can have a list of strings like ["foo", "bar"] or a list of numbers [2, 4, 7]. The type means that every element in the list will be of that type.

Project example

Consider the following example:

In the above code, we define a list in variable "a" to be a list ...