serverless-fastapi icon indicating copy to clipboard operation
serverless-fastapi copied to clipboard

Building an serverless (API Gateway and Lambda) app with Python (using Mangum), Docker (with ECR) and Terraform

Serverless + FastAPI (Mangum) + Docker + Terraform

How to try this? 🤔

Requirement

You must have logged in AWS CLI: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html

Create an Elastic Container Registry (ECR) 🏗

  1. make ecr

Lets deploy Lambda and ApiGateway 🚀

  1. make deploy

References

  1. https://towardsdatascience.com/building-a-serverless-containerized-machine-learning-model-api-using-aws-lambda-api-gateway-and-a73a091ff82e

  2. https://www.deadbear.io/simple-serverless-fastapi-with-aws-lambda/

  3. https://www.youtube.com/watch?v=wlVcso4Ut5o