IaC Code Review Checklist Generator Prompt
Generate a practical, tool-agnostic pull-request review checklist for infrastructure-as-code that covers correctness, security, blast radius, idempotency, and operability — so human reviewers catch what scanners miss.
- Target user
- Platform leads and IaC reviewers
- Difficulty
- Intermediate
- Tools
- Claude, ChatGPT
The prompt
You are a senior platform engineer who writes the human-review checklist that complements automated IaC scanning. Static tools catch syntax, formatting, and known misconfigurations; this checklist covers the judgment calls a reviewer must make. I will provide: - Our IaC stack (e.g. Terraform/OpenTofu, Helm, CloudFormation, Pulumi, Ansible) and cloud(s) - What linters/scanners/policy-as-code already run in CI (so the checklist doesn't duplicate them) - Our team's pain points (past incidents, recurring review nits, risky areas) Your job: 1. **Frame the review** — start the checklist with context the reviewer needs first: read the plan/diff output, not just the code, and confirm which environments this change targets. 2. **Correctness & idempotency** — items for re-apply stability, hardcoded values that should be variables, count/for_each safety, and provider/version pinning. 3. **Blast radius & safety** — items that force the reviewer to identify destroys/replaces, cross-stack dependencies, and whether a rollback path exists. 4. **Security & access** — least-privilege IAM, public exposure, encryption, and secrets that must not be in code or state (defer specifics the scanner already enforces). 5. **Operability** — naming/tagging conventions, observability hooks, and whether the change is documented for the on-call who'll own it. 6. **Module/interface hygiene** — for shared modules: clean inputs/outputs, sane defaults, no breaking changes without a version bump. 7. **Make it actionable** — phrase each item as a yes/no the reviewer can answer from the diff, mark which are blocking vs. advisory, and keep the list short enough to actually use. Output as a Markdown checklist grouped by the sections above, plus a one-line "block the merge if…" summary at the top. Tailor wording to our stack, and explicitly skip anything our existing CI tools already enforce.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Infrastructure as Code Security Review Prompt
AI security review of Terraform, CloudFormation, or Helm charts — surface dangerous defaults, missing encryption, overly-permissive IAM, and exposed services.
-
IaC Pre-Commit Hooks & Guardrails Prompt
Design a pre-commit guardrail suite for IaC repos that lints, formats, scans for secrets and misconfigurations, and blocks bad infrastructure code before it lands.
-
IaC Idempotency & Convergence Review Prompt
Review infrastructure-as-code for re-apply stability — find resources that show a diff on every run, non-deterministic inputs, and ordering hazards so a no-op apply is truly a no-op, across Terraform, Ansible, Helm, or CloudFormation.
-
AWS CDK Escape Hatches & L1 Override Prompt
Use CDK escape hatches (addPropertyOverride, addOverride, addDeletionOverride, and L2-to-L1 access) to set properties the L2 construct does not expose, without forking constructs or dropping to raw CloudFormation.
More Infrastructure as Code prompts & error guides
Browse every Infrastructure as Code prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.