A Terraform resource block is not an action.
It is a statement of intent.
Terraform first decodes the structure of the block, not the values inside it. From that structure, it assigns identity using the resource type and local name. This identity is how Terraform tracks one logical object over time.
Attributes do not cause change. They describe what should be true. Terraform compares declared truth with remembered truth and infers change from the difference.
Dependencies are not created by order or layout. They emerge from data relationships. When values are hardcoded, those relationships become invisible, creating fragile and unpredictable behavior.
A resource block is an identity declaration, a set of constraints, and a node in a dependency graph.
It is not a script.
Watch the full lesson below.

