6 MIN READ

aws · open source · devops

AWS Emulator: Amazon's own AWS, running locally

AWS released an official, public-domain emulator of its APIs. What it covers, how to run it, and what it means for cost and lock-in.

Laptop screen showing source code in a code editor

AWS now ships its own emulator. It is called AWS Emulator, it runs on your machine, it needs no AWS account, and the code is in the public domain. You point the AWS CLI or an SDK at a local HTTPS endpoint, and your code talks to emulated S3 buckets and DynamoDB tables instead of real, billed ones. If you have ever paid for a test environment nobody remembered to delete, that alone is worth a look.

What AWS actually released

AWS Emulator was announced on November 11, 2026, in a guest post by Swami Sivasubramanian on Werner Vogels' blog. The code lives at aws/aws-emulator on GitHub. It is a local program, written in Rust, that serves the AWS APIs on a single endpoint. No graphical interface. You start it, set a few environment variables, and run your code as usual.

On paper the scope is broad. The emulator targets the services that have a model in AWS's public API models repository, and the announcement says it was built from more than 400 API models covering more than 200 services. Each service is its own crate, generated from its Smithy model. When an operation is not implemented yet, the emulator answers with HTTP 501 and a NotImplemented error, so a test fails fast instead of passing by accident.

The unusual part is how it was built. AWS says all of the code was written and tested by AI agents. Agents write "fidelity tests" from the public API models, adjust each test until it passes against real AWS, then build the emulator until it passes the same test. Those tests are public, in a separate evaluation-suite repository, including the ones that still fail.

I care less about who typed the code than about that last detail. The gaps are published on purpose, per service, with every release. That is more honesty than most cloud tooling gives you.

Running it on your machine

On Linux there are RPM and Debian packages for x86_64 and arm64. On macOS and Windows you run it in Docker, but there is no prebuilt image: the docs give you a short Dockerfile that installs the Linux package, and you build it yourself. There is also an embedded mode for Rust tests, where the emulator runs inside the test process, one isolated instance per test.

On a Debian or Ubuntu machine:

curl -fsSLo aws-emulator.deb https://downloads.aws.com/aws-emulator/packages/aws-emulator/LTS/latest/aws-emulator_amd64.deb
sudo apt-get install -y ./aws-emulator.deb
aws-emulator --telemetry off

By default it listens on 127.0.0.1:9297 over HTTPS, with a self-signed certificate it creates on every start. It also generates fresh credentials and a config file under ~/.aws/emulator/9297/, valid only for that run. In another shell, point your tools at it. This is the set from the official SDK guide:

export AWS_ENDPOINT_URL=https://127.0.0.1:9297
export AWS_SHARED_CREDENTIALS_FILE=~/.aws/emulator/9297/emulator_credentials
export AWS_CONFIG_FILE=~/.aws/emulator/9297/config
export AWS_CA_BUNDLE=~/.aws/emulator/9297/ca.pem
export AWS_EC2_METADATA_DISABLED=true
export AWS_DISABLE_HOST_PREFIX_INJECTION=true
export AWS_REGION=us-east-1
export AWS_DEFAULT_REGION=us-east-1
unset AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_SESSION_TOKEN AWS_PROFILE
aws sts get-caller-identity

If the last command shows account 000000000000, you are talking to the emulator. If it shows your real account ID, stop. Your requests are going to AWS. That check belongs at the top of every CI script that relies on this.

Two small things worth knowing:

  • Telemetry is on by default. --telemetry off or EMULATOR_TELEMETRY=off turns it off. The docs say request contents, code and credentials are never collected, but I prefer my test tools quiet.
  • Use 127.0.0.1, not localhost. With localhost, some SDKs put the S3 bucket name in the host name, and the request never reaches the emulator.

Where it sits next to LocalStack and moto

This is not the first AWS emulator. It is the first one made by AWS. Here is what I could verify about the two best-known alternatives:

AWS Emulator LocalStack moto
Made by AWS LocalStack, a company Open-source project
Runs as Local server, or in-process for Rust tests Docker image Python library, plus moto_server
Account needed No Yes, an auth token No
Source code Public, CC0-1.0 (vendored code Apache-2.0) Old Community code public, no longer developed Public, Apache-2.0

LocalStack's own announcement laid out the move to a single image that requires an auth token, starting in March 2026. Older Community tags still run without one, but they get no updates or security patches, and the free plan is described as intended for non-commercial use. moto is still what it was: a Python library where you wrap a test in @mock_aws, with a standalone server mode for other languages.

I am not going to claim one is more faithful than another. Nobody has published a head-to-head run with the same tests, and the AWS fidelity scores are a snapshot that moves with each release.

What it does not do

The docs are blunt about the limits, which I appreciate. They say not to use it for production workloads or to test security. The rest:

  • IAM is not enforced like AWS. Policies are not evaluated the way the real service does, so permission bugs will not show up here.
  • One account, one Region. Resources are not separated by Region or account. To test two Regions, run two emulators on two ports.
  • Everything lives in memory. Stop the process and the state is gone. Great for tests, useless as a long-lived dev environment.
  • Fidelity varies by service. Control-plane calls (create, describe, delete, list) match AWS best. Data-plane behavior, and support for CloudFormation, Terraform and the CDK, varies.
  • The repository does not take pull requests. You can file issues. You cannot send a fix.

Cost, and the lock-in question

The cost case is simple. Integration tests that create and destroy real resources cost money, need credentials in CI, and leak resources when a job dies halfway through. A local emulator with no fee, no account and no network removes all three. Your test suite stops being a line on a cloud bill.

The lock-in case needs to be said plainly: this does not get you off AWS. It is AWS's API surface, emulated by AWS, so your code still speaks AWS. What changes is who controls your feedback loop. Until now, testing AWS code meant a real AWS account, a vendor's token, or a community library you hoped would keep up. With a public-domain emulator, you can test offline, fork the code, freeze a version and keep running it, even if AWS changes its mind later. CC0 is about as free as a license gets.

That is real independence for the test loop. It is not independence for the architecture. If you want portability, that work is still yours: keep cloud calls behind your own interfaces, prefer open protocols where they exist, and treat any provider's SDK as an adapter at the edge of your app, not as its core.

Where I would start

Pick one integration test suite that needs real AWS today. Install the emulator, turn telemetry off, put the sts get-caller-identity check at the top of the script, and run the suite. When something fails, look in the repository's issues/things-that-do-not-work/ folder before assuming it is your bug.

If the suite passes, you just took credentials and a bill out of your CI. If it does not, you now have an exact list of the services you still need the real cloud for. That list is worth having either way.


Cover photo: luis gomes, CC0, via Wikimedia Commons.

Join the builders

New projects, the code behind them and what broke on the way. One e-mail when there is something worth opening.

We send a link to confirm. Leave anytime with one click. Never sold or shared. How we handle it

Comments

No comments yet. Start the conversation.

Sign in with Google to comment

Signing in keeps out bots and spam. Only your Google name and photo appear next to what you write; your e-mail is never shown.

Keep reading