Cloud SQL connection to app engine

32 views
Skip to first unread message

No One

unread,
Oct 16, 2020, 9:45:47 AM10/16/20
to Google App Engine
I deployed a server in the app engine and use Cloud SQL as database.  When I set the authorized networks to 0.0.0.0/0.  Everything works fine.  However, when I delete the network.  I lost the connect from app engine to Cloud SQL.

I though all apps in the same projects are authorized by default as the site indicated.  Cloud someone tell me how could I have done it correctly without using 0.0.0.0/0?

rajeevanv

unread,
Oct 16, 2020, 4:22:38 PM10/16/20
to Google App Engine
Hi,

It looks like you may not have connected your Cloud SQL instance correctly from app engine. This will depend on whether you are using App Engine Flexible vs Standard and whether your instance has a Public or Private IP Address. Please find below the documentation that instructs how to configure the connections. Let me know if you already followed these documentation and if your issue still persists.

[1] Connecting from App Engine flexible environment to Cloud SQL: https://cloud.google.com/sql/docs/mysql/connect-app-engine-flexible#private-ip

[2] Connecting from App Engine standard environment to Cloud SQL: https://cloud.google.com/sql/docs/mysql/connect-app-engine-standard
Reply all
Reply to author
Forward
0 new messages