Skip to content

Unable to enable cluster mode #212

Open
@rymancl

Description

@rymancl

Describe the Bug

I am trying to switch an existing cluster with cluster_mode_enabled = false (default) to cluster_mode_enabled = true.
As part of this change, I have also made the following changes:

  • remove cluster_size
  • set automatic_failover_enabled = true
  • set cluster_mode_num_node_groups = 1
  • set cluster_mode_replicas_per_node_group = 1

Proposed plan:
Screenshot 2023-12-12 at 12 22 56 PM

Apply error:
Screenshot 2023-12-12 at 12 26 38 PM

module.shared-redis.aws_elasticache_parameter_group.default[0]: Modifying... [id=<redacted>-uw2-shared]
╷
│ Error: modifying ElastiCache Parameter Group: InvalidParameterValue: The parameter cluster-enabled cannot be modified.
│       status code: 400, request id: <redacted>
│ 
│   with module.shared-redis.aws_elasticache_parameter_group.default[0],
│   on .terraform/modules/shared-redis/main.tf line 91, in resource "aws_elasticache_parameter_group" "default":
│   91: resource "aws_elasticache_parameter_group" "default" {
│ 
╵

According to AWS, this parameter cannot be modified:
Screenshot 2023-12-12 at 12 28 14 PM

Expected Behavior

Successfully enable cluster mode on Redis

Steps to Reproduce

See above

Screenshots

No response

Environment

  • OSX Sonoma 14.2
  • Terraform v1.6.5 on darwin_arm64
  • AWS provider version 5.30.0
  • Module version 0.53.0
  • Redis engine version 7.0.7

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug🐛 An issue with the system

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions