Connecting to a PostgreSQL DB on CloudSQL via Python server running on Cloud Run

Wed, 29 Jan 2025 05:11:45 +0000

Once we have our PostgreSQL database running on CloudSQL, with the flag cloudsql.iam_authentication set to on. We can now have a look at how we could create a Python FastAPI backend that connects to the database.