Exploring Terraform Variables

View some of the basic variables in Terraform corresponding to GKE.

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 the most commonly used ones. For now, we’ll focus on variables and leave the rest for later.

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

Get hands-on with 1200+ tech skills courses.