Amazon ElastiCache ReplicationGroup NodeGroupConfiguration
NodeGroupConfiguration is a property of the AWS::ElastiCache::ReplicationGroup resource that configures an
Amazon ElastiCache (ElastiCache) Redis cluster node group.
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "NodeGroupId" :String, "PrimaryAvailabilityZone" :String, "ReplicaAvailabilityZones" : [String, ...], "ReplicaCount" :Integer, "Slots" :String}
YAML
NodeGroupId:StringPrimaryAvailabilityZone:StringReplicaAvailabilityZones: -StringReplicaCount:IntegerSlots:String
Properties
NodeGroupId-
Either the ElastiCache for Redis supplied 4-digit id or a user supplied id for the node group these configuration values apply to.
Length Constraints: Minimum length of 1. Maximum length of 4.
Pattern:
\d+Required: No
Type: String
Update requires: Some interruptions. Update requires no interruption if the resource contains an
UseOnlineReshardingupdate policy set totrue. Update requires replacement if the resource does not contain anUseOnlineReshardingupdate policy, or the policy is set tofalse. For more information, see UseOnlineResharding Policy. PrimaryAvailabilityZone-
The Availability Zone where ElastiCache launches the node group's primary node.
Required: No
Type: String
Update requires: Replacement
ReplicaAvailabilityZones-
A list of Availability Zones where ElastiCache launches the read replicas. The number of Availability Zones must match the value of the
ReplicaCountproperty or, if you don't specify theReplicaCountproperty, the replication group'sReplicasPerNodeGroupproperty.Required: No
Type: List of String values
Update requires: Replacement
ReplicaCount-
The number of read replica nodes in the node group.
Required: No
Type: Integer
Update requires: Replacement
Slots-
A string of comma-separated values where the first set of values are the slot numbers (zero based), and the second set of values are the keyspaces for each slot. The following example specifies three slots (numbered 0, 1, and 2):
0,1,2,0-4999,5000-9999,10000-16,383.If you don't specify a value, ElastiCache allocates keys equally among each slot.
When you use an
UseOnlineReshardingupdate policy to update the number of node groups without interruption, ElastiCache evenly distributes the keyspaces between the specified number of slots. This cannot be updated later. Therefore, after updating the number of node groups in this way, you should remove the value specified for theSlotsproperty of eachNodeGroupConfigurationfrom the stack template, as it no longer reflects the actual values in each node group. For more information, see UseOnlineResharding Policy.Required: No
Type: String
Update requires: Replacement
