Connecting to GCP services

This page lists GCP services that work well with Cloud Run and those that are not-yet supported for the fully managed version of Cloud Run. Cloud Run on GKE can use any service that Google Kubernetes Engine can use.

Connecting to GCP services in code

You can use the fully managed version of Cloud Run with the supported GCP services using the client libraries provided by these products. For code samples showing how to connect with a particular GCP services, refer to the documentation provided for that GCP service.

Note that Cloud Run uses a default runtime service account that has the Project > Editor role, which means it is able to call all GCP APIs. You do not need to provide credentials manually inside Cloud Run container instances when using the GCP client libraries.

Connecting to Cloud SQL

You can use Cloud Run with Cloud SQL. For details, refer to Connecting to Cloud SQL instances.

The following table lists services recommended for the fully managed version of Cloud Run. These services also work well with Cloud Run on GKE, but in addition, Cloud Run on GKE can use any service that Google Kubernetes Engine can use.

Service Descripion
Cloud Build Build container images, continuous integration and delivery.
Container Registry Store container images.
Stackdriver Monitoring and logging of Cloud Run services.
Cloud Firestore Fully managed NoSQL database.
Cloud Storage Object storage.
Cloud Pub/Sub Push events to Cloud Run services. Refer to the Using Cloud Pub/Sub with Cloud Run Tutorial.
Cloud Scheduler Trigger Cloud Run services on a schedule.
Identity Platform Login your users.
BigQuery Fully managed cloud data warehouse for analytics.
Firebase Hosting Fully managed hosting service for static and dynamic content with configurable CDN caching.

Services not yet supported

The following table lists services that are not yet supported by the fully managed version of Cloud Run. Note that Cloud Run on GKE can use any service that Google Kubernetes Engine can use.

Service Notes
Cloud Endpoints
Virtual Private Cloud Cloud Run cannot connect to VPC network.
Cloud Memorystore Cloud Run cannot connect to VPC network.
Cloud Load Balancing
Cloud Filestore. Note that is NOT Cloud Firestore, which is supported.
Was this page helpful? Let us know how we did:

Send feedback about...