README.md

June 10, 2026 ยท View on GitHub

Description

This module deploys a Google Cloud Memorystore for Redis instance.

Example usage

- id: redis
  source: modules/database/redis
  settings:
    project_id: "your-project-id"
    deployment_name: "my-deployment"
    environment: "dev"
    region: "us-central1"
    network_self_link: "projects/your-project-id/global/networks/your-network"

License

Copyright 2026 Google LLC

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Requirements

NameVersion
terraform>= 1.12.2
google>= 3.83

Providers

NameVersion
google>= 3.83

Modules

No modules.

Resources

NameType
google_project_service.redis_apiresource
google_redis_instance.defaultresource

Inputs

NameDescriptionTypeDefaultRequired
auth_enabledIndicates whether OSS Redis AUTH is enabled.booltrueno
connect_modeThe connection mode of the Redis instance.string"DIRECT_PEERING"no
deploy_redisWhether to deploy Redis.booltrueno
deployment_nameThe name of the current deployment.stringn/ayes
environmentThe environment name.stringn/ayes
memory_size_gbRedis memory size in GiB. Defaults to 2 GiB as a safe minimal baseline for general caching workloads.number2no
network_self_linkThe VPC network to which the instance is connected.stringn/ayes
project_idThe project ID to deploy to.stringn/ayes
redis_versionThe version of Redis software.string"REDIS_6_X"no
regionThe region to deploy Redis to.stringn/ayes
reserved_ip_rangeThe name of the allocated IP range for the Private Service Access.stringnullno
tierThe service tier of the Redis instance.string"BASIC"no

Outputs

NameDescription
auth_stringThe auth string (password) of the Redis instance.
redis_hostThe host of the Redis instance.
redis_portThe port of the Redis instance.