Home

Awesome

elasticache-redis CfHighlander component

Requirements

Parameters

NameUseDefaultGlobalTypeAllowed Values
EnvironmentNameTaggingdevtrueString
EnvironmentTypeTaggingdevelopmenttrueString['development','production']
DnsDomainZone to launch redis record intrueString
VPCIdID of the VPC to launch Redis infalseAWS::EC2::VPC::Id
InstanceTypeThe compute and memory capacity of the nodes in the node group (shard)t3.smallfalseString
Subnetslist of subnet ciders for the redis clusterfalseCommaDelimitedList
SnapshotNameThe name of a snapshot from which to restore data into the new replication groupfalseString
SnapshotArnsA list of ARNs that uniquely identify the Redis RDB snapshot files stored in S3falseString
SnapshotRetentionLimitThe number of days for which ElastiCache retains automatic snapshots before deleting themfalseInteger
NumNodeGroupsSpecifies the number of node groups (shards) for this Redis replication group1falseInteger
ReplicasPerNodeGroupAn optional parameter that specifies the number of replica nodes in each node group (shard)0falseInteger[0, 1, 2, 3, 4, 5]
NumCacheClustersThe number of clusters this replication group initially has2falseInteger[1, 2, 3, 4, 5, 6]

Configuration

Redis Mode

Redis (Clustered Mode Enabled)

To create a replication group with Redis (Clustered Mode Enabled), you need to ensure these two configuration options are set.

cluster_enabled: true
automatic_failover: true

This is the default option

Redis (Clustered Mode Disabled)

To create a replication group with Redis (Clustered Mode Disabled), simply set the below configuration option. Automatic failover is optional for Redis (Clustered Mode Disabled), but defaults to on.

cluster_enabled: false

Replication Mode

There are two replication modes to choose from when creating Redis. The default mode uses node groups.

Node Groups

To explicitly set config to use node groups:

replication_mode:  node_group

This will then enable the following two parameters:

Cache Clusters

To explicitly set config to use cache clusters:

replication_mode:  cache_clusters

This will then enable the following parameter:

Restoring from Snapshots

Native Snapshot Restore

To restore from a snapshot taken by the service, simply set the configuration below:

snapshot_restore_type: native

This will enable the below parameter:

S3 Snapshot Restore

To restore from RDB snapshot files stored in S3, set the configuration below:

snapshot_restore_type: s3

This will enable the below parameter:

Encryption Configuration

By default both encryption at rest and encryption in transit is ON by default. It will also use the default KMS key. You can use the below configuration to enable/disable either type of encryption. Be aware that modifying these values causes a replacement on the replication group.

at_rest_encryption: false
transit_encryption: false

If you wish to provide your own KMS key for encryption you can specify the ARN by setting the config below:

kms_key_id: arn:aws:kms:ap-southeast-2:111111111111:key/12345678-1234-1234-1234-111111111111