Giter Club home page Giter Club logo

terraform-redis's Introduction

Moved

Please use repository on new URL : https://github.com/AckeeCZ/terraform-memorystore-redis

Ackee GCE Redis Terraform module

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

Configuration

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)

Usage

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"
}

terraform-redis's People

Contributors

sandratatarevicova avatar tomashejatko avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.