Part 1
Written summary
- Chapter 1: The $47,000 Mistake...--–- The first time I saw a six-figure AWS bill for a workload that should have cost three hundred dollars, I was sitting in a cramped conference room with a CTO who had stopped blinking.
- Forty-seven thousand.
- Ten instances ran for three full weeks before anyone looked at the bill.
Read along — the full text
Chapter 1: The $47,000 Mistake...--–- The first time I saw a six-figure AWS bill for a workload that should have cost three hundred dollars, I was sitting in a cramped conference room with a CTO who had stopped blinking. His company had passed the AWS Solutions Architect Associate exam six months earlier—one of their engineers, bright, certified, and well-intentioned. That engineer had built what everyone thought was a perfectly reasonable architecture. A single Auto Scaling group, a load balancer, some EC2 instances running a containerized web app. Nothing fancy. Nothing that screamed danger. And yet, when the bill arrived, it showed forty-seven thousand dollars for a single month.
Forty-seven thousand. For an application that served maybe two thousand daily active users.The CTO slid the PDF across the table. "Tell me where we went wrong," he said. "And tell me how to make sure it never happens again."I opened the bill and started tracing the charges. The pattern was immediately recognizable—not because it was unusual, but because I had seen its cousins a dozen times before. The engineer had configured the Auto Scaling group with a minimum of ten instances instead of one. Not out of malice, not out of incompetence, but because the default setting in the console had changed after a UI update, and he had clicked through without noticing.
Ten instances ran for three full weeks before anyone looked at the bill. Each instance was an m5.large—reasonable for the workload—but ten of them running 24/7 added up fast. Then there were the unattached EBS volumes, left over from terminated instances, each costing a few dollars a month. There were dozens of them. Then there was the NAT Gateway charging per gigabyte of data processed, even though most of the traffic never needed to leave the private subnet. Then there was the S3 bucket with versioning enabled but no lifecycle policy, storing every single version of every single file going back two years.The engineer had passed his certification.