{"id":18903985,"url":"https://github.com/dudeperf3ct/6-ml-fastapi-aws-serverless","last_synced_at":"2026-04-14T15:31:55.789Z","repository":{"id":191864851,"uuid":"436702534","full_name":"dudeperf3ct/6-ml-fastapi-aws-serverless","owner":"dudeperf3ct","description":null,"archived":false,"fork":false,"pushed_at":"2021-12-09T18:28:27.000Z","size":1210,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-05T12:46:50.056Z","etag":null,"topics":["aws","codepipeline","docker","elasticbeanstalk","fastapi","mlops","model-serving"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dudeperf3ct.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-12-09T17:24:50.000Z","updated_at":"2023-03-04T09:02:06.000Z","dependencies_parsed_at":"2023-09-01T07:12:44.135Z","dependency_job_id":"d8833d30-dadd-424a-ab36-664eb308f6eb","html_url":"https://github.com/dudeperf3ct/6-ml-fastapi-aws-serverless","commit_stats":null,"previous_names":["dudeperf3ct/6-ml-fastapi-aws-serverless"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dudeperf3ct/6-ml-fastapi-aws-serverless","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dudeperf3ct%2F6-ml-fastapi-aws-serverless","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dudeperf3ct%2F6-ml-fastapi-aws-serverless/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dudeperf3ct%2F6-ml-fastapi-aws-serverless/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dudeperf3ct%2F6-ml-fastapi-aws-serverless/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dudeperf3ct","download_url":"https://codeload.github.com/dudeperf3ct/6-ml-fastapi-aws-serverless/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dudeperf3ct%2F6-ml-fastapi-aws-serverless/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31803215,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T11:13:53.975Z","status":"ssl_error","status_checked_at":"2026-04-14T11:13:53.299Z","response_time":153,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","codepipeline","docker","elasticbeanstalk","fastapi","mlops","model-serving"],"created_at":"2024-11-08T09:07:00.425Z","updated_at":"2026-04-14T15:31:55.770Z","avatar_url":"https://github.com/dudeperf3ct.png","language":"Jupyter Notebook","readme":"### Deploy ML model to AWS using FastAPI\n\nAWS app: http://wine-ratings.us-east-1.elasticbeanstalk.com/\n\nIn this exercise, we will build a fastapi ML application and deploy it with continuous delivery on AWS using AWS using Elastic Beanstalk and Code Pipeline.\n\n### ML\n\nTo build a ML model, refer the colab notebook under `notebooks` folder.\n\n### FastAPI\n\nTo validate the fastapi application locally,\n\n```bash\ndocker build -t wine .\ndocker run --rm -it -v $(pwd):/app -p 8000:8000 wine\n```\n\n### AWS\n\nTo deploy the fastapi application on AWS following steps were taken.\n\n1. Create AWS account.\n\n2. Under `Elastic Beanstalk`, create a environment. Select `Docker` under `Platform` section. \n\n3. Zip the contents of repo using command below and upload the file to `Application code` section. Creating environment takes fair amount of time.\n\n   ```bash\n   cd 6-fastapi-ml-aws-serverless\n   zip -r -D code.zip .\n   ```\n\n4. In next step, we will use `Code Pipeline` for continuous delivery using Github event trigger. Create a pipeline that connects the source code to Elastic beanstalk application.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdudeperf3ct%2F6-ml-fastapi-aws-serverless","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdudeperf3ct%2F6-ml-fastapi-aws-serverless","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdudeperf3ct%2F6-ml-fastapi-aws-serverless/lists"}