Open
Description
1. Title
AWS::ElastiCache - Unable to scale up a cluster
2. Scope of request
e) other coverage-related issue with the resource/attribute/option
3. Expected behavior
I have a Redis cluster with a single node. I tried to scale up the cluster to a multi-node cluster by CloudFormation stack. But it fails on applying the stack.
Current cluster have single node without automatic failover. The cluster is created by the following CloudFormation resource:
MyRedisCludster:
Type: "AWS::ElastiCache::ReplicationGroup"
Properties:
ReplicationGroupDescription: "My cluster"
EngineVersion: "5.0.5"
CacheNodeType: "cache.t3.micro"
Engine: "redis"
NumCacheClusters: 1
AutomaticFailoverEnabled: "false"
Then I tried to scale-up the cluster: increase to two of nodes, and enable automatic failover by the following:
MyRedisCludster:
Type: "AWS::ElastiCache::ReplicationGroup"
Properties:
ReplicationGroupDescription: "My cluster"
EngineVersion: "5.0.5"
CacheNodeType: "cache.t3.micro"
Engine: "redis"
NumCacheClusters: 2 # <-- Update
AutomaticFailoverEnabled: "true" # <-- Update
The stack will fail and says the following message:
Replication group must have at least one read replica to enable autofailover.
The stack should complete updating the cluster successfully.
4. Suggest specific test cases
- Create a cluster with a single-node.
- Modify the template to scale-up to two-nodes cluster and failover enabled.
- Apply the template.
- The stack finishes with no errors
- The cluster has two nodes and the failover is enabled.
5. Helpful Links to speed up research and evaluation
6. Category (required) - Will help with tagging and be easier to find by other users to +1
- DB (ElastiCache)