How to Specify Cloud SQL Instance App Engine
Cloud SQL is a Google Cloud Platform (GCP) fully managed relational database service that makes MySQL and PostgreSQL instances accessible from almost any application, anywhere.
It is now possible to integrate second-generation App Engine standard environment runtimes with Cloud SQL for PostgreSQL via private service access.
A private service connection is defined as...
A private service connection allows your VPC network's VM instances and the services you use to communicate solely through internal (RFC 1918) IP addresses. To use this, you create a private connection between your VPC network, and a network used by GCP managed services, such as Cloud SQL, using VPC Network Peering.
For GCP services, you just need to set up a private connection once. It can be used by more than one GCP service after it has been set up, as seen here:
Check out the Connecting to Cloud SQL coding lab for hands-on experience with private networking.
Google App Engine's standard environment can be connected to Cloud SQL for PostgreSQL
Cloud SQL for PostgreSQL was made available on GCP in April, making it one of the most popular open-source relational databases available to developers. With the announcement of App Engine standard runtimes 2.0 in August, customers may now develop more portable web apps and microservices while still benefiting from all of the original App Engine's capabilities such as scalability, security, and pay-per-use pricing.
We're thrilled to announce support for Cloud SQL for PostgreSQL in the new App Engine runtimes, bringing these two technologies even closer together. It is now possible for App Engine users to connect rapidly and securely to either Cloud SQL for MySQL or Cloud SQL for PostgreSQL instances in any of the supported standard environment runtimes (Go 1.11, Java 8, PHP 7, Python 3.7, and Node.js) or any of the currently available flexible runtimes.
Getting Started with App Engine and Cloud SQL
Why not give it a go with Google App Engine's Cloud SQL? The App Engine always-free tier and a $300 credit for usage with Cloud SQL are available to all new customers that sign up. You can learn how to connect your app to Cloud SQL by visiting the Connecting from App Engine page.
In terms of Cloud SQL, what's next?
Cloud SQL's general availability of private networking has been a top request from users, and this is a significant milestone for the product. In the future, you may expect new connectivity choices, such as Cloud VPN, to be available.
?