# AWS Emulator: The Cloud That Fits on Your Laptop

> AWS put the cloud on your laptop: no account, no bill. What AWS Emulator is, why coding agents need it, and where it stops.

- Author: Jimmy Morin (Cloud Infrastructure Engineer)
- Published: 2026-11-11
- Updated: 2026-11-11
- Tags: aws, reinvent, preinvent, awsemulator, local
- Canonical: https://jimmymorin.cloud/posts/aws-emulator-the-cloud-that-fits-on-your-laptop

## Introduction

Every cloud engineer knows the testing ritual. Write some code, deploy it to a sandbox account, wait, discover a typo, deploy again, wait again, and then get a bill for the privilege. The alternative was mocks: fake responses that say exactly what you told them to say, which is great for your ego and terrible for catching bugs.

A few weeks before re:Invent, AWS dropped a different answer: **AWS Emulator**. It's a local copy of the AWS APIs that runs on your laptop, a dev server or a CI runner. No AWS account, no service fee, no deployment. Your code talks to it the same way it talks to AWS, so nothing in the application has to change.

What makes it interesting isn't the "local" part. Third-party emulators have existed for years. It's who it's built for. AWS is quite open about it: the main customer is your coding agent. Agents write code faster than anyone can check it, and an agent with nothing realistic to test against will happily build on a wrong assumption for hours.

This article isn't a tutorial. I haven't put the emulator through its paces yet, and I'm not going to hand you commands I haven't run myself. It's my read of what AWS shipped, why it matters, and what I'll be checking first when I try it.

## Before you try it

The shortest prerequisites list this blog will ever publish:

| What | In plain words |
| --- | --- |
| AWS account | Not needed. The emulator makes up its own fake account and keys. |
| Machine | Linux runs it natively. On macOS and Windows it runs in Docker. |
| Tools | The AWS CLI or any AWS SDK you already use. A recent CLI if you want the agent skill. |
| Coding agent (optional) | Kiro, Cursor or Claude Code, through the `aws-emulator` skill |
| Cost | Free. You only pay once you deploy the real thing to AWS. |
| Knowledge | You know what the AWS CLI is and roughly what your app calls |

The official getting-started guide has the install steps. I'll link it at the end rather than paraphrase commands I haven't run.

## How it fits together

The emulator moves the trial-and-error part of the work off your AWS account and onto your machine.

&#91;embedded content: The agent feedback loop with AWS Emulator\]

1. The agent writes code and calls the AWS API, but the calls go to the emulator.
2. The emulator answers like AWS, errors included, and the agent fixes its own mistakes.
3. Your specs and tests decide when the work is actually done. That part stays human.
4. Only once everything passes locally does the code meet real AWS, for what the emulator can't judge: permissions, security and scale.

In the old setup, steps 1 and 2 happened on a real account: slow, billed, and sometimes with production one fat-finger away. Now they happen for free, as many times as the agent needs.

## How it works, step by step

No terminal needed for this part, just the moving pieces.

1. **You start one small program.** It has no console, no dashboard and no UI. It just listens on your own machine and answers like AWS would.
2. **It invents a fake AWS account for you.** Every time it starts, it creates a fresh account and fresh keys, and it rejects anything signed with your real ones. Its keys are labelled so you can't confuse them with real ones.
3. **You tell your tools where to send requests.** A few environment variables point the AWS CLI or SDK at the emulator instead of AWS. Your application code doesn't change at all, which is the whole trick.
4. **Your code runs as usual.** Create a queue, write to a table, put a file in a bucket: the emulator keeps it all in memory and answers with the same results and the same errors AWS would. Name a DynamoDB table with two characters and it complains exactly like the real thing.
5. **You stop it, and everything disappears.** No leftover resources, no state, no surprise bill. Next start, clean slate.

The agent version is the same story with less typing. You install the `aws-emulator` skill, then ask your agent in plain English to set the emulator up and point the project at it. It also checks whether your project is likely to work on the emulator before you rely on it. And it asks before doing anything with `sudo` or your shell profile, which is more courtesy than some colleagues show.

The neat part is how AWS built it. Instead of hand-writing 200+ fake services, agents generated each service emulator from the public AWS API models. A service counts as done when it passes the same tests as the real one. Matt Goldberg's first SQS prototype reportedly took about 15 minutes from a single prompt. My last SQS consumer took me longer than that just to name.

## How do you know it's faithful?

An emulator that lies is worse than no emulator: it teaches your agent the wrong lesson. Matt Wood says it bluntly in his post: an emulator that accepts what AWS rejects can reinforce mistakes or reward shortcuts. So the real question is how close it is to AWS, and AWS answers it with numbers rather than adjectives.

- **Fidelity tests.** Each one is a short scenario run against real AWS first. It records the results, the state left behind and the exact errors for bad calls. The emulator passes only if it matches on every call.
- **Published scores.** Every release ships a score per service, as tests passed out of total. Failing tests are published on purpose and tracked as known gaps.
- **Honest about the gaps.** Anything not built yet answers with a clear "not implemented" instead of a fake success. The GitHub repo even has a `things-that-do-not-work` folder. Finally, release notes that admit it.

The tests themselves are open source too, so anyone can rerun them. The general rule: basic create, read, update and delete operations are the most faithful. Service-specific behaviour and infrastructure-as-code tools like CloudFormation, Terraform or the CDK vary from one service to the next.

## Gotchas & caveats

None of this is hidden: AWS lists every limit in its docs. These are the ones I'd keep in mind, and the ones I'll check first when I try it.

- **It's not production. Ever.** No durability, no availability, no security guarantees. It's for building and testing, full stop.
- **IAM is a polite fiction.** It never denies a request signed with its own keys, and it ignores bucket and key policies. Your `"Action": "*"` will work beautifully. Permissions, cross-account access and security controls still need real AWS.
- **Your real keys are one typo away.** If your tools aren't pointed at the emulator, they quietly call real AWS with whatever credentials they find. The docs insist on clearing real credentials before testing, and I'd take that seriously.
- **One account, one Region, nothing remembered.** Everything lives in memory and vanishes when it stops. Great for clean tests, less great if you expected yesterday's test data this morning.
- **Fidelity varies by service.** Some APIs aren't implemented yet, and behaviour is verified in a single Region. Check the scores for the services you use before building a test suite on it.
- **It's not a server.** It isn't built for long-running use or load, and its capacity depends on your machine's memory. Start it for the tests, stop it after.
- **Telemetry is on by default.** It's anonymous and excludes your requests, code and credentials, and you can switch it off. Worth knowing before your security team finds out on their own.

## Cleanup

The most satisfying cleanup section I'll ever write: there's nothing to tear down. Stop the emulator and everything in it is gone, including the fake credentials it wrote. No resources left running, no forgotten NAT Gateway quietly billing you by the hour.

The only thing to tidy is your own shell. Point your tools back at real AWS before your next real deployment, and do it on purpose this time.

## Conclusion & next steps

AWS Emulator is less about running AWS on a laptop and more about who checks the work. Werner Vogels's post puts it well: as agents write more of the code, the engineer's job moves to deciding what gets built and when it's correct. That means specs, tests and guardrails.

Swami Sivasubramanian's guest story is the best argument for it. He spent four nights supervising an agent rebuilding a replication engine, with zero progress, because the agent couldn't verify anything. Once it had a spec and a test environment, the rebuild took about two hours. The first version, built by humans, took around four months.

So it's a free, open-source test bench that gives agents fast and honest feedback, and it's upfront about what it can't do. Not a replacement for real AWS, and not a security lab. But a very good place for the first hundred mistakes to happen.

**What I'll test first when I get my hands on it:**

- How it fits in a CI pipeline with no AWS account or secrets at all
- How faithful it is for the services I actually use day to day
- How it behaves with Terraform, my default for everything
- Whether a coding agent with the skill really gets things right the first time more often

That follow-up will be a proper hands-on article, with commands I've actually run. Until then: see you at re:Invent. Now, go build. Locally, for once.

### Sources

- [What is AWS Emulator?](https://docs.aws.amazon.com/emulator/latest/userguide/what-is-service.html) (AWS documentation)
- [Getting started with AWS Emulator](https://docs.aws.amazon.com/emulator/latest/userguide/getting-started.html)
- [Fidelity in AWS Emulator](https://docs.aws.amazon.com/emulator/latest/userguide/fidelity.html)
- [Security in AWS Emulator](https://docs.aws.amazon.com/emulator/latest/userguide/security.html)
- [AWS Emulator product page](https://aws.amazon.com/products/developer-tools/emulator/)
- [AWS Emulator and the engineer's job when agents write the code](https://www.allthingsdistributed.com/2026/11/aws-emulator-and-the-engineers-job-when-agents-write-the-code.html) (Werner Vogels, All Things Distributed)
- [Better feedback for building with agents](https://aws.amazon.com/blogs/aws-insights/better-feedback-for-building-with-agents/) (Matt Wood)
- [aws/aws-emulator on GitHub](https://github.com/aws/aws-emulator)
