Local AWS that
snaps back
in 11 ms.
Stratus is a single-binary AWS emulator built for CI pipelines and coding agents. Snapshot state, fork isolated test runs, replay faults by seed, and get failures explained in plain language.
brew install rmukubvu/tap/stratusHomebrew, on Apple silicon or Intel.
$ stratus ci --seed ./snapshots/seeded -- go test ./... → private stratus on :52817 · fresh data dir → seeded from snapshot "seeded" in 12 ms ok orders/api 1.84s ok orders/worker 2.10s ok payments 0.97s → stopped 2 Lambda containers · removed data dir exit 0 · nothing left behind
- AWS CLI
- AWS SDKs
- AWS CDK
- Terraform
- GitHub Actions
- Claude Code
- Cursor
- Codex
- Any MCP client
What's new
Four reasons your tests stop being slow and flaky.
All of it is covered by tests and re-proven in CI on every push.
A clean slate in milliseconds
Health, reset, snapshot and restore over one JSON API. Snapshots hard-link blobs, so they stay fast even with large S3 objects.
- /health and /ready probes
- Per-service or full reset
- Named, reusable snapshots
Every run gets its own AWS
stratus ci starts a private instance on a free port, seeds it, runs your tests and removes everything after, pass or fail.
- Seed once, fork many jobs
- Orphaned containers reaped
- GitHub Action, hosted or self-hosted
Faults you can replay
Seeded errors, throttling, latency and dropped events. Same seed, same faults, so a chaos failure is a bug you can debug, not a flake.
- API calls and internal events
- AWS FIS templates run unchanged
- No mesh, sidecar or code changes
Built for coding agents
An MCP server, TypeScript and Python SDKs, and diagnostics written for LLMs that say why a call failed and whether it was your bug.
- stratus mcp for any MCP client
- Typed SDKs with auto-cleanup
- Plain-language failure diagnosis
Available services
33 AWS services on localhost:4566.
Point the AWS CLI, any SDK, CDK or Terraform at Stratus and these just work. Databases, caches and Kafka are the real engines in Docker, so your drivers and clients talk to the real thing.
Compute4
- LambdaDockerReal runtimes
Functions run on AWS's own base images: Python, Node.js, Java, Ruby, .NET, Go, Rust and container images
- Step Functions
State machines with Choice, Map and Parallel states and Lambda tasks
- ECS
Clusters, task definitions, services and tasks
- ECR
Repositories and images
Storage and databases5
- S3
Buckets and objects, with hard-linked snapshots for large blobs
- DynamoDB
Tables, items, queries and batch writes
- DynamoDB Streams
Change streams that trigger Lambda
- RDSDockerReal engine
Real PostgreSQL, MySQL and MariaDB; data survives snapshots
- ElastiCacheDockerReal engine
Real Valkey/Redis and Memcached; keys survive snapshots
Messaging and events7
- SQS
Standard and FIFO queues, with Lambda triggers
- SNS
Topics with fan-out to SQS queues and Lambda functions
- EventBridge
Buses, rules and targets
- EventBridge SchedulerFast-forward clock
One-off and recurring schedules
- Kinesis
Data streams, with Lambda triggers
- MSKDockerReal broker
A Kafka-compatible Redpanda broker any Kafka client can use
- SESCaptured inbox
v1 and v2 sending APIs; every email lands in an inbox you can read
Networking and APIs6
- API Gateway REST
REST APIs, resources and methods
- API Gateway v2
HTTP APIs and routes
- ELBv2
Load balancers, listeners and target groups
- Route 53Queryable DNS
Hosted zones and record sets
- Cloud Map
Namespaces, services and instances, published as Route 53 records
- ACM
Certificates
Security and identity5
- IAMOpt-in enforcement
Users, roles, access keys and managed policies
- STS
Caller identity and AssumeRole
- KMS
Keys, aliases, encrypt and decrypt
- Secrets Manager
Secrets and versions
- Cognito
User pools, users, groups and sign-in
Management and observability5
- CloudFormation
Stacks and change sets
- CloudWatch Logs
Log groups, streams and events
- CloudWatch Metrics
Put and query metric data
- SSM Parameter Store
Put, get, describe and tag parameters
- Fault Injection ServiceSeeded chaos
Your FIS experiment templates, run against Stratus unchanged
AI1
- Bedrock RuntimeRecord and replay
Record real model answers once, replay them offline in every test run
Coverage depth varies by service; the bar is the contract test suite in the repo. How the real engines work →
Stratus and the AWS Emulator
Breadth from AWS. Behaviour from Stratus.
AWS now publishes an official emulator that aims to cover every AWS API, and it is the right tool when you need an API Stratus does not have yet. Stratus is built for the parts of testing that depend on state, permissions and failure.
- Real Lambda runtimes
- Real PostgreSQL, MySQL and Valkey
- Kafka via Redpanda
- Seeded chaos and FIS
- MCP server and LLM diagnostics
- stratus ci and a GitHub Action
- SES captured inbox
- An emulator clock tests can advance
- stratus check before you run
- Guided architecture decisions (ADRs)
- Bedrock record and replay
AWS Emulator details are from its documentation as of November 2026. AWS Emulator is a product of Amazon Web Services; Stratus is an independent project.
Coverage and stratus check
Know what will work before you run it.
Stratus carries a catalogue of every operation AWS defines for the services it emulates, built from AWS's own service models. It says exactly which ones Stratus implements, checks your code against them, and validates requests the way AWS does.
stratus check, before you run anything
Scans Python (boto3), JavaScript (SDK v3) and Go (SDK v2) source for the AWS calls it makes, and lists the ones Stratus would answer with 501, with file and line. It exits 1 when anything would fail, so it can gate a CI job.
AWS's own validation errors
Requests that break the model's constraints, such as a missing member, a value too long or outside its enum, get the ValidationException AWS sends. On by default for ten JSON-protocol services; --validation off turns it off.
Coverage, per service
A generated page lists every operation AWS defines for each service and whether Stratus implements it. CI fails if the page and the code disagree.
Agents ask first
stratus_check runs the same scan over MCP, and stratus_coverage answers "does Stratus implement sqs AddPermission?" from the catalogue, without a running Stratus.
$ stratus check .
# Stratus check
Scanned 1 files under .: 6 AWS operations called,
4 implemented by Stratus.
## Not implemented
AWS has these operations; Stratus answers 501
NotImplemented. Tests that call them will fail.
- `dynamodb ExecuteStatement` at orders/worker.py:11
- `sqs AddPermission` at orders/worker.py:10
## Implemented
- `dynamodb PutItem` at orders/worker.py:9
- `sns Publish` at orders/worker.py:12
- `sqs DeleteMessage` at orders/worker.py:13
- `sqs ReceiveMessage` at orders/worker.py:8
exit 1
Architecture decisions
Pick the right AWS service, then prove it.
stratus adviseasks about your workload, rules out the options that cannot meet a hard requirement, checks the rest against AWS's regional quotas, prices them, proves them under load and writes the decision down as an ADR, with Terraform that has already been deployed once.
- 01
Ask
Ordering, peak and average rate, message size, consumers, replay, retention, region and how much the team can run.
- 02
Rule out and rank
Options that break a hard requirement are ruled out. The rest are checked against AWS's default quotas at your peak and ranked.
- 03
Prove under load
k6 drives each candidate's producer path at your peak in its own throwaway account, under the quotas AWS enforces.
- 04
Write it down
An ADR in the MADR layout, and Terraform for the choice, applied to Stratus, re-planned for drift and destroyed.
sns-publish-rate397 / 400 per s692 of 3,997 (17%)53 msEvery verdict has its reasons
Ruled out, caveat, strength or not checked, each with the sentence that explains it. Unanswered questions are marked "assumed (default)" in the ADR so reviewers see what nobody said.
Cost before you commit
A monthly estimate per option at your average rate, from AWS on-demand list prices for your region, with the chosen option's line items so a reviewer can redo the sum.
Proofs that can't share quotas
Each candidate runs in its own throwaway account. --scale 0.1 runs at a tenth of the peak with every quota scaled alike, so a laptop can prove a design meant for 50,000/s.
Agents hold the conversation
Over MCP and both SDKs, an agent asks the person each pending question rather than guessing, and leaves the choice to them. Stratus supplies the facts.
$ stratus advise ask messaging --title "Order events"
...
1. kinesis fits with caveats 95/100 ~$345.04/month
caveat: 3 consumers reading every record exceed
2 MiB/s of shared reads per shard; use enhanced
fan-out or more shards.
2. msk fits with caveats 85/100 ~$612.43/month
3. sqs-standard ruled out 0/100 ~$946.08/month
ruled out: A consumed message is deleted, so it
cannot be replayed.
...
Costs: on-demand list prices published 2026-11-26.
Control API
A clean slate whenever you want one.
One JSON API on the normal Stratus port manages the emulator itself. Snapshots are transactionally consistent and hard-link blobs, so they cost little disk even with big S3 objects or Lambda bundles.
- GET
/healthStatus and readiness - POST
/resetWipe all, or just ["s3", "sqs"] - POST
/snapshotsCapture everything as "baseline" - POST
/snapshots/{name}/restoreRoll back to it
stratus wait # until /ready says yes
./scripts/seed.sh # tables, queues, buckets, lambdas
stratus snapshot save baseline
go test ./orders/... # tests mutate state freely
stratus snapshot restore baseline # ~11 ms back to known-good
stratus reset s3 sqs # or wipe just a couple of services
Emulator clock
Advance time instead of sleeping.
Every service reads time from one clock. It runs in real time until a test moves it, so a test crosses a five-minute timeout or a day-long TTL in one call. Freeze it for timestamps that never change between runs. Snapshots capture it, and a full reset returns it to real time.
- SQS visibility timeouts and delays
- DynamoDB TTL expiry
- CloudWatch alarm periods
- S3 Object Lock retention
- EventBridge schedules
- Every recorded timestamp
- GET
/clocknow, offset and whether it is frozen - POST
/clock/advanceBy a duration, or to a time - POST
/clock/freezeHold it for stable timestamps - POST
/clock/resumeRun again from where it was held
aws sqs receive-message --queue-url "$QUEUE" --visibility-timeout 300
stratus clock advance 5m1s # no sleep
aws sqs receive-message --queue-url "$QUEUE" # the message is back
stratus clock advance 36h # due schedules fire, TTLs expire
stratus clock freeze # every timestamp holds still
stratus clock resume
Clean, fast CI
Every CI run gets its own private AWS.
stratus ci wraps your test command. Jobs run in parallel without sharing state, and nothing outlives the run: no orphaned containers, ports or data directories.
- 01
Fresh instance
Free port, empty data directory, AWS_ENDPOINT_URL set for your command.
- 02
Seeded in ms
Start from a seeded snapshot. Each job gets its own hard-linked copy.
- 03
Your tests run
The exit code is yours. Infra failures exit 125, so you can tell them apart.
- 04
Nothing left behind
Lambda, database and cache containers stopped and the data dir deleted, even on Ctrl-C.
An isolated AWS per run
Each run gets its own port, data directory and container names, so parallel jobs never see each other's writes.
Seed once, fork many
Start every job from one snapshot. Blobs are hard-linked, and RDS and ElastiCache come up with the rows and keys they held.
Infra failures exit 125
The exit code is your command's. If Stratus itself fails to start, you get 125, so a broken setup never looks like a failing test.
Self-cleaning, even after a crash
Containers are labelled with the instance, process and host that own them. The next start reaps anything a killed run left behind.
GitHub Action, two ways
Wrap one command with run, or start a background instance on a free port for later steps. A post step stops it and removes its containers when the job ends.
Forgotten servers stop themselves
Start stratus serve with --idle-timeout 30m and, once nothing has called it for that long, it shuts down and removes its containers. Health probes don't count as use.
Any runner fleet
Hosted runners on Linux, macOS and Windows, persistent self-hosted hosts, microVM fleets, GitHub container jobs and Kubernetes pods that share the host's Docker socket. Stratus works out how to reach its containers itself; Kubernetes pods on the node's socket need one setting.
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: rmukubvu/stratus@main
with:
seed: ./fixtures/snapshots/seeded # optional
run: go test ./...
Benchmark
From 196 seconds to 2.2.
Most integration suites spend their time getting back to a known state, not testing. Restoring a snapshot replaces about 2,000 setup calls per test, which makes isolation ~89x faster. Each strategy must restore the exact fixture, so a leaky one fails instead of looking fast.
4 vCPU Linux container. Fixture: 4 buckets × 100 objects, 3 tables × 500 items, 3 queues × 50 messages. CI reruns the benchmark on every push.
Methodology and raw numbers →- Fresh emulator + setup1.0x982.1 ms200 tests: 196.4 s
- Reset + setup1.0x1,028.2 ms200 tests: 205.6 s
- Fresh from snapshot (--seed)78x12.5 ms200 tests: 2.5 s
- Snapshot restore89x11.1 ms200 tests: 2.2 s
Cold boot on a fresh runner
A new microVM or ephemeral pod starts with nothing running. Stratus goes from a fresh process to serving a restored snapshot in milliseconds, so the VM and Docker daemon set your start-up time, not Stratus.
Deterministic chaos
Chaos you can replay, not shrug off.
Whether the nth matching request is faulted depends only on the seed, the rule and n. Same seed, same faults, so a chaos failure is a bug you can reproduce. No service mesh, sidecar or code changes, because every call already goes through Stratus.
throttleinternal_errorunavailableerrorlatencydropcold_startfunction_errorduplicate
- SQS → Lambda
- Kinesis → Lambda
- DynamoDB Streams → Lambda
- SNS fan-out
- EventBridge targets
- Step Functions tasks
- Lambda destinations
Already write AWS Fault Injection Service templates? Stratus speaks the FIS API, so they run unchanged from the AWS CLI or any SDK. FIS support →
{
"seed": 1234,
"duration_seconds": 300,
"rules": [
{ "id": "throttle-orders", "service": "dynamodb",
"operation": "PutItem", "resource": "orders",
"action": "throttle", "probability": 0.2 },
{ "id": "slow-s3", "service": "s3", "action": "latency",
"latency": { "delay_ms": 400, "jitter_ms": 200 } },
{ "id": "cold-checkout", "service": "lambda",
"resource": "checkout", "action": "cold_start", "max_hits": 1 }
]
}
Agent-native
A local AWS your coding agent can drive safely.
Claude Code, Cursor, Codex or any MCP client can check Stratus is up, save and roll back state, inject faults, and ask why a call failed, without parsing stack traces.
One line to connect.
claude mcp add stratus -- stratus mcp --start--start gives the agent its own throwaway Stratus, removed on exit. Failing tools return a stable error code and a hint, so the agent can correct itself.
stratus_statusstratus_connection_infostratus_diagnosestratus_resetstratus_snapshot_savestratus_snapshot_restorestratus_chaos_startstratus_chaos_stopstratus_clock_advancestratus_checkstratus_coveragestratus_advise_assessstratus_advise_terraform
Failures, explained for agents.
stratus diagnose --since 5m1 failed request in 1 group: 1 missing resource. Start with dynamodb PutItem (ResourceNotFoundException).
- category
- missing_resource
- likely_cause
- The table "orders" does not exist in this account and region.
- next_step
- Create it in your setup step before use, and check the name. List what exists with aws dynamodb list-tables.
- your_bug
- true
Chaos faults are attributed to the rule that injected them, so an agent never “fixes” working code.
SDKs
TypeScript and Python, zero dependencies.
Typed errors and helpers that always clean up: snapshot scopes roll state back after a block and chaos scopes always stop the experiment. Python ships pytest fixtures too.
Source and changelogs: TypeScript · Python
import { StratusClient } from "stratus-emulator";
import { S3Client } from "@aws-sdk/client-s3";
const stratus = new StratusClient();
await stratus.waitUntilReady();
const s3 = new S3Client(stratus.awsConfig());
// Rolled back afterwards, even if the test throws
await stratus.withSnapshot(() => runMyTest(s3));
// Throttle the first PutItem; the experiment always stops
await stratus.withChaos(
{ seed: 42, rules: [{ service: "dynamodb", operation: "PutItem",
action: "throttle", max_hits: 1 }] },
() => runMyTest(s3),
);
Demo
Watch an agent find a bug, fix it, and prove it under chaos.
A real stratus mcp session, replayed step by step. CI runs it on every push and fails if any step stops behaving as described.
- 1
Seed and snapshot
The agent runs setup once, then stratus_snapshot_save so every attempt starts identical.
- 2
Test fails
ResourceNotFoundException, buried deep inside botocore.
- 3
Ask Stratus why
stratus_diagnose: missing resource, your bug, here is the next step. The table is Orders, not orders.
- 4
Fix and restore
One-line fix, stratus_snapshot_restore, rerun. Green.
- 5
Prove it under chaos
Seed 42 throttles 30% of PutItem calls. The test still passes because the SDK retries.
- 6
Real vs injected
Diagnostics splits it: 0 real failures, 11 injected and retried. Nothing to "fix".
Pair it with Preflight
Emulate locally. Verify externally.
Preflight lints, scores, diagnoses and load-checks your stack against Stratus from the outside, so you know it works before you deploy. Then ship to AWS with Kanu.
Quick start
Running in under a minute.
Point the AWS CLI, any SDK, CDK or Terraform at localhost:4566. One binary, one data directory, and Docker only for Lambda and the real database, cache and Kafka engines.
stratus # terminal 1: AWS on localhost:4566
export AWS_ENDPOINT_URL=http://localhost:4566
export AWS_ACCESS_KEY_ID=test AWS_SECRET_ACCESS_KEY=test
export AWS_DEFAULT_REGION=us-east-1
aws s3 mb s3://demo # terminal 2: use it like AWS