Hi Team
We use terraform to maintain your AWS infrastructure and elasticache (Redis) is one of the services to use. Jenkins runs our pipelines in multiple workers and sometimes we get failure while configuring the elasticache user groups resources.
Error: deleting ElastiCache User Group Association (“xxxxxx-serivice): InvalidUserGroupState: User group x-default-user-group has status modifying. Only active user groups can be modified.
status code: 400, request id: xxxxxx-xxxx-xxxx-xxxx
also, terraform changes for elasticache are taking time significantly higher than other services.
xxxx_elasticache_user: Still destroying... [id=xxxxxx-xxxx-xxxx-xxxx, 30s elapsed]
xxxx_elasticache_user: Still destroying... [id=xxxxxx-xxxx-xxxx-xxxx, 40s elapsed]
xxxx_elasticache_user: Still destroying... [id=xxxxxx-xxxx-xxxx-xxxx, 50s elapsed]
I could not find a clear solution in the documentation and other resources to improve this process.
We followed the recommendations in the official documents, but it was unable to help us and were unsuccessful.
Resource: aws_elasticache_user_group_association
Is there an optimal solution or suggestion to officially this situation? We have reduced the number of our Jenkins workers for the moment, but this situation can still happen