LocalStack: Developing for AWS without AWS
summary
LocalStack runs as a Docker image (demo uses docker run and port 4566) and exposes AWS-like APIs so code hits real endpoints: boto3 uploads a local file to S3 (created sample bucket "example"), PynamoDB creates a DynamoDB user table with email as the hash key and updates show in DynamoDB Admin, and SQS send/receive works end to end (messages are JSON strings; SQS pricing: first 1M free then ~$0.40/M). Configuration uses docker-compose with init scripts and persistent data dirs; workflow includes pytest hooks, CloudFormation/SAM deploys to LocalStack, and translating SQS messages to Celery tasks (SQS -> Celery translation). LocalStack is heavier and slower than mocks but gives higher fidelity.
AI-written summary · about
chapters (15)
- 0:00Start
- 3:01Downsides to Working with Cloud Services
- 4:08What Is Localstack
- 5:51Get Started with Local Stack
- 8:30Create a File
- 10:34Configure Local Stack
- 10:57Edge Port
- 11:44Aws Settings
- 13:26Docker Compose
- 24:23Dynamodb Admin
- 25:18Environment Variables
- 27:28Architecture Diagram
- 32:18Uses of Local Stack
- 33:26Recap
- 34:23Resources
