Skip to content

Glossary: Terraform

Precondition / postcondition

Also written: precondition, postcondition, self

Checks in a `lifecycle` block that run before or after a resource changes; failing stops the run. Inside a postcondition, `self` means the resource itself.

Where the book teaches it

Related terms

lifecyclecheck blockValidation