Exploring Terraform Variables

View some of the basic variables defined in AKS using Terraform.

Viewing variables in Terraform

Generally speaking, entries in Terraform definitions are split into four groups. We have:

  • Provider
  • Resource
  • Output
  • Variable

That’s not to say that there aren’t other types (there are), but those four are the most important and most commonly used ones. For now, we’ll focus on variables and leave the rest for later.

Note: All the configuration files we’ll use are in the file subdirectory. We’ll pull them out one by one and explore what they’re used for.

Let’s take a quick look at the file that defines the variables.

Get hands-on with 1200+ tech skills courses.