Documentation
Everything you need to install, configure, and use LocalEmu. 133 AWS services, 8,969 API operations, all running on your machine.
Get started in 10 seconds
Install, start, and create your first S3 bucket.
pip install localemu localemu start aws --endpoint-url=http://localhost:4566 s3 mb s3://my-bucket Getting Started
Prerequisites
What LocalEmu needs to run: Python 3.10+, Docker, and which pip extra to pick
Installation
pip install, requirements, first commands
Quick Start
S3, DynamoDB, SQS, Lambda examples
Dashboard
The built-in web console: service grid, resource drill-downs, command palette, live calls
awsemu CLI
Built-in AWS CLI wrapper
Integrations
Features: IAM Enforcement, Export
IAM Enforcement
Real IAM policy evaluation
Multi-Account
Isolated namespaces per account, account-scoped ARNs, cross-account AssumeRole
Organizations
CreateOrganization, CreateAccount, OUs, SCPs, auto-created OrganizationAccountAccessRole
Cross-Account Access
Resource policies, AssumeRole, condition keys, S3 Access Point delegation
Export
Export locally-built infra to deployable Terraform or CloudFormation
Emulation Quality
Services
Examples: Application Patterns
REST API
API Gateway, Lambda, DynamoDB CRUD
Scheduled Job
EventBridge rule, Lambda, CloudWatch Logs
Event-Driven Fan-Out
SNS, SQS, Lambda fan-out pattern
Image Pipeline
S3 upload, Lambda resize, DynamoDB metadata
Batch ETL
S3 ingestion, Lambda transform, DynamoDB load
S3 Guardrail
S3 event, Lambda validation, SNS alert
Payment Ledger
API Gateway, Lambda, DynamoDB Streams, SQS
LLM Gateway
API Gateway, Lambda, Secrets Manager, DynamoDB
CI/CD Pipeline Testing
Run integration tests against LocalEmu inside GitHub Actions, service-container pattern
Event-Driven Microservices
SNS fan-out to two SQS queues, each polled by its own service into its own DynamoDB table
GuardDuty Auto-Remediation
GuardDuty finding to EventBridge to Lambda containment: quarantine, deactivate keys, dedupe, alert
RAG Support Agent
Real OpenSearch k-NN retrieval + real Lambda-to-Lambda tool-calling, not a chatbot demo
Retail Streaming Analytics
Firehose, Glue, and Athena exercised together: events in, SQL aggregates out
Examples: Service Demos
Cognito: Demo & walkthrough
Provision a user pool, sign up a user, get an ID token, verify it against the JWKS endpoint
Kinesis (Streams)
Create a stream, PutRecord, GetRecords, real sequence numbers end to end
OpenSearch: Demo & walkthrough
Provision a real OpenSearch domain, index documents, run a relevance-scored query
RDS: Demo & walkthrough
Create Postgres and MySQL via the RDS API, connect with real psql/mysql clients
EC2: Demo & walkthrough
RunInstances boots a real Docker container; SSH, SSM, EC2 Instance Connect, lifecycle management
ECS (Containers)
Task definitions and RunTask as real Docker containers: cluster, task, describe, stop
EKS (Kubernetes)
Real EKS cluster backed by k3d: CreateCluster, kubectl apply, deploy a Pod, DeleteCluster
Transit Gateway + Peering
Three VPCs, a Transit Gateway with two attachments, a VPC peering link, asserted end-to-end
IAM Least-Privilege
Mutation-test an IAM policy: remove one Sid at a time, assert the matching action is denied
Step Functions Saga
Saga compensation across three injected failures: inventory, payments, shipments
Chaos Resilience Drill
Throttling + latency injection against a Lambda + DynamoDB pipeline; zero data loss under retry pressure
Additional Guides
Public + Private VPC with nginx
Public + private VPC topology, EC2 + nginx reachable via EIP, egress blocked with a NACL
S3 Public-Access Check
Check whether an S3 object is reachable by an anonymous request, exactly like AWS evaluates it
Lambda x3 + Least-Privilege
Python, Node and Java Lambdas under one least-privilege role, wired to an S3 trigger
Local Development
The inner loop: code, deploy locally with Terraform, test locally, ship when green
Terraform Testing
Test Terraform modules against LocalEmu before pushing to real AWS
Replacing Dev Accounts
Replace shared dev/staging AWS accounts with per-developer LocalEmu instances
Throttling
Reproduce real AWS throttling errors: ProvisionedThroughputExceededException, SlowDown, and more
Latency
Reproduce realistic per-service AWS latency with Gaussian-jittered delays
Lambda Cold Starts
Reproduce realistic Lambda cold-start latency with the AWS 5-minute warm-pool default
Reference
Configuration
All configuration options
CLI Commands
start, stop, status, services
Lambda: API reference
Docker-backed runtimes, layers, ESM, function URLs
S3: API reference
Custom Python impl with persistence, multipart, versioning, event fan-out
DynamoDB: API reference
Pure-Python Moto backend, full streams, transactions, global tables
SQS: API reference
Custom impl: FIFO + standard, real visibility tracker, DLQ + redrive, CloudWatch metrics
SNS: API reference
Custom impl: 9 protocols, FIFO topics, filter policies, per-subscription DLQ
EventBridge: API reference
16 target types, 11 pattern operators, archives + replays, API destinations, scheduled rules
Step Functions: API reference
Pure-Python ASL interpreter, 8 state types, 11 service integrations, 18 intrinsics
EC2: API reference
SSH, SSM, IMDS
RDS: API reference
PostgreSQL, MySQL, MariaDB
OpenSearch: API reference
Real full-text search
Security Groups
TCP proxy enforcement
Cognito: API reference
User pools and JWT issuance: sign-up, sign-in, token verification, iss/kid claims
KMS: API reference
Real AES-256-GCM, RSA, ECC, HMAC via cryptography lib, grants, aliases, rotation, multi-region keys
Bedrock + Bedrock Runtime
21-model catalog, InvokeModel with a synthetic default or real local inference through Ollama
GuardDuty: findings
Native sample findings, criteria, sorting, archive, statistics, persistence, EventBridge delivery
Secrets Manager: API reference
Real Lambda-driven 4-step rotation, version stages, resource policies, full persistence
Kinesis: API reference
Python SubscribeToShard event-stream generator, fault injection, resource policies, Lambda ESM
CloudWatch Logs: API reference
Real-time subscription dispatch to Lambda/Kinesis/Firehose, full filter-pattern syntax
CloudWatch (metrics+alarms): API reference
SQLite-backed metric store, real alarm scheduler thread, composite alarms, full dashboard CRUD
Amazon MQ: API reference
Real rabbitmq:3.13-management container per broker, amqp/amqps/mqtt/stomp/mgmt-UI
Amazon MSK (Kafka): API reference
Real apache/kafka 3.7.1 broker in KRaft mode, full Kafka wire protocol
Athena: API reference
Real DuckDB query engine reading Parquet/CSV/JSON/ORC from S3 through Glue Catalog
ECS: API reference
Real Docker container execution for FARGATE + EC2 launch types, awsvpc attachment
EKS: API reference
Real Kubernetes cluster via k3d, kubectl-accessible API server, real Pod scheduling + exec
SES + SES v2: API reference
All 110 v2 + 71 v1 ops; on-disk mailbox, Handlebars templates, configuration-set events
Firehose: API reference
Real delivery to S3, HTTP endpoints, OpenSearch, Redshift; Lambda transform processors run for real
EventBridge Pipes: API reference
All 10 ops greenfield, SQS source poller + filter criteria + JSONPath InputTemplate
EventBridge Scheduler: API reference
Real 1s polling thread, rate/cron/at expressions with timezone, FlexibleTimeWindow jitter
API Gateway (REST API): API reference
Real HTTP runtime: AWS_PROXY/AWS/HTTP/HTTP_PROXY integrations, VTL, Lambda authorizers
Environment Variables
Full env var reference
awsemu vs AWS CLI
How awsemu differs from aws: only endpoint and credential defaults change
API Gateway V2
HTTP API v2: routes, integrations, JWT authorizers, CORS, custom domains