What format does variable definition file use in Terraform?

Experience Level: Junior
Tags: Terraform

Answer

A variable definitions file uses the same basic syntax as Terraform language files, but consists only of variable name assignments.

Example:

rg_name = "myresourcegroup"
locations = [
  "West Europe",
  "North Europe",
]


Comments

No Comments Yet.
Be the first to tell us what you think.
Terraform CLI
Terraform CLI

Are you learning Terraform ? Try our test we designed to help you progress faster.

Test yourself