1

I have a Google Cloud Run docker image and would like to connect to a Cloud SQL instance. The instance has a private IP, but I don't seem to be able to use that.

Is this scenario supported for Cloud Run, and how do I connect ?

driis
  • 161,458
  • 45
  • 265
  • 341

1 Answers1

1

From "Connecting to GCP services":

The following table lists services that are not yet supported by Cloud Run (however, they are supported by Cloud Run on GKE):

  • Cloud SQL
  • Cloud Endpoints
  • Virtual Private Cloud
  • Cloud Memorystore
  • Cloud Load Balancing
  • Cloud Filestore

Most of these are due to Cloud Run currently lacking a VPC connector, however this is in progress and will eventually be available.

Community
  • 1
  • 1
Dustin Ingram
  • 20,502
  • 7
  • 59
  • 82
  • Right. So no workarounds ? Would I be able to use a public IP while VPC is added ? – driis Apr 26 '19 at 18:17
  • Yes, using the Public IP should work fine, with the tradeoff that your database now has a public IP. – Dustin Ingram Apr 26 '19 at 20:20
  • Cloud SQL is now supported, see https://stackoverflow.com/questions/55693241/how-to-securely-connect-to-cloud-sql-from-cloud-run for the answer – Steren Apr 28 '19 at 16:26