---
title: "Discussion on \"Connecting to a PostgreSQL DB on CloudSQL via Python server running on Cloud Run\" | Hashnode"
description: "Discussion on \"Connecting to a PostgreSQL DB on CloudSQL via Python server running on Cloud Run\". 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.\nLet's start by creating a project fol..."
url: "https://hashnode.com/posts/connecting-to-a-postgresql-db-on-cloudsql-via-python-server-running-on-cloud-run/663bc72d72441ecb2d4b860a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Connecting to a PostgreSQL DB on CloudSQL via Python server running on Cloud Run](https://vic0de.hashnode.dev/connecting-to-a-postgresql-db-on-cloudsql-via-python-server-running-on-cloud-run?utm_source=hashnode&utm_medium=feed)

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. Let's start by creating a project fol...

May 8, 2024 · 4 min read · vic0de.hashnode.dev  
Read the article

-   [#cloudsql](https://hashnode.com/tag/cloudsql)
-   [#postgresql](https://hashnode.com/tag/postgresql)
-   [#python](https://hashnode.com/tag/python)
-   [#cloudrun](https://hashnode.com/tag/cloudrun)
-   [#gcp](https://hashnode.com/tag/gcp)

## Written by

[Vishnu Dileesh](https://hashnode.com/@vic0de)

@vic0de · India

  
[View profile](https://hashnode.com/@vic0de)

Engineer | Entrepreneur | Educator

I’m a 3x startup founder, full-stack engineer, and indie hacker building in public and mentoring future builders.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
