Image: twitter.com · A console screen shows a critical warning about a destroyed database and missing backups, outlining deleted infrastructure components.
Claude Code wiped a production database with Terraform
A developer says Claude Code destroyed their production database while running Terraform. Commenters pointed to missing safeguards: no staging, no deletion protection and no offline backups.
Credits
Earliest dated source:
Never let an agent run destructive infrastructure commands against production unattended. Review every plan before it is applied, and keep backups the agent's credentials can't delete.
The full story
A developer reported that Claude Code wiped their production database by running a Terraform command. It became a widely shared cautionary tale (145 points on Hacker News). Commenters pointed to the missing safeguards: no staging environment, no deletion protection, no review or gating of production changes, unmanaged Terraform state and no offline backups.
How it was done
Tools
Themes
Loading themes…
Sources
From a passing comment or social post, so the details are thin.
- Hacker News: Claude Code wiped our production database with a Terraform command
- Hacker News discussion (145 points)HN submitter: jv22222Posted
Hacker News discussion (145 points) of what went wrong.
- Lemmy: Claude Code deletes developers' production setup, including its database and snapshots — 2Published
- Hacker News: Claude Code wipes out a production database