| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This project demonstrates how to set up and use various AWS services locally using LocalStack. It includes a Flask web application for file uploads, along with infrastructure setup scripts for S3, DynamoDB, SNS, and Lambda.
localstack-example/ ├── app/ │ ├── __init__.py │ ├── app.py │ ├── config.py │ └── templates/ │ └── index.html ├── ec2-flask/ │ ├── run.sh │ └── user_script.sh ├── infrastructure/ │ ├── setup_dynamodb.py │ ├── setup_lambda.py │ ├── setup_s3.py │ └── setup_sns.py ├── lambda/ │ ├── lambda_function.py │ ├── lambda_handler.py │ └── requirements.txt └── commands
Start LocalStack:
docker run --rm -it -p 127.0.0.1:4566:4566 -p 127.0.0.1:4510-4559:4510-4559 -v /var/run/docker.sock:/var/run/docker.sock localstack/localstack
Set up AWS services:
python infrastructure/setup_s3.py python infrastructure/setup_sns.py python infrastructure/setup_dynamodb.py python infrastructure/setup_lambda.py
Run the Flask application:
python app/app.py
Adjust the configuration in app/config.py to match your LocalStack setup:
| Back | FazBrowse Home | New Git URL |