Difference between revisions of "Terraform lifecycle meta-argument"

From wikieduonline
Jump to navigation Jump to search
Line 7: Line 7:
  
 
== Examples ==
 
== Examples ==
<pre>
+
resource "azurerm_resource_group" "example" {
+
resource "azurerm_resource_group" "example" {
  # ...
+
  # ...
 
+
  [[lifecycle]] {
+
  [[lifecycle]] {
    create_before_destroy = true
+
    create_before_destroy = true
  }
+
  }
}
+
}
 
 
</pre>
 
  
  

Revision as of 14:29, 17 October 2022

Advertising: