Introduction to Resource Dependencies and Lifecycle Rules
How Terraform orders operations through implicit and explicit dependencies, and how lifecycle rules such as create_before_destroy change the way resources are replaced and protected.
- 2 lessons
- Module quiz
Terraform orders work through dependencies, and lifecycle rules change how it replaces and protects resources. Both are part of objective 4f, new in the 004 exam.
What the exam expects
Questions test implicit dependencies, when depends_on is needed and its costs, the default replacement order, create_before_destroy and its constraints, and the other lifecycle settings.
How this module is organized
Implicit and Explicit Dependencies covers references and depends_on. The lifecycle Meta-Argument covers create_before_destroy, prevent_destroy, ignore_changes and replace_triggered_by.