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)
| Name | Type | Description | Default | Required |
|---|---|---|---|---|
name | string | Name/ID of the replication group | — | yes |
vpc_id | string | VPC ID for the security group | — | yes |
subnet_ids | list(string) | Subnet IDs for the cache subnet group | — | yes |
engine | string | Cache engine (valkey or redis) | valkey | no |
node_type | string | ElastiCache node type | cache.r7g.medium | no |
num_cache_clusters | number | Number of cache clusters | 1 | no |
kms_key_arn | string | KMS key ARN for at-rest encryption | null | no |
tags | map(string) | Tags to apply to all resources | {} | no |
Outputs (5)
| Name | Description |
|---|---|
primary_endpoint | Primary endpoint address |
reader_endpoint | Reader endpoint address |
port | Port of the cache cluster |
security_group_id | Security group ID |
replication_group_id | ID of the replication group |