Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Accessing Google Cloud SQL from Google Compute Engine using private network

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.

like image 651
mparaz Avatar asked Jul 29 '26 05:07

mparaz


1 Answers

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.

like image 121
IanGSY Avatar answered Jul 30 '26 21:07

IanGSY