Skip to content

invalid value for replication_group_id #164

Open
@artemkozlenkov

Description

@artemkozlenkov

Describe the Bug

After resources have been created the following outputs are present:

 Error: expected length of replication_group_id to be in the range (1 - 40), got 
│ 
│   with module.redis.aws_elasticache_replication_group.default[0],
│   on .terraform/modules/redis/main.tf line 120, in resource "aws_elasticache_replication_group" "default":
│  120:   replication_group_id          = var.replication_group_id == "" ? module.this.id : var.replication_group_id
│ 
╵
╷
│ Error: invalid value for replication_group_id (must contain only alphanumeric characters and hyphens)
│ 
│   with module.redis.aws_elasticache_replication_group.default[0],
│   on .terraform/modules/redis/main.tf line 120, in resource "aws_elasticache_replication_group" "default":
│  120:   replication_group_id          = var.replication_group_id == "" ? module.this.id : var.replication_group_id
│ 
╵
╷
│ Error: invalid value for replication_group_id (must begin with a letter)
│ 
│   with module.redis.aws_elasticache_replication_group.default[0],
│   on .terraform/modules/redis/main.tf line 120, in resource "aws_elasticache_replication_group" "default":
│  120:   replication_group_id          = var.replication_group_id == "" ? module.this.id : var.replication_group_id
│ 
╵
╷
│ Error: expected "replication_group_description" to not be an empty string, got 
│ 
│   with module.redis.aws_elasticache_replication_group.default[0],
│   on .terraform/modules/redis/main.tf line 121, in resource "aws_elasticache_replication_group" "default":
│  121:   replication_group_description = var.replication_group_id == "" ? module.this.id : var.replication_group_id

Expected Behavior

Expected no missing values in the module script.

Steps to Reproduce

Steps to reproduce the behavior:

  1. go to examples/complete
  2. terraform apply
  3. terraform apply
  4. See error

PS

to those affected as well in order to destroy resources go to .terraform/modules/redis/examples/complete/main.tf line 120,121 and replace the values with replication group id which you may query instead by utilizing aws cli aws elasticache describe-replication-groups

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