Skip to content

About

Local AWS with real IAM enforcement (AccessDenied), localhost console, Terraform/OpenTofu pre-flight — not default-allow. Built on LocalEmu.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

stackwrangler

License: MIT Release parity-free Docs GHCR

Not affiliated with Amazon Web Services. Independent open-source tooling to develop and test AWS-shaped stacks locally, then deploy to real AWS. Not an AWS product and not a hosted substitute for AWS.

One local AWS-shaped account — real APIs, a local console, and IaC against profile local. Learn and stage without a cloud bill.

Most local stacks default-allow IAM (wrong policies still “work”). stackwrangler does not: IAM_ENFORCEMENT=1 — authz denies like AWS when the policy is wrong, then the same tools promote to a real account.

IaC verification sandbox for OpenTofu / Terraform (and CDK / SAM / Serverless) — console and clients included — not a generic LocalStack clone. Compare · Use case: OpenTofu → Expo + IAM

North star: docs/vision.md · Docs: docs-site/ → stackwrangler.dev · Status: docs/status.md · LICENSE (MIT) · THIRD_PARTY.md

Console

Live local console (grey rose chrome) — same account as CLI and IaC.

S3 buckets in the stackwrangler console

Lambda functions

CloudFormation stacks

Features

  • Authz that denies (not default-allow) — IAM_ENFORCEMENT=1; missing/wrong policies get AccessDenied locally, same as AWS
  • One local account — CLI (aws --profile local), console, and Terraform / CDK / SAM / Serverless hit the same endpoints
  • Fully working bar — create → configure → traffic or data moves → you can see it. Control-plane stubs stay labelled stubs (no catalogue theatre)
  • Honest depth — Working / Partial / Sidecar / Backlog are first-class; see docs/status.md
  • API call log — per-workload CloudTrail-lite (GET /_awsl/calls, console /cloudtrail, test asserts) · #194
  • Local → real AWS — stage here, then point the same tooling at a real account

Built on LocalEmu (not LocalStack Community — we need IAM enforcement) plus sidecars: SeaweedFS (optional S3 parity only), distribution/registry (ECR-shaped push/pull), atmoz/sftp (Transfer dataplane). Org-path S3 (console, aws --profile local, Transfer / Lambda / IaC) is LocalEmu on :4566 (docs/s3-backends.md).

Install (Docker only — no git)

This is the primary public path. Requires Docker Engine (Compose v2). Full detail: docs/docker-install.md.

mkdir -p ~/.stackwrangler ~/.aws
docker pull ghcr.io/kgz/stackwrangler:latest
docker run --rm --network host \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v "$HOME/.stackwrangler:/data" \
  -v "$HOME/.aws:/root/.aws" \
  ghcr.io/kgz/stackwrangler:latest up

That up starts APIs and the console web app. Open http://127.0.0.1:3000, then:

aws --profile local s3 ls
aws --profile local --endpoint-url http://127.0.0.1:4566 sts get-caller-identity

Upgrade / teardown / ports / known limits (host Docker, sock mounts): docs/docker-install.md.

Optional thin CLI (GitHub Release asset stackwrangler): same up / down / status commands without typing docker run.

Contributor clone path: ./bin/stackwrangler up copies .env.example → .env on first run. Defaults: access key stackwrangler, secret stackwranglerstackwrangler, profile local. Tear down with ./bin/stackwrangler down (add --remove-profile to drop the profile). Modes: up --test (default, ephemeral) or up --dev (persistent); reset wipes deliberately — docs/dev-mode.md.

What Where
S3 (org path: console + profile local + IaC) http://127.0.0.1:4566 LocalEmu
SeaweedFS (optional parity) http://127.0.0.1:8333
LocalEmu (IAM, Lambda, CFN, Transfer, RDS, …) http://127.0.0.1:4566
Transfer SFTP (native) 127.0.0.1:2222 (docs/transfer.md)
Console http://127.0.0.1:3000
Profile local
Mode test (default) / dev — status · dev-mode.md
Config / data ~/.stackwrangler

Images publish to GHCR on product tags (vX.Y.Z) and :latest (current latest: v0.1.1). Public path is docker pull / docker run only — no clone. Local image builds (./bin/build-release-images.sh) are for contributors; see docs/docker-install.md.

Contributors (git clone)

For patches, smokes, OpenSpec, and Open Design — not required to run or upgrade the public image path:

git clone https://github.com/kgz/stackwrangler.git
cd stackwrangler
./bin/stackwrangler up
./bin/stackwrangler console   # Vite dev server on :3000

See CONTRIBUTING.md. Coming from older checkouts named awsbox: ./bin/awsbox still shims to stackwrangler.

Built for

Hosting-shaped paths such as OpenTofu → VPC → Lambda / EC2 → SNS → Expo with strict IAM and Secrets Manager — stage locally, then the same shape on real AWS. Details: docs-site use case.

Org learning path (Transfer → Lambda → S3 → ECS → RDS, v0.1.0): hops are Partial today; chained example + E2E still landing — docs/org-path.md · docs-site.

Documentation

License

MIT · third-party notices: THIRD_PARTY.md

About

Local AWS with real IAM enforcement (AccessDenied), localhost console, Terraform/OpenTofu pre-flight — not default-allow. Built on LocalEmu.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages