项目作者: azavea

项目描述 :
A Terraform module to create an Amazon Web Services (AWS) Memcached ElastiCache cluster.
高级语言: HCL
项目地址: git://github.com/azavea/terraform-aws-memcached-elasticache.git
创建时间: 2016-12-29T16:12:48Z
项目社区:https://github.com/azavea/terraform-aws-memcached-elasticache

开源协议:Apache License 2.0

下载


terraform-aws-memcached-elasticache

CircleCI

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

Usage

  1. resource "aws_sns_topic" "global" {
  2. ...
  3. }
  4. resource "aws_elasticache_subnet_group" "memcached" {
  5. ...
  6. }
  7. resource "aws_elasticache_parameter_group" "memcached" {
  8. ...
  9. }
  10. module "cache" {
  11. source = "github.com/azavea/terraform-aws-memcached-elasticache"
  12. vpc_id = "vpc-20f74844"
  13. cache_identifier = "cache"
  14. desired_clusters = "1"
  15. instance_type = "cache.t2.micro"
  16. engine_version = "1.4.33"
  17. parameter_group = "${aws_elasticache_parameter_group.memcached.name}"
  18. subnet_group = "${aws_elasticache_subnet_group.memcached.name}"
  19. maintenance_window = "sun:02:30-sun:03:30"
  20. notification_topic_arn = "${aws_sns_topic.global.arn}"
  21. alarm_cpu_threshold_percent = "75"
  22. alarm_memory_threshold_bytes = "10000000"
  23. alarm_actions = ["${aws_sns_topic.global.arn}"]
  24. project = "Unknown"
  25. environment = "Unknown"
  26. }

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