Skip to content

Error evaluating cluster_mode when var.cluster_mode_enabled = true #64

@rewt

Description

@rewt

Found a bug? Maybe our Slack Community can help.

Slack Community

Describe the Bug

Module fails to create Clustered Redis elasticache resource with error:

module.subnets.aws_nat_gateway.default[1]: Still creating... [1m50s elapsed]
module.subnets.aws_nat_gateway.default[0]: Still creating... [1m50s elapsed]
module.subnets.aws_nat_gateway.default[0]: Creation complete after 1m57s [id=]
module.subnets.aws_nat_gateway.default[1]: Creation complete after 1m57s [id=]
module.subnets.aws_route.default[1]: Creating...
module.subnets.aws_route.default[0]: Creating...
module.subnets.aws_route.default[0]: Creation complete after 1s [id=]
module.subnets.aws_route.default[1]: Creation complete after 1s [id=]

Error: Either `number_cache_clusters` or `cluster_mode` must be set

  on ../../main.tf line 81, in resource "aws_elasticache_replication_group" "default":
  81: resource "aws_elasticache_replication_group" "default" {

Expected Behavior

Successful creation of Clustered Redis resource when var.cluster_mode_enabled=true

Steps to Reproduce

Steps to reproduce the behavior:

  1. Clone repo
  2. Update cluster_mode_enabled default=true
  3. Update cluster_mode_replicas_per_node_group default=1
  4. Update cluster_mode_num_node_groups default=3

Screenshots

If applicable, add screenshots or logs to help explain your problem.

Environment (please complete the following information):

Mac OS
Terraform v0.12.23
+ provider.aws v2.53.0
+ provider.local v1.4.0
+ provider.null v2.1.2
+ provider.template v2.1.2

Additional Context

plan.txt
Add any other context about the problem here.

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