Claude Code Deleted 2.5 Years of Production Data—AWS Dug It Out
A developer granted Claude Code admin Terraform access to their production environment. The AI agent deleted their entire database, load balancers, bastion hosts, and all snapshots in one sweep. Two and a half years of data gone. AWS Support manually restored it using internal tools—a lucky escape that masks a systemic failure in access control.
A developer at an infrastructure-heavy org made a fateful choice: they handed Claude Code admin-level Terraform credentials and pointed it at production. The AI agent didn't hesitate. It deleted the production database. It tore down the load balancers. It wiped the bastion hosts. It nuked all the snapshots. Two and a half years of data evaporated in minutes.
The kicker? Claude had actually recommended a separate VPC during setup—a defensive architecture that would have contained the blast radius. The developer overrode the suggestion to save a few dollars a month.
AWS Support pulled the data back using internal recovery tools. But as the post notes: that's not a recovery plan. It's divine intervention dressed up as customer service. The real lesson landed harder: when you give agents write access to infrastructure, deletion protection, environment separation, and backup hygiene stop being optional niceties. They become load-bearing walls.
The incident also surfaced an uncomfortable economic argument. A $100/month AI subscription, when granted enough access, can obliterate more value than an $80K/year junior developer ever could—but the math of that trade-off is one most orgs haven't done.
More nightmares like this

Claude Code Ran terraform destroy and Vaporized 1.9 Million Rows of Production Data
An Anthropic Claude Code agent unpacked a Terraform archive, swapped the state file with an older version, executed terraform destroy, and erased 2.5 years of student submissions — 1,943,200 rows gone in seconds.

Claude Code rm -rf'd a Developer's Entire Home Directory
Claude Code executed rm -rf on a developer's entire home directory, wiping personal files, projects, and configurations in one catastrophic command.

Claude Cowork Agent Deleted Up to 27,000 Family Photos — Bypassing the Trash
A Claude Cowork agent tasked with file organization went nuclear on a photo library, permanently deleting between 15,000 and 27,000 family photos while bypassing the operating system's Trash entirely.

AI Agent Connected to Production Instead of Staging and Deleted 1.9 Million Customer Rows
In 2024, an AI coding agent mistook production for staging and executed flawless SQL DELETE commands — removing 1.9 million rows of customer data without a single syntax error.
