Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

acp-tf-redis

Terraform module to build redis elasticache clusters

Module Usage

module "fake_redis" {
  source = "git::https://github.com/UKHomeOffice/acp-tf-redis?ref=v0.0.1"

  name                       = "fake-redis"
  environment                = "${var.environment}"
  node_type                  = "cache.t2.small"
  number_of_nodes            = 2
  cidr_blocks                = "${values(var.compute_cidrs)}"
  subnet_ids                 = ["${var.subnet_ids}"]
  vpc_id                     = "${var.vpc_id}"
}

Requirements

Name Version
terraform >= 1.0
aws >= 3.0, < 5.0

Providers

Name Version
aws 3.76.1

Modules

No modules.

Resources

Name Type
aws_elasticache_replication_group.elasticache_redis_cluster resource
aws_elasticache_subnet_group.elasticache_redis_cluster resource
aws_security_group.elasticache_redis_cluster resource
aws_security_group_rule.in_redis_port resource
aws_security_group_rule.outbound resource

Inputs

Name Description Type Default Required
at_rest_encryption_enabled Should at rest encrption be enabled for this cluster bool false no
auth_token The password for redis AUTH string "" no
auto_minor_version_upgrade Should the cluster autmoatically be updated to the latest minor vesrion bool false no
automatic_failover_enabled Specifies whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails. Must be enabled for Redis (cluster mode enabled) replication groups. bool false no
cidr_blocks cidr blocks from which this cluster should accept connections list(string) [] no
egress_cidr_blocks Cidr blocks which this cluster should allow egress traffic to list(string)
[
"0.0.0.0/0"
]
no
engine_version The engine version for this cluster string "4.0.10" no
environment The environment the redis cluster is running in i.e. dev, prod etc any n/a yes
kms_key_id The ARN of the key that you wish to use if encrypting at rest. If not supplied, uses service managed encryption. Can be specified only if at_rest_encryption_enabled is true string "" no
maintenance_window Specifies the weekly time range for when maintenance on the cache cluster is performed. The format is ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. string "sun:05:00-sun:09:00" no
multi_az_enabled Enable multi-az for this instance bool false no
name A descriptive name for the redis cluster any n/a yes
node_type The type of nodes to use for this cluster any n/a yes
notification_topic_arn The ARN of an SNS topic to send Elasticache notifications to string "" no
num_node_groups Set for cluster mode: the number of node groups (shards) for this Redis replication group (required if using cluster mode) string "" no
number_of_nodes The number of nodes in this cluster string "" no
parameter_group_name The parameter group name for this cluster string "default.redis4.0" no
replicas_per_node_group Set for cluster mode: the number of replica nodes in each node group (required if using cluster mode) string "" no
snapshot_name The name of a snapshot from which to restore data into the new node group. (Changing the snapshot_name forces a new resource). string "" no
snapshot_retention_limit Redis only: the retention period of snapshots kept in days string "" no
snapshot_window The daily time range which ElastiCache will begin taking daily snapshots string "" no
subnet_ids The list of subnet IDs associated to a vpc list [] no
tags A map of tags to add to all resources map(string) {} no
transit_encryption_enabled Should transit encryption be enabled for this cluster bool false no
vpc_id The VPC ID to create the resources within any n/a yes

Outputs

No outputs.

About

Terraform module to build redis elasticache clusters

Resources

Stars

0 stars

Watchers

6 watching

Forks

Releases

Packages

Contributors

Languages