https://github.com/davisdre/my-aws-eb-python-flask
My Open Weather project converted to Python and running via AWS Beanstalk
https://github.com/davisdre/my-aws-eb-python-flask
Last synced: 3 months ago
JSON representation
My Open Weather project converted to Python and running via AWS Beanstalk
- Host: GitHub
- URL: https://github.com/davisdre/my-aws-eb-python-flask
- Owner: davisdre
- Created: 2022-05-19T21:04:50.000Z (about 3 years ago)
- Default Branch: mainline
- Last Pushed: 2024-01-11T14:53:54.000Z (over 1 year ago)
- Last Synced: 2024-01-11T22:33:16.051Z (over 1 year ago)
- Language: HTML
- Homepage: https://davisdre.xyz/my-eb-python-flask
- Size: 1.59 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# My AWS Beanstalk Flask
As I'm studying for my AWC Cloud practitioner exam I came I like do some hands on projects. I've converted my Open Weather project to Python and deploying it to AWS Beanstalk.
## My take aways
1. Learned about Python.
2. The [EB CLI](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3.html) makes it really easy to spin up and destroy.
3. AWS doesn't have the best of GitHub Actions but there is enough marketplace actions to get it to work.
4. The AWS CLI makes it really easy to deploy new AWS Beanstalk application versions.## Setup AWS Beanstalk
Lets setup out AWS Beanstalk environment via CLI.
```bash
# initalize your EB CLI repo
eb init -p python-3.7 my-flask --region us-east-2# Lets initialize to configure default keypar
eb init# Lets create the environment and deploy
eb create my-flask-env# Once complete lets open our new website
eb open
```## Now lets terminate our AWS beanstalk environment
```bash
# Lets terminate our environment
eb terminate my-flask-env
```## What I've added to this project
- I've added this to GitHub.
- I've added GitHub actions to help with continus deployment, so every time you make a change it creates a new version of your application.