Giter Club home page Giter Club logo

terraform-aws-memcached-elasticache's Introduction

terraform-aws-memcached-elasticache

A Terraform module to create an Amazon Web Services (AWS) Memcached ElastiCache cluster.

Usage

resource "aws_sns_topic" "global" {
  ...
}

resource "aws_elasticache_subnet_group" "memcached" {
  ...
}

resource "aws_elasticache_parameter_group" "memcached" {
  ...
}

module "cache" {
  source = "github.com/azavea/terraform-aws-memcached-elasticache"
  
  vpc_id                     = "vpc-20f74844"
  cache_identifier           = "cache"
  desired_clusters           = "1"
  instance_type              = "cache.t2.micro"
  engine_version             = "1.4.33"
  parameter_group            = "${aws_elasticache_parameter_group.memcached.name}"
  subnet_group               = "${aws_elasticache_subnet_group.memcached.name}"
  maintenance_window         = "sun:02:30-sun:03:30"
  notification_topic_arn     = "${aws_sns_topic.global.arn}"

  alarm_cpu_threshold_percent  = "75"
  alarm_memory_threshold_bytes = "10000000"
  alarm_actions                = ["${aws_sns_topic.global.arn}"]

  project     = "Unknown"
  environment = "Unknown"
}

Variables

  • vpc_id - ID of VPC meant to house the cache
  • project - Name of the project making use of the cluster (default: Unknown)
  • environment - Name of environment the cluster is targeted for (default: Unknown)
  • cache_identifier - Name used as ElastiCache cluster ID, truncated at 16 characters
  • desired_clusters - Number of cache clusters
  • instance_type - Instance type for cache instance (default: cache.t2.micro)
  • engine_version - Cache engine version (default: 3.2.4)
  • parameter_group - Cache parameter group name (default: memcached1.4)
  • subnet_group - Cache subnet group name
  • maintenance_window - Time window to reserve for maintenance
  • notification_topic_arn - ARN to notify when cache events occur
  • alarm_cpu_threshold_percent - CPU alarm threshold as a percentage (default: 75)
  • alarm_memory_threshold_bytes - Free memory alarm threshold in bytes (default: 10000000)
  • alarm_actions - ARN to be notified via CloudWatch when alarm thresholds are triggered

Outputs

  • id - The cache cluster ID
  • cache_security_group_id - Security group ID of the cache cluster
  • port - Port of cache cluster
  • configuration_endpoint - Configuration endpoint to allow for host discovery
  • endpoint - Public DNS name of cache cluster

terraform-aws-memcached-elasticache's People

Contributors

armenr avatar egarbi avatar hectcastro avatar

Watchers

 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.