This repository provides a Docker Compose setup to run LocalStack in a container. It is intended as a learning resource for testing and experimenting with AWS services locally.
For examples and Terraform configurations, please refer to the official LocalStack Terraform Samples repository.
Before running LocalStack, ensure you have the following installed:
- 🐳 Docker
- 📦 Docker Compose
- ☁️ LocalStack Community Account
- 🔧 Terraform CLI
- 🖥️ AWS CLI
pip install awscli
- 🏗️ LocalStack CLI
pip install localstack
- 📝
tflocal
wrapper scriptpip install terraform-local
- 📜
awslocal
wrapper scriptpip install awscli-local
LocalStack is a cloud service emulator for working with AWS services such as S3 and DynamoDB locally among other services.
For more information, see the LocalStack documentation.
To run LocalStack, use the following commands:
## 🚀 Start LocalStack
# Using Docker Compose
docker-compose up -d
# Using LocalStack CLI
localstack start -d
## 🛑 Stop LocalStack
# Using Docker Compose
docker-compose down
# Using LocalStack CLI
localstack stop
## 📊 Check Status
# Using Docker Compose
docker-compose ps
# Using LocalStack CLI
localstack status