menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Cloud News

>

How to dep...
source image

Dev

1w

read

179

img
dot

Image Credit: Dev

How to deploy fastAPI app with postgreSQL database in AWS EC2

  • To deploy a FastAPI app with PostgreSQL database in AWS EC2, follow these steps:
  • SSH into your AWS CLI and update the system.
  • Install Postgres, Nginx, Python3 pip, and venv.
  • Set up Postgres, create a database, and generate an SSH profile.
  • Create a folder for Git projects, clone the repo, and set up a virtual environment.
  • Install requirements and Gunicorn server, set up the .env file, and test the server using Uvicorn.
  • Setup Gunicorn service, create an NGINX config file, enable NGINX, and allow SSH, HTTP, and HTTPS traffic.
  • Install Certbot for SSL certificates and configure the domain name.

Read Full Article

like

10 Likes

For uninterrupted reading, download the app