https://github.com/noahgift/flask-elastic-beanstalk
https://github.com/noahgift/flask-elastic-beanstalk
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/noahgift/flask-elastic-beanstalk
- Owner: noahgift
- Created: 2020-11-08T21:56:42.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-11-11T23:04:32.000Z (almost 2 years ago)
- Last Synced: 2025-04-09T22:16:37.222Z (6 months ago)
- Language: Python
- Size: 25.4 KB
- Stars: 25
- Watchers: 2
- Forks: 255
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flask-Elastic-Beanstalk
Note, the best way to use this repo is to "fork it", delete the .elasticbeanstalk directory and replace it with yours generated by the `eb init`. Also change the `buildspec.yml` file `eb deploy` to your app name.

### Deploy via AWs Cloud9 + AWS Code Build
*You can refer to tutorial [here as well for Flask EB](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-flask.html)*
A. check out this repo and cd into it
B. create a python virtualenv and source it and run `make all`
`python3 -m venv ~/.eb`
`source ~/.eb/bin/activate`
`make all`*Note, that awsebcli is installed via requirements*
C. initialize new eb app
`eb init -p python-3.7 flask-continuous-delivery --region us-east-1`
*Optional `eb init` again to create ssh keys*
D. Create remote eb instance
`eb create flask-continuous-delivery-env`
E. Setup AWS Code Build Project
[View Sample `buildspec.yml` Config Here](https://github.com/noahgift/Flask-Elastic-Beanstalk/blob/main/buildspec.yml)
F. Suggested next steps (Convert to ML Engineering project [like this project](https://github.com/noahgift/flask-ml-azure-serverless))
### Other Resources
* [Complete Walkthrough of Process on O'Reilly Platform](https://learning.oreilly.com/videos/aws-elastic-beanstalk/62022021VIDEOPAIML/62022021VIDEOPAIML-c1_s0)
* [Previous YouTube Walkthrough](https://youtu.be/iSv-i1tWpQc)