Difference between revisions of "Terraform lifecycle meta-argument"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
Line 29: | Line 29: | ||
== Related == | == Related == | ||
* <code>[[meta-argument]]</code> | * <code>[[meta-argument]]</code> | ||
+ | * [[Terraform EKS module eks_managed_node_groups: desired_size]] | ||
== See also == | == See also == |
Revision as of 15:28, 20 March 2023
create_before_destroy | prevent_destroy | ignore_changes | replace_triggered_by
Contents
Options
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
resource "azurerm_resource_group" "example" { # ... lifecycle { create_before_destroy = true } }
lifecycle { ignore_changes = [ latest_restorable_time ] }
Related
See also
Advertising: