All Modules
AWSDatabase

ElastiCache

Valkey/Redis replication group with encryption, Multi-AZ, and Graviton nodes

Usage

module "elasticache" {
  source = "github.com/fencepencil/fencepencil-aws-modules//elasticache"

  name = "<name>"
  vpc_id = "<vpc_id>"
  subnet_ids = ["<value>"]

  tags = var.tags
}

Inputs (8)

NameTypeDescriptionDefaultRequired
namestringName/ID of the replication groupyes
vpc_idstringVPC ID for the security groupyes
subnet_idslist(string)Subnet IDs for the cache subnet groupyes
enginestringCache engine (valkey or redis)valkeyno
node_typestringElastiCache node typecache.r7g.mediumno
num_cache_clustersnumberNumber of cache clusters1no
kms_key_arnstringKMS key ARN for at-rest encryptionnullno
tagsmap(string)Tags to apply to all resources{}no

Outputs (5)

NameDescription
primary_endpointPrimary endpoint address
reader_endpointReader endpoint address
portPort of the cache cluster
security_group_idSecurity group ID
replication_group_idID of the replication group

More AWS Modules

Browse our full library of AWS infrastructure modules.

View all AWS modules