Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

skyscrapers/terraform-elasticache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-elasticache

Terraform modules to set up redis and memcache.

Warning

This module is deprecated and no longer receives active updates. We recommend using terraform-aws-modules/elasticache/aws instead.

redis

This creates a redis cluster with some default values and creates a security group for the cluster that allows a specific security group to access the redis cluster

Requirements

Name Version
terraform >= 0.15
aws >= 5.0.0

Providers

Name Version
aws >= 5.0.0

Modules

No modules.

Resources

Name Type
aws_cloudwatch_log_group.redis resource
aws_elasticache_replication_group.redis resource
aws_elasticache_subnet_group.elasticache resource
aws_security_group.sg_redis resource
aws_security_group_rule.sg_app_to_redis resource

Inputs

Name Description Type Default Required
allowed_sgs The security group that can access the redis cluster list(string) n/a yes
availability_zones the list of AZs where you want your cluster to be deployed in list(string) n/a yes
environment How do you want to call your environment string n/a yes
name The name of the redis cluster string n/a yes
node_type The instance size of the redis cluster string n/a yes
num_cache_nodes The number of cache nodes number n/a yes
project The project this redis cluster belongs to string n/a yes
subnets The subnets where the redis cluster is deployed list(string) n/a yes
vpc_id The vpc where we will put the redis cluster string n/a yes
apply_immediately (Optional) Whether to apply changes immediately or during the next maintenance window bool true no
at_rest_encryption_enabled (Optional) Whether to enable encryption at rest bool true no
auth_token (Optional) The password used to access a password protected server. Can be specified only if transit_encryption_enabled = true string null no
auth_token_update_strategy (Optional) Strategy to use when updating the auth_token. Valid values are SET, ROTATE, and DELETE. Required if auth_token is set. string "ROTATE" no
automatic_failover_enabled n/a bool false no
cloudwatch_logging_enabled (Optional) Whether to enable cloudwatch logging bool false no
cloudwatch_logging_retention_in_days Retention period for the logs in CloudWatch. Default is 7d. number 7 no
engine_version The redis engine version string "3.2.6" no
multi_az_enabled n/a bool false no
notification_topic_arn (Optional) ARN of an SNS topic to send ElastiCache notifications string null no
parameter_group_name The parameter group name string "default.redis3.2" no
port The redis port number 6379 no
snapshot_arns (Optional) A single-element string list containing an Amazon Resource Name (ARN) of a Redis RDB snapshot file stored in Amazon S3. Example: arn:aws:s3:::my_bucket/snapshot1.rdb list(string) [] no
snapshot_retention_limit The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted. If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. Please note that setting a snapshot_retention_limit is not supported on cache.t1.micro or cache.t2.* cache nodes number 0 no
snapshot_window The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your cache cluster. The minimum maintenance window is a 60 minute period. Example: 05:00-09:00 string "03:00-05:00" no
transit_encryption_enabled (Optional) Whether to enable encryption in transit bool true no

Outputs

Name Description
configuration_endpoint_address n/a
primary_endpoint_address n/a
redis_sg n/a

Packages

No packages published

Contributors 6