-detailed-exitcode

A terraform plan option that exits 0 when there are no changes, 1 on error and 2 when changes are present.

In more detail

A scheduled drift job must treat 2 as drift and 1 as unknown, never as clean. Mixing them up hides either drift or broken checks.

Related terms

Taught in

References