SRE teams are merging AI-generated Terraform blind. Here's how to build the tool that catches it.
The AWS outage Reddit post hit 1,857 upvotes because it named something every platform engineer already knows but hasn't said out loud: nobody actually knows how to review an AI-generated infra change. The usual LGTM is a lie. You're not reviewing it. You're hoping.
That gap is the product. And you have maybe 12-18 months before GitHub ships something native and you're competing with a default-on feature.
Here's the thing that gets missed in the abstract discussion about AI risk: the dangerous AI changes are not obviously bad. A human who deletes a production RDS instance in a PR usually leaves a trail. A Copilot-generated Terraform change that quietly opens a security group ingress rule to 0.0.0.0/0 looks like any other config tweak. Your existing CI doesn't care. Snyk doesn't care. The PR passes review because nobody has a tool that says "this specific pattern of IAM mutation is something Claude gets wrong at 2x the rate a human would."
That's the aha moment you're selling. Not "AI risk" as a vague category. The moment an SRE sees your risk card flag that a `terraform apply` would delete their production database, and it was an AI hallucination, and they didn't catch it on read-through, that's when the team tier purchase happens without a sales call.
One week, no code. Here's the actual validation test:
Build a fake risk card. Screenshot a realistic PR comment with a blast radius score, three flagged risk callouts, and approve/block/canary buttons. Post a Loom of it in r/devops and the CNCF Slack #platform-engineering channel. Same day, DM 30 SRE leads on LinkedIn who've commented on AI coding tools or posted about outage postmortems. One question: "Would you install a GitHub Action that flags AI-generated Terraform changes with a risk score before merge?"
Your bar: 10 teams ask for the beta, or 5 SREs say unprompted they'd pay $300/month. If you don't hit that in three weeks, you've saved yourself six weeks of building the wrong thing.
The Reddit signal is already there. This is about confirming that "engineers are worried" translates into "engineers will install something on Tuesday."
Five to six weeks solo. The core is simpler than it sounds:
Week 1-2: A GitHub Action container (Python or Go) that triggers on PRs containing `.tf` or Pulumi files. It runs `terraform plan --json` and parses the output for deletion events, IAM mutations, and security group exposure. This part is fully deterministic. No ML needed. A resource getting deleted is a resource getting deleted.
Week 3: Risk scoring engine. Weight the parsed signals. Deletion of a stateful resource is 9/10. IAM policy mutation is 7/10. Security group 0.0.0.0/0 is 8/10. You're not building a model here, you're building a weighted rubric that any SRE would agree with if you showed them the spreadsheet.
Week 4: The PR comment card. This is the product. A structured comment that posts to the PR with the blast radius score, top risk callouts in plain English, and three buttons: approve, block, or auto-canary. The override webhook takes a signed token back to your server. This is the thing you're actually demoing.
Week 5: Next.js dashboard, Supabase for audit logs, Stripe. Keep it simple. The dashboard is just an audit log with team management.
Week 6: Private beta hardening. Real pipelines break in ways you don't expect. Budget this week for that.
Stack: Python GitHub Action container, Next.js, Supabase, Stripe, OpenAI API for generating the plain-English risk narrative (this is the only LLM call, and it's ~$0.02 per PR).
Here's where I'd be careful. The pitch is "we know Claude wrote this Terraform change" but the honest version is more like "we apply heuristics that correlate with AI-generated output and flag the PR for extra scrutiny." There's no deterministic way to detect AI provenance if a developer pastes output without metadata. Any SRE will probe this within ten minutes.
So don't lead with provenance. Lead with the Terraform dry-run blast radius simulation, which IS deterministic and doesn't require you to make any claims about who or what wrote the change. Provenance is a nice-to-have layer on top. The risk scoring works regardless.
This is actually a stronger product story: "we catch dangerous Terraform changes, whether they were written by Claude or by a junior dev at 2am."
If your tool approves a change and it causes a production outage, you're going to get an angry Slack message and possibly worse. Frame everything as advisory from the start. "Risk card" not "safety gate." "Recommended action" not "automated decision." Your ToS needs to say the tool is advisory-only before your first enterprise customer signs. This is not an overreaction. It's the kind of thing that kills DevSecOps companies quietly, years into their growth.
Free tier is up to 5 PRs/month, public repos, Terraform only. This is the install vector. Individual SREs install it without procurement approval, it catches something real, they champion it internally.
Starter is $149/month: unlimited PRs, private repos, audit log, one workspace. This is where you hit break-even. You need 20 Starter customers to cover $3k/month in costs (mostly your Supabase and API bills, founder salary excluded).
Team is $399/month: five workspaces, Pulumi support, Slack and PagerDuty alerts, custom risk thresholds. This is where actual revenue is. 25 Team customers is nearly $10k MRR.
Enterprise at $2k-5k/month is a later problem. Don't let an enterprise prospect derail your first six weeks.
GitHub Copilot Enterprise already has a code review feature in beta. Their roadmap almost certainly includes PR risk scoring. Your distribution channel is GitHub Marketplace and your most likely competitor is GitHub itself.
This is a real threat and you shouldn't pretend otherwise. The honest response: build the proprietary dataset of AI-generated IaC changes and their production outcomes before GitHub can. Every PR reviewed through your tool is a labeled data point. GitHub can ship a feature; they can't ship your dataset without being embedded in hundreds of pipelines first. That's the actual moat, and it only compounds if you move now.
You have a window. It's probably 12-18 months. Use it.
Week one: post a technical write-up in r/devops titled something like "How an AI hallucinated a Terraform change and took down our staging database." Fictionalize it but make it realistic. End with a link to the GitHub Action beta.
Week two: DM 50 platform engineers on LinkedIn who've commented on AI coding tools or SRE postmortems. Offer a 30-minute setup call. Not a demo. A setup call. You're helping them, not selling them.
Week three: CNCF Slack #platform-engineering. "We built a GitHub Action that scores AI-generated Terraform changes. Free beta, 10-minute setup." That's the whole message.
The 800K combined members of r/devops, r/sre, and r/terraform are not a passive audience. They actively discuss this exact problem. You just have to show up with something real.