Terraform Plan Reviewer
On Terraform plan webhook: parse changes, flag destructive actions (deletions), LLM assesses impact — require approval for risky plans before apply.
Overview
**What it does**: Webhook (terraform plan JSON) → parse resource_changes → count creates/updates/destroys → IF destroys > 0 → LLM analyzes impact (data loss risk, downtime, cost) and flags approval requirement → Slack to #infrastructure with risk summary, blocks auto-apply. **Setup (5 steps)**: 1. Integrate Terraform: add n8n webhook to your Terraform pipeline (GitHub Actions, GitLab CI, or Jenkins) 2. Export plan as JSON: `terraform plan -json | post-to-webhook` 3. Configure approval gate: map critical resources (databases, load balancers) that require manual review 4. Set Slack channel: #infrastructure approval channel 5. Test: run `terraform plan` in a test branch; verify approval request appears **Apps/nodes**: Terraform (plan JSON), Slack, OpenAI (risk analysis). **Credentials required**: Slack workspace, OpenAI account. Terraform is local; webhook is pull-triggered. **Difficulty**: High | **Setup time**: 12 minutes. **Business outcome**: Prevent accidental infrastructure deletions (human gate) → incidents from Terraform ↓ 90%, compliance audit trail improved.
What's included
Quickstart
- 01
Download the JSON
With an active Library Pass, download the workflow file right from this page or your dashboard.
- 02
Import into n8n
Choose Import from File and select the downloaded JSON. The full agent graph appears, ready to configure.
- 03
Plug in credentials
Each integration node prompts for credentials on first run. The setup guide lists every credential the agent expects.
- 04
Activate and test
Run once with sample input, confirm the expected output, then flip the activate toggle.
Frequently Asked Questions
How do I import this workflow into n8n?
What credentials do I need to provide?
Are the credentials included in the JSON file?
Can I edit or customize the workflow after importing?
What n8n version is required?
What if something breaks after I import it?
Can I use this workflow for my customers or business?
Will the workflow receive updates?
Do I need n8n Pro or a paid plan?
Can I ask for a custom workflow?
Reviews (0)
No reviews yet. Be the first.
Sign in to leave a review.
Included with any pass
This agent — and every other in the library — comes with a Library Pass. One pass, the whole catalog.
Get a Library Pass- Every agent in the library
- All new releases while active
- Unlimited downloads
- Commercial-use license
- Priority email support
- 30-day money-back guarantee
More in Infrastructure
Auto-Scaling Decision Advisor
Every 15 minutes: check CPU/memory trends; if approaching limits, LLM recommends scale-up or scale-down actions with cost impact analysis.
Container Registry Tag Cleanup
Weekly scan: identify container images untouched >30 days, LLM recommends safe deletions prioritizing by size — keep registry lean and reduce storage costs.
Infrastructure Drift Detector
Hourly: compare Terraform desired state vs. live infrastructure; flag divergence (missing resources, config mismatches) to #infrastructure.