3
votes

is it possible to access Google Cloud SQL from Google Compute Engine using the private network?

It appears that Google Cloud SQL sees the public network IP for the Google Compute Engine instance.

And, the web console doesn't allow entering the instance private address.

3

3 Answers

5
votes

No it is not possible to access Google Cloud SQL instances via a private IP address.

This this page confirms this, it says Note: You must use the external (public) IP address of the GCE instance ...when configuring Authorized IP Addresses to your cloud sql instance from your GCE instance.

0
votes

You can't access cloud sql from a private IP address but you can whitelist NAT instance's Public IP in order to access cloudsql from private server.