State
Terraform state stores the mapping between configuration and real infrastructure.
Why It Exists
- It lets Terraform know what it already manages.
- It supports planning and drift detection.
- It makes imports, moves, and refactors possible.
Practical Notes
- Protect state files.
- Use remote state for team workflows.
- Avoid editing state by hand unless you have no other option.