Configure Memorystore for Redis in Application Design Center

Memorystore for Redis is a fully managed Redis service for Google Cloud. Applications running on Google Cloud can achieve extreme performance by leveraging the highly scalable, available, secure Redis service without the burden of managing complex Redis deployments. For more information, see Memorystore for Redis overview.

This document describes the connection and parameters you can configure when using App Design Center to create a Memorystore for Redis instance. The configuration parameters are based on the terraform-google-memorystore Terraform module.

Component connections

The following table includes the components that you can connect to a Memorystore for Redis instance, and the resulting updates to your application and its generated Terraform code.

Connected component

Application updates

Background information

Compute Engine instance template

  • The Compute Engine instances can manage and cache data in the Memorystore instance.
  • The Memorystore connection information is added to the Compute Engine instance template metadata.
  • The roles/redis.editor role is added to the Compute Engine service account.
Deployment options for Redis on Google Cloud

service account

  • The service account can manage the Memorystore for Redis instance.
  • The roles/redis.editor role is added to the service account.
The Memorystore for Redis service account

Cloud Run

  • The Cloud Run service can cache data in the Memorystore for Redis instance.
  • The Memorystore for Redis connection information is added to the Cloud Run environment variables.
  • The roles/redis.editor role is added to the Cloud Run service account.
Connecting to a Redis instance from a Cloud Run service

Required configuration parameters

If your template includes a Memorystore for Redis component, you must configure the following parameters before you deploy.

Parameter name

Description and constraints

Background information

Project ID

The project where you want to deploy the Memorystore for Redis resource.

Configure components

Region

locationId Regions and zones

Zone

locationId Regions and zones

Name

name Create and manage Redis instances

Optional configuration parameters

The following parameters are optional. To display advanced parameters, in the Configuration area, select Show advanced fields.

Feature

Parameter name

Description and constraint information

Background information

Display Name

displayName Create and manage Redis instances

Tier

Tier Redis tier capabilities

Memory Size GB

memorySizeGb Capacity tiers

Redis Version

redisVersion Supported versions

Connect Mode

ConnectMode Connection modes

Replica Count

replicaCount About read replicas

Auth Enabled

authEnabled About Redis AUTH

Transit Encryption Mode

TransitEncryptionMode About in-transit encryption

Maintenance Policy

Description

description About maintenance on Memorystore for Redis

Day

day About maintenance on Memorystore for Redis

Hours

hours About maintenance on Memorystore for Redis

Minutes

minutes About maintenance on Memorystore for Redis

Seconds

seconds About maintenance on Memorystore for Redis

Nanos

nanos About maintenance on Memorystore for Redis

Persistence Config

Persistence Mode

persistenceMode About RDB snapshots

RDB Snapshot Period

rdbSnapshotPeriod About RDB snapshots

Read Replicas Mode

ReadReplicasMode About read replicas

Authorized Network

authorizedNetwork VPC networks

Enable APIs

By default, enables the redis.googleapis.com API.

Google Cloud Memorystore for Redis API

Alternative Location ID

alternativeLocationId Regions and zones

Reserved IP Range

reservedIpRange Creating a Redis instance with a specific IP address range

Secondary IP Range

secondaryIpRange Creating a Redis instance with a specific IP address range

Labels

Key

labels Creating and managing labels

Value

labels Creating and managing labels

Customer Managed Key

customerManagedKey About customer-managed encryption keys (CMEK)