Open hwildwood opened 7 months ago
Voting for Prioritization
Volunteering to Work on This Issue
Hey @hwildwood 👋 Does this happen with user names other than default
and service-name
? I know we've seen other issues (for example #34784) where the use of default
caused unexpected behavior, so wanted to rule that out.
Hey @hwildwood 👋 Does this happen with user names other than
default
andservice-name
? I know we've seen other issues (for example #34784) where the use ofdefault
caused unexpected behavior, so wanted to rule that out.
I get the same thing if I use a different user_name
like default_new
. I also tried again with the latest 5.52
version.
╷
│ Error: creating ElastiCache User (service-default-user): UserAlreadyExists: User service-default-user already exists.
│ status code: 400, request id: 79be2704-1595-4d8a-b45d-89d855eb3a5f
│
│ with aws_elasticache_user.default,
│ on redis.tf line 27, in resource "aws_elasticache_user" "default":
│ 27: resource "aws_elasticache_user" "default" {
│
╵
Terraform Core Version
1.7.1
AWS Provider Version
5.44
Affected Resource(s)
aws_elasticache_user
Expected Behavior
I can update the
user_name
and terraform will destroy the old one and replace it with a new one.Actual Behavior
I updated the
user_name
property on theaws_elasticache_user
service user. The apply then fails, it looks like terraform tries to create the new user first which results in auser_id
clash.Relevant Error/Panic Output Snippet
Terraform Configuration Files
N/A I'm afraid.
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None