A Terraform module that represents an AWS ElastiCache Redis cluster. Note that a default security group is created and outputted that can be extended. See basic example usage below and more examples here.
module "elasticache_redis" {
source = "github.com/turnerlabs/terraform-aws-elasticache-redis?ref=v1.1"
cluster_id = "myteam-myapp-dev"
vpc_id = "vpc-20f74844"
private_subnet_ids = "subnet-4a887f3c,subnet-76dae35d"
engine_version = "2.8.24"
instance_type = "cache.m3.medium"
maintenance_window = "sun:05:00-sun:06:00"
tag_name = "redis"
tag_environment = "dev"
tag_team = "myteam"
tag_application = "myapp"
}
cluster_id
- ID of the clustervpc_id
- ID of VPC meant to house the cacheprivate_subnet_ids
- Comma delimited list of private subnet IDsengine_version
- Cache engine version (default:2.8.24
)instance_type
- Instance type for cache instance (default:cache.m3.medium
)maintenance_window
- 60 minute time window to reserve for maintenance (default:sun:05:00-sun:06:00
)parameter_group_name
- Name of the parameter group to associate with this cache cluster (default:default.redis2.8
)tag_name
tag_environment
tag_team
tag_application
cache_security_group_id
- Security group ID of the cache clusterhostname
- Public DNS name of cache nodeport
- Port of cache instanceendpoint
- Public DNS name and port separated by a: