skip to Main Content

Debian – How to connect to Google Cloud PostgreSQL database from Cloud Functions?

I was following the Connecting to Cloud SQL with Cloud Functions tutorial but my Cloud Function won't connect to the PostgreSQL database. Here's my function code: import sqlalchemy connection_name = "redacted-1234a:asia-northeast3:myinstance2" query_string = dict({"unix_sock": "/cloudsql/{}/.s.PGSQL.5432".format(connection_name)}) def insert(request): print(f"Started function -…

VIEW QUESTION
Back To Top
Search