Complete Memorystore for Redis

Terraform scripts to create a complete GCP Memorystore for Redis using the module redis.

To create a complete GCP Memorystore for Redis:

terraform init
terraform plan
terraform apply

To delete all resource:

terraform destroy

Requirements

Name

Version

terraform

>= 1.0

external

~> 2.3.1

google

~> 6.16.0

local

~> 2.4.0

null

~> 3.2.1

Providers

Name

Version

external

~> 2.3.1

google

~> 6.16.0

local

~> 2.4.0

null

~> 3.2.1

Modules

Name

Source

Version

complete_memorystore_for_redis

../../../redis

n/a

Resources

Name

Type

local_file.date_sh

resource

null_resource.timestamp

resource

external_external.static_timestamp

data source

google_client_openid_userinfo.current

data source

google_compute_network.vpc

data source

google_compute_subnetwork.subnet

data source

google_compute_zones.available

data source

Inputs

Name

Description

Type

Default

Required

project

Project name

string

"armonik-gcp-13469"

no

region

The GCP region to deploy the Memorystore for Redis.

string

"europe-west9"

no

Outputs

Name

Description

auth_string

AUTH String set on the instance. This field will only be populated if auth_enabled is true.

current_location_id

The current zone where the Redis endpoint is placed.

host

The IP address of the instance.

id

The Memorystore instance ID.

nodes

Info per node

persistence_iam_identity

Cloud IAM identity used by import/export operations. Format is ‘serviceAccount:’. May change over time

port

The port number of the exposed Redis endpoint.

read_endpoint

The IP address of the exposed readonly Redis endpoint.

read_endpoint_port

The port number of the exposed readonly redis endpoint. Standard tier only. Write requests should target ‘port’.

region

The region the instance lives in.

server_ca_certs

List of server CA certificates for the instance