AWS Elasticache

Amazon ElastiCache is a fully managed, Redis- and Memcached-compatible service delivering real-time, cost-optimized performance for modern applications. ElastiCache scales to hundreds of millions of operations per second with microsecond response time, and offers enterprise-grade security and reliability.

Requirements

Name

Version

terraform

>= 1.0

aws

>= 5.61

Providers

Name

Version

aws

>= 5.61

Modules

Name

Source

Version

engine_log

../../../monitoring/aws/cloudwatch-log-group

n/a

slow_log

../../../monitoring/aws/cloudwatch-log-group

n/a

Resources

Name

Type

aws_elasticache_parameter_group.elasticache

resource

aws_elasticache_replication_group.elasticache

resource

aws_elasticache_subnet_group.elasticache

resource

aws_security_group.elasticache

resource

Inputs

Name

Description

Type

Default

Required

adapter_absolute_path

The adapter’s absolute path

string

"/adapters/object/redis/ArmoniK.Core.Adapters.Redis.dll"

no

adapter_class_name

Name of the adapter’s class

string

"ArmoniK.Core.Adapters.Redis.ObjectBuilder"

no

apply_immediately

Specifies whether any modifications are applied immediately, or during the next maintenance window

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

bool

false

no

client_name

Name of the redis client

string

"ArmoniK.Core"

no

data_tiering_enabled

Enables data tiering

bool

false

no

engine

Name of the cache engine to be used for the clusters in this replication group

string

"redis"

no

engine_log

Engine type of the logs

string

""

no

engine_version

Version number of the cache engine to be used for the cache clusters in this replication group

string

"engine_version_actual"

no

instance_name

Name of the instance

string

"ArmoniKRedis"

no

kms_key_id

AWS KMS key id

string

null

no

log_kms_key_id

AWS KMS key id for logs

string

null

no

log_retention_in_days

Number of days of the retention of the logs

number

0

no

max_memory_samples

Number of samples to check for every eviction

number

null

no

multi_az_enabled

Specifies whether to enable Multi-AZ Support for the replication group

bool

false

no

name

AWS Elasticache service name

string

"armonik-elasticache"

no

node_type

Instance class to be used

string

"cache.r4.large"

no

num_cache_clusters

Number of cache clusters (primary and replicas) this replication group will have

number

1

no

object_storage_adapter

Name of the adapter’s

string

"ArmoniK.Adapters.Redis.ObjectStorage"

no

preferred_cache_cluster_azs

List of EC2 availability zones in which the replication group’s cache clusters will be created

list(string)

[]

no

slow_log

Slow log

string

""

no

ssl_option

Ssl option

string

"true"

no

tags

Tags for resource

any

{}

no

vpc_cidr_blocks

AWS VPC cidr block

list(string)

n/a

yes

vpc_id

AWS VPC id

string

n/a

yes

vpc_subnet_ids

AWS VPC subnet ids

list(string)

n/a

yes

Outputs

Name

Description

endpoint_host

AWS Elastichache (Redis) endpoint host

endpoint_port

AWS Elastichache (Redis) endpoint port

endpoint_url

AWS Elastichache (Redis) endpoint url

env

Elements to be set as environment variables

kms_key_id

ARN of KMS used for Elasticache

name

Name of Elasticache cluster

Examples