Installation
StackPort is one Python package and one Docker image. Pick whichever fits how you already run your emulator.
Requirements
Section titled “Requirements”- Python 3.10 or newer for the pip install.
- Docker for the container setup. The image is published for
linux/amd64andlinux/arm64. - An AWS-compatible endpoint: a local emulator such as MiniStack, Floci, LocalStack or Moto, or a real AWS account.
pip install stackportstackportStackPort starts on http://localhost:8080 and connects to the endpoint in AWS_ENDPOINT_URL. With no endpoint set it uses real AWS through your normal credential chain, so for a local emulator set it explicitly, together with a pair of test credentials (emulators accept any, but StackPort needs a pair to sign requests; with none in your shell or ~/.aws, every service shows zero resources):
AWS_ENDPOINT_URL=http://localhost:4566 \ AWS_ACCESS_KEY_ID=test AWS_SECRET_ACCESS_KEY=test stackportstackport with no subcommand is the same as stackport serve. The same package installs the CLI.
Docker
Section titled “Docker”The image is davireis/stackport on Docker Hub, tagged latest and with each release version.
docker run -p 8080:8080 \ -e AWS_ENDPOINT_URL=http://host.docker.internal:4566 \ -e AWS_ACCESS_KEY_ID=test -e AWS_SECRET_ACCESS_KEY=test \ davireis/stackporthost.docker.internal reaches an emulator running on your host machine. Replace 4566 with your emulator’s port if it differs (Moto uses 5000 by default).
Docker Compose
Section titled “Docker Compose”The StackPort repository ships ready-to-run Compose files. Each one starts an emulator, StackPort, and a one-shot seed container that creates a few demo resources (S3, SQS, SNS, DynamoDB, Secrets Manager, IAM, CloudWatch Logs and Step Functions), so the dashboard has something to show on first load.
MiniStack
curl -O https://raw.githubusercontent.com/DaviReisVieira/stackport/main/examples/docker-compose.ymldocker compose up -dFloci
curl -O https://raw.githubusercontent.com/DaviReisVieira/stackport/main/examples/docker-compose.floci.ymldocker compose -f docker-compose.floci.yml up -dLocalStack and Moto work the same way with a small Compose file of your own. The LocalStack guide and Moto guide have one you can copy.
Then open http://localhost:8080. If the dashboard is empty, check the seed output with docker compose logs seed.
See Docker for networking, health checks and mounting AWS profiles into the container.
Upgrading
Section titled “Upgrading”pip install --upgrade stackport# ordocker pull davireis/stackport:latestRun stackport --version to see what you have installed.