Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid value for replication_group_id #164

Open
artemkozlenkov opened this issue May 17, 2022 · 2 comments
Open

invalid value for replication_group_id #164

artemkozlenkov opened this issue May 17, 2022 · 2 comments
Labels
bug 🐛 An issue with the system

Comments

@artemkozlenkov
Copy link

artemkozlenkov commented May 17, 2022

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

@artemkozlenkov artemkozlenkov added the bug 🐛 An issue with the system label May 17, 2022
@anthonykinetix
Copy link

any news ?

@jpeeler
Copy link

jpeeler commented Jul 19, 2024

Note that if you're trying to upgrade using the latest AWS provider (as of this writing, version 5.x), you have to bump this provider to at least version 0.51.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An issue with the system
Projects
None yet
Development

No branches or pull requests

3 participants