[Bug]: When creating an aws elastiCache user, the user id in the camel case naming method was all lowercase, which further caused the problem of user group reference failure. #37151
create aws_elasticache_user and aws_elasticache_user_group successfully
Actual Behavior
Terraform helped me create a user whose user_id is all lowercase, but I declared the user_id named in camel case.
The same problem occurred when creating the aws_elasticache_user_group .
Relevant Error/Panic Output Snippet
aws_elasticache_user.test: Creating...
aws_security_group.redis-sg: Creating...
aws_elasticache_user.test: Creation complete after 2s [id=testuserid]
aws_security_group.redis-sg: Creation complete after 5s [id=sg-03208a6a4d9226e94]
╷
│ Error: Provider produced inconsistent final plan
│
│ When expanding the plan for aws_elasticache_user_group.test to include new values learned so far during apply,
│ provider "registry.terraform.io/hashicorp/aws" produced an invalid new value for .user_ids: planned set element
│ cty.StringVal("testUserId") does not correlate with any element in actual.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
user_id = "testUserId" -> On AWS, a user with user id “testuserid” will actually be created.
user_group_id = "userGroupId" -> On AWS, a user with user group id “usergroupid” will actually be created.
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Terraform Core Version
1.5.6
AWS Provider Version
5.46.0
Affected Resource(s)
aws_elasticache_user aws_elasticache_user_group
Expected Behavior
create aws_elasticache_user and aws_elasticache_user_group successfully
Actual Behavior
Terraform helped me create a user whose user_id is all lowercase, but I declared the user_id named in camel case.
The same problem occurred when creating the aws_elasticache_user_group .
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
just try to apply it
Debug Output
No response
Panic Output
No response
Important Factoids
user_id = "testUserId" -> On AWS, a user with user id “testuserid” will actually be created. user_group_id = "userGroupId" -> On AWS, a user with user group id “usergroupid” will actually be created.
References
No response
Would you like to implement a fix?
No