This page describes the Google Cloud environments that Memorystore for Redis Cluster
supports. It also shows which requirements are necessary for connectivity, given
that there are different environments and networking setups.

## All supported environments

The following serverless environments don't need a
Serverless VPC Access connector:

- [App Engine flexible environment](https://docs.cloud.google.com/appengine/docs/flexible)
- [Compute Engine](https://docs.cloud.google.com/compute/docs.md.txt)
- [Google Kubernetes Engine](https://docs.cloud.google.com/kubernetes-engine/docs.md.txt)

The following serverless environments need this connector:

- [App Engine standard environment](https://docs.cloud.google.com/appengine/docs/standard)
- [Cloud Run](https://docs.cloud.google.com/run/docs.md.txt)
- [Cloud Run functions](https://docs.cloud.google.com/functions/docs.md.txt)

## Capabilities and requirements

The table in this section lists the following information:

- The environments that need a Serverless VPC Access connector
- The environments that support Shared VPC when a cluster is provisioned in the *host* project
- The environments that support Shared VPC when the cluster is provisioned in the *service* project

| Environment | Requires a Serverless VPC Access connector^1^ | Supports Shared VPC when the cluster is provisioned in the host project and a connection is established that uses Private Service Connect ^2^ | Supports Shared VPC when the cluster is provisioned in the service project and a connection is established that uses Private Service Connect ^2^ |
|---|---|---|---|
| App Engine flexible environment | X | ✓ | X |
| Compute Engine | X | ✓ | ✓ |
| Google Kubernetes Engine | X | ✓ | ✓ |
| App Engine standard environment | ✓ | ✓ | X |
| Cloud Run | ✓ | ✓ | ✓ |
| Cloud Run functions | ✓ | ✓ | X |

^1^ Some of the serverless environments listed in this section require
a Serverless VPC Access connector. For more information, see [Serverless VPC Access connector requirements](https://docs.cloud.google.com/memorystore/docs/cluster/supported-environments.md.txt#serverless-vpc-access-connector-requirements).

^2^ For more information, see [Networking](https://docs.cloud.google.com/memorystore/docs/cluster/networking.md.txt).

## Serverless VPC Access connector requirements

To connect to Memorystore for Redis Cluster, some serverless environments require a Serverless VPC Access connector. These environments are
App Engine standard environment, Cloud Run, and
Cloud Run functions.

For more information and connector setup instructions for these environments,
use the following links:

- App Engine standard environment: [Connecting to a VPC network](https://docs.cloud.google.com/appengine/docs/standard/connecting-vpc.md.txt)
- Cloud Run: [Compare Direct VPC egress and VPC connectors](https://docs.cloud.google.com/run/docs/configuring/connecting-vpc.md.txt)
- Cloud Run functions: [Connecting to a VPC network](https://docs.cloud.google.com/functions/docs/connecting-vpc)