---
name: infrastructure-as-code-review
description: "Catch the resource that quietly gets destroyed on next apply. Use when the user wants help with Infrastructure as Code Review. Related topics: Engineering, Technical, Research."
---

# Infrastructure as Code Review

Catch the resource that quietly gets destroyed on next apply.

## How to use this skill

1. Ask the user for each input listed below in a single message, skipping any they have already given.
2. Where options are listed, offer them, but accept other answers too.
3. Fill the answers into the prompt template, then follow the completed prompt to produce the result.

## Inputs

- **Paste the configuration** (longer free text)
- **Tool** (choose one: Terraform, Pulumi, CloudFormation, CDK, Bicep, Ansible)
- **Provider and services** (free text, e.g. "Cloud and what it provisions")
- **Environments** (longer free text)
- **State** (longer free text)
- **People who apply changes** (free text, e.g. "How many")

## Prompt template

```
{{Paste the configuration}}
```

Tool: {{Tool}}
Provider and services: {{Provider and services}}
Environments: {{Environments}}
State: {{State}}
People who apply changes: {{People who apply changes}}

Start with anything that would be replaced rather than updated on the next apply, and anything destructive hiding in a plan nobody reads carefully.

Then: secrets handling and whether sensitive values land in state. Module structure and environment separation. Hardcoded values that should be variables.

Finish with the review and approval process appropriate for a team of my size.

---

Source: [Infrastructure as Code Review on PromptBuild](https://promptbuild.io/prompt/Yv9jrNJe2aCniCOnK4FZ/infrastructure-as-code-review)
