Difference between revisions of "Terraform lifecycle meta-argument"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
* https://www.terraform.io/language/meta-arguments/lifecycle
 
* https://www.terraform.io/language/meta-arguments/lifecycle
  
 +
 +
* <code>create_before_destroy</code>
 +
* <code>prevent_destroy</code>
 +
* <code>ignore_changes</code>
 +
 +
== Examples ==
 
<pre>
 
<pre>
 
resource "azurerm_resource_group" "example" {
 
resource "azurerm_resource_group" "example" {
Line 10: Line 16:
 
}
 
}
  
 +
</pre>
 +
 +
<pre>
 +
  lifecycle {
 +
    ignore_changes = [
 +
      latest_restorable_time
 +
    ]
 +
  }
 
</pre>
 
</pre>
  
  
* <code>create_before_destroy</code>
 
* <code>prevent_destroy</code>
 
* <code>ignore_changes</code>
 
  
  

Revision as of 09:43, 7 June 2022

Advertising: