More Complex Variables
In this lesson, we'll learn about some more complex Terraform variables.
We'll cover the following...
Project example
Let’s look at a more complex example using a map and selecting a value from it with variables:
instance_map = { dev = "t3.small" test = "t3.medium" prod = "t3.large" } environment_type = "dev"
Variables complex project example
-
In our variables file, we are setting
instance_map
to a map. -
A map is a collection of values ...