Deploy FastAPI to AWS Elastic Beanstalk (Zero to Hero)
<p>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).</p>
<h2>Prerequisites</h2>
<p>This tutorial will be using <a href="https://github.com/pypa/pipx#install-pipx" rel="noopener ugc nofollow" target="_blank">pipx</a> to install the <strong>Elastic Beanstalk CLI</strong>. Follow the instructions <a href="https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html" rel="noopener ugc nofollow" target="_blank">here</a> to install AWS’s CLI if you do not already have that installed. Then configure it following <a href="https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html" rel="noopener ugc nofollow" target="_blank">this guide</a>.</p>
<h2>FastAPI Project</h2>
<p>Assuming that you are using <code>poetry</code> to manage your dependencies, run the following commands in your terminal:</p>
<p><a href="https://medium.com/@malthunayan4/deploy-fastapi-to-aws-elastic-beanstalk-zero-to-hero-1c9bec4fbc97"><strong>Click Here</strong></a></p>