Resources:
# https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html
RedisCluster:
Type: AWS::ElastiCache::ReplicationGroup
Properties:
AutoMinorVersionUpgrade: true
# enable Cluster Mode
CacheParameterGroupName: default.redis5.0.cluster.on ★
(中略)
Resources:
# https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html
RedisCluster:
Type: AWS::ElastiCache::ReplicationGroup
Properties:
AutoMinorVersionUpgrade: true
# enable Cluster Mode
CacheParameterGroupName: default.redis5.0.cluster.on
CacheNodeType: !Ref ElasticacheInstanceClass
CacheSubnetGroupName: !Ref RedisSubnetGroup
Engine: redis
EngineVersion: 5.0.4
NumNodeGroups: 1
Port: 6379
ReplicasPerNodeGroup: 1 ★
ReplicationGroupDescription: Sample Redis group for scaling
aws-elasticache-cluster-mode/template.yaml at master · aws-samples/aws-elasticache-cluster-mode · GitHub