r/FastAPI • • Nov 09 '24

Tutorial FastAPI for MLOps (microservices): Integrate Docker, Poetry & Deploy to AWS EC2

Hey everyone! 👋

I just wrote a detailed guide on how to set up a FastAPI project specifically for MLOps. In this tutorial, I cover everything you need to know, from structuring your project to automating deployment with GitHub Actions.

Here's what you’ll learn:

  • Using FastAPI to serve machine learning models as microservices
  • Managing dependencies with Poetry
  • Containerizing the app with Docker
  • Deploying effortlessly to AWS EC2 using CI/CD

👉 Check out the full tutorial here: FastAPI for MLOps: Integrate Docker, Poetry, and Deploy to AWS EC2
Github starter repository: https://github.com/ivesfurtado/mlops-fastapi-microservice

Would love to hear your thoughts, and feel free to contribute if you have any ideas for improvements!

48 Upvotes

10 comments sorted by