Articles

Affichage des articles du juin, 2026

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