GCP Private IP CloudSQL

google-cloud-platformgoogle-cloud-sqlgoogle-compute-engine

I have configured private Service Access for CloudSql from my VPC. My VPC has 2 subnets in regions us-west1 and us-central1.

The issue is:

My app is NOT able to connect to the CloudSQL instance from us-west1 (subnet) but is able to connect from other region us-central1 fine.

I believe the private Service access is at VPC level so all subnets in that VPC should be able to connect the CloudSQL instance fine.

Help appreciated!

Best Answer

As stipulated on GCP public documentation at this link in the network requirements paragraph:

To access a Cloud SQL instance on its private IP addresses, you must use a GCP resource in the same region.

Please make sure that the app is in the same region as the cloudSQL instance.

Related Topic