February 2017
Intermediate to advanced
440 pages
8h 45m
English
We've seen how to declare and use default values in our Terraform code, such as the Ubuntu AMI for our region or our VM size. An interesting feature in Terraform is the ability to declare and use maps of values, so, depending on a key, the variable can have a different value. We'll see how it applies to the correct AMI of the corresponding AWS.
To step through this recipe, you will need the following:
Here's how we simply declared the AMI we wanted for the eu-west-1 region in the variables.tf ...
Read now
Unlock full access