Getting started
From install to your first test, step by step.
Works the same on macOS, Linux and Windows. Each step is one or two commands; stop after step 4 if you only want a local AWS to try things against.
- 01
Install Stratus
One binary, nothing else to set up. Pick your OS.
Current release: v0.6.0, with downloads for every OS and architecture.
brew install rmukubvu/tap/stratus - 02
Start it
Leave it running in its own terminal. Docker is only needed for Lambda functions and the real database, cache and Kafka engines; everything else runs inside the binary.
stratus # AWS on localhost:4566, opens the portal in your browser stratus serve # the same without the portal, for servers and CI - 03
Point your AWS tools at it
In a second terminal, set these once. The AWS CLI and AWS SDKs read them, so your code needs no changes. Any credentials work unless you turn on IAM enforcement.
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 - 04
Make something
Use the AWS CLI (v2) exactly as you would against AWS. Here is a bucket and a queue.
aws s3 mb s3://demo aws sqs create-queue --queue-name jobs aws s3 ls - 05
Check your code is covered
Before running anything, stratus check reads your source (boto3, AWS SDK for JavaScript v3, AWS SDK for Go v2) and lists every AWS call Stratus does not implement, with file and line. It exits 1 if it finds any, so it can gate CI.
stratus check . # Markdown report stratus check --json . # the same for scripts and agents - 06
Get back to a clean slate
Save the state you want every test to start from, then roll back to it in milliseconds, or wipe services entirely.
stratus snapshot save clean # after your setup stratus snapshot restore clean # back to it, ~11 ms stratus reset s3 sqs # or wipe just these services - 07
Move time instead of sleeping
Every service reads time from one clock. Advance it and visibility timeouts, expiry and EventBridge schedules happen now; freeze it for a test that must not drift.
stratus clock advance 5m # an SQS visibility timeout has passed stratus clock advance 1h # hourly schedules deliver before this returns stratus clock freeze # hold time still stratus clock resume - 08
Run your tests in one command
stratus ci starts a private Stratus on a free port, points your command at it, and removes everything afterwards, pass or fail. No server to start first.
stratus ci -- npm test stratus ci -- pytest stratus ci --seed ./snapshots/clean -- go test ./... # start from a snapshot - 09
Add it to GitHub Actions
The action installs Stratus and runs your tests the same way, on Linux, macOS and Windows runners.
jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: rmukubvu/stratus@main with: run: npm test - 10
Pick the right AWS service, with an ADR
Not sure between SQS, SNS, EventBridge, Kinesis or MSK? stratus advise asks about ordering, rates, replay and how much your team can run, rules out what cannot work, checks the rest against AWS's quotas, prices each option from a dated AWS price snapshot and writes the decision record. Press Enter to keep a default; the ranking ends with the decision id to use below. Optional: prove the candidates under load with k6, and test-deploy the Terraform with --deploy.
stratus advise ask messaging --title "Order events" stratus advise decide <id> sqs-standard --why "one consumer" stratus advise terraform <id> --out infra stratus advise adr <id> --out 0001-order-events.md - 11
Let your coding agent drive it
Over MCP, an agent can check Stratus is up, save and restore state, move the clock, inject faults, run stratus check and advise, and ask why a call failed. --start gives it a throwaway instance of its own.
claude mcp add stratus -- stratus mcp --start
Next steps