AWS Open-Sources Local API Emulator
AWS released something on Monday that developers have wanted for years: a local emulator for its APIs. It is called, straightforwardly, AWS Emulator, and it lives at github.com/aws/aws-emulator. You run it on your machine, point your SDK at it, and your code talks to a local process instead of the cloud. No AWS account required. No bill. No network calls [1].
The project hit 858 points on Hacker News and is still climbing. The reception is mostly disbelief that AWS actually did this. For context, the community has relied on LocalStack, a third-party emulator, for years. AWS Emulator is the first official option, and it is licensed under CC0 1.0 Universal, which is about as permissive as it gets. The vendor directory is Apache 2.0, but the main code is public domain [2].
How it works
The emulator is a Rust program that serves an AWS API endpoint on 127.0.0.1:9297 over HTTPS with a self-signed certificate. You set environment variables to point the AWS CLI or any AWS SDK at the endpoint, then run your code as usual. The emulator responds with emulated resources: S3 buckets, DynamoDB tables, SQS queues, whatever the supported services offer. State is in-memory and ephemeral [3].
There is also an embedded mode, which is the interesting one for test-heavy projects. Instead of running a separate process, you add the emulator as a dev-dependency and it compiles into your test binary. Each test gets an isolated instance. No endpoint URL, no certificate, no environment variable. You wire the emulator's HTTP client straight into the SDK client and run [4].
Fidelity scores
AWS publishes fidelity scores with each release, so you can see how closely each service matches real AWS behavior. Gaps are tracked openly: things that do not work yet live in issues/things-that-do-not-work/ in the repo, and things that have been fixed move to issues/things-that-now-work/. This is a refreshingly honest approach to incomplete compatibility [5].
The repository does not accept pull requests. Bug reports and fidelity gap reports are welcome in GitHub Issues, but external code contributions are not. AWS is keeping development in-house, which is a reasonable call for an API compatibility surface this large [6].
The build cost catch
Here is the part that will catch people. Building from source requires a Rust toolchain, a C compiler, and at least 100 GB of free disk for target/. The workspace has one crate per AWS service, so a full debug build is large and grows as services are added. A cold build on a multi-core machine takes a while. Subsequent rebuilds after touching one service are much faster [7].
For embedded mode, the emulator's service crates compile alongside your project. The first cargo test pays that build cost. AWS recommends reusing one CARGO_TARGET_DIR across projects, caching target/ or using sccache in CI, and pinning to a release commit so the emulator is not rebuilt on every change [8].
Most users will not need to build from source at all. Prebuilt packages are available for Linux (RPM and Debian), and Windows and macOS users run it in a Docker container. Embedded mode users do need the build toolchain, but that is a subset of the audience [9].
Telemetry, but optional
The emulator collects usage telemetry by default. AWS says the data is minimized: no request or response contents, no code, no credentials, no personal data. Telemetry can be turned off with --telemetry off on the command line, EMULATOR_TELEMETRY=off as an environment variable, or [telemetry] enabled = false in the config file. For embedded mode, you pass Telemetry::Off in the options [10].
This is the right default for a tool that AWS wants adoption data on, and the right escape hatch for users who do not want to report anything. The fact that it is documented prominently in the README rather than buried in a settings page is a good sign.
What this means
LocalStack proved there was demand for this. AWS Emulator is the official answer. The CC0 license means anyone can fork it, embed it, ship it in products, and never worry about license compliance. The fidelity scores and open gap tracking mean you can make an informed decision about whether it works for your test suite.
The 100 GB build cost and no-PR policy are the tradeoffs. AWS is giving away the binary and the source, but they are keeping control of the roadmap. That is fine. The value here is not in community contributions to an API compatibility layer. It is in having a reliable, official, free way to test AWS code without a cloud bill.
For CI pipelines that currently mock AWS services badly or skip integration tests entirely, this is a real improvement. For developers who have been paying LocalStack Pro for features that the open-source emulator now covers, it is a cost reduction. And for anyone learning AWS, it removes the single biggest barrier: the account [11].
← All postsSources
- AWS Emulator README: "You use it to test your software without calling AWS, on your own machine, on a development server, or in continuous integration (CI). You don't need an AWS account." github.com/aws/aws-emulator. ^
- Hacker News submission: 858 points, 237 comments. news.ycombinator.com. License: CC0 1.0 Universal for main code, Apache 2.0 for vendor directory. github.com/aws/aws-emulator. ^
- AWS Emulator README: "The emulator is a local program that serves an AWS API endpoint." Serves HTTPS on 127.0.0.1:9297 with self-signed certificate. github.com/aws/aws-emulator. ^
- AWS Emulator README: "Add the emulator as a dev-dependency and run it in-process, one isolated instance per test." github.com/aws/aws-emulator. ^
- AWS Emulator README: "To see how closely each service matches AWS, check the fidelity scores published with each release on the releases page." Gap tracking in issues/things-that-do-not-work/ and issues/things-that-now-work/. github.com/aws/aws-emulator/releases. ^
- AWS Emulator README: "This repository does not take PRs." github.com/aws/aws-emulator. ^
- AWS Emulator README: "At least 100 GB of free disk for target/. The workspace has one crate per AWS service, so a debug build of everything is large." github.com/aws/aws-emulator. ^
- AWS Emulator README: "Recommendation: reuse one CARGO_TARGET_DIR across projects, cache target/ (or use sccache) in CI, and pin the emulator to a release commit." github.com/aws/aws-emulator. ^
- AWS Emulator README: "Linux: install the RPM or Debian package. Windows / macOS: run the emulator in a container built from a short Dockerfile." github.com/aws/aws-emulator. ^
- AWS Emulator README: telemetry section. Turn off with --telemetry off, EMULATOR_TELEMETRY=off, or [telemetry] enabled = false in config.toml. github.com/aws/aws-emulator. ^
- LocalStack has been the de facto AWS emulator for years; AWS Emulator is the first official alternative. Community discussion on Hacker News (237 comments) covers comparisons. news.ycombinator.com. ^