AWS releases free local emulator for API testing

AWS has released a free local emulator that lets developers test software using supported APIs for the company’s services without sending requests to the AWS cloud. The Register reports that the tool works as a local API endpoint but does not reproduce the entire cloud platform.
Developers can run the emulator on their own computers, development servers or in a continuous integration environment. Because test requests are not sent to AWS, using the tool is free. AWS wrote it in Rust. The company’s senior solutions architect, Daniel Abib, explained that the language helps reduce processor load and memory use on a laptop.
Reported by Mezha.
The emulator supports APIs for AWS services that have a corresponding model in the company’s API model repository on GitHub. The Register counted more than 1 300 entries there. However, the presence of an API does not mean it fully matches the cloud services: according to Abib, the level of compatibility varies by service and specific feature.
Among the limitations is its handling of IAM policies: the emulator does not evaluate them the way AWS does. In addition, each emulator instance behaves like a separate account, so there is no interaction between accounts or regions. AWS publishes compatibility assessments for different services and aims for valid API calls to return the same results, and invalid ones to produce the same errors, as they do in the cloud.
For AI coding agents, AWS also describes the aws-emulator skill. According to the company, it checks a project’s operations and resources against the emulator’s tests and compatibility assessments, then identifies which parts should work as expected and which may behave differently than they do in AWS.
AWS offers the emulator as RPM and Debian packages. Mac and PC users need Docker and the emulator image. According to Abib, after launching it, users can point their tools to the local endpoint. The emulator creates credentials, a configuration file and a certificate in the ~/.aws/emulator/9297/ directory. Environment variables direct the AWS SDK to the laptop rather than AWS, while the application code can remain unchanged.
After setup, users can run existing tests, CLI scripts and coding agents on their computer. As an example, AWS cites a unit test for Amazon DynamoDB: it creates a table, writes an item to it and reads it back. This scenario demonstrates local testing of API operations, but does not mean the emulator reproduces all the capabilities of DynamoDB or other AWS services.