/fastapi-serverless-poc

FastAPI Serverless Proof of Concept

Primary LanguagePython

FastAPI Serverless POC

Instructions

Install dependencies

virtualenv env
source ./env/bin/activate
pip install -r ./src/requirements.txt

Set up pre-commit

pre-commit install

Run the app locally(not serverless)

python ./src/main.py

Test in AWS Lambda

To test the application in Lambda, you will need to simulate a fake API Gateway Proxy request. To do this, navigate to the Lambdas test page and select the "apigateway-aws-proxy" template. From there, you can adjust the path and other relevant parameters as needed.

Further steps

  • Dockerize
  • Infrastructure with Terraform -> API Gateway with Custom Domain

License

MIT