Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Google Cloud SQL Postgres Connectivity using the cloud_sql_proxy via Hosted Functions

Not applicable

I am having some issues getting my node application to connect to google cloud sql postgres from an hosted application. I have the node module working successfully in local. I am successfully able to deploy the node application as a hosted target using apigeetool but for some reason my connection to the database is not resolved using the instance connection name in my env variable.

As part of the node app the cloud_sql_proxy needs to be started in the docker image that runs the node application in the app engine. Looks like this command fails when the application is deployed. I am able to connect to the database using the public ip but would like to know if the instance connection using the clould_sql_proxy would be made available in the docker image of the hosted app.

I followed the following documentation for Cloudsql Postgres connectivity using node.js https://cloud.google.com/appengine/docs/standard/nodejs/using-cloud-sql-postgres

0 8 1,581
8 REPLIES 8