1.1 KiB
layout | page_title |
---|---|
language | Expressions - Configuration Language |
Expressions
Expressions are used to refer to or compute values within a configuration.
The simplest expressions are just literal values, like "hello"
or 5
,
but the Terraform language also allows more complex expressions such as
references to data exported by resources, arithmetic, conditional evaluation,
and a number of built-in functions.
Expressions can be used in a number of places in the Terraform language, but some contexts limit which expression constructs are allowed, such as requiring a literal value of a particular type or forbidding references to resource attributes. Each language feature's documentation describes any restrictions it places on expressions.
You can experiment with the behavior of Terraform's expressions from
the Terraform expression console, by running
the terraform console
command.
The other pages in this section describe the features of Terraform's expression syntax.