State
Cheat sheet · https://pcornel.dk/topic.php?topic=5425
Answer
IaC state records management bindings and metadata used to correlate configuration objects with remote infrastructure and prior observations.
Remember
- State is operational metadata, not the live infrastructure itself, and it can contain sensitive values.
- State or engine metadata ≠ authoritative live-service health; always confirm with provider read-back and target acceptance checks.
- A green execution step ≠ complete convergence when later state persistence, external dependencies or workload readiness remain unverified.
- Provider/API success ≠ business outcome; keep engine evidence and target-domain evidence separate.
First checks
terraform state list— resourcesterraform show -json | jq '.values.root_module.resources | length'— count- State backend encryption and access — protection
Verify in this order
code + state → real resources
Where it usually breaks
State is operational metadata, not the live infrastructure itself, and it can contain sensitive values. The proof boundary ends where provider/state evidence stops and target-domain acceptance begins.
Configuration/input → graph/state refresh → plan → provider API request → provider terminal result → resource read-back → effective service state → workload.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5425