Lifecycle
In this lesson, we'll discuss the advanced Terraform resource "lifecycle" in detail.
We'll cover the following...
Lifecycle
Every resource has a special block that can be set on it called the lifecycle
block. This gives you, the creator, a bit more control as to the lifecycle
of the resource. Let’s run through the options that
you can configure using the lifecycle
block.
create_before_destroy
is a bool that you can set on a resource. For example:
Press + to interact
lifecycle {create_before_destroy = true}
Setting this property means that, as long as the ...
Access this course and 1400+ top-rated courses and projects.