A Terraform module for creating a fully functional Google Memorystore instance.
Required:
project
- The ID of the project in which the resource belongs toname
- The name of the instance
Defaults:
region
- GCP region to use, defaults touseast-1
network_name
- The name of the network you want to use, defaults todefault
tier
- The service tier of the instance, defaults toSTANDARD_HA
memory_size_gb
- Memory size in GiB, defaults to1
location_id
- The zone where the instance will be provisioned, defaults tous-east1-b
alternative_location_id
- The alternative zone where the instance will be provisioned, defaults tous-east1-d
redis_version
- The version of Redis software, defaults toREDIS_3_2
display_name
- an arbitrary and optional user-provided name for the instance, defaults to nothingreserved_ip_range
- The CIDR range of internal addresses that are reserved for this instance, defaults to192.168.0.0/29
labels
- Resource labels to represent user provided metadata, defaults to nothing
id
- The Memorystore instance idhost
- The IP address of the instanceregion
- The region the instance lives in
Take a look at memorystore.tf for a working example.
You can overwrite more default variables if you need to.
Initialize Terraform:
terraform init
Review your changes:
terraform plan
Apply your changes:
terraform apply
Output Instance information:
terraform show
When contributing to this repository, please first discuss the change you wish to make via a Github issue.