# Terraform Reviews Are A Great LLM Use Case

> Ask what the plan destroys, not whether the config is correct.

- **Author:** [Arjun Nair (@arjun_nair)](https://www.promptabide.com/arjun_nair)
- **Published:** 2026-07-21
- **Updated:** 2026-08-22
- **Tags:** `devops`, `terraform`, `infrastructure`, `code-review`
- **Views:** 5868
- **Likes:** 395

## Prompt

```
The question worth asking about a Terraform change is not "is this correct". It is "what does this destroy, and what does it expose".

My review prompt:

"Here is a terraform plan output. Answer only these:
1. Which resources are destroyed or replaced, and is any of them stateful?
2. Which change alters a security group, IAM policy, or public accessibility, and in which direction?
3. Which change causes downtime, and how long?
4. What is missing that this change implies — an alarm, a backup, a DNS record?

Do not comment on style."

Question 4 is the one that has caught real problems for me: a new RDS instance with no backup retention, a new ALB with no alarm on 5xx. The plan is correct, the change is incomplete, and only the fourth question finds it.
```

## Output

*Produced by ChatGPT · gpt-4-turbo.*

```
1. DESTROY: aws_db_instance.analytics (STATEFUL — replacement forced by engine_version change; verify a final snapshot is taken).
2. aws_security_group_rule.api_ingress widens 0.0.0.0/0 on 5432. Direction: more open.
3. RDS replacement: ~12 min unavailability.
4. Missing: no aws_db_instance backup_retention_period set on the replacement; the old one had 7.
```

---

Canonical HTML: https://www.promptabide.com/bides/terraform-reviews-llm-arjun-nair-2
Agent guide: https://www.promptabide.com/llms.txt · https://www.promptabide.com/agent-instructions.md
Sitemap: https://www.promptabide.com/sitemap.xml
