Interview Prep/Terraform/Lifecycle, Dependencies, Provisioners and Drift

What lifecycle options are available?

BeginnerConceptLifecycle, Dependencies, Provisioners and Drift
Answer

Inside lifecycle { }: create_before_destroy, prevent_destroy, ignore_changes, replace_triggered_by (1.2+), and precondition and postcondition blocks (1.2+). They change how Terraform plans replacements and which diffs it respects.

All Terraform questions Roadmap: Terraform in production

More on Lifecycle, Dependencies, Provisioners and Drift