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.

Get hands-on with 1400+ tech skills courses.