Open CarlosZaldivar opened 12 months ago
Voting for Prioritization
Volunteering to Work on This Issue
I believe this limitation is from AWS. I tried creating a user group using the AWS console and it gave me a similar error to add the default
user in user_group.
I did not find any AWS document explaining this.
Yes, but could the provider be smart enough to add the default user from aws_elasticache_user_group_association
when creating the group? As far as I know aws_elasticache_user_group_association
is a concept from the provider and it doesn't have an AWS equivalent anyway. I don't know the inner workings of the provider, so I don't know how difficult it would be to make it work.
As mentioned above, this is a limitation from aws side, if you do it like example it works.
Create the default user, create the group with default user and then create other users and associate them with the group.
Terraform Core Version
1.4.6
AWS Provider Version
4.67.0
Affected Resource(s)
Expected Behavior
I expect to be able to add a default user to
aws_elasticache_user_group
usingaws_elasticache_user_group_association
, not justaws_elasticache_user_group.user_ids
. The usage ofaws_elasticache_user_group.user_ids
conflicts with adding new users usingaws_elasticache_user_group_association
and forces the use ofignore_changes
onuser_ids
. This has been described here.Actual Behavior
Error 400 is shown.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Run apply
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None