Pull and run the image
docker run -it -p 4566:4566 -p 4510-4559:4510-4559 localstack/localstack
That's it. Once the container is running, you can point your AWS CLI or SDK to the LocalStack endpoint. For example, to create an S3 bucket:
```bash
aws --endpoint-url=http://localhost:4566 s3 mb s3://my-test-bucket
For a more detailed setup, including using their helpful localstack CLI, check out the Getting Started guide on their GitHub repository.
Final Thoughts
LocalStack is one of those tools that feels like a superpower once you integrate it into your workflow. It won't replace the need for proper staging environments that hit the real AWS, but for day-to-day development and testing, it's incredibly effective. It removes friction, saves money, and gives you the confidence to experiment. If you're building on AWS, it's absolutely worth an hour of your time to see how it can simplify your process.
ā
Found this interesting? Follow @githubprojects for more cool open-source projects.