Blog

AWS Emulator vs LocalStack: What Can It Replace in CI Tests?

AWS Emulator runs AWS APIs locally and in CI for free, written entirely by AI agents. At launch it matched real AWS in 56% of fidelity tests, CloudFormation under 20%, and it ignores IAM. Which tests to move to it, and which to keep on real AWS.

Diagram with a cloud representing a real AWS Region on the left and boxes representing a developer PC and CI on the right; fidelity tests travel back and forth between them, and horizontal bars show the share of tests that matched for each service
Contents

Summary

On November 11, 2026, AWS released AWS Emulator for free. It reproduces AWS APIs on a developer’s PC or in CI, covers 438 API models across more than 200 services, and requires no AWS account. All of the code was written by AI agents; AWS states that its team wrote not a single line and did not review it. At launch, about 56% of the fidelity tests matched real AWS: around 70% for SQS and DynamoDB, under 20% for CloudFormation. It does not evaluate IAM policies either. With LocalStack’s free edition closed to commercial use since March, it is a strong replacement candidate, but what you can hand it is the create, read and delete checks. Permissions, IaC and the fine details of data handling belong in a real AWS test account, which means splitting your tests into stages.

What the free “local AWS” promises, and what it does not

Let’s start by pinning down what AWS Emulator actually does, staying within AWS’s official documentation. The phrase “a copy of AWS” is easy to misread: the actual promise is far narrower.

AWS Emulator is a program that runs on your PC, a development server or CI, and opens an endpoint shaped like the AWS APIs at 127.0.0.1:9297. Point the AWS_ENDPOINT_URL environment variable there, and code that uses the AWS CLI or SDKs sends its requests to the emulator without any changes. Create an S3 bucket and it appears in the next listing; give a DynamoDB table a two-character name and you get the same ValidationException that real AWS returns. On Linux it ships as RPM and Debian packages, on macOS and Windows it runs in Docker, and Rust tests can embed it in the same process. The source is on GitHub under CC0, and there is no charge.

The list of limitations in the official documentation, however, is long. It does not evaluate IAM policies or bucket policies the way real AWS does. It does not distinguish Regions or accounts. State lives in memory and disappears when you stop it. Long-running use and load testing are out of scope. Comparison against real AWS is done only in US West (Oregon), so differences in features unavailable in other Regions do not show up. The documentation explicitly says not to use it in production or for security checks.

Part of why the announcement drew so much attention among developers is what had happened to the competition. LocalStack, the standard way to mock AWS locally, began requiring an auth token to start with its March 23, 2026 release and limited the free plan to non-commercial use. The source of the old free edition is no longer updated: pinning an old version still works, but fixes will not arrive. Companies that used the free edition in CI had to either move to a paid plan or find something else. AWS itself then shipped a free alternative that also allows commercial use.

AWS trusts code nobody has read by checking it against real AWS

So on what basis does AWS distribute code that nobody has reviewed? Looking at how it was built, the trust rests not on the code but on the tests that compare it with real AWS.

According to Matthew Goldberg of AWS, who led the work, the agents split into three roles. The first writes procedures such as “create a queue, send a message, delete the queue” from the public API models (specifications in Smithy format), runs them against real AWS to confirm the results, and saves them as “fidelity tests.” The second replays those tests against the emulator and files every mismatch as an issue. The third takes issues one at a time, finds the cause and fixes the code. A fix is merged only after it passes gates that check the build, coding conventions, security, and regressions in existing tests. Goldberg writes that without these gates, you could not trust what the agents produce. Hundreds of agents run in parallel and fix thousands of issues a day, he says.

The role of the answer key is played by real AWS itself. When Anthropic moved its Messages API to Rust, it used production traffic as the answer key and prevented the AI from weakening tests (the Rust migration article). AWS Emulator has the same structure: tests are saved only after being verified on real AWS, so there is little room for an agent to rewrite them to suit itself. The documentation states that a fidelity test that has passed will not regress in a later release.

This guarantee only covers what the tests cover, though. Behavior without a test is unverified, and operations that are not implemented return HTTP 501 NotImplemented. The question a user needs to ask is not “can I trust it overall?” but “do the operations I use have tests, and do they pass?”

56% match overall, and the gaps between services show where to use it

To answer “do they pass” with numbers, let’s look at the fidelity scores at launch. AWS publishes scores per service for every release, and i-SCOOP counted the results from the summary file of the November 11 release (v1.0.322).

Overall, 24,243 of 42,937 tests, about 56.5%, matched real AWS exactly. Counted by individual steps, which are finer-grained than tests, the figure is 73.2%. The median per service is 61.3%; 40 services are at 90% or above, while 124 are below 50%. The main services line up as follows.

Horizontal bar chart of AWS Emulator fidelity test match rates by service: EventBridge 71.5%, KMS 71.3%, Step Functions 70.0%, SNS 69.3%, DynamoDB 68.1%, SQS 67.8%, S3 62.7%, Lambda 51.9%, EC2 38.8%, CloudFormation 18.9%
Fidelity scores for release v1.0.322 (November 11, 2026), charted from i-SCOOP's count of the summary file AWS published.

The differences match what the documentation says. The emulator is closest to real AWS for “control plane” APIs that create, read, update and delete resources, while the “data plane” (such as reading and writing S3 objects) and support for IaC like CloudFormation, Terraform and CDK vary by service. SQS and SNS, which send and receive messages, and EventBridge, which routes events, score relatively high; EC2, which handles virtual machines and networking, and CloudFormation, which assembles many services together, score low. That reads as a reflection of the same pattern.

The numbers need careful reading. A test fails if it differs in a single place, and even a different wording in an error message counts. Conversely, adding tests surfaces existing gaps as new failures, so a falling score does not necessarily mean falling quality. Releases come out several times a day, and by November 28 the version had reached v1.0.757. If you compare, compare tests from the same version and narrow them to the operations your company uses.

Because IAM is not evaluated, “green in CI, AccessDenied in production” happens

After the numbers, consider what you miss by taking test results at face value. The biggest impact comes less from the match rate than from the areas the emulator deliberately does not simulate.

The first is permissions. The emulator does not reject requests signed with keys it issued. It does not check KMS key policies or S3 bucket policies either. If you forget to grant dynamodb:PutItem to a Lambda execution role, CI passes and you get AccessDenied only in production. One of the most common configuration mistakes behind production incidents slips straight through the test net.

The second is a path that puts your local environment at risk. The emulator does not isolate things like Lambda function code; it runs them with the permissions of the user who started it. If AWS_ENDPOINT_URL is missing, the SDK sends requests to real AWS using whatever credentials it finds. If a developer’s PC holds keys with near-production permissions, a “test” could delete production resources. CI runners serving as the way in for an attack is something we saw in the 1Password breach; if you adopt the emulator, the design should start from not placing real AWS keys in the same job.

The third is that pinning versions and receiving fixes do not go together. The documentation recommends pinning a version if a new one changes your test results, while also saying security fixes are only shipped in the latest version. How to treat a tool that releases several times a day in a CI that should stay stable is left to the user. Usage reporting is enabled by default, so depending on company policy you may also need a defined procedure for turning it off.

There is also the question of continuity. Pull requests are not accepted; updates are left to the agents. An AWS employee wrote on Hacker News that maintenance will continue, but a forum post is not a contractual support commitment. That said, the source is CC0 and you can keep a copy, so you can keep using it even if AWS stops providing it. What would hurt is losing pace with new AWS features.

It lands right as LocalStack went paid, and AWS benefits too

Even with these constraints, the tool’s arrival clearly moves interests. Let’s sort out who gains and who is squeezed.

The direct winners are development teams using AWS and companies left stranded by LocalStack’s move to paid plans. The cost and waiting time of creating resources in a test account for every integration test go away, along with charges for resources someone forgot to clean up. Because it runs in memory, you can also spin up an independent environment for each pull request. Python has long had mocking libraries such as Moto, but each language’s tooling is built differently, and flows that cross services were hard to follow.

AWS’s own aim becomes clearer when you look at how AI agents use it. The documentation lists “prototyping with AI coding agents” as a use case and lets you install an agent skill with one line. When an agent prototypes and an AWS runs locally, the code is written assuming AWS APIs from the start. One plausible reading is that the cloud that is easiest for agents to experiment with becomes the cloud most likely to be adopted.

The one squeezed is LocalStack. With an official alternative that is free and allows commercial use, it now has to show the value of its paid plans through fidelity, IAM simulation, persistent state and support contracts. Put the other way, the features AWS Emulator will lack for now are exactly LocalStack’s reasons to stay, and they are the axes along which companies will compare when deciding whether to switch.

Split tests into three stages and decide what the emulator handles

So how should a company that uses AWS fit it in? The conclusion is not to treat the emulator as a substitute for real AWS, but to add one stage between unit tests and verification on real AWS. The diagram below shows what each stage checks and what it leaves for the next.

Diagram splitting tests into three stages. Stage 1 checks code logic with unit tests and mocks. Stage 2 uses AWS Emulator on every PR to check create, describe and delete flows across services. Stage 3 uses a real AWS sandbox account to check IAM and resource policies, CloudFormation or Terraform, data-plane behavior and Region gaps, before release to production
The emulator reduces checks on real AWS but does not eliminate them. Permissions and IaC stay in stage 3.

Before adopting it, it helps to confirm the following.

  1. List the operations you use: Enumerate the AWS APIs your application calls, then use the evaluation suite manifest (a file recording which operations each test calls) and the per-release scores to check whether fidelity tests exist for them and whether they pass. The agent skill also has a feature for checking whether your project is likely to work.
  2. Decide which tests the emulator may fail: Hand the emulator create, read and delete flows, input validation errors, and message passing across services. Keep permissions, IaC deployment and data-handling details in the real AWS stage.
  3. Write expected values to match real AWS: Tests written to match the emulator’s current responses will break as fidelity improves. The documentation also recommends using AWS behavior as the expected value.
  4. Do not run it where real AWS keys live: Set AWS_ENDPOINT_URL inside the script that runs the tests, and clear real AWS credentials before running. Do not run it on a shared development server.
  5. Decide how to upgrade: Pin the version day to day, and at a fixed interval, such as weekly, move to the latest version and check the difference in results. Build your test data without using real customer data from production.

The next fork: whether IAM simulation and persistent state arrive

From here on, the text includes the author’s speculation rather than confirmed facts.

AWS has said it will share more at the upcoming re:Invent. What I’m watching is not the growth of the fidelity number but whether the limitations the documentation lists, IAM evaluation and persistent state, get addressed. If both arrive, the scope stage 2 can take on widens, and many of LocalStack’s reasons to keep its paid plans would be shaken at the same time. If they don’t, the sensible position for now is to use it as “a tool for running create, read and delete flows fast.”

Looking further out, how much an official emulator reproduces could become a competitive factor between clouds. Microsoft’s Azurite and Google Cloud’s Pub/Sub and Firestore emulators stop at individual services, but if the reading that the cloud easiest for agents to prototype on gets adopted more turns out right, other vendors will have reason to move toward reproducing the whole cloud locally. And this way of building, “given a spec and the real thing, agents can build a replica,” could also be reused to build test stand-ins for in-house core systems. Even then, what decides quality is not the replica’s code but who owns the tests that check it against the real thing.

The author’s view

What I find most telling about AWS Emulator is that it shipped without hiding the fact that no human reviewed it. What vouches for quality is not the code but the tests verified on real AWS and the gates that keep those tests from breaking. That asks the receiving side, the people who accept what agents write, to think the same way. Unless your own CI can say what has been checked and what has not, a free and fast tool only adds a false sense of security that “the tests passed.”

So the adoption decision should not be “can it replace LocalStack?” but “of the operations we use, how much is backed by tests?” Just being able to run create, read and delete flows locally for every PR does a lot to reduce checks on real AWS. On top of that, verify permissions and IaC against the real thing. Deciding in advance where the emulator can be green while production goes red is the condition for using this tool well.

References

Frequently asked questions

Is AWS Emulator free for commercial use?

Yes. The source is published under CC0 (equivalent to public domain), and it needs neither an AWS account nor any fees. The official documentation does say not to use it in production or to check security settings such as IAM.

Can AWS Emulator replace LocalStack?

It is a candidate for tests centered on creating, reading and deleting resources in SQS, DynamoDB, S3 and similar services. But it does not evaluate IAM policies, distinguishes only one account and one Region, and loses its state when stopped. CloudFormation fidelity was below 20% at launch, so compare the two on the assumption that IaC validation and security checks stay on real AWS.

If my tests pass on AWS Emulator, will the code work in production?

There is no guarantee. At launch only about 56% of fidelity tests matched, and requests that IAM should deny still go through. Put the emulator in front of your integration tests, and check permissions, IaC and data-plane behavior in a real AWS test account.