Video coming soon…
👨💻 Setup LocalStack — Run AWS Services Locally
Deploy LocalStack on Ubuntu with Docker — a local AWS cloud emulator that runs S3, Lambda, DynamoDB, SQS, and more on your own machine so you can develop and test without an AWS account.
⚠️ This script is provided for demo and testing purposes only. Not intended for production use.
📦 Resources & Setup Scripts
Grab the automated bash script from GitHub to follow along with the video.
Quick Install:
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/dev/localstack/localstack-ubuntu.sh
chmod +x localstack-ubuntu.sh
sudo bash localstack-ubuntu.sh
Tutorial Steps
1 Download the Script
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/dev/localstack/localstack-ubuntu.sh
2 Make it Executable
chmod +x localstack-ubuntu.sh
3 Run the Installer
The script installs Docker if needed, pulls the localstack/localstack image, and starts it on edge port 4566 with PERSISTENCE enabled and the Docker socket mounted so Lambda can spawn runtime containers.
sudo bash localstack-ubuntu.sh
4 Test with the AWS CLI
LocalStack has no web UI in the free edition. Point the AWS CLI at the edge endpoint to create a test S3 bucket:
aws --endpoint-url=http://<your-server-ip>:4566 s3 mb s3://test
Ports Used
| Port | Purpose |
|---|---|
| 4566 | Edge endpoint — every emulated AWS service |
| docker.sock | Mounted so Lambda can start runtime containers |