- How resource attributes work, and how values produced by one resource can be referenced by another.
- Resource dependencies: how Terraform infers them automatically, and when you must declare dependencies explicitly.
- Resource targeting: what it does and why it should be used sparingly.
- How to define and use output variables to expose important values from our Terraform configuration.

This lesson explains how Terraform passes data between resources, controls the order of operations, and surfaces useful values through outputs. These are essential for composing modules, integrating with other tools, and debugging your plans.
What you’ll learn (quick overview)
Links and references
Resource targeting (using
-target) can break dependency graphs and lead to drift. Only use targeting for troubleshooting or carefully planned changes.