BlockEdge

Technology and digital life

AWS releases a local emulator for more than 200 services, with uneven API coverage

AWS has released AWS Emulator, a local program that exposes HTTPS endpoints for the public APIs of more than 200 AWS services. Developers and coding agents can use it to create resources and test how applications handle service errors without provisioning cloud resources or paying for the operations they simulate. Setting AWS_ENDPOINT_URL directs the AWS CLI or an AWS SDK to the emulator without changing application code.

What a passing test means

AWS publishes versioned tests and per-service fidelity scores with each release. A test passes only if every call matches the live service, including its status code, side effects and exact error message. The suite includes tests the emulator does not yet pass. Unimplemented operations return HTTP 501 with the error code NotImplemented.

Developer Josh Builds reported that, by his count of the public tests, the emulator passed roughly two-thirds of the tests for S3, DynamoDB and SQS, but fewer than one in five for CloudFormation. Those figures describe the tests he counted, not the percentage of API operations implemented.

AWS says control-plane APIs, which manage resources, offer the closest match to its live services. Data-plane behavior and support for CloudFormation, Terraform and the AWS CDK vary by service. The emulator is therefore not a drop-in replacement for every workflow covered by local alternatives such as LocalStack, Floci and moto.

The emulator does not evaluate IAM or resource-based policies. AWS documentation says not to use it for security testing. Each process has one shared account and region, and its in-memory state disappears when the process stops. AWS has not tested it for long-running workloads or load testing.

Running the emulator

AWS distributes RPM and Debian packages for Linux on x86_64 and aarch64. For macOS and Windows, it supplies a short Dockerfile rather than a prebuilt image. Developer Yurii Serhiichuk separately published a container image and a GitHub Action to fill that packaging gap.

Rust tests can run the emulator inside the test process and connect its HTTP client to the AWS SDK for Rust. For coding agents, the aws-emulator skill can start the emulator and check a project against the published fidelity tests.

How AWS built it

According to Swaminathan Sivasubramanian, the emulator is written in Rust and generated from more than 400 Smithy API models that AWS publishes for its SDKs. AWS says agents wrote and tested the code. AWS senior principal engineer Matthew Goldberg described three teams: one wrote fidelity tests from the public API models and validated them against live AWS services, another replayed the tests and filed issues, and a third implemented fixes. Before merging, each change had to pass compilation, coding-standard, security and fidelity-regression checks. The work ran on Amazon Bedrock AgentCore Runtime Instances, AWS CodePipeline and AWS CodeCommit.

AWS Emulator is generally available with no additional service fee. Its source code is on GitHub under the CC0 1.0 Universal public-domain dedication, except for third-party code in vendor/, which uses the Apache License 2.0.