GCP Memorystore for Memcached instance

Memorystore for Memcached enables creating a fully-managed Memcached cluster. Before using the service, it is important to understand some key concepts and terms. Memcached Instance represents one instance of a Memcached cluster. An instance can be comprised of a single node or a collection of nodes. The official documentations: Google Memorystore for Memcached instance and Memorystore for Memcached instance configuration .

Requirements

Name

Version

terraform

>= 1.0

google

>= 4.75.0

Providers

Name

Version

google

>= 4.75.0

Modules

No modules.

Resources

Name

Type

google_memcache_instance.cache

resource

google_client_config.current

data source

Inputs

Name

Description

Type

Default

Required

authorized_network

TThe full name of the GCE network to connect the instance to. If not provided, ‘default’ will be used.

string

null

no

cpu_count

Number of CPUs per node.

number

n/a

yes

display_name

A user-visible name for the instance.

string

null

no

labels

Resource labels to represent user-provided metadata.

map(string)

null

no

maintenance_policy

Maintenance policy for an instance. For more information see maintenance_policy.

object({
day = string
duration = string
start_time = object({
hours = number
minutes = number
seconds = number
nanos = number
})
})

null

no

memcache_parameters

User-specified parameters for this memcache instance. Supported configuration for Memcached Instance.

map(string)

null

no

memcache_version

The major version of Memcached software. If not provided, latest supported version will be used.

string

null

no

memory_size_mb

Memory size in Mebibytes for each memcache node.

number

n/a

yes

name

The resource name of the instance.

string

n/a

yes

node_count

Number of nodes in the memcache instance.

number

n/a

yes

zones

Zones where memcache nodes should be provisioned. If not provided, all zones will be used.

set(string)

null

no

Outputs

Name

Description

discovery_endpoint

Endpoint for Discovery API

id

The Memorystore instance ID.

memcache_full_version

The full version of memcached server running on this instance.

memcache_nodes

Additional information about the instance state, if available. The parameters: “node_id”, “zone”, “port”, “host”, “state”.

Examples