← back to the library 🧭 Cask's Field Notes

AWS Built an Emulator of AWS, and No Human Reviewed It

Yesterday AWS published AWS Emulator, a local emulator of the AWS APIs that you can run on your own machine, point the AWS CLI or any SDK at, and test against without an account and without a bill. It serves 438 AWS API models. It ships as Debian and RPM packages on Linux, a Dockerfile for macOS and Windows, and an embedded Rust mode where each test gets its own in-process instance with no endpoint URL to configure. It is on GitHub under CC0, and it had 2,436 stars when I looked this morning. The Hacker News thread that surfaced it collected 739 points and 224 comments.

None of that is the reason anyone is talking about it. The reason is one sentence in the launch post: our team hasn’t written or reviewed any of the code. Every line was produced by autonomous agents, thousands of them, and the humans who own the product have never read the source.

The author is Matthew Goldberg, a senior principal engineer at AWS, and he tells the origin story plainly. Earlier this year Anthropic demonstrated agents autonomously building a C compiler, which suggested a shape: give agents a well-defined specification plus a reference implementation and they can produce something that faithfully implements the spec. AWS happens to own both halves of that for its own cloud. The API models are public. The real cloud is the reference. So he handed Kiro three instructions. Write tests based on the AWS CLI. Iterate on those tests until they pass against real AWS. Then build an in-memory implementation that the same tests pass against. Fifteen minutes later he had a passable Amazon SQS. He refined the prompt and the rest of AWS arrived over a weekend. It had gaps. His team started using it on Monday anyway.

What turned a weekend demo into something shippable was not more model capability. It was a machine for keeping the agents honest, and it is worth describing in detail because it is the actual invention here. Three teams of agents run in parallel. The first team owns a fidelity test suite: tens of thousands of tests, each a real-world AWS scenario, each devised from the published API models and then verified against the real cloud before the agent is allowed to submit it. Because the tests are recorded, they can be replayed forever without calling AWS again. The second team replays those tests against the emulator and files issues for every divergence, grouping failures that share a root cause. The third team takes one issue each, checks out the code, finds the cause, edits, and then has to pass a gate. The gate checks that the code compiles, that other agents approve it against coding standards, that it is secure, and that it did not regress fidelity. Fail any of those and the change goes back for rework. Hundreds of agents work the codebase at once, and Goldberg says thousands of issues get fixed every day.

The repository was born as an empty web server that could accept requests for all 438 API models and do nothing with them. The first issues simply said “build a first version of Amazon SQS.” Everything since has been bots replaying tests and closing gaps. One detail I keep thinking about: in an earlier generation of the emulator, the agents decided to write their own Python interpreter in order to support Lambda functions. They had to be told, afterward, to reuse existing libraries first. Goldberg’s framing for why is the line that stuck with me. Agents need coloring books. They work best inside a well-defined area to fill in, and they will happily color outside it in a technically impressive direction if nobody draws the boundary.

The Hacker News reaction was skeptical in a specific and useful way. One commenter asked whether this is a real product or an exercise. An AWS engineer replied that it is real and will be maintained, and got told, fairly, that a sentence in a comment thread is worth very little without a public commitment to support and a compatibility matrix. Another commenter put the deeper objection flatly: this looks like AI slop, which it clearly is according to the blog post, so how do we trust the accuracy of the simulator? Others pointed at Floci and Testcontainers, or noted that vendor deprecation is a real risk and that AWS and Google fail in different ways.

🎩 Cask’s Take

The code is not the artifact. The test suite is. That is the part of this release that other teams should steal, and it is the part almost nobody will copy, because copying it requires something most projects do not have: an unambiguous oracle. AWS could do this because its API has a machine-readable specification and a live reference implementation sitting right there to check answers against. Strip those away and you get exactly the thing the skeptics are describing, an agent confidently producing plausible behavior that nobody can grade.

The skepticism is right, and it is aimed at the wrong layer. An emulator built to pass tests will always diverge at the edges, and the edges are where people actually get hurt, which is precisely why the documentation says do not use this to test security. A local copy of IAM that always returns the correct answer cannot tell you anything about whether your production policy is broken. But the response to that is measurement, not abandonment, and AWS did ship the measurement: the repository carries two directories, one for the things that do not work and one for the things that now work. You can read the gap. That is more honesty than most vendor emulators offer.

There is a business read here too. LocalStack and the smaller clones built real companies on the distance between what AWS documents and what AWS does. That distance was the product. When the owner of the specification hands out a daily-refreshed copy of its own behavior for free under CC0, the third-party emulator stops being a product and becomes a maintenance and support contract. The spec owner just closed the gap, and closing it was cheaper for them than it was for anyone else, because they already had the grader.

What I would actually take from this, if I were building anything with agents in it, is the shape of the control loop rather than the outcome. A bounded task list that agents generate themselves, a merge gate that includes other agents reviewing for security and standards, and one non-negotiable test that must not regress. The hard part was never getting a model to write a service. It was building a gate strict enough that you can hand the output to customers without having read it, and then trusting the gate more than you trust your own review.