Lifecycle helps control the flow of your Terraform operations by creating custom rules for resource creation and destruction
Instead of Terraform managing operations in the built-in dependency graph, lifecycle arguments help minimize potential downtime based on your resource needs as well as protect specific resources from changing or impacting infrastructure.