AWS released AWS Emulator on 11 November 2026. It's a program from AWS that runs on your computer and answers AWS API calls, so the AWS CLI and SDKs can create buckets, tables and functions with no AWS account and no bill. This tutorial installs it, points the AWS CLI at it, and runs S3, DynamoDB and Lambda. It then covers the limits AWS documents, how it compares with LocalStack and Floci, and where to practise with guided labs.
Commands and facts come from AWS's announcement and the AWS Emulator User Guide as they read on 28 November 2026. AWS updates the emulator many times a day, so check the docs linked at the end if a command behaves differently.
What is AWS Emulator?
AWS Emulator is AWS's local emulator of the AWS APIs. It runs on your machine and serves an HTTPS endpoint on 127.0.0.1:9297. You point the AWS CLI or an AWS SDK at it with environment variables, and your code stays the same. You don't need an AWS account, there's no service fee, and the source code is on GitHub.
AWS builds it from the AWS API models that the SDKs also use, so requests and errors have the same shape as on AWS. It's written in Rust to stay light on a laptop. AWS says AI agents keep it current with AWS, and it publishes a fidelity score for each service with every release so you can see how closely the emulator matches AWS.
| Item | AWS Emulator |
|---|---|
| Made by | AWS |
| Released | 11 November 2026, generally available |
| Licence | CC0 1.0 public domain dedication; the code in vendor/ is Apache 2.0 |
| Runs on | Linux natively (RPM or Debian package, x86_64 or aarch64); macOS and Windows in Docker, from an image you build; inside Rust tests in embedded mode |
| Endpoint | https://127.0.0.1:9297, reachable only from your own machine by default |
| AWS account | Not needed |
| Cost | No additional service fee |
| State | Kept in memory and deleted when the emulator stops |
| Telemetry | Anonymous usage and error data, on by default; turn it off with --telemetry off or EMULATOR_TELEMETRY=off |
How do you install AWS Emulator?
On Linux, install the RPM or Debian package and run aws-emulator. On macOS and Windows, AWS doesn't publish a ready-made image: you build one from a short Dockerfile in the docs and run it with Docker. Either way, the emulator listens on port 9297 and only your own machine can reach it.
You also need the AWS CLI version 2 for the commands in this tutorial. Ubuntu doesn't ship it, so install it first with AWS's guide, Installing or updating to the latest version of the AWS CLI.
Linux
# RPM package, x86_64
sudo dnf install -y https://downloads.aws.com/aws-emulator/packages/aws-emulator/LTS/latest/aws-emulator-x86_64.rpm
# Debian package, amd64
curl -fsSLo aws-emulator.deb https://downloads.aws.com/aws-emulator/packages/aws-emulator/LTS/latest/aws-emulator_amd64.deb
sudo apt-get install -y ./aws-emulator.deb
aws-emulator -v # prints the version
aws-emulator # starts the emulator; it keeps running in this terminalOn Arm machines, use aws-emulator-aarch64.rpm or aws-emulator_arm64.deb. The package needs a 64-bit Linux with glibc 2.17 or later. To stop the emulator, press Ctrl+C.
macOS and Windows (Docker)
Save this as Dockerfile in an empty folder. On Apple silicon, change aws-emulator-x86_64.rpm to aws-emulator-aarch64.rpm.
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 EMULATOR_BIND_ADDRESS=0.0.0.0
ENTRYPOINT ["aws-emulator"]Build the image, create the folder the container shares with your machine, and start it (macOS shown):
docker build -t aws-emulator .
mkdir -p ~/.aws/emulator
PORT=9297
docker run --rm --memory=2g --memory-swap=2g -p 127.0.0.1:$PORT:$PORT \
-e HOME="$HOME" -v "$HOME/.aws/emulator:$HOME/.aws/emulator" \
aws-emulator -p $PORTAWS's Docker guide has the same command for Windows PowerShell. Inside the container the emulator logs that it listens on 0.0.0.0; publishing the port as -p 127.0.0.1:9297:9297 is what keeps it on your own computer. Keep 127.0.0.1 in the -p option: without it, Docker opens the emulator to your whole network. The memory flags cap the container at 2 GiB with no swap. If it goes over, the container stops and you lose everything you created in it.
How do you point the AWS CLI at AWS Emulator?
Set AWS_ENDPOINT_URL to https://127.0.0.1:9297 and point the CLI at the credentials, config file and certificate that the emulator writes to ~/.aws/emulator/9297/. Unset any real AWS credentials in the same shell. Then aws sts get-caller-identity should show the emulator's account, 000000000000.
In a second terminal (macOS and Linux):
export AWS_ENDPOINT_URL=https://127.0.0.1:9297
export AWS_SHARED_CREDENTIALS_FILE=~/.aws/emulator/9297/emulator_credentials
export AWS_CONFIG_FILE=~/.aws/emulator/9297/config
export AWS_CA_BUNDLE=~/.aws/emulator/9297/ca.pem
export AWS_EC2_METADATA_DISABLED=true
export AWS_DISABLE_HOST_PREFIX_INJECTION=true
export AWS_REGION=us-east-1
export AWS_DEFAULT_REGION=us-east-1
unset AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_SESSION_TOKEN AWS_PROFILE
curl --cacert ~/.aws/emulator/9297/ca.pem https://127.0.0.1:9297/__admin/health # prints ok
aws sts get-caller-identity # Account should be 000000000000The emulator makes new keys every time it starts, and their access key IDs begin with EMULATOR. It rejects requests signed with any other keys, so if a real key is still in your environment, your calls fail at the emulator. If get-caller-identity shows your own account ID, your shell is talking to AWS: stop and fix the variables before you create anything.
Setting AWS_CONFIG_FILE replaces your own AWS config for that shell, which is a good reason to keep emulator work in its own terminal.
S3: create a bucket and upload a file
aws s3 mb s3://local-getting-started
echo "hello from the emulator" > hello.txt
aws s3 cp hello.txt s3://local-getting-started/
aws s3 ls s3://local-getting-started/Keep 127.0.0.1 in AWS_ENDPOINT_URL rather than localhost. The emulator accepts S3 requests only with the bucket name in the path, and with localhost the AWS SDKs for JavaScript, Java and Go put the bucket name in the host name by default. S3 Control requests can't reach the emulator, because the SDK always puts the account ID in their host name.
DynamoDB: create a table, write an item, read it back
aws dynamodb create-table --table-name demo-table \
--attribute-definitions AttributeName=id,AttributeType=S \
--key-schema AttributeName=id,KeyType=HASH \
--billing-mode PAY_PER_REQUEST
# The table takes a few seconds to become ACTIVE
aws dynamodb wait table-exists --table-name demo-table
aws dynamodb put-item --table-name demo-table \
--item '{"id": {"S": "item-1"}, "msg": {"S": "hello from the emulator"}}'
aws dynamodb get-item --table-name demo-table --key '{"id": {"S": "item-1"}}'A new table takes a few seconds to become ACTIVE. Until then, put-item and get-item fail with ResourceNotFoundException, as they do on AWS, so the wait command holds the script until the table is ready.
Errors match too. AWS's own example creates a table named ab, and the emulator rejects it with the same ValidationException and message as AWS, because DynamoDB table names need at least 3 characters. AWS measures the emulator on exactly this: a fidelity test passes only when the emulator returns the same status code, body and error as AWS for every call.
Lambda: package and invoke a Python function
These steps follow LearnXops' first Lambda lab, which passes on AWS Emulator in our tests. You need Python 3 on your machine only to build the zip file.
mkdir -p ~/lambda-lab && cd ~/lambda-lab
cat > handler.py << 'EOF'
import json
def lambda_handler(event, context):
name = event.get("name", "World")
return {"statusCode": 200, "body": json.dumps({"message": f"Hello, {name}!"})}
EOF
python3 -m zipfile -c function.zip handler.py
cat > trust-policy.json << 'EOF'
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Principal": {"Service": "lambda.amazonaws.com"},
"Action": "sts:AssumeRole"
}]
}
EOF
aws iam create-role --role-name lambda-basic-role \
--assume-role-policy-document file://trust-policy.json
aws iam attach-role-policy --role-name lambda-basic-role \
--policy-arn arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole
ROLE_ARN=$(aws iam get-role --role-name lambda-basic-role --query 'Role.Arn' --output text)
aws lambda create-function --function-name hello-world \
--runtime python3.11 --handler handler.lambda_handler \
--role "$ROLE_ARN" --zip-file fileb://function.zip
aws lambda wait function-active-v2 --function-name hello-world
aws lambda invoke --function-name hello-world \
--cli-binary-format raw-in-base64-out \
--payload '{"name": "CloudLearner"}' response.json
cat response.jsonThe last command should print something like {"statusCode": 200, "body": "{\"message\": \"Hello, CloudLearner!\"}"}.
AWS's security guide has a warning for this step. When the emulator runs function code, it doesn't isolate that code from your machine: the code runs with your user's permissions and can read and change your files. Run only code you trust.
What are AWS Emulator's limits?
AWS Emulator is for building and testing, and AWS says not to use it for production or to test security. It doesn't evaluate IAM or resource policies the way AWS does, each emulator acts as one account with no separation between Regions, fidelity varies by service, and everything is kept in memory and lost when it stops.
- IAM and policies. Some services evaluate IAM policies for users and roles you create in the emulator, but not the way AWS does. It never denies a request signed with its own key, and it doesn't check KMS key policies or S3 bucket policies. A request AWS would deny can succeed, so test permissions on AWS.
- One account, one Region. Every emulator is account 000000000000 and doesn't keep resources separate by Region. To test several Regions, run one emulator per Region, each on its own port.
- Fidelity varies. AWS publishes a score for each service with every release, written as k of n fidelity tests passing (such as 40 of 50), on the GitHub releases page, and the tests themselves are public in the aws-emulator-evaluation-suite repository. Today the emulator matches AWS most closely on control plane APIs. Data plane APIs and support for CloudFormation, Terraform and the AWS CDK vary by service.
- Operations it doesn't implement yet return HTTP 501
NotImplemented, so a test fails straight away. - AWS checks the emulator against AWS in us-west-2 only (global services in us-east-1), so differences in what each Region offers don't show.
- Resources live in memory. AWS hasn't tested it for long-running use or load testing; start it for a test run and stop it afterwards, or set
--idle-timeoutso it stops by itself.
AWS Emulator vs LocalStack vs Floci
All three let the AWS CLI and SDKs work against a local endpoint. AWS Emulator comes from AWS, needs no account and is CC0. LocalStack for AWS has needed an account and an auth token to start since March 2026, and its free tier is for non-commercial use. Floci is an MIT-licensed open-source emulator that needs no account or token.
| AWS Emulator | LocalStack for AWS | Floci | |
|---|---|---|---|
| Made by | AWS | LocalStack | The floci-io open-source project |
| Licence | CC0 1.0 (Apache 2.0 for vendor/) | Account-based product with free and paid plans; the old open-source Community edition no longer gets regular updates | MIT |
| Account or token | None | Account and auth token required to start (since March 2026) | None |
| How it runs | Linux package; Docker image you build (macOS, Windows); embedded in Rust tests | Docker image localstack/localstack, started with the lstk CLI or Docker | Docker image floci/floci, the floci CLI, or a native binary for Linux, macOS and Windows |
| Default endpoint | https://127.0.0.1:9297 | http://localhost:4566 | http://localhost:4566 |
| Free use | No service fee | Free tier for non-commercial use; paid plans otherwise | Free |
Two more facts help you choose. Floci can keep state between restarts (memory, persistent, hybrid or write-ahead-log storage) and runs Lambda, RDS, ECS and several other services in real Docker containers; it describes itself as a drop-in replacement for LocalStack. AWS Emulator keeps state in memory only, and on macOS and Windows it needs Docker.
Practise AWS on AWS Emulator with guided labs
LearnXops has 100 local cloud labs for AWS, Azure, GCP and OCI. The 40 AWS labs run on AWS Emulator or Floci, and you choose which. They run on your computer through the LearnXops Desktop app for Mac, Windows and Linux, with no cloud account and no bill, and every task is checked.
In the app's Local Cloud Playground, press New sandbox, pick AWS and choose the engine. Floci is the default and the lighter of the two. The first time you choose AWS Emulator, the app builds its image from AWS's package with AWS's Dockerfile: an image of about 2 GB that takes about two minutes. After that it starts in seconds. Both engines run every AWS lab, including the ones that start Lambda functions, ECS tasks or RDS databases, on all the container runtimes the app supports: Docker Desktop, Podman, and Rancher Desktop with either dockerd or containerd. In our November 2026 tests, all 40 AWS labs passed on both engines.
The three services from this tutorial each have a beginner lab:
- Create Your First S3 Bucket and Upload an Object (first lab free with a free account)
- Create a DynamoDB Table and Write Your First Item
- Package and Invoke Your First Lambda Function
If you're working towards a cloud job, the Cloud Engineer roadmap sets out what to learn and in what order.
AWS Emulator FAQ
Is AWS Emulator free?
Yes. It has no additional service fee. You pay only for AWS resources when you deploy on AWS.
Is AWS Emulator open source?
The source is on GitHub in the aws/aws-emulator repository under CC0 1.0, except the vendor/ directory, which is Apache 2.0. AWS doesn't accept pull requests because agents keep the code current; you report differences from AWS as GitHub issues.
Do I need an AWS account to use AWS Emulator?
No. You don't need an AWS account to download or run it, and the emulator makes its own credentials each time it starts.
Does AWS Emulator work on Windows and Mac?
Yes, through Docker, with an image you build from AWS's Dockerfile. It runs natively only on Linux.
Does AWS Emulator keep my data after it stops?
No. It keeps all resources in memory and deletes them when it stops. Restarting gives you a clean state.
Can I use Terraform or the AWS CDK with AWS Emulator?
AWS says support for CloudFormation, Terraform and the AWS CDK varies by service. Check the fidelity scores for the services your templates use before you rely on it.
Can I test IAM policies with AWS Emulator?
No. AWS says not to use it to test IAM policies, permissions boundaries, resource policies, KMS key policies or cross-account access. Test those on AWS.
What port does AWS Emulator use?
9297 on 127.0.0.1 by default. Start it with aws-emulator -p 9300 for another port, or -p 0 to let the operating system pick a free one (not in a container). You can run several emulators side by side on different ports.
Official sources (checked 28 November 2026)
- AWS News Blog: Test your applications against AWS locally with AWS Emulator
- AWS Emulator User Guide: What is AWS Emulator?
- AWS Emulator User Guide: Getting started with Docker
- AWS Emulator User Guide: Pointing your AWS SDK at AWS Emulator
- AWS Emulator User Guide: Fidelity
- AWS Emulator User Guide: Security
- aws/aws-emulator on GitHub
- LocalStack: The road ahead for LocalStack
- floci-io/floci on GitHub

Member discussion