Local values

Local values (locals) are named expressions, computed within a module, that avoid repeating a value or a formula. Unlike input variables, they are not passed in from outside; you reference them with local.name.

Example

locals { nom = "${var.projet}-${var.env}" }

Related concepts

The whole glossary