Difference between revisions of "Terraform lifecycle meta-argument"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(3 intermediate revisions by one other user not shown)
Line 19: Line 19:
 
   }
 
   }
 
  }
 
  }
 
+
 
   lifecycle {
 
   lifecycle {
 
     [[ignore_changes]] = [
 
     [[ignore_changes]] = [
Line 29: Line 29:
 
* <code>[[meta-argument]]</code>
 
* <code>[[meta-argument]]</code>
 
* [[Terraform EKS module eks_managed_node_groups: desired_size]]
 
* [[Terraform EKS module eks_managed_node_groups: desired_size]]
 +
* <code>[[terraform apply -target]]</code>
  
 
== See also ==
 
== See also ==
 +
* {{tf lifecycle}}
 
* {{Terraform meta-arguments}}
 
* {{Terraform meta-arguments}}
  
 
[[Category:Terraform]]
 
[[Category:Terraform]]

Latest revision as of 13:12, 16 August 2023

create_before_destroy | prevent_destroy | ignore_changes | replace_triggered_by


Options[edit]

Examples[edit]

resource "azurerm_resource_group" "example" {
  # ...

  lifecycle {
    create_before_destroy = true
  }
}

 lifecycle {
   ignore_changes = [
     latest_restorable_time
   ]
 }

Related[edit]

See also[edit]

Advertising: