From the course: Google Cloud Platform (GCP) Essential Training for Developers
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Cloud SQL and App Engine best practices: Using Cloud SQL Proxy - Google Cloud Tutorial
From the course: Google Cloud Platform (GCP) Essential Training for Developers
Cloud SQL and App Engine best practices: Using Cloud SQL Proxy
- [Instructor] Now when deploying App Engine to Cloud SQL in a deployed environment in the cloud, App Engine is going to use its own service account to authenticate with Cloud SQL. This is very good for security and it's actually quite convenient. However, when connecting locally, this won't work, and we have to use a different approach. We're going to learn how to use the Cloud SQL Proxy to connect our local development environment to Cloud SQL instance in the cloud. What Cloud SQL Proxy does is that it gives us a way to connect to our Cloud SQL instance from our local development environment as long as we have a valid service account. This mimics the behavior of our deployed App Engine application service. It handles the service account authentication for us, so we can just focus on the connection and making the queries. Now we are on the documentation page for this, let's focus on installing and using Cloud SQL Proxy…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.