DevOps
Review an Infrastructure-as-Code Plan
An explainable Terraform plan whose destructive, security, cost, and availability effects are reviewed before any apply.
The process
Work it in this order.
- Confirm the target workspace, account, region, state backend, provider versions, and intended change ticket before initialization.
- Run formatting and validation, initialize with locked providers, and check the configuration with the organization's policy and security tools.
- Create a saved plan using the correct variable sources and capture the exact code revision and tool version that produced it.
- Review every create, update, replace, and destroy action, paying special attention to stateful resources, identity, networking, encryption, and downtime.
- Assess dependency ordering, blast radius, cost, maintenance windows, backups, rollback path, and whether drift or moved resources explain surprising actions.
- Obtain required approval and apply only the reviewed saved plan; afterward verify real resource state and service health against the intended outcome.
Bring this
Inputs the cat will ask for.
- Terraform configuration and workspace
- Intended infrastructure change
- Variable and provider policy
- Approval and maintenance-window rules
Router + one playbook
Route first. Choose one.
Cat Paw loads one playbook per task rather than merging several. Start with this router; the remaining paths are workflow-specific candidates it can inspect.
- Router:
engineering-pack skills/engineering/mattpocock/code-review/SKILL.mdskills/engineering/addyosmani/security-and-hardening/SKILL.md
Guardrails
The boundaries travel with the prompt.
- Never apply an unreviewed or newly regenerated plan under an old approval.
- Stop on unexpected replacement or destruction, especially for stateful resources.
- Keep secrets out of plan artifacts and restrict their retention and access.
Done means
A checkable finish.
The reviewed saved plan matches the approved intent, policy checks pass, high-risk actions have explicit approval and rollback, and post-apply state and service health are verified—or no apply occurs.
Sources
Where this process came from.
- developer.hashicorp.com/terraform/tutorials/cli/plan
- developer.hashicorp.com/terraform/cli/commands/plan
Sources establish the workflow pattern. Reddit and community posts, where present, are treated as practitioner anecdotes rather than universal facts.