LocalStack Tutorial
💻 A fully functional local AWS cloud stack.�Develop and test your cloud & Serverless apps offline!
Waldemar Hummer
WeAreDevelopers World Congress
Berlin, June 2019
What is LocalStack?
History
Architecture
LocalStack main process (Python)
DynamoDB Local backend
(port 4564)
DynamoDB proxy (port 4569)
S3 moto backend
(port 4563)
S3 proxy�(port 4572)
Lambda API�(port 4574)
Kinesis proxy�(port 4568)
Kinesis backend
(port 4565)
...
CloudFormation API (port 4574)
Recent Growth
Configuration Options (excerpt)
Using the Command Line
Demo Application
QUEUED
PROCESSING
FINISHED
Demo Application - Architecture
LocalStack
Step Functions State Machine
Application Handler Lambda
API Gateway
REST API
Processing Lambda
Request Worker Lambda
DynamoDB Table
SQS
Request Queue
Archiving Lambda
S3 Bucket
User’s Web Browser
Running in Docker
Host (e.g., Mac OS)
Docker
/path/to/lambda/handler.py
LocalStack container
Lambda container 1
/path/to/handler.py
Lambda API
mount
Conclusion