The Spectrum Dispatch News

technology

AWS Releases Official Emulator for Local Testing Without AWS Account

The AWS Emulator lets developers test software locally using emulated AWS APIs, reducing development costs and eliminating the need for an active AWS account during testing.

AWS Releases Official Emulator for Local Testing Without AWS Account

AWS has released an official emulator that allows developers to test their software against AWS APIs on their own machines without making actual calls to AWS or requiring an AWS account, according to the project’s documentation on GitHub.

AWS Releases Official Emulator for Local Testing Without AWS Account

The AWS Emulator is a local program that serves an AWS API endpoint and has no graphical interface. After starting the emulator, developers set environment variables to point the AWS CLI or an AWS SDK at its endpoint, then run code as usual. According to the documentation, the emulator supports three deployment modes: running as a standalone local program, running in a Docker container, or running in embedded mode where the emulator is compiled directly into test binaries.

The tool is designed specifically for building and testing workflows. According to the source material, it should not be used for production workloads or security testing. AWS notes that there is no additional service fee for using the emulator—developers only pay for AWS resources when they deploy to actual AWS infrastructure.

The emulator uses one crate per AWS service, according to its repository structure. Each service includes a Smithy model that drives the wire protocol, request routing, and in-memory state management. The repository tracks fidelity gaps—the differences between emulator behavior and actual AWS behavior—publishing fidelity scores with each release and maintaining a list of APIs and behaviors that don’t yet work.

Installation options include installing prebuilt RPM or Debian packages on Linux, running the emulator in a Docker container on Windows or macOS, or installing it as a dev-dependency for embedded mode. Building from source requires a Rust toolchain with Cargo, a C compiler, at least 100 GB of free disk space, and a multi-core machine. According to the documentation, a cold full build of all services can take considerable time, though subsequent incremental builds are faster.

The emulator collects telemetry data by default to provide AWS with insights into usage patterns. According to the documentation, this telemetry uses strict data minimization and never includes request contents, responses, code, credentials, or personal data. Users can disable telemetry through command-line flags, environment variables, or configuration files.

Key facts

  • AWS Emulator allows local testing of AWS APIs without an AWS account or additional fees
  • The tool supports three deployment modes: standalone, Docker container, and embedded mode in test binaries
  • No additional service fees apply; users only pay for AWS resources when deploying to actual AWS
  • The emulator is for development and testing only, not for production workloads or security testing
  • Telemetry is enabled by default but can be disabled via command-line flags, environment variables, or configuration files
  • The repository tracks fidelity gaps and publishes fidelity scores with each release

Sources

← All posts