https://github.com/rishavmehra/flask-ecs
https://github.com/rishavmehra/flask-ecs
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rishavmehra/flask-ecs
- Owner: rishavmehra
- Created: 2022-03-23T04:36:29.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-06T10:35:13.000Z (about 3 years ago)
- Last Synced: 2025-01-07T14:13:24.069Z (5 months ago)
- Language: Python
- Size: 316 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Develop a simple CI/CD pipeline which builds a docker container and runs it on AWS ECS which is configured Load-balancing.

Tool and Technologies used:
- Flask
- GitHub Repo
- GitHub Actions
- AWS(IAM, EC2, ECR, ECS, ALB, SG, TG)#### Tasks:
This is separated in 3 Stages:- Create necessary AWS components
- Code simple "Hey Opslyft I'm Rishav ;)" [Flask app](https://github.com/rishavmehra/Flask-ECS/blob/main/app.py)
- Dockerize Flask app
- Push flask app to github
- Create CI/CD Workflow using GitHub Actions#### Stage 1: Dockerization
Click for stage details!
Dockerize a simple "Hey Opslyft I'm Rishav ;)" Flask Application which responds with a message that is set up as an environment variable and deploy the docker image to AWS ECR.#### Stage 2: CI/CD Pipeline
Click for stage details!
Develop a CI/CD pipeline(Github Actions) which would link the python code and push the updated image to ECR#### Stage 3: Deployment to ECS
Click for stage details!
Setup a workflow which would deploy the given ECR image to ECS on EC2 instance- Workflow used : [Deploying to Amazon Elastic Container Service](https://docs.github.com/en/actions/deployment/deploying-to-your-cloud-provider/deploying-to-amazon-elastic-container-service)
##### ***Result after all Stage running successfully***
For Live Demo Click on it: [http://ecs-loadbalancer-712743308.us-east-1.elb.amazonaws.com/](http://ecs-loadbalancer-712743308.us-east-1.elb.amazonaws.com/)
Note : Link will be expire soon