{"id":19885990,"url":"https://github.com/rishabkumar7/fastapi-aws-lambda","last_synced_at":"2025-03-01T03:48:04.466Z","repository":{"id":258626296,"uuid":"873231852","full_name":"rishabkumar7/fastapi-aws-lambda","owner":"rishabkumar7","description":"Deploy FastAPI to AWS Lambda Function","archived":false,"fork":false,"pushed_at":"2024-10-17T14:23:37.000Z","size":7326,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T01:46:32.350Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/rishabkumar7.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-15T20:20:25.000Z","updated_at":"2025-02-28T14:07:30.000Z","dependencies_parsed_at":"2024-10-21T15:59:46.727Z","dependency_job_id":null,"html_url":"https://github.com/rishabkumar7/fastapi-aws-lambda","commit_stats":null,"previous_names":["rishabkumar7/fastapi-aws-lambda"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabkumar7%2Ffastapi-aws-lambda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabkumar7%2Ffastapi-aws-lambda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabkumar7%2Ffastapi-aws-lambda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabkumar7%2Ffastapi-aws-lambda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rishabkumar7","download_url":"https://codeload.github.com/rishabkumar7/fastapi-aws-lambda/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241313176,"owners_count":19942417,"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","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":[],"created_at":"2024-11-12T17:35:58.389Z","updated_at":"2025-03-01T03:48:04.437Z","avatar_url":"https://github.com/rishabkumar7.png","language":"Python","readme":"# FastAPI App on AWS Lambda\n\nThis repository is a demo for hosting a FastAPI application on AWS Lambda using Mangum.\n\n## Project Structure\n\n``` sh\n. ├── .gitignore \n  ├── main.py \n  ├── README.md \n  └── requirements.txt\n```\n\n## Requirements\n\n- Python 3.9+\n- AWS Account\n\n## Installation\n\n1. Clone the repository:\n\n    ```sh\n    git clone https://github.com/rishabkumar7/fastapi-aws-lambda.git\n    cd fastapi-aws-lambda\n    ```\n\n2. Create a virtual environment and activate it:\n\n    ```sh\n    python -m venv .venv\n    .venv\\Scripts\\Activate  # On Linux/Mac use `source .venv/bin/activate`\n    ```\n\n3. Install the dependencies:\n\n    ```sh\n    pip install -r requirements.txt\n    ```\n\n## Running Locally\n\nYou can run the FastAPI application locally using Uvicorn, but will need to install uvicorn:\n\n```sh\npip install uvicorn\nuvicorn main:app --reload\n```\n\n## Deploying to AWS Lambda\n\nZip your FastAPI application and upload the zip to an AWS Lambda Function.\n\nZip on Windows:\n\n``` powershell\nCompress-Archive .\\.venv\\Lib\\site-packages\\* aws_lambda.zip\nCompress-Archive .\\main.py -Update aws_lambda.zip\n```\n\n## Demo\n\n[![Deploy FastAPI to AWS Lambda](https://img.youtube.com/vi/b0XCH04K8eQ/maxresdefault.jpg)](https://youtu.be/b0XCH04K8eQ)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frishabkumar7%2Ffastapi-aws-lambda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frishabkumar7%2Ffastapi-aws-lambda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frishabkumar7%2Ffastapi-aws-lambda/lists"}