Skip to content

Elasticache

Requirements

Name Version
aws 4.52.0

Providers

Name Version
aws 4.52.0
random n/a

Modules

No modules.

Resources

Name Type
aws_cloudwatch_log_data_protection_policy.this resource
aws_cloudwatch_log_group.redis resource
aws_elasticache_replication_group.this resource
aws_elasticache_subnet_group.this resource
aws_kms_alias.this resource
aws_kms_key.redis resource
aws_s3_bucket.redis_logs resource
aws_security_group.redis resource
random_id.s3 resource

Inputs

Name Description Type Default Required
at_rest_encryption_enabled Enable at rest encryption. True by default. bool true no
description Optional. Redis description. string "Redis Cluster Production" no
egress_cidr Optional. Specify egress rule for Redis security group. list(string)
[
"0.0.0.0/0"
]
no
enable_key_rotation Specifies whether key rotation is enabled. Defaults to false. bool false no
failover Optional. Enable failover. True by default bool "true" no
group_id Redis group ID. Moreover, used for naming of some resources like logs and buckets string n/a yes
ingress_cidr Required. Specify ingress rule for Redis security group. list(string) n/a yes
kms_alias KMS Alias string "alias/redis" no
log_retention Optional. Log data retention. 180 days (6 months) by default number 180 no
multi_az_enabled Optional. Multi AZ enabled by default. bool true no
node_type Required. Node type for Redis. Supported types - https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html string n/a yes
num_cache_clusters Optional. Number of cache cluster. number 3 no
num_node_groups Optional.The number of node groups. number 1 no
parameter_group_name Optional. Group name. By default - default.redis7. string "default.redis7" no
port Optional. Redis port. number 6379 no
replicas_per_node_group Required. Select the number of replica for the node group. number n/a yes
snapshot_retention Optional. The number of days AWS will store a snapshot before it's retained. number 3 no
subnet_ids Required. Define subnets ids of the VPC. list(string) n/a yes
tansit_encryption Optional. Data in transit encryption. Enabled by default bool true no
vpc_id Required. Define the VPC in which redis will be deployed. string n/a yes

Outputs

Name Description
availability_zones Availability zones
kms_id Return kms key id
reader_endpoint_address Reader endpoint address
redis_endpoint Return Redis primary endpoint.
rest_encryption At rest encryption status
s3_name Return s3 id
transit_encryption Transit encryption status