Testing code that talks to AWS has always meant choosing between three imperfect options: mock the SDK and hope your mocks match reality, run a third-party emulator, or create real resources in a sandbox account and clean them up afterwards. On 11 November AWS added a fourth: its own emulator.
AWS Emulator is free and open source, written in Rust, and published on GitHub at aws/aws-emulator. It aims to cover nearly every AWS service, meaning any API that has a model in AWS's public API models repository.
Running it
On Linux there are RPM and Debian packages. On macOS and Windows you build a Docker image from the Dockerfile in the docs, since AWS does not publish a ready-made image. You can also build it with Cargo.
Once started, it listens on https://127.0.0.1:9297 with a self-signed certificate, and writes credentials and config to ~/.aws/emulator/9297/. Point your CLI or SDK at that endpoint with the generated keys (they start with EMULATOR), unset your real AWS credentials, and your code runs as normal. A health check lives at /__admin/health.
Some SDKs, Java in particular, need the emulator's certificate added to their trust store. Rust users can also run it inside the test process itself, with separate state for each test.
How close is it to real AWS?
This is the part we like. Instead of claiming compatibility, AWS publishes fidelity tests. Each one runs an SDK workflow against real AWS and the emulator, and passes only if the status code, body and error messages all match. Scores are published per service, as passes out of total tests, and the test suite is public, failing tests included. AWS notes the scores can go down as more tests are added.
Operations that are not built yet return HTTP 501, which is better than silently doing the wrong thing.
One unusual detail: AWS says the emulator is built and maintained by AI agents working from its API models. That probably explains the breadth, and it makes the fidelity scores even more important to check before you trust it for a given service.
The limits
The big one: the emulator does not evaluate IAM or resource policies the way AWS does. AWS says plainly that a request AWS would deny might succeed locally. So it is no use for testing permissions, least-privilege policies or anything security related. Keep those tests against a real account.
Also:
It acts as a single account,
000000000000, with no cross-account or cross-region behaviour.Fidelity varies a lot by service.
It sends anonymous usage and error data by default. In CI, set
EMULATOR_TELEMETRY=offor pass--telemetry off.
Where it fits
The sweet spot is fast feedback: unit and integration tests that exercise your code paths against realistic API responses, on a laptop or in CI, without network access or a cloud bill. It is also handy for AI coding agents, which can run code, see the result and fix it in a loop without touching a real account. AWS ships a skill for that through its agent toolkit.
It does not replace a short stage of tests against real AWS before production, especially for IAM, networking and anything that crosses accounts or regions. A sensible pipeline uses both: the emulator for most tests, real AWS for the few that need it. For how that fits into a full delivery pipeline, see the CI/CD pipeline from commit to production.







