
Day 6 - AWS Just Released AWS Emulator
Explore the newly released AWS Emulator and learn how to test applications that interact with AWS services directly on your local machine
Series: 30 Days of AI Engineering on AWS (17 articles)
- …
- 7Day 6 - AWS Just Released AWS Emulator This article
Welcome to Day 6 of 30 Days of AI Engineering on AWS!
Something interesting happened yesterday.
On November 11, 2026, AWS introduced AWS Emulator, a local environment that allows developers to build and test applications against emulated AWS APIs without deploying resources to an actual AWS account.
Why is this interesting for AI engineers?
Because we're increasingly building applications with AI coding agents. These agents write code, interact with AWS services, execute commands, and attempt to fix errors.
But every development iteration involving a real cloud deployment can introduce waiting time, resource management, and costs.
AWS Emulator brings an important part of that development workflow onto your local machine.
Today, we'll explore what it does, understand its limitations, and build a small Python application using Boto3.
1. What is AWS Emulator?
AWS Emulator is a local emulator of AWS APIs.
It runs on your computer or in a development/CI environment and provides an HTTPS endpoint that your existing AWS SDKs and AWS CLI can communicate with.
The interesting part?
You can use familiar AWS APIs without changing your application code.
For example, consider this normal Boto3 code:
import boto3
s3 = boto3.client("s3")
print(s3.list_buckets())Normally, this communicates with Amazon S3 in AWS.
When configured to use AWS Emulator, the same client communicates with your local emulator instead.
You can create resources, perform operations, inspect their state, and test application behavior without deploying those resources to an AWS Region.
AWS Emulator:
- Runs locally.
- Does not require an AWS account for local testing.
- Works with AWS SDKs and the AWS CLI.
- Provides its own credentials and HTTPS certificate.
- Maintains emulated resource state while running.
- Has no additional service fee.
It is open source under the CC0 1.0 Universal dedication, except for third-party code in its
vendor/ directory, which uses Apache License 2.0.Official announcement:
2. Why is this important for AI Engineering?
Let's consider a practical scenario.
Imagine you're building an AI agent that processes customer orders.
The agent needs to:
- Receive an order.
- Store order information in Amazon DynamoDB.
- Upload an invoice to Amazon S3.
- Send a notification through another AWS service.
- Handle errors when an operation fails.
You can write the agent and its AWS integrations, but how do you test them?
One option is to deploy resources into AWS and execute integration tests there.
Another option is to mock every AWS response.
However, traditional mocks only return the behavior you program into them. They don't automatically reproduce the actual service's validation, resource state, and error behavior.
AWS Emulator provides another approach.
Your application can make real SDK calls against a local implementation of AWS APIs.
This gives developers and AI coding agents a faster feedback loop:
AI CODING AGENT | v Writes Code | v Runs Application | v AWS SDK / CLI | v AWS EMULATOR | v Checks API Behavior | v Returns Response | v Agent Fixes Errors | v Runs Tests AgainInstead of waiting for a cloud deployment after every change, developers can test many AWS interactions locally.
AWS specifically highlights this feedback loop for coding agents and application development.
3. Understand how AWS Emulator works
AWS Emulator exposes a local HTTPS endpoint.
By default:
https://127.0.0.1:9297When it starts, it generates:
- Its own access key and secret access key.
- An AWS SDK configuration file.
- A local certificate for HTTPS.
- An endpoint that accepts AWS API requests.
These files are stored under:
~/.aws/emulator/The emulator uses the same AWS API models that underpin AWS SDKs.
Where an operation is implemented, it aims to return the same results for valid requests and the same errors for invalid requests.
If an operation has not been implemented, it returns HTTP 501 with
NotImplemented .This distinction is important: AWS Emulator supports a broad range of AWS service APIs, but it does not mean every operation has complete behavioral support.
4. What are we building today?
Let's build a small local AWS integration test.
Our application will:
- Connect to AWS Emulator.
- Create an Amazon S3 bucket.
- Upload a text file.
- List the bucket contents.
- Download the uploaded object.
- Verify that the downloaded content matches the original.
We'll use:
Component | Technology |
|---|---|
Local AWS environment | AWS Emulator |
Programming language | Python |
AWS SDK | Boto3 |
AWS service | Amazon S3 |
Container runtime | Docker |
Testing | Python assertions |
We'll use Windows PowerShell commands for the setup, with the official Linux/macOS instructions available in the AWS documentation.
5. Install AWS Emulator on Windows
First, install Docker Desktop and make sure Docker is running.
AWS currently documents a Docker-based setup for Windows and macOS. It does not publish a ready-made Docker image; you build the image using the supplied Dockerfile.
Create a new folder:
mkdir aws-emulator-labcd aws-emulator-labCreate a file named
Dockerfile :FROM public.ecr.aws/amazonlinux/amazonlinux:2023-minimal
ADD https://downloads.aws.com/aws-emulator/packages/aws-emulator/LTS/latest/aws-emulator-x86_64.rpm /tmp/aws-emulator.rpm
RUN rpm -i /tmp/aws-emulator.rpm && rm /tmp/aws-emulator.rpm \ && mkdir -p /home/emulator && chown 1000 /home/emulator
USER 1000
ENV HOME=/home/emulator
EXPOSE 9297
ENTRYPOINT ["aws-emulator", "-b", "0.0.0.0"]If you're using an ARM-based machine, replace the package filename with:
aws-emulator-aarch64.rpmBuild the Docker image:
docker build -t aws-emulator .This downloads and installs the emulator inside the Docker image.
6. Start AWS Emulator
Create the local directory where the emulator will store its credentials and certificate:
New-Item -ItemType Directory -Force "$env:USERPROFILE\.aws\emulator"Start the emulator:
$port = 9297
docker run --rm --memory=2g --memory-swap=2g -p "127.0.0.1:${port}:${port}" ` -v "$env:USERPROFILE\.aws\emulator:/home/emulator/.aws/emulator" ` aws-emulator -p $portKeep this terminal running.
The emulator should now be available on your local machine.
Important: Bind the Docker port to
127.0.0.1 , as shown above. Do not expose the emulator to your entire network.7. Configure your AWS SDK to use the emulator
Open another PowerShell terminal.
We need to tell the AWS SDK to communicate with our local emulator instead of AWS.
Run these commands:
$env:AWS_ENDPOINT_URL = "https://127.0.0.1:9297"
$env:AWS_SHARED_CREDENTIALS_FILE = "$env:USERPROFILE\.aws\emulator\9297\emulator_credentials"
$env:AWS_CONFIG_FILE = "$env:USERPROFILE\.aws\emulator\9297\config"
$env:AWS_CA_BUNDLE = "$env:USERPROFILE\.aws\emulator\9297\ca.pem"
$env:AWS_EC2_METADATA_DISABLED = "true"
$env:AWS_DISABLE_HOST_PREFIX_INJECTION = "true"
$env:AWS_REGION = "us-east-1"
$env:AWS_DEFAULT_REGION = "us-east-1"These settings configure:
-
AWS_ENDPOINT_URL: Routes API requests to the local emulator.
-
AWS_SHARED_CREDENTIALS_FILE: Uses emulator-generated credentials.
-
AWS_CONFIG_FILE: Uses the emulator's SDK configuration.
-
AWS_CA_BUNDLE: Allows the SDK to trust the emulator's HTTPS certificate.
-
AWS_EC2_METADATA_DISABLED: Prevents credential lookup through EC2 instance metadata.
-
AWS_DISABLE_HOST_PREFIX_INJECTION: Prevents SDK endpoint host-prefix changes that can interfere with local routing.
Also remove any real AWS credentials from this test shell:
Remove-Item Env:AWS_ACCESS_KEY_ID, Env:AWS_SECRET_ACCESS_KEY, Env:AWS_SESSION_TOKEN, Env:AWS_PROFILE -ErrorAction SilentlyContinueThis matters because environment credentials can take precedence over the emulator's credentials.
8. Verify that you're connected to AWS Emulator
Before running application code, confirm that your requests are reaching the emulator.
Install the AWS CLI if you haven't already.
Run:
aws sts get-caller-identityA successful emulator response should contain:
{ "Account": "000000000000", "Arn": "arn:aws:iam::000000000000:user/emulator"}The account ID
000000000000 is the emulator's local account identifier.If you see your actual AWS account ID, stop and check your environment variables before continuing.
This is an important safety check.
9. Build your first Python application
Now let's use the same Boto3 SDK that you would normally use in an AWS application.
Install Boto3:
pip install --upgrade boto3Create a file:
local_s3_test.py Add the following code:
import boto3
BUCKET_NAME = "day6-emulator-demo"
FILE_NAME = "hello.txt"
CONTENT = ( "Hello from AWS Emulator! " "This file was uploaded locally.")
# Uses AWS_ENDPOINT_URL and emulator credentialss3 = boto3.client("s3")
def run_s3_test():
print("Creating S3 bucket...")
s3.create_bucket( Bucket=BUCKET_NAME )
print("Bucket created successfully.")
print("\nUploading object...")
s3.put_object( Bucket=BUCKET_NAME, Key=FILE_NAME, Body=CONTENT.encode("utf-8") )
print("Object uploaded.")
print("\nListing bucket objects...")
response = s3.list_objects_v2( Bucket=BUCKET_NAME )
for item in response.get("Contents", []):
print( item["Key"], item["Size"], "bytes" )
print("\nDownloading object...")
result = s3.get_object( Bucket=BUCKET_NAME, Key=FILE_NAME )
downloaded_content = ( result["Body"] .read() .decode("utf-8") )
assert downloaded_content == CONTENT
print("Content verification successful.")
print("\nAll local S3 tests passed!")
if __name__ == "__main__":
try: run_s3_test()
except Exception as error:
print("Test failed:", error) raiseRun:
python local_s3_test.pyIf the corresponding S3 operations are supported by your emulator release, the application will create a bucket, upload an object, retrieve it, and verify its contents.
Notice something important:
We didn't add an emulator-specific endpoint or credentials to the Python application.
Boto3 reads the environment configuration and sends its requests to the emulator.
That means the application code can remain the same when you later run it against a real AWS environment with the appropriate AWS credentials and endpoint configuration.
10. How can AI coding agents use AWS Emulator?
This is where the new release becomes particularly interesting for AI Engineering.
AWS also provides an
aws-emulator skill for AI coding agents.With AWS CLI version 2.35.0 or later, you can install it using:
aws agent-toolkit add-skill --skill-name aws-emulator --region us-east-1An AI coding agent can then use the emulator setup workflow to install, start, and connect to the local environment.
Imagine giving an agent this task:
Build a Python application that:
1. Creates a DynamoDB table named orders.2. Inserts an order with an order ID.3. Retrieves the order.4. Updates its status.5. Verifies the updated status.
Use AWS Emulator for local testing.
Run the application and fix any errorsbefore reporting completion.The agent can write the application, execute its AWS SDK calls against the emulator, inspect errors, and iterate.
This is useful because the agent receives feedback from actual API interactions instead of relying entirely on assumptions or manually configured mocks.
For AI engineering teams, that can make local testing part of the agent's development loop.
11. AWS Emulator vs traditional mocks
How is this different from using mocked AWS services?
Traditional mocks | AWS Emulator |
|---|---|
Responses are manually configured | Implements AWS API behavior |
Usually requires mock fixtures | Maintains local resource state |
Tests anticipated responses | Can expose unexpected API errors |
Does not automatically reproduce service validation | Aims to match AWS validation where implemented |
Useful for isolated unit tests | Useful for local integration testing |
This does not mean mocks are useless.
Mocks remain valuable for testing application logic, failure conditions, and specific scenarios that are difficult to reproduce.
AWS Emulator adds another layer of testing rather than replacing every existing testing technique.
12. Important limitations you must understand
AWS Emulator is interesting, but developers should understand what it does not guarantee.
1. It is not production AWS.
AWS explicitly positions the emulator for development and testing. Do not use it for production workloads.
2. Not every API operation is implemented.
An unsupported operation can return HTTP 501 with
NotImplemented . Check the published fidelity information for the services and operations your application requires.3. Fidelity varies.
AWS documents that the emulator currently matches AWS most closely for control-plane operations, such as creating, describing, updating, and deleting resources.
Data-plane behavior and infrastructure-as-code compatibility vary by service.
4. It is not a security-testing replacement.
Do not use the emulator to validate IAM policies, permission boundaries, S3 bucket policies, KMS key policies, cross-account access, or other AWS security controls.
Test security configurations against real AWS.
5. Resource state is temporary.
The emulator keeps resource state in memory. When it stops, the emulated resources are lost.
6. Telemetry is enabled by default.
AWS says telemetry does not include request or response contents, credentials, code, or personal data. You can disable it:
$env:EMULATOR_TELEMETRY = "off"Set this before starting the emulator.
For more details, read the official security and telemetry documentation.
13. Your Day 6 challenge
Now extend today's experiment:
- Add DynamoDB to your local application.
- Create a table and insert an item.
- Write a test that retrieves and updates the item.
- Ask an AI coding agent to build the same workflow using AWS Emulator.
- Compare its first attempt with the final working implementation.
- Check the emulator fidelity report before assuming an operation behaves exactly like AWS.
Try running the same application against a real AWS development environment afterward.
The goal is to understand which problems can be caught locally and which still require cloud testing.
Day 6 Complete!
Today, we explored a new AWS release that could change how developers approach local AWS integration testing.
We installed AWS Emulator, configured Boto3 to use its local endpoint, and built an S3 application that creates, uploads, lists, and retrieves an object.
More importantly, we explored how this environment can give AI coding agents a faster feedback loop while building applications that interact with AWS services.
AI engineering isn't just about generating code. It's also about creating reliable environments where AI-generated code can be tested, evaluated, and corrected.
30 Days. 30 Tasks. Real AI Building.
See you on Day 7!
Official References
Series: 30 Days of AI Engineering on AWS (17 articles)
- …
- 7Day 6 - AWS Just Released AWS Emulator This article
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article