AWS Emulator: First Impressions, Checked Against Real AWS
By Fabio Douek
Human-led, AI-assisted. Research and implementation done with AI tools, led, tested and edited by me. How posts are labeled
Jump to section
- Overview
- Architecture
- Setup
- Step 1: Build the image
- Step 2: Run it
- Step 3: Point the CLI and SDKs at it
- How It Works
- What a running emulator gives you
- The fidelity scores, per release
- Same calls, emulator vs AWS
- What it doesn’t do yet: 501
- IAM: partial, and not quite as documented
- One emulator per job
- Testing an app against it
- Terraform and CloudFormation
- Cleanup
- Verdict
- What works
- What doesn’t
- How it compares
- Who should use it
Explain (TLDR) like I am...
Imagine a toy kitchen that looks and works almost exactly like the real one. You can practise making pancakes all day, spill flour everywhere, and nobody gets a bill for the eggs, because none of it is real.
AWS built a toy copy of its cloud that runs on your own computer. I checked it against the real one: when I asked both the same 43 questions, 39 answers matched exactly. A few things are still missing, and when you ask for one, the toy kitchen says so instead of guessing.
AWS Emulator is a free, locally run copy of the AWS APIs, released into the public domain under CC0 and maintained by AI agents rather than by human contributors. It needs no AWS account, keeps everything in memory on the developer's machine, and sends anonymous usage telemetry unless that is switched off.
The material caveat is in AWS's own security page: it is not a place to test permissions, bucket policies or any security control. My run confirmed that. Some services enforced IAM, one did not, and a bucket policy behaved differently from what the documentation says. Treat a passing local test as evidence about logic, not about access control.
Think of the emulator as a rapid screening test that runs on your laptop. It gives an answer in a few milliseconds instead of a round trip to AWS, and in my run its answers agreed with real AWS on 39 of 43 DynamoDB, S3 and SQS calls, error messages included.
The known false negatives sit in two places. Operations it hasn't implemented yet fail loudly with a 501, which is the safe kind of failure. Permissions are the risky kind: IAM is only partly enforced, so a test that passes locally says nothing about whether the real policy allows the call. Confirm those on AWS before release.
Notice how much of the friction in cloud testing is waiting and worrying: waiting for a deploy, worrying about the bill, worrying that a test account is shared with someone else. A local copy that starts in a third of a second and forgets everything when it stops takes a lot of that weight off.
The new anxiety is trust. The code was written by AI agents and changes several times a day, and some teams will feel uneasy about that. The healthy response is to check it, the way I did: run the same calls on both and see where they agree before relying on either.
Treat the emulator like a practice amp at home. It has the same knobs as the stage rig and most of the tone, so you can run the set over and over at full speed without booking the hall, and every take sounds close to the gig.
The difference shows on a few songs. Some effects aren't wired yet and the amp tells you so with a 501 instead of faking it, and the security rack is only half built. Rehearse the parts here, then do a sound check on the real stage before the show, especially for anything involving permissions.
The story is fast feedback without an AWS account. Teams and coding agents can run tests against AWS's own emulator of its APIs on a laptop or in CI, each run with its own isolated copy, and pay nothing for it. In my run a pytest suite started its own emulator and passed in ten seconds.
The positioning is "the same answers as AWS, locally", and the proof point is measurable: 39 of 43 calls matched real AWS exactly. Keep the claim honest. It is not a security test bed, and some Terraform provider versions trip on it.
Overview
On November 11, AWS made AWS Emulator generally available: a local emulator of the AWS APIs that you point your existing SDK and CLI calls at, with no AWS account, no deployment and no service fee. It runs as one HTTPS endpoint on 127.0.0.1:9297, keeps every resource in memory until you stop it, and gives each copy its own port, keys and state, so parallel test runs, CI jobs and coding agents don’t share anything. Operations it doesn’t support yet return 501 Not Implemented instead of guessing.
Two things make it unusual. First, the services are generated from the AWS API models and, according to the AWS News Blog, built and maintained by agents running on Amazon Bedrock AgentCore, with each change run through fidelity tests before it is published. The GitHub repository accepts no pull requests, ships several releases a day (116 in the 18 days after launch, often two hours apart), and attaches a scores.json.gz fidelity report to each one. Second, it lands in a gap: LocalStack archived its free Community edition on March 23, 2026 and now requires an account and an auth token, so a free, CC0-licensed emulator from AWS itself fills a hole that teams had been plugging with Floci, MiniStack, LocalEmu or moto.
AWS’s product page says the emulator “returns the same result as AWS for valid calls and the same errors for invalid ones”. I wanted to check that claim, so I ran release v1.0.821 (published November 29, 2026) in Docker on an Apple silicon Mac and sent the same 43 DynamoDB, S3 and SQS calls to it and to real AWS in us-west-2, including 20 that were meant to fail. 39 came back identical, down to the error message text. I also checked what a missing feature looks like, how much IAM it enforces (some, unevenly), how isolated parallel copies are, how a pytest suite uses it, and whether Terraform and CloudFormation work against it.
Architecture
Everything happens on your machine. Your code keeps its normal SDK calls; four environment variables send them to https://127.0.0.1:9297 signed with a key the emulator generated at startup. The router works out the service from the request’s SigV4 scope and hands it to one of 446 service crates in the repository (one per AWS API model at v1.0.821). Each crate keeps its state in memory for a single account, 000000000000. The only control route is a health check: there is no reset and no persistence, so a restart is how you get a clean slate.
The bottom row is what makes it a moving target. Agents turn the API models into code, a pipeline runs fidelity tests whose expected answers were checked on real AWS in us-west-2, and passing builds become GitHub releases with their fidelity scores attached. The Dockerfile in the user guide installs the LTS/latest package, so two builds a few hours apart can give you two different emulators. Everything below is v1.0.821; to pin it, point the Dockerfile at the versioned package (.../LTS/aws-emulator-1.0.821-1-aarch64.rpm) instead of latest.
Setup
You need Docker and nothing else: no AWS account, no sign-up, no token. On Linux you can install an RPM or deb package and skip Docker entirely. AWS doesn’t publish a container image, so on macOS and Windows you build one from the short Dockerfile in the user guide. The only real AWS credentials in this post are for the AWS half of the parity test.
Step 1: Build the image
On Apple silicon, swap the package for the Arm one:
FROM public.ecr.aws/amazonlinux/amazonlinux:2023-minimal
ADD https://downloads.aws.com/aws-emulator/packages/aws-emulator/LTS/latest/aws-emulator-aarch64.rpm /tmp/aws-emulator.rpm
RUN rpm -i /tmp/aws-emulator.rpm && rm /tmp/aws-emulator.rpm \
&& mkdir -p /home/emulator && chown 1000 /home/emulator
USER 1000
ENV HOME=/home/emulator EMULATOR_BIND_ADDRESS=0.0.0.0
ENTRYPOINT ["aws-emulator"]
docker build -t aws-emulator . took 38 seconds on my Mac mini. The image is 608 MB (2.1 GB once unpacked).
Step 2: Run it
mkdir -p ~/.aws/emulator
docker run --rm --memory=2g --memory-swap=2g -p 127.0.0.1:9297:9297 \
-e HOME="$HOME" -e EMULATOR_TELEMETRY=off \
-v "$HOME/.aws/emulator:$HOME/.aws/emulator" aws-emulator -p 9297
The volume lets the emulator write its credentials and CA certificate where your SDK can read them, and -e HOME makes the paths inside the container match the host’s. Telemetry (anonymous usage and error data) is on by default; I turned it off.
127.0.0.1: in -p. Inside the container the emulator listens on 0.0.0.0, and its own startup log warns that other machines can then reach it, including the ports it opens for resource endpoints, which check no signature. -p 9297:9297 on its own publishes it to your whole network.
Step 3: Point the CLI and SDKs at it
The companion’s emu-env.sh sets the variables from the user 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 AWS_DEFAULT_REGION=us-east-1
unset AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_SESSION_TOKEN AWS_PROFILE
Then aws sts get-caller-identity should print account 000000000000. If it prints your own account, your calls are going to AWS. Use the IP, not localhost: with a host name, some SDKs switch S3 to virtual-hosted addressing, which the emulator doesn’t accept.
How It Works
Each part below is a script in the companion repo, and the output is from the runs recorded for the video on November 29.
What a running emulator gives you
01_start.py starts the container and polls the health route:
== docker run aws-emulator -p 9297 ==
✓ healthy after 0.33 s on https://127.0.0.1:9297
· version 1.0.821, image 608 MB
· memory at idle: 202.2MiB
· files: ca.pem, config, emulator_credentials, truststore.p12
The first start after a build took 1.4 seconds; after that, 0.3 seconds every time. Idle memory was about 200 MiB, a little above the 160 MiB the docs quote. 02_how_it_works.py looks at what it wrote: four files, all mode 600, with an access key that starts with EMULATOR (20 characters) and a 40-character secret, both new on every start. sts get-caller-identity returns arn:aws:iam::000000000000:user/emulator, and GET /__admin/health answers 200 ok.
The fidelity scores, per release
AWS doesn’t publish a list of supported services. Instead, each GitHub release carries scores.json.gz: one entry per test unit, with the services it touched and whether the emulator’s answer matched AWS’s. The script sums the file for the running version:
| Service | Units passing | Share |
|---|---|---|
| DynamoDB | 2,923 of 3,322 | 88.0% |
| SQS | 1,661 of 1,977 | 84.0% |
| KMS | 567 of 698 | 81.2% |
| S3 | 3,091 of 3,808 | 81.2% |
| IAM | 1,250 of 1,540 | 81.2% |
| STS | 263 of 332 | 79.2% |
| Lambda | 3,073 of 4,078 | 75.4% |
| EC2 | 1,951 of 2,725 | 71.6% |
| CloudFormation | 1,611 of 4,994 | 32.3% |
| All units, v1.0.821 | 41,397 of 53,816 (359 services) | 76.9% |
A unit that touches several services counts once for each in the rows, so they’re indicative, not exact. Only 830 of the failing units failed with NotImplemented (842 got an HTTP 501); the other failures were answers that differed from AWS. The trend matters more than any one number: a tally of the launch release, v1.0.322 on November 11, found 56.5% of units passing. Eighteen days and 116 releases later (the version number skips, so it went up by about 500), it’s 77%.
Same calls, emulator vs AWS
This is the test I cared about. 03_parity.py runs one fixed script of 43 calls twice, once against the emulator and once against real AWS in us-west-2, with the same resource names on both sides. About half of the calls are meant to fail, because error handling is where mocks usually lie: a table name that’s too short, a conditional write that loses, a query on a non-key attribute, a transaction whose condition check fails, a 26-item batch, an S3 upload with the wrong Content-MD5, an SQS delay of 1,000 seconds. On the SQS side it also checks timing behavior: a message stays invisible for its two-second visibility timeout, then moves to the dead-letter queue after one receive.
I turned off botocore’s client-side parameter validation so the server, not the SDK, produced every error. 04_diff.py then compares the two runs call by call: HTTP status, error code, error message, and a few response fields (items, attributes, ETags, message MD5s, counts).
39/43 identical, 2 differ only by the endpoint URL, 1 same error code with other text, 1 different result
emulator 9.3 s, AWS 25.4 s for the same 43 calls
The four that weren’t identical:
| Call | Emulator | AWS |
|---|---|---|
S3 CreateBucket | Location: https://127.0.0.1:9297/<bucket>/ | Location: http://<bucket>.s3.amazonaws.com/ |
SQS CreateQueue | https://127.0.0.1:9297/<account>/<queue> | https://sqs.us-west-2.amazonaws.com/<account>/<queue> |
DynamoDB BatchWriteItem, 26 items | ValidationException, 12,438 characters | the same 12,438 characters, with pk and sk listed in another order |
S3 CreateBucket named test | 200 OK | 409 BucketAlreadyExists |
The first two are the endpoint showing through, which is expected. The third surprised me: for too many items in a batch, DynamoDB echoes your whole request back in a Java toString() dump, WriteRequest(putRequest=PutRequest(item={pk=AttributeValue(s=b0, n=null, ..., and the emulator reproduces it character for character. Only the hash-map order of the two keys differs. The last one is the single-account design: bucket names are global on AWS, and someone took test long ago, but in the emulator you’re the only account there is. Code that creates buckets with fixed names will pass locally and fail on AWS.
Everything else matched exactly, including ConditionalCheckFailedException’s “The conditional request failed”, the transaction’s [None, ConditionalCheckFailed] cancellation reasons, IllegalLocationConstraintException for a us-west-2 bucket created without a location, BucketAlreadyOwnedByYou on a second create, the 206 range read, and the dead-letter queue showing ApproximateReceiveCount: 2. The emulator even holds a new table in CREATING for about three seconds before it turns ACTIVE (AWS took 6.6 seconds), so code that forgets to wait for the table fails locally too.
The median call took 2.8 ms on the emulator and 182 ms to AWS from my machine. The SQS timeouts and the table’s wait for ACTIVE set the floor on both runs.
What it doesn’t do yet: 501
05_not_implemented.py calls things the v1.0.821 scores list as not implemented:
| Call | Status | Code |
|---|---|---|
Bedrock AgentCore ListCodeInterpreters | 501 | NotImplemented |
Backup DescribeGlobalSettings | 501 | NotImplemented |
Comprehend DetectKeyPhrases | 501 | NotImplemented |
RDS DescribeSourceRegions | 501 | NotImplemented |
MemoryDB DescribeServiceUpdates | 501 | NotImplemented |
S3 ListObjectsV2, plain | 200 | |
S3 ListObjectsV2 with OptionalObjectAttributes | 501 | NotImplemented |
KMS Sign with an RSA_2048 key | 200 | |
KMS Sign with an ML_DSA_44 key | 501 | NotImplemented |
DynamoDB ExportTableToPointInTime, DynamoDB JSON | 200 | |
DynamoDB ExportTableToPointInTime, ION | 501 | NotImplemented |
| A service with no model | 404 | UnknownService |
Some coverage reports said 503; it’s 501. The gaps aren’t only whole operations: single features of implemented operations get the same treatment, and the message names the feature, for example “operation ExportTableToPointInTime with ExportFormat ION is scaffolded but not implemented in this emulator”. This is the right failure mode. A test that hits a gap fails at once with a clear reason, instead of passing against a guess.
IAM: partial, and not quite as documented
The security page is blunt: don’t use the emulator to test IAM policies, resource policies, KMS key policies or any security control. It says some services evaluate IAM for users you create inside the emulator, “but not the same way as AWS”, and that it “never denies a request signed with its own key”. 06_iam.py checks how that plays out. First, requests the emulator didn’t sign for:
| Request | STS | S3 |
|---|---|---|
| No signature | 403 MissingAuthenticationToken | 404 Not Found |
| A key it never issued | 403 InvalidClientTokenId | 403 InvalidAccessKeyId |
| Its key, wrong secret | 403 SignatureDoesNotMatch | 403 SignatureDoesNotMatch |
Five of the six are the codes AWS itself sends; the CLI reference says a foreign key gets AccessDenied, but this release answered like AWS. The unsigned S3 request is the exception: without a signature the emulator can’t tell which service you meant, so it answers 404 (real AWS answers that request with a 307 redirect). Then two IAM users created inside the emulator, one with no policy and one with an explicit deny-everything policy:
| Call | Emulator’s key | No-policy user | Deny-all user | Expected on AWS |
|---|---|---|---|---|
sts get-caller-identity | allowed | allowed | allowed | allowed |
s3 list-buckets | allowed | AccessDenied | AccessDenied | denied |
s3 create-bucket | allowed | AccessDenied | AccessDenied | denied |
dynamodb list-tables | allowed | AccessDeniedException | AccessDeniedException | denied |
sqs create-queue | allowed | allowed | allowed | denied |
iam create-user | allowed | AccessDenied | AccessDenied | denied |
S3, DynamoDB and IAM enforced the policies; SQS didn’t. And a bucket policy denying s3:GetObject to every principal blocked the emulator’s own key too, with a 403, which contradicts “never denies a request signed with its own key”. Together they show why AWS says not to rely on it: you can’t predict, service by service, whether a permission bug will surface locally, so a passing local test says nothing about your real policies.
One emulator per job
07_isolation.py starts three emulators on ports 9301 to 9303, creates a bucket with the same name in each, and writes a different file into each one:
== start three emulators ==
✓ port 9301: healthy after 0.30 s, key eace30d0
✓ port 9302: healthy after 0.26 s, key 053133f0
✓ port 9303: healthy after 0.31 s, key 23233106
· all three up in 0.9 s
...
✓ 9301's key on port 9302: 403 InvalidAccessKeyId
...
== stop 9302, start it again ==
✓ stopped: ~/.aws/emulator/9302 holds 0 files (keys, CA and config deleted)
✓ restarted in 0.31 s, key 053133f0 -> daa460d4
✓ port 9302 buckets after restart: 0
✓ port 9301 buckets, untouched: 1
(The keys are shown as short hashes, not printed.) Each emulator saw only its own bucket and file. A key from one is refused by another, and a stopped emulator leaves no keys behind. Each container sat at about 200 MiB. That’s the property AWS pitches for coding agents and CI: give every job its own emulator and nothing leaks between them.
Testing an app against it
The companion has a small order service, app/orders.py: orders in DynamoDB with a conditional write, work in SQS, receipts in S3. Its pytest fixture starts a fresh emulator on a free port for the session and stops it at the end:
@pytest.fixture(scope="session")
def emulator():
port = free_port()
start_emulator(port, extra=["--idle-timeout", "600"]) # stops itself if a crashed run never stops it
yield port
stop_emulator(port)
The six tests cover the happy path, a duplicate order (the conditional write’s ConditionalCheckFailedException becomes a DuplicateOrder), a redelivered message that must ship once, a missing receipt (NoSuchKey), a misspelled table name (ResourceNotFoundException, as on AWS), and a message that comes back after its visibility timeout:
==================================================== 6 passed in 9.95s =====================================================
That includes starting the emulator and waiting for the table. The slowest parts were the fixture (3.4 seconds, most of it the table’s three seconds in CREATING) and the visibility-timeout test, which has to wait for the timeout. A mock like moto would be faster, but it would return whatever you configured. Here the same ConditionalCheckFailedException and ResourceNotFoundException that AWS returns come from an HTTP server, through the real SDK, with real signing.
Terraform and CloudFormation
09_iac.sh applies the same five resources (an S3 bucket with versioning, a DynamoDB table with point-in-time recovery, an SQS queue with a dead-letter queue) with two versions of the Terraform AWS provider, then deploys the same bucket, table and queues as a CloudFormation template (without point-in-time recovery on the table):
== terraform apply, AWS provider 5.100.0 ==
Apply complete! Resources: 5 added, 0 changed, 0 destroyed.
took 51 s
Destroy complete! Resources: 5 destroyed.
== terraform apply, AWS provider 6.74.0 ==
aws_dynamodb_table.orders: Creation complete after 6s
aws_sqs_queue.dlq: Creation complete after 25s
aws_sqs_queue.work: Creation complete after 25s
Error: bucket m2c-tf-receipts, S3 Control ListTagsForResource: request send failed to host 000000000000.127.0.0.1:9297
destroy: the same S3 Control error, nothing destroyed
== cloudformation deploy, the same resources ==
Successfully created/updated stack - m2c-cfn
took 8 s
With provider 5.100.0, everything was created and destroyed. With 6.74.0, the latest, the bucket fails: the provider reads bucket tags through the S3 Control API, which puts the account ID in the host name (000000000000.127.0.0.1). The user guide lists S3 Control as something that can’t reach the emulator, and the same failure then blocks terraform destroy. If you use Terraform with S3 buckets, pin provider 5.x for now. The 25 seconds per SQS queue are the provider’s own wait for queue attributes to settle: its debug log shows a handful of GetQueueAttributes calls, each answered in about a millisecond.
CloudFormation, at 32% one of the lowest scores among the major services, created all four resources in 8 seconds, with the redrive policy and bucket versioning set as written, and deleted them cleanly. A simple stack works; the score says the long tail of resource types and stack features doesn’t yet.
Cleanup
Stopping the containers deletes every resource and the keys. The parity script deletes its AWS resources at the end of its own run (one table, one bucket and two queues, alive for about 25 seconds), and 10_cleanup.sh checks for leftovers:
./10_cleanup.sh --image # stop every emulator, delete their folders and the image, delete anything
# named m2c-emu-parity-* left on AWS, and print what's left
rm -rf ~/.aws/emulator # optional
== real AWS, us-west-2: anything named m2c-emu-parity-* ==
buckets: 0, tables: 0, queues: 0
Verdict
For DynamoDB, S3 and SQS, AWS Emulator is close enough to AWS that it didn’t just return the right error codes, it returned AWS’s exact error text. Where it has no answer, it says so with a 501. It’s free, starts in a third of a second, and one machine can run as many isolated copies as you have jobs.
What works
- Fidelity where it counts: 39 of 43 calls identical to AWS, 18 of them error responses. Of the other four, two differ only by the endpoint, one by the order of two keys in an error message, and one by the single account.
- Honest gaps: a 501 with a message that names the missing operation or feature, not a fake success.
- Isolation by default: separate port, keys and state per emulator, 0.3-second starts, about 200 MiB each, and keys that work nowhere else.
- Transparency: every release ships its own fidelity scores, so you can check a service before you depend on it.
- No accounts, no tokens, no fee, and a CC0 license.
What doesn’t
- IAM is unpredictable, as AWS warns: enforced for S3, DynamoDB and IAM in my run, not for SQS, and a bucket policy that the docs say shouldn’t apply to the emulator’s key did.
- One account: global names like S3 buckets never collide locally.
- Terraform AWS provider 6.x fails on S3 buckets through S3 Control. Provider 5.100.0 works.
- No persistence and no reset route. Fine for tests; a restart is the reset.
- Docker on macOS and Windows means building your own image, and a build installs whatever release is newest. Pin the RPM version if you need repeatable CI.
- Telemetry is on by default.
- A moving target: several releases a day, and no pull requests. Bugs go in as issues (633 open as of today) and the agents pick them up.
How it compares
| AWS Emulator | LocalStack (2026) | MiniStack | moto | |
|---|---|---|---|---|
| Who | AWS, code written by agents | LocalStack, commercial | Community | Community, since 2013 |
| Price | Free, no account | Free Hobby plan for non-commercial use; paid plans from $39 a month per license | Free | Free |
| License | CC0 1.0 | Apache-2.0 code, archived; the product needs an account and token | MIT | Apache-2.0 |
| Endpoint | HTTPS 127.0.0.1:9297 | localhost:4566 | localhost:4566 | In-process, or a server mode |
| Fidelity | Published per release (77% at v1.0.821) | Varies by service and plan | Varies; real Postgres and Redis behind some services | A mock; returns what’s modelled |
| Persistence | None | Paid plans | Opt-in | None |
| IAM | Partial, not for security tests | Plan-dependent | Opt-in | Very basic, opt-in |
Sources: the comparison on AWS Builder Center, MiniStack, and the research notes for this post. Migrating from LocalStack is more than a port change: HTTPS with a per-run CA, generated credentials and no saved state. LocalEmu, which uses the “AWS emulator” name, is a third-party fork of LocalStack Community, not this project.
Who should use it
Use it now for integration tests of code that calls DynamoDB, S3, SQS and the other high-scoring services, in CI and on laptops, and as the sandbox for coding agents: their mistakes come back as real AWS errors, at local speed, against an account that doesn’t exist. Check the release’s scores for anything else you rely on. Keep a real-AWS stage for permissions, networking, quotas and anything with a global name, because the emulator can’t tell you about those, and it says so itself.
The my2cents.ai email
AI and cloud tools, tested for real. In your inbox once a week.
The week's hands-on tests and the launches that matter, in one email.