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.


  • memory_size_gb - Optional. The size in GB for the redis cache’s memory Default 2
  • redis_version - Optional. the redis version to use for this instance Default REDIS_5_0
  • high_availability - Optional. the redis version to use for this instance Default True


  • cache_host - The host through which to access the redis cache
Last modified September 22, 2021: Updating latest references (62bb6e2)