1
votes

When trying to connect my Google App Engine to my Google Cloud SQL Instance (Second Generation), I cannot find the "...Authorized App Engine applications section..." (https://cloud.google.com/appengine/docs/php/cloud-sql/#PHP_Build_a_starter_application_and_database).

Am I just blind, or does this not exist anymore? If it doesn't exist, how does one connect a Google App Engine to a Google Cloud SQL (Second Generation)?

3
You can now connect to 2nd gen SQL instances from GAE: stackoverflow.com/questions/34413514/…N S

3 Answers

2
votes

Please review the limitations of Google Cloud SQL Second Generation.

Because Cloud SQL Second Generation instances are in beta, the following features are not available:

  • Service Level Agreement (SLA)
  • MySQL 5.5
  • MySQL 5.6 is supported.
  • Google App Engine connectivity. Connectivity is supported for other clients, including Compute Engine, Managed VMs, Container Engine, and your workstation.
  • ....
1
votes

I'd like to mention that although Google App Engine connectivity is not yet supported for the Cloud SQL Second Generation like the way is supported for Cloud SQL 1st Gen, however this doesn't mean that you cannot use Cloud SQL 2nd Gen with your App Engine applications.

You can use access control model which is described in this article as used for other applications. Since IP address of your App Engine application will be not a static address, you will need to authorize 0.0.0.0/0 IP range as an allowed network and use Allow only SSL connections feature of the Cloud SQL to allow only SSL connections. Configure SSL and generate keys and client certificate for your application and establish a secure connections using SSL.

0
votes

Right now, App Engine cannot be used with CloudSQL Gen2. It should be possible once the CloudSQL Gen2 graduate to General Availability but right now, if you need to use it with App Engine, you'll need to stick with CloudSQL v1