Automation · Infrastructure as Code
Resources
Cheat sheet · https://pcornel.dk/topic.php?topic=5429
Answer
IaC resources represent infrastructure objects whose lifecycle is managed through provider-defined create, read, update and delete behavior.
Remember
- Resource declared ≠ object exists and resource applied ≠ service ready.
- 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 | grep <type>— resources of typeterraform state show <address>— attributes- Resource naming and tags — standards
Verify in this order
resource block → provider API → real object
Where it usually breaks
Resource declared ≠ object exists and resource applied ≠ service ready. The proof boundary ends where provider/state evidence stops and target-domain acceptance begins.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5429