Hi,
I have a simple Go program in Cloud Run that uses the Postgres SQL 
driver "github.com/lib/pq" to connect to a Cloud SQL Postgresql instance in 
the same Google Project. I have enabled the security by setting "Apps in 
this project: All authorized". The database and the Cloud Run service are 
in the same project.  I have used the Instance Connection Name as the 
connection string, however at runtime in Google Run I see the following 
error:

 http: panic serving 169.254.8.129:25475: sql: database is closed

Is there any further security settings to be made in order for the service 
to connect to the database?

Thanks.


-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/6e7b2945-f65e-4144-915a-67169f01b5e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to