Python Flask Website with AWS Elastic Beanstalk Notes

To start

Rename main.py of Python Flask repo to be application.py. Rename all the app to application in application.py.

Install AWS CLI

pip install awscli==1.16.9
pip install awsebcli

Replace 1.16.9 by your version.

Elastic beanstalk basics

eb init
eb create  # need to set Default vpc first
eb deploy # need to commit the changes to repo before deploying changes
eb open

If a new branch is created

eb init
eb deploy

Extra: Route 53 & AWS Elastic Beanstalk