{"id":30344456,"url":"https://github.com/abhi227070/cicd-model-deployement-aws","last_synced_at":"2026-05-02T17:38:01.460Z","repository":{"id":308496690,"uuid":"990489740","full_name":"abhi227070/CICD-Model-Deployement-AWS","owner":"abhi227070","description":"A FastAPI service that predicts restaurant tips using a machine learning model. Deployed on AWS EC2 with Docker and CI/CD via GitHub Actions.","archived":false,"fork":false,"pushed_at":"2025-08-06T07:22:41.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-06T09:18:38.475Z","etag":null,"topics":["aws","awsec2","cicd","fastapi","machine-learning","machine-learning-algorithms","mlops","mlops-project","mlops-template","mlops-workflow","python","rest-api"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abhi227070.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-26T07:36:48.000Z","updated_at":"2025-08-06T07:26:21.000Z","dependencies_parsed_at":"2025-08-06T09:22:47.898Z","dependency_job_id":"2ad3de8b-ef3c-4e2f-b47b-52897feb43f2","html_url":"https://github.com/abhi227070/CICD-Model-Deployement-AWS","commit_stats":null,"previous_names":["abhi227070/cicd-model-deployement-aws"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/abhi227070/CICD-Model-Deployement-AWS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhi227070%2FCICD-Model-Deployement-AWS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhi227070%2FCICD-Model-Deployement-AWS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhi227070%2FCICD-Model-Deployement-AWS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhi227070%2FCICD-Model-Deployement-AWS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abhi227070","download_url":"https://codeload.github.com/abhi227070/CICD-Model-Deployement-AWS/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhi227070%2FCICD-Model-Deployement-AWS/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270996190,"owners_count":24681932,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","awsec2","cicd","fastapi","machine-learning","machine-learning-algorithms","mlops","mlops-project","mlops-template","mlops-workflow","python","rest-api"],"created_at":"2025-08-18T12:42:13.727Z","updated_at":"2026-05-02T17:38:01.421Z","avatar_url":"https://github.com/abhi227070.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CICD-Model-Deployement-AWS\n\n## Overview\n\nThis project demonstrates deploying a machine learning model as a FastAPI web service on AWS EC2 using Docker and GitHub Actions for CI/CD. The API predicts restaurant tips based on customer and bill information.\n\n## Features\n\n- FastAPI-based REST API for tip prediction\n- Model loaded from AWS S3\n- Dockerized application for easy deployment\n- Automated CI/CD pipeline with GitHub Actions\n- Secure deployment to AWS EC2\n\n## API Endpoints\n\n- `GET /` — Health check\n- `GET /info` — Project information\n- `GET /view` — Sample people data\n- `POST /add` — Add two numbers\n- `POST /predict` — Predict restaurant tip\n\n## Input Example for `/predict`\n\n```json\n{\n  \"total_bill\": 25.5,\n  \"sex\": \"Male\",\n  \"smoker\": \"No\",\n  \"day\": \"Sat\",\n  \"time\": \"Dinner\",\n  \"size\": 3\n}\n```\n\n## Setup\n\n1. **Clone the repository**\n   ```sh\n   git clone https://github.com/abhi227070/CICD-Model-Deployement-AWS.git\n   cd CICD-Model-Deployement-AWS\n   ```\n\n2. **Install dependencies**\n   ```sh\n   pip install -r requirements.txt\n   ```\n\n3. **Configure AWS credentials**\n   - Create a `.env` file:\n     ```\n     AWS_ACCESS_KEY=your-access-key\n     AWS_SECRET_KEY=your-secret-key\n     ```\n   - Ensure your model file (`tips_rf_model.pkl`) is in the specified S3 bucket.\n\n4. **Run locally**\n   ```sh\n   uvicorn app:app --reload\n   ```\n\n## Docker Usage\n\n1. **Build Docker image**\n   ```sh\n   docker build -t tip-app .\n   ```\n\n2. **Run Docker container**\n   ```sh\n   docker run -d -p 8000:8000 --env-file .env --name tip-app tip-app\n   ```\n\n## CI/CD Pipeline\n\n- Automated deployment to AWS EC2 via GitHub Actions ([`.github/workflows/deploy.yml`](.github/workflows/deploy.yml))\n- On push to `main`, the workflow builds and deploys the Docker container to EC2\n\n## Project Structure\n\n```\n.\n├── app.py\n├── requirements.txt\n├── Dockerfile\n├── .env\n├── .gitignore\n├── .dockerignore\n├── .github/\n│   └── workflows/\n│       └── deploy.yml\n├── README.md\n└── ...\n```\n\n## License\n\nMIT License. See [LICENSE](LICENSE) for details.\n\n## Author\n\nAbhijeet Maharana","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhi227070%2Fcicd-model-deployement-aws","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabhi227070%2Fcicd-model-deployement-aws","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhi227070%2Fcicd-model-deployement-aws/lists"}