Core concepts
Use this section to understand the behavior behind a working example. For code you can run locally, start with your first hybrid app.
| Question | Explanation | Put it into practice |
|---|---|---|
| What belongs in an app or stack? | Apps, stacks and resources | Multi-stack app |
| How does a resource choose its provider? | Providers | Generate bindings |
| How can I use an ID before the object exists? | Providers and runtime values | First hybrid app |
| Where are objects and ownership recorded? | Backends and state | Adopt an existing object |
| What does synthesis write? | Synthesis and output | First Terraform export |
| How do stacks share values? | Cross-stack references | Multi-stack app |
| What determines execution order? | Dependencies and phases | Hybrid workflow |
A useful reading order
Start with ownership: an app contains stacks, and stacks contain configured providers and resources. Then learn references: a resource output can remain unknown until a provider reads or creates it, and another resource can depend on that eventual value.
State records what the engine manages. It is separate from source code and from a synthesized configuration file. That distinction explains why adopting an existing object or moving between execution engines needs an explicit state mapping.
Once these concepts are familiar, use configuration for settings and precedence, the API map for Python interfaces, and workflow selection for command boundaries.