This guide will go over how to deploy a FastAPI app, add a `postgres` database, and attach a SSL certificate (assuming you have purchased a custom domain).
Prerequisites
This tutorial will be using pipx to install the Elastic Beanstalk CLI. Follow the instructions here to install AWS’s CLI if you do not already have that installed. Then configure it following this guide.
FastAPI Project
Assuming that you are using poetry to manage your dependencies, run the following commands in your terminal: