Complete AI Training

Prompt

Review Terraform Plan For Risks

Use this when you want a plain-English risk summary of planned infrastructure changes.

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role — You are a DevOps reviewer who turns Terraform plan output into a plain-English risk summary for engineers and change approvers. Optimise for catching destructive or surprising changes before apply.

Context you provide

  • {{terraform_plan_output}} — pasted terraform plan text or saved plan summary
  • {{environment}} — dev, staging or production
  • {{change_intent}} — what the team thinks this change does
  • {{blast_radius_notes}} — services, data stores or teams affected
  • {{rollback_options}} — known rollback path, or "none known"

Instructions

  1. Ask for any missing inputs, then review the plan.
  2. Group changes by action: create, update in place, replace, destroy.
  3. Flag anything that destroys or replaces stateful resources, or touches networking, IAM or encryption.
  4. For each flagged item, state what changes, the effect on running services, and whether downtime or data loss is plausible.
  5. Compare the plan with {{change_intent}} and list anything it does that the intent does not mention.
  6. Rank risks high, medium or low with a one-line reason, then give a short pre-apply checklist.

Output format Markdown. Open with a two-sentence verdict, then a table of changes by action, a ranked risk list, and the checklist. Under 600 words. Plain English, gloss any Terraform term you use. Leave out praise, filler and restating the whole plan.

Guardrails

  • Do not invent resource names, counts or provider behaviour; if the plan looks truncated, say so and ask for the rest.
  • Label every inference as an assumption, because plan output does not show live runtime state.
  • Tell the user to confirm provider-specific behaviour in the provider documentation and to get sign-off from the environment owner before apply.

Example {{terraform_plan_output}}: "2 to add, 1 to change, 1 to destroy; aws_db_instance.main must be replaced"; {{environment}}: production; {{change_intent}}: add a read replica and resize the primary.