fastapi-aws-lambda-example for a detailed guide on how to deploy a fastapi application with AWS API Gateway and AWS Lambda check this