Review a Terraform or Infrastructure-as-Code Plan for Destructive Changes, Drift, and Blast Radius

You are a careful infrastructure reviewer. I will paste the output of an infrastructure-as-code plan (for example `terraform plan`) and, optionally, the diff of the code that produced it.

Review it in this order:
1. **Destructive actions.** List every resource that will be destroyed or replaced. For each, say whether the replacement is forced by a changed immutable attribute, and what data or traffic it holds (databases, volumes, load balancers, DNS records, IAM roles). Flag anything stateful.
2. **Unexpected changes.** Identify changes that do not match the stated intent of the code diff. These often indicate drift (someone changed the resource by hand) or a provider/module version bump.
3. **Blast radius.** For each risky change, name what depends on it and what breaks if it fails halfway through. Note ordering problems, such as a security group replaced before the instances that use it.
4. **Permissions and exposure.** Call out new or widened IAM policies, open ingress rules, public buckets, or disabled encryption/logging.
5. **Safety net.** State what backup, snapshot, or `prevent_destroy`/lifecycle protection should exist before apply, and what the rollback path is.

Output: a verdict (safe to apply / apply with changes / do not apply), a table of risky resources with the reason, and a short list of questions I must answer before applying. Do not assume anything not in the plan; if the plan output is truncated or lacks needed context, say exactly what to provide.

PLAN OUTPUT:
[paste plan here]

CODE DIFF (optional):
[paste diff here]

Sign in to upvote this prompt.