Skip to content

AWS::ElastiCache::ReplicationGroup - AWS::ElastiCache - Unable to scale up a cluster #383

Open
@ueokande

Description

@ueokande

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

  1. Create a cluster with a single-node.
  2. Modify the template to scale-up to two-nodes cluster and failover enabled.
  3. Apply the template.
  4. The stack finishes with no errors
  5. 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

  1. DB (ElastiCache)

7. Any additional context (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug?databaseRDS, DynamoDB, ElastiCache, Neptune, Amazon Redshift, Amazon QLDB, Amazon DocumentDB

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions