Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I whitelist private IP in Google Cloud SQL?

I am trying to create an Autoscaling web application network over HTTP Load Balancing. The Web Server Instances are going to be connected to load balancer. Further the web instances have to be connected to mysql/cloud sql through the internal IP.

So just to conclude, I need to use the Linux Web Instance (Not App Engine) and Connect to MySql/Cloud SQL through Internal Network Only? Is it possible?

Thanks!

like image 706
Piyush Chitkara Avatar asked Apr 13 '15 19:04

Piyush Chitkara


1 Answers

It's not possible, you need to use an external IP as stated in the documentation:

Note: You must use the external (public) IP address of the GCE instance.

Also, you can find here that it's not possible to authorize a private network like the one specified:

You can not specify a private network (for example, 10.x.x.x) as an authorized network.

like image 113
Adrián Avatar answered Sep 27 '22 22:09

Adrián