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.
More on Lifecycle, Dependencies, Provisioners and Drift
What are meta-arguments?BeginnerHow does `create_before_destroy` work and what can go wrong?AdvancedWhat does `prevent_destroy` guarantee and what does it not?AdvancedWhen do you use `ignore_changes`?IntermediateWhat does `replace_triggered_by` do?AdvancedHow do `precondition` and `postcondition` differ?Intermediate