azavea
terraform-aws-redis-elasticache
HCL

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

Last updated Jan 27, 2023
33
Stars
33
Forks
9
Issues
0
Stars/day
Attention Score
17
Language breakdown
No language data available.
Files click to expand
README

terraform-aws-redis-elasticache

CircleCI

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

Usage

resource "awssnstopic" "global" {
  ...
}

resource "awselasticachesubnet_group" "redis" { ... }

resource "awselasticacheparameter_group" "redis" { ... }

module "cache" { source = "github.com/azavea/terraform-aws-redis-elasticache"

vpc_id = "vpc-20f74844" cache_identifier = "cache" automaticfailoverenabled = "false" desired_clusters = "1" instance_type = "cache.t2.micro" engine_version = "3.2.4" parametergroup = "${awselasticacheparametergroup.redis.name}" subnetgroup = "${awselasticachesubnetgroup.redis.name}" maintenance_window = "sun:02:30-sun:03:30" notificationtopicarn = "${awssnstopic.global.arn}"

alarmcputhreshold = "75" alarmmemorythreshold = "10000000" alarmactions = ["${awssns_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
  • automaticfailoverenabled - Flag to determine if automatic failover should be enabled
  • desired_clusters - Number of cache clusters in replication group
  • 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: redis3.2)
  • subnet_group - Cache subnet group name
  • maintenance_window - Time window to reserve for maintenance
  • notificationtopicarn - ARN to notify when cache events occur
  • alarmcputhreshold - CPU alarm threshold as a percentage (default: 75)
  • alarmmemorythreshold - Free memory alarm threshold in bytes (default: 10000000)
  • alarm_actions - ARN to be notified via CloudWatch when alarm thresholds are triggered

Outputs

  • id - The replication group ID
  • cachesecuritygroup_id - Security group ID of the cache cluster
  • port - Port of replication group leader
  • endpoint - Public DNS name of replication group leader
🔗 More in this category

© 2026 GitRepoTrend · azavea/terraform-aws-redis-elasticache · Updated daily from GitHub