Terraform Lifecycle block


Lifecycle is a nested block that can appear within a resource block. The lifecycle block and its contents are meta-arguments, available for all resource blocks regardless of type.

The arguments available within a lifecycle block are create_before_destroy, prevent_destroy, ignore_changes, and replace_triggered_by.




Ressources:
https://developer.hashicorp.com/terraform/tutorials/state/resource-lifecycle

https://developer.hashicorp.com/terraform/language/meta-arguments/lifecycle

https://dev.to/pwd9000/terraform-understanding-the-lifecycle-block-4f6e
https://github.com/hashicorp/terraform-provider-azurerm/issues/4321

Commentaires

Posts les plus consultés de ce blog

Conception logicielle en 2024

DeFi - Définition

Feuilles de Styles en Cascade