An open API service indexing awesome lists of open source software.

https://github.com/noahgift/flask-elastic-beanstalk


https://github.com/noahgift/flask-elastic-beanstalk

Last synced: 3 months ago
JSON representation

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.

![eb-deploy](https://user-images.githubusercontent.com/58792/106804626-a3a81900-6633-11eb-9cf6-54c24af6827f.png)

### 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)