Input variables

Input variables parameterize a Terraform configuration without changing the code. They are declared with a variable block (type, description, default value, validation) and set through a .tfvars file, the command line or an environment variable. A variable can be marked sensitive.

Example

variable "region" { type = string default = "eu-west-3" }

Related concepts

The whole glossary