Notes by Hamza
Posted on
Technology

How AWS Grew From a Side Project to a Trillion-Dollar Business

Author
How AWS Grew From a Side Project to a Trillion-Dollar Business

A bookstore bleeding $1.4 billion a year, a stock price that had cratered 93%, and a CEO the media treated like a punchline. That was Amazon in 2001. Nobody — not Wall Street, not Walmart, not the press — expected what came next. And honestly, neither did Amazon. Because the thing that saved the company, the thing that now generates more profit than Coca-Cola, Pepsi, and Starbucks combined, started as an internal engineering fix. How AWS grew from a frustrated email into a business worth over a trillion dollars is one of the strangest origin stories in tech.

It's also one of the most instructive.

The Desperation Behind the Discovery

To appreciate what happened, you need to feel how close Amazon came to disappearing entirely. The dotcom crash of 2000 didn't just rattle markets — it obliterated hundreds of companies overnight. Pets.com, Webvan, Excite@Home — names that had raised hundreds of millions evaporated in months. NASDAQ historical data showing the 77% decline from March 2000 peak.

Amazon looked like the next casualty. By 2001, the company had burned through nearly $3 billion. Its share price had fallen from $107 to $7. They'd laid off 1,300 employees. And across the retail landscape stood Walmart, pulling in $168 billion in revenue and $5.38 billion in profit while Amazon couldn't stop the bleeding.

The analysts weren't wrong to be skeptical. Six years in, Amazon had never turned a profit. It sold books online — something Walmart could replicate with a fraction of the effort. Every financial model pointed toward the same outcome: bankruptcy.

But financial models don't account for weird emails sent by obsessive founders.

The Email That Accidentally Built AWS

Somewhere around 2002, Jeff Bezos sent an internal mandate that's now legendary in Silicon Valley — the Bezos API mandate. At the time, it sounded like the ramblings of a micromanager. In hindsight, it was the architectural blueprint for a trillion-dollar business.

Here's the problem it was trying to solve. Amazon had dozens of engineering teams, each managing a different slice of the operation. The books team maintained product catalogs. The marketing team built homepage features. The checkout team processed payments. The tax team filed quarterly returns. And all of them were reaching directly into each other's data.

Imagine you're running a team that maintains a spreadsheet of every book Amazon sells — title, price, tax rate, warehouse location, monthly sales. Simple enough. But forty other teams are reading from that same spreadsheet, and none of them talk to each other about how they interpret the data.

Now your team decides to store prices in cents instead of dollars — a perfectly sensible engineering practice that prevents rounding errors. Suddenly, a $9.99 book shows up on the homepage as $999. The checkout system charges customers a hundred times too much. The CFO's dashboard reports $10 million in revenue from a single title.

This kind of chaos was happening constantly across Amazon. Teams couldn't improve their own systems without accidentally breaking someone else's.

Bezos's fix was blunt: no team could touch another team's data directly. Every team had to build what he called a "service window" — essentially a controlled interface where other teams could submit requests and receive structured responses. In engineering terms, these are APIs (application programming interfaces). The books team wouldn't hand over their raw spreadsheet. Instead, you'd ask the window: "What's the price of Hooked in US dollars?" And it would answer: "$10."

Clean. Controlled. No more accidental $999 books.

But Bezos added one more line to the mandate, and this is the sentence that changed everything: all service windows must be designed so well that one day complete strangers outside Amazon could walk up and use them.

At the time, this requirement seemed absurd. Why would a company fighting for survival force its engineers to build internal tools to public-product standards? Who outside Amazon would ever want access to their storage systems?

Nobody had a good answer. But the rule stood.

How Internal Infrastructure Became a Product

The mandate didn't just apply to the books team. It applied to every team — including the ones running Amazon's underlying infrastructure. Three teams matter most here:

  • The storage team, responsible for keeping all of Amazon's data safe on its servers
  • The computing team, which handled the processing power behind every search, page load, and recommendation
  • The database team, which organized structured data so other teams could query it quickly

Each of these teams built service windows per the mandate. And something remarkable happened. Storage became something you could request on demand. Computing power became something you could order by the hour. Database access became a service you could call with a simple request.

Inside Amazon, infrastructure stopped being a physical thing you owned. It became a service you rented — like a hotel room instead of a mortgage.

In 2003, two engineers — Chris Pinkham and Benjamin Black — connected the dots in a memo. Their logic was straightforward: if Amazon's infrastructure teams had already turned storage and computing into orderable services, and those services didn't care who was asking, why limit access to Amazon employees? Why not let any startup in the world send the same requests and pay for the privilege?

That memo became the genesis of Amazon Web Services.

Why AWS Changed the Economics of Building a Company

Before AWS, starting an internet company required serious capital before you wrote a single line of code. You needed 10 to 20 physical servers. You needed a climate-controlled room to house them. You needed engineers to maintain them, backup power supplies, and months of setup time. I've talked to founders from that era who spent their entire seed round on hardware before their product even had users.

AWS demolished that model. A founder could log into a website, enter a credit card number, and within minutes have access to the same caliber of computing infrastructure that powered one of the world's largest e-commerce sites. No servers to buy. No rooms to rent. No three-month lead times.

But the real magic wasn't just the low entry cost — it was the elasticity. If a celebrity mentioned your app and a million users showed up overnight, you didn't watch your servers melt. You clicked a button, scaled to a thousand machines, handled the traffic, and scaled back down when things calmed. You paid only for what you actually used.

This was something genuinely new. For the first time, a two-person startup could access the same computing power as a Fortune 500 company — without the Fortune 500 budget.

Nine Years of Silence, Then the Reveal

The early reaction from the tech establishment was predictable: mockery. Microsoft, IBM, and Oracle dismissed the whole thing. A bookstore renting servers? The margins looked thin. The customers were broke startups, college students, and independent developers. It seemed like a distraction from Amazon's "real" business.

And Bezos let them laugh. For nine years, he refused to break out AWS as a separate line item in Amazon's financial reports. Wall Street begged for the numbers. Bezos stayed quiet.

Then, on April 23, 2015, Amazon finally disclosed the figures. AWS had generated $1.57 billion in revenue in a single quarter — a $6.3 billion annual run rate. Amazon's stock jumped 14% the next day. Wall Street finally understood: this wasn't a bookstore anymore.

Meanwhile, the "tiny" customer base had grown up. Netflix migrated to AWS after its own data center crashed in 2008, taking the service offline for three days. Airbnb had been built on AWS from the ground up. Dropbox, Slack, Spotify, Reddit, Pinterest, Stripe, Shopify, Zoom — all running on Amazon's infrastructure. Even the CIA signed a contract.

Netflix technology blog or press coverage of 2008 outage and AWS migration

By 2025, AWS was generating $125 billion in annual revenue and $46 billion in operating profit. To put that in perspective, Walmart's entire operation — thousands of stores, millions of employees, decades of retail dominance — produced $29 billion in profit the same year. A side project born from an internal engineering memo was outearning the world's largest retailer.

What AWS Actually Teaches About Building Things

It's tempting to frame this as a story about luck — a happy accident, a side project that got lucky. But that misses the real lesson. AWS didn't happen because someone at Amazon randomly decided to sell server space. It happened because Bezos made a structural decision in 2002 that forced every team to build their work as if strangers might use it.

That decision created optionality Amazon didn't even know it had. The infrastructure teams weren't trying to build a cloud computing platform. They were trying to stop their internal systems from breaking. But because the mandate demanded public-grade quality, the pieces were already in place when someone finally asked: "What if we opened this up?"

I've seen this pattern play out at a smaller scale in my own work. The best products often emerge not from top-down strategy sessions but from solving an irritating internal problem so well that other people want the solution too. The trick is building to a standard that makes that leap possible — even when you can't see the leap coming.

Bezos himself put it simply: you can't invent without experimenting, and most experiments fail. If you already know the outcome, it's not an experiment. The API mandate was an experiment in organizational architecture. Nobody at Amazon in 2002 predicted it would produce a trillion-dollar business. They just knew their systems were breaking and something had to change.

That willingness to build carefully in the dark, to invest in quality for a payoff you can't yet articulate — that's the part most companies skip. They want the trillion-dollar outcome without the years of unglamorous internal discipline that made it possible.

So here's the question worth sitting with: what problem are you solving right now, just for yourself, that might be valuable to someone you haven't imagined yet?