Type constraints - Object
We will learn how to use Object type constraints in your Terraform project.
We'll cover the following...
We'll cover the following...
Object
An object is a structure that you can define from the other types listed above. They allow you to define quite complex objects and constrain them to types. The easiest way to explain this is to dive straight into an example.
Project example
Consider the following project example:
In the project above, we first define a variable called person. This variable has two fields:
-
a
namewhich is of typestringand -
an
age...