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

## All supported environments for Memorystore for Redis

#### Environments that do not need a Serverless VPC Access connector

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

#### Serverless environments that need a Serverless VPC Access connector

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

## Capabilities and requirements

| Environment | Requires a Serverless VPC Access connector.^1^ | Supports Shared VPC when Redis instance is provisioned in the *host project* and a private service access connection is established. ^2^ | Supports Shared VPC when Redis instance is provisioned in the *service project* and a private service access connection is established. ^2^ |
|---|---|---|---|
| Compute Engine | X | ✓ | ✓ |
| Google Kubernetes Engine | X | ✓ | ✓ |
| App Engine flexible environment | X | ✓ | X |
| App Engine standard environment | ✓ | ✓ | X |
| Cloud Run functions | ✓ | ✓ | X |
| Cloud Run | ✓ | ✓ | ✓ |

^1^ Some of the serverless environments listed above require a
Serverless VPC Access connector. See [Serverless VPC Access connector requirement](https://docs.cloud.google.com/memorystore/docs/redis/supported-environments.md.txt#serverless-vpc-access-connector-requirement)
for more details.

^2^ See [Networking](https://docs.cloud.google.com/memorystore/docs/redis/networking.md.txt) for more
details.

## Serverless VPC Access connector requirement

Some serverless environments require a Serverless VPC Access connector
as a prerequisite for connectivity with Memorystore for Redis. The serverless
environments that need the connector are Cloud Run functions, the App Engine
standard environment, and Cloud Run.

More details and connector setup instructions for these environments are found
below:

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