Skip to content
Novus Examples
tfvars

What is a .tfvars file?

text/x-terraform

A .tfvars file supplies values for the variables a Terraform configuration declares. It uses the same HCL grammar but permits only top-level `name = value` assignments — strings, numbers, booleans, lists, and objects — with no blocks or expressions. Files named terraform.tfvars or *.auto.tfvars are loaded automatically; others must be passed explicitly.

How to use a .tfvars file

Use an example .tfvars file to test variable-file parsers and configuration tooling, verifying type coercion, complex object and list values, and that assignment precedence between auto-loaded, explicit, and environment-supplied values is applied correctly.

Convert a .tfvars file to another format

← All file formats