> ## Content Index
> Fetch the complete content index at: https://www.stirup.si/llms.txt
> Use this file to discover other available public pages before exploring further.

# AWS Emulator Installation and Execution Modes
- URL: https://www.stirup.si/aws-emulator-installation-and-execution-modes-78b89868/
- Published: 2026-11-12T04:04:02.000Z
- Updated: 2026-11-12T04:04:02.000Z
- Description: The AWS emulator can be installed and executed in multiple modes, including server mode with CLI and SDK support, and embedded mode where the emulator is compiled directly into the test binary.
- Author: Satish Das
- Tags: Community, News, Stirup Research

## Installation and Execution Modes

The AWS emulator can be installed and executed in multiple modes. To begin, use the command `aws agent-toolkit add-skill --skill-name aws-emulator --region us-east-1` to add the emulator skill. The server mode supports both CLI and any SDK, and on Linux, users can install the emulator by downloading and running the RPM or Debian package `aws-emulator`. For embedded mode, the emulator is compiled directly into the test binary, meaning the prerequisites and build-cost guidance also apply here. Building from source is supported on Linux for x86\_64 and aarch64 architectures. For Windows and macOS, the recommended approach is to use the Docker path provided. These instructions are based on the available documentation and do not include performance metrics or testing results.

## Build and Run Instructions

To build and run the AWS emulator, use the following commands:

- `cargo build -p aws-emulator-router` compiles the emulator.
- `cargo run -p aws-emulator-router` starts the emulator, which serves HTTPS on `127.0.0.1:9297` using a self-signed certificate.

When using embedded mode, the emulator is compiled into your test binary, meaning your project's first `cargo test` will build the emulator's service crates alongside your code. To optimize build times, it is recommended to reuse a single `CARGO_TARGET_DIR` across projects, cache the `target/` directory in CI environments, and pin the emulator to a specific release commit to avoid rebuilding it with every change.

## Telemetry Configuration Options

The AWS emulator provides several telemetry configuration options to control data collection. By default, the emulator collects telemetry data with strict data minimization in mind, preventing identification or attribution to specific users, accounts, or organizations [Hacker News](https://github.com/aws/aws-emulator?ref=stirup.si). Users who prefer not to send any telemetry data can disable this feature using a command-line option. To do so, start the emulator with the `--telemetry` option (short form `-t`) set to `off` [Hacker News](https://github.com/aws/aws-emulator?ref=stirup.si). For example: `aws-emulator --telemetry off` [Hacker News](https://github.com/aws/aws-emulator?ref=stirup.si). In a containerized environment, the same option can be added after the image name in the `docker run` command.

## Telemetry Control via Environment and Configuration

To control telemetry in the AWS emulator, users can utilize an environment variable named `EMULATOR_TELEMETRY`. Setting this variable to `off`, `false`, or `0` disables telemetry collection before starting the emulator. This configuration applies to every emulator instance launched from the same shell session, ensuring consistent behavior across runs. Conversely, setting the variable to `on`, `true`, or `1` enables telemetry. This method provides users with direct control over data collection, aligning with privacy preferences and operational requirements. The approach is straightforward and does not require changes to the emulator's internal configuration files.

## Embedded Mode Telemetry Configuration

To configure telemetry settings in embedded mode for the AWS emulator, users can disable telemetry by modifying the emulator's configuration file. On Linux and macOS, the file is located at \~/.aws/emulator/config.toml, while on Windows, it is found at %USERPROFILE%\\.aws\\emulator\\config.toml. Within the configuration file, adding the section `[telemetry]` with the line `enabled = false` ensures that telemetry is turned off for every run on the machine. Alternatively, in embedded mode, telemetry can be disabled directly through the configuration API by specifying the appropriate options when initializing the emulator. These methods provide users with flexibility in managing telemetry data according to their specific needs and privacy preferences.

## Sources and reporting notes

- [Hacker News](https://github.com/aws/aws-emulator?ref=stirup.si)

Based on published source material. No independent hands-on testing is claimed.