Zappa setup: https://blog.apcelent.com/deploy-flask-aws-lambda.html Flask: http://flask.pocoo.org/ SQLAlchemy: https://www.sqlalchemy.org/
- AWS Credentials
- Install AWS CLI
pip install awscli
- Create Virtual Environment
# cd to the local git repository
virtualenv -p python3 env3
source .env3/bin/activate
pip install -r requirements.txt
zappa init
- Run Flask web server:
export FLASK_APP=app.py
export FLASK_DEBUG=1
flask run
- Deploy app to AWS
zappa deploy dev
- Subsequent app updates to aws
zappa update dev