Open
Description
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:
- go to examples/complete
- terraform apply
- terraform apply
- 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