Elastic Cache (Redis) Module for SRE's
Cluster Mode
Encryption at rest
Automatic Failover
Multi-AZ
Security Group / Access Compliance
Transit Encryption
Shardings
Cloudwatch Metrics
Custom Parameter Groups
Variable
Default
Required
Type
Additional Info
name
NA
yes
string
node_type
NA
yes
string
See Node Types
vpc
NA
yes
string
VPC ID
subnets
NA
yes
list
Subnet ID's
redis_version
6.x
no
string
family
redis6.x
no
string
multi_az
true
no
bool
cluster_mode
true
no
bool
shards
1
no
number
replicas_per_shard
2
no
number
port
6379
no
number
kms_key
NA
no
string
If you don't inform, one KMS key will be created
automatic_failover_enabled
true
no
bool
cidrs_to_allow
[]
no
list
CIDR's to allow inbound and outbound traffic; if you don't inform, VPC Ranges will be enable
security_groups_to_allow
[]
no
list
Security group ID's to enable inbound and outbound traffic
tags
{}
no
map(any)
Tags to resources
Variable
Value
cluster
aws_elasticache_replication_group.main
parameter_group
aws_elasticache_parameter_group.main
security_group
security_group
module "compliance_redis" {
source = " github.com/production-ready-toolkit/aws-sre-redis-cluster"
name = " app-x-redis"
node_type = " cache.t2.micro"
vpc = " vpc-ba8b92c1"
shards = 2
replicas_per_shard = 3
subnets = [
" subnet-1198752f" ,
" subnet-c832eeaf" ,
" subnet-f634adf9"
]
tags = {
" environment" = " production"
}
}