cloudformation-coverage-roadmap icon indicating copy to clipboard operation
cloudformation-coverage-roadmap copied to clipboard

AWS::ElastiCache::ReplicationGroup - Sharded cluster always requires replacement when increasing number of nodes

Open 422158 opened this issue 4 years ago • 4 comments

Name of the resource

Other

Resource name

AWS::ElastiCache::ReplicationGroup

Description

When you try to increase a number of nodes per shard in AWS::ElastiCache::ReplicationGroup, you always need to replace the resource. It does not matter whether I use ReplicasPerNodeGroup parameter or if I use NodeGroupConfiguration.

  1. In case I use ReplicasPerNodeGroup, increase attempt always triggers the replacement.

  2. In case I use NodeGroupConfiguration, increase attempt will throw error: Node Group with Id 0001 has replica count 3 (provided that the previous number of nodes in shard 0001 was 3)

Other Details

No response

422158 avatar Sep 10 '21 08:09 422158

+1 I can do this without replacement with ElastiCache directly: https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/increase-replica-count.html

aaaeeeo avatar Mar 15 '22 19:03 aaaeeeo

I need this too. I added a new replica to failover on production, it became impossible to update cloudformation stack.

Is there any way to manually drift before aws supports it?

yb-yu avatar Jun 03 '22 00:06 yb-yu

  • 1 waiting for this to be implemented. If we do the changes manually, then CFT would go out of sync.

ANILGIST avatar Jun 30 '22 13:06 ANILGIST