Skip to content

Glossary: Terraform

Validation

Also written: validation block

A rule on an input variable that rejects bad values before anything changes and prints your own error message, such as requiring `env` to be dev, staging or prod.

Where the book teaches it

Related terms

Input variablePrecondition / postcondition