AWS Launches Open-Source AWS Emulator for Local Cloud Testing
AWS announced AWS Emulator, a local emulator for Amazon Web Services that developers run on their own machines. The AWS Command Line Interface, AWS SDKs, and coding agents communicate with it over a local HTTPS endpoint using the same AWS APIs used in the cloud. The emulator carries no additional service fee, and customers pay only for AWS resources when they deploy on AWS. Its source code is available on GitHub. Linux users install it from RPM or Debian packages, while macOS and Windows users run it in Docker.
After installation, developers start the emulator and point their tools at the local endpoint. On startup, AWS Emulator generates its own credentials, a config file, and a certificate, writing them to ~/.aws/emulator/9297/. Environment variables direct the AWS SDK to the laptop instead of AWS, leaving application code unchanged. Existing tests, CLI scripts, and coding agents continue working as before. A unit test that creates an Amazon DynamoDB table, writes an item, and reads it back runs locally without deployment.
The emulator is implemented in Rust to remain light on CPU and memory on a laptop. It supports the APIs of AWS services that have an API model in the AWS API models repository on GitHub. Because it is built from the same models the AWS SDKs use, requests and errors have the same shape as on AWS. AWS recommends it for developers working with coding agents such as Kiro or Claude Code to test AWS interactions of real complexity locally.
In a getting-started example on Amazon Linux 2023, the package adds the aws-emulator command to /usr/bin/. Starting the emulator serves HTTPS on 127.0.0.1:9297, reachable only by the local computer, and writes logs as JSON lines. The emulator generates new keys each time it starts, with access key IDs beginning with EMULATOR, and it rejects requests signed with any other keys. It uses a single account, 000000000000, and exposes a __admin/health endpoint on the same port.
AWS measures fidelity directly with fidelity tests, short programs that use an AWS SDK to run a workflow and assert how AWS behaves. Each test is verified against real AWS and passes only if the emulator matches AWS on response status code, body, exact error code and message, and created resources and data. With each release, AWS publishes how many fidelity tests pass for each service as k of n. The public aws-emulator-evaluation-suite repository on GitHub includes tests that do not pass yet. If an operation is not implemented, the emulator returns HTTP 501 Not Implemented.
AWS Emulator is built and maintained by agents from the AWS API models using Amazon Bedrock AgentCore Runtime Instances, AWS CodePipeline, and AWS CodeCommit. One group of agents looks for gaps by comparing emulator responses against real AWS and statically comparing code against published Smithy models. Another group writes tests, implements behavior, and reviews changes for correctness, performance, and security. An independent security agent reviews changes adversarially. The emulator does not evaluate IAM policies the way AWS does, so a request AWS denies might succeed in the emulator. AWS Emulator is generally available today.
Source credits
By Daniel Abib from AWS News Blog. Edited by SetuGeo.