CloudAdvancedPar time: 12:00

The AI That Ate Production

An AI agent ran terraform destroy on production. Everything is gone.

The Scenario

Your AI coding assistant extracted an old Terraform state file and ran terraform destroy, wiping your entire production infrastructure. The database is gone, the VPC is destroyed, ECS tasks are terminated, and even the automated RDS snapshots were deleted. You're working against the clock to recover what you can before the data retention windows close.

What You'll Learn

1

How to investigate infrastructure destruction via CloudTrail

2

Recovery strategies: RDS snapshots, S3 versioning, cross-region backups

3

Understanding Terraform state and how destroy operations cascade

4

Setting up guardrails for AI coding agents in production environments

Tools You'll Use

AWS CloudTrailTerraform stateRDS snapshotsAWS Support

Real-World Context

Based on the real DataTalksClub incident (March 2026) where Claude Code ran terraform destroy on production, wiping 2.5 years of data. The post-mortem went viral with 685K+ views on X.

Ready to debug this?

You have access to this scenario. Jump in.

Play The AI That Ate Production