Outage28 Feb 2017

AWS S3 Outage (us-east-1)

One mistyped input to a playbook command removed far more S3 servers than intended, and much of the internet stalled.

Severity
Front-page news
Difficulty
beginner
Companies
Amazon Web Services
Tech
AWS S3, EC2, EBS, Lambda, Operational tooling
Root cause
operator mistake, dependency cascade

The story

Quick (1 min)

On 28 February 2017, Amazon S3, the storage service behind a huge number of websites and apps, stopped working in AWS's main US East region for about four hours.

An engineer was fixing a slow billing system and ran a standard command to remove a few servers. One input was typed wrong, and the command removed a lot of servers, including ones that run S3's core "where is every file?" index.

Those systems had to fully restart. They hadn't been restarted in years, and S3 had grown enormously, so the restart and safety checks took hours. Other AWS services that depend on S3 broke too. Even AWS's own status page couldn't be updated, because it depended on S3.

The lesson: tools should refuse to do dangerous things quickly, even when a human asks.

Keep reading to the end to earn XP.Read. XP earned.

Engineer (2 min)

The trigger (9:37 AM PST). The S3 team was debugging slow progress in the S3 billing system. An authorised engineer, following an established playbook, ran a command to remove a small number of servers from a billing-related subsystem. One input was entered incorrectly and a much larger set of servers was removed.

What was removed. The removed servers supported two critical subsystems:

  • Index subsystem: metadata and location of every object in the region. Needed for GET, LIST, PUT and DELETE.
  • Placement subsystem: allocates storage for new objects (PUT). Depends on the index.

Losing that much capacity meant both needed a full restart, and S3 couldn't serve requests while they restarted.

Why recovery was slow. S3 was designed to tolerate losing significant capacity, but AWS hadn't completely restarted these subsystems in its larger regions "for many years". After massive growth, restarting and validating metadata integrity took longer than expected.

  • 12:26 PM: index serving GET, LIST and DELETE again.
  • 1:18 PM: index fully recovered.
  • 1:54 PM: placement recovered. S3 operating normally.

Blast radius. The S3 console, EC2 new instance launches, EBS volumes restoring from S3 snapshots, and Lambda were all affected. The AWS Service Health Dashboard admin console depended on S3, so AWS used Twitter and a banner until 11:37 AM.

Fixes. The tool now removes capacity more slowly and refuses to take any subsystem below its minimum required capacity. Other tools were audited for similar safety checks. Index partitioning into smaller cells was moved up to start immediately. The status dashboard now runs across multiple regions.

Interview takeaway: guardrails belong in the tool, not in human care; rarely exercised recovery paths get slow; and your status page must not depend on what it reports on.

Keep reading to the end to earn XP.Read. XP earned.

Deep dive (2 min)

Timeline (PST, from AWS's post-event summary)

  • 9:37 AM: a playbook command meant to remove a few billing-subsystem servers is run with one input wrong. Servers supporting the index and placement subsystems are removed. Both need full restarts, and S3 in US-EAST-1 can't serve requests.
  • 9:37 AM onward: dependent services fail: S3 console, EC2 launches, EBS volumes needing S3 snapshot data, Lambda.
  • Until 11:37 AM: AWS can't update individual service status on its Service Health Dashboard because the admin console depends on S3. Status goes out via @AWSCloud on Twitter and banner text.
  • 12:26 PM: the index subsystem has enough capacity to serve GET, LIST and DELETE.
  • 1:18 PM: the index subsystem is fully recovered.
  • 1:54 PM: the placement subsystem is recovered, so PUT works and S3 is normal. Other services work through backlogs.

The design assumption that didn't hold

"S3 subsystems are designed to support the removal or failure of significant capacity with little or no customer impact... While this is an operation that we have relied on to maintain our systems since the launch of S3, we have not completely restarted the index subsystem or the placement subsystem in our larger regions for many years."

Removing capacity was routine. A full cold restart at modern scale was not, so it had never been timed or rehearsed at that size.

Changes AWS made

  1. Safer tooling: "the tool used allowed too much capacity to be removed too quickly." It was changed to remove capacity more slowly and block removals below a subsystem's minimum required capacity.
  2. Audit: other operational tools checked for similar safety checks.
  3. Cells: AWS explains that splitting services into small partitions ("cells") limits blast radius and makes recovery testable. Further partitioning of the index subsystem, planned for later in the year, began immediately.
  4. Status page independence: the SHD administration console now runs across multiple AWS regions.

Why it's a classic

It's a clear example of how a single human input plus a tool without limits plus an unrehearsed recovery path leads to a long outage, made worse by hidden dependencies, including the status page.

Keep reading to the end to earn XP.Read. XP earned.

Failure replay

Step by step, what broke and what it hit next.

  1. 9:37 AM
    Playbook commandfailing

    An engineer runs an established command to remove a few billing servers. One input is mistyped.

    Affects: S3 index subsystem, S3 placement subsystem

  2. 9:37 AM
    S3 index subsystemdown

    Far too much capacity is removed. The index, which tracks where every object lives, needs a full restart.

    Affects: S3 API

  3. 9:37 AM
    S3 placement subsystemdown

    Placement, which allocates space for new objects and depends on the index, also needs a restart.

    Affects: S3 API

  4. 9:37 AM
    S3 APIdown

    GET, LIST, PUT and DELETE all fail in US-EAST-1.

    Affects: EC2 and Lambda, Status dashboard, Websites and apps

  5. 9:37 AM
    EC2 and Lambdafailing

    New EC2 launches, EBS restores from snapshots and Lambda break because they rely on S3.

    Affects: Websites and apps

  6. Until 11:37 AM
    Status dashboarddown

    AWS can't update its own status page because its admin console depends on S3. Updates go out on Twitter.

  7. 12:26 PM
    S3 index subsystemrecovering

    After hours of restarting and integrity checks at a scale never rehearsed, reads and deletes come back.

    Affects: S3 API

  8. 1:54 PM
    S3 placement subsystemhealthy

    Placement recovers, so PUT works again and S3 is fully operational.

    Affects: S3 API

  9. After
    Websites and appsrecovering

    Dependent services work through their backlogs.

Impact

Who was affected
All S3 API users in US-EAST-1 plus dependent AWS services (S3 console, EC2 new launches, EBS snapshot restores, Lambda) and the many sites built on them.
How long
About 4 hours 17 minutes (9:37 AM to 1:54 PM PST) for S3, longer for services with backlogs.
Cost
not disclosed

Lessons

  • Build guardrails into tools; refuse operations that would take a system below its minimum safe capacity.
  • Rate-limit destructive operations so mistakes can be caught before they complete.
  • Rehearse cold restarts at real scale; untested recovery paths are slow.
  • Partition services into cells to limit blast radius and make recovery testable.
  • Your status page must not depend on the system it reports on.

Quiz

  1. What triggered the S3 outage?

    Check answer

    An incorrectly entered input to a playbook command that removed too many servers. The command was meant to remove a small number of billing-subsystem servers, but one wrong input removed servers for the index and placement subsystems.

  2. Why did recovery take hours?

    Check answer

    These subsystems hadn't been fully restarted in large regions for years, and restart plus integrity checks at S3's new scale took longer than expected. Full restarts of the index and placement subsystems hadn't been done at that scale in years.

  3. Why couldn't AWS update its Service Health Dashboard at first?

    Check answer

    Its administration console depended on S3. The SHD admin console depended on S3, so AWS used Twitter and banner text until 11:37 AM PST.

  4. What safeguard did AWS add to the tool?

    Check answer

    It removes capacity more slowly and won't take a subsystem below its minimum required capacity. AWS modified the tool to remove capacity more slowly, added minimum-capacity safeguards, and audited other tools.

Interview prep

Try answering out loud before you open the model answer.

  1. system design

    How would you design operational tooling so that a single typo can't take down a critical service, as happened with S3 in 2017?

    Show model answer

    Put safety in the tool. Validate inputs against expected scope ("you're removing 40% of the index fleet; expected under 1%"). Enforce hard minimum-capacity floors per subsystem, as AWS added. Rate-limit removals so they happen gradually and can be stopped. Show a dry-run preview with explicit confirmation for anything above a threshold, and require a second person for large changes. Log everything and make undo easy. Then audit every other tool for the same pattern.

    A strong answer hits:

    • Minimum-capacity floors enforced by the tool
    • Slow, rate-limited destructive operations
    • Dry runs and blast-radius previews
    • Two-person approval above thresholds
  2. system design

    What is cell-based architecture and how does it reduce the impact of incidents like the S3 2017 outage?

    Show model answer

    A cell is an independent, complete copy of a service that serves a subset of customers or keys. Failures, bad deploys and restarts affect one cell instead of the whole region. Because each cell has a bounded size, recovery procedures such as cold restarts can be tested and timed realistically. AWS noted the index subsystem took longer than expected to restart because of growth, and reprioritised partitioning it into smaller cells. Trade-offs: routing complexity, cross-cell operations and more operational overhead.

    A strong answer hits:

    • Independent partitions serving subsets of traffic
    • Limits blast radius
    • Bounded size makes recovery testable
    • Trade-offs in routing and operations
  3. behavioural

    Your company's status page went down during an outage because it depended on the failing service. How would you prevent this, and how would you communicate meanwhile?

    Show model answer

    Host the status page on independent infrastructure: different provider or region, with no dependencies on your core stack. AWS moved its dashboard admin console to run across multiple regions. Test it as part of disaster drills. Meanwhile, use pre-agreed fallback channels (social media, a banner, email to key customers) and say plainly that the usual page is impaired. Honest, frequent updates matter more than a polished format.

    A strong answer hits:

    • Independent infrastructure for status communication
    • Include it in disaster drills
    • Pre-planned fallback channels

Go deeper