Please use repository on new URL : https://github.com/AckeeCZ/terraform-memorystore-redis
This module is primary written for provisioning of GCE instance from our Redis image (https://github.com/AckeeCZ/packer-redis)
It does a few things :
- Downloads RAW disk from GCS and create an image from it. (you can generate your own image with Packer using https://github.com/AckeeCZ/packer-redis)
- Create SSH key for instance provisioning
- Provision Stackdriver config for redis
- Create (GCP) firewall rules so GKE pods can reach GCE Redis instances
https://github.com/AckeeCZ/terraform-redis/blob/master/variables.tf explanation (followed by default values if applicable) :
- project - name of GCP project
- zone - zone of GCP project
- instance_name - base for GCE instances name
- cluster_ipv4_cidr - IPv4 CIDR of GKE cluster - for firewall rule setting
- node_count:1 - number of Redis nodes to deploy
- raw_image_source - URL of tar archive containing RAW source for Redis image (you can use Packer image template to generate image, as mentioned above)
module "redis-prod" {
source = "github.com/AckeeCZ/terraform-redis?ref=v1.0.1"
project = "my-gcp-project"
zone = "europe-west3-c"
instance_name = "redis-prod"
cluster_ipv4_cidr = "10.123.0.0/14"
node_count = "3"
raw_image_source = "https://storage.googleapis.com/image-bucket/ackee-redis5.0-disk-latest.tar.gz"
}