Creates a redis cache via Memorystore

This module creates a redis cache via Memorystore. It is made with their standard high availability offering, but (unlike in AWS) there is no encryption at rest and in-transit encryption is not offered as terraform support is in beta. It is made in the with private service access ensuring private communication.


When linked to a k8s-service, it adds connection credentials to your container’s environment variables

  • {module_name}_cache_auth_token – The auth token/password of the cluster.
  • {module_name}_cache_host – The host to contact to access the cluster.

In the modules reference, the {module_name} would be replaced with cache

The permission list can optionally have one entry which should be a map for renaming the default environment variable names to a user-defined value:

  - db:
      - cache_host: CACHEHOST
        cache_auth_token: CACHEPASS

If present, this map must have renames for all 2 fields.


Name Description Default Required
memory_size_gb The size in GB for the redis cache’s memory 2 False
redis_version the redis version to use for this instance REDIS_5_0 False
high_availability the redis version to use for this instance True False


Name Description
cache_host The host through which to access the redis cache