AWS just shipped its own local emulator. Yes, really. It's called AWS Emulator, it's open source, it's written in Rust, and it runs on your machine with no AWS account.

I'm going off the launch post and the docs here. I haven't pushed it through a real project yet, so treat the "how it behaves" parts as what AWS says, not what I've proven.

Here's what's worth knowing before you rip out your current setup.

What it actually is

A local server that speaks the AWS API. Your CLI, your SDKs and your coding agents talk to it the same way they'd talk to AWS. You pay nothing for it, and you only pay for resources you deploy on real AWS.

The source is at github.com/aws/aws-emulator.

There are two modes:

  • Server mode: a standalone HTTPS endpoint on 127.0.0.1:9297. You point your tools at it with environment variables.
  • Embedded mode: Rust only. The emulator runs inside your test process through the aws-emulator-embedded crate, and every test gets its own isolated instance. Parallel tests don't fight over the same bucket or table.

On Linux you install an RPM or Debian package. On macOS and Windows you run it in Docker, and per the launch post you build the image yourself from a short Dockerfile in the docs.

Getting it talking to the AWS CLI

This is the part that looks fiddly but is mostly environment variables:

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_EC2_METADATA_DISABLED=true export AWS_DISABLE_HOST_PREFIX_INJECTION=true export AWS_REGION=us-east-1 unset AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_SESSION_TOKEN AWS_PROFILE 

On first start it generates credentials, a config file and a certificate under ~/.aws/emulator/9297/. Then the usual commands work:

aws sts get-caller-identity aws s3 mb s3://local-getting-started aws dynamodb create-table --table-name demo \ --attribute-definitions AttributeName=id,AttributeType=S \ --key-schema AttributeName=id,KeyType=HASH \ --billing-mode PAY_PER_REQUEST 

A few details that will bite you if you skip them:

  • Access key IDs start with EMULATOR. Anything signed with other keys is rejected.
  • It uses a single account, 000000000000.
  • Some SDKs, Java is the one AWS calls out, need the emulator certificate in a trust store.

The fidelity claim

An emulator is only useful if a test that passes locally would also pass on AWS. AWS says it measures this with fidelity tests: SDK programs that run a workflow and assert behaviour, verified against real AWS.

A test only passes if the status code, body, error code, error message and resulting resources all match. Scores are published per service as "k of n". The evaluation suite is public, failing tests included, so you can run it yourself.

I like that. Publishing the failures is the honest way to do it.

Operations that aren't implemented return HTTP 501, so you find out loudly rather than silently getting wrong behaviour.

The limitation that matters most

It does not evaluate IAM policies or resource-based policies the way AWS does.

So a request AWS would deny can succeed locally. If your bug is "my role is missing s3:PutObject", this will not catch it. Don't use it to test security settings. That's still a job for a real account.

Other limits from the launch post:

  • One account per emulator, so no cross-account behaviour
  • No cross-Region behaviour
  • Fidelity varies by service and by feature
  • It sends anonymous usage and error data by default

How this compares with LocalStack

LocalStack has been the default answer for years. It runs in a container, and its AWS Marketplace listing claims support for more than 70 services.

AWS Emulator's pitch is different. It's built from the public AWS API models, so the coverage target is "every service with a model", and it comes with a published way to check the claims. Whether it gets there is what the per-service scores will tell us.

My honest read for now:

  • Already on LocalStack and happy? No rush. Wait for the scores for the services you use.
  • New project, S3, DynamoDB, SQS style workloads? Worth a spike this week.
  • Rust shop? The embedded mode is the interesting part. Per-test isolated state without a container is a nice setup.

One more thing: who wrote it

AWS says the emulator was built and maintained by AI agents working from the API models, with a separate security agent checking the changes. The project isn't taking pull requests.

That's a big shift in how you'd trust a tool. The published evaluation suite is doing a lot of work here, because it's how you verify rather than believe.

What I'd do first

  1. Install it, run the S3 and DynamoDB commands above
  2. Point one existing integration test at it
  3. Check the per-service fidelity scores for every service you depend on
  4. Keep one real-account test stage for IAM and anything cross-account

If you try it before I do, tell me where it broke.

Drafted with AI assistance. I review and edit every post.