Search code examples
google-app-enginegoogle-compute-enginegoogle-cloud-sql

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!


Solution

  • 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.