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.
provider "aws" {
region = "us-east-1"
}
module "elasticache_redis" {
source = "github.com/turnerlabs/terraform-aws-elasticache-redis?ref=v2.2"
cluster_id = "myteam-myapp-dev"
engine_version = "6.2"
instance_type = "cache.t3.micro"
maintenance_window = "sun:05:00-sun:06:00"
parameter_group_name = "default.redis6.x"
vpc_id = "vpc-d070efb3"
private_subnet_ids = "subnet-020d8b59,subnet-13f50b64"
tag_name = "myteam-myapp-dev"
tag_team = "my-team"
tag_contact-email = "[email protected]"
tag_application = "my-app"
tag_environment = "dev"
tag_customer = "my-customer"
}
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
tag_customer
tag_contact-email
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: