__ _______ _____
/\ \ / / ____| / ____|
/ \ \ /\ / / (___ | | ___ _ _ _ __ ___ ___
/ /\ \ / / / ___ \ | | / _ | | | | '/ |/ _
/ ____ \ /\ / ) | | || () | || | | _ \ /
/_/ _/ / |/ ______/ _,|| |/__|
pull the repo and do the following
- cd to aws_elasticbeanstalk
- python3 -m venv venv
- source venv/bin/activate
- pip3 install -r requirements.txt
- python application.py
- curl 127.0.0.1:5000
- curl -X POST 127.0.0.1:5000
in order to deploy to elasticbeanstalk
- pip3 install awsebcli --upgrade
- eb init -p python-3.7 flask-api-demo --region us-east-1
- eb create flask-hellos
When modifying files use to update eb deploy flask-hellos in the end when we're all finished terminate the machines and delete them: eb terminate flask-hellos