Terraform lifecycle meta-argument
(Redirected from The lifecycle Meta-Argument)
Jump to navigation
Jump to search
Options[edit]
create_before_destroy
changes default behavior so that the new replacement object is created first, and the prior object is destroyed after the replacement is created.prevent_destroy
ignore_changes
replace_triggered_by
(May 2022, v1.2.0)
Examples[edit]
resource "azurerm_resource_group" "example" { # ... lifecycle { create_before_destroy = true } } lifecycle { ignore_changes = [ latest_restorable_time ] }
Related[edit]
See also[edit]
Advertising: