-
Type: Improvement
-
Resolution: Gone away
-
Priority: Unknown
-
None
-
Affects Version/s: 5.7.0
-
Component/s: Authentication
How are you using Mongo? What version of the server and driver are you using?
- MongoDB 5.0.20 deployed at Atlas (dedicated clusters)
- MongoDB Native Node.Js driver 5.7.0 running in AWS ECS Fargate
- MongoDB-AWS database users
What is the feature/improvement you would like?
We would like to be able to configure the AWS credentials provider used by the MongoDB native driver.
What use case would this feature/improvement enable?
We use MongoDB Atlas with AWS IAM roles as the database users of our AWS ECS Fargate container-based apps. We recently noticed connection failure (and connection pool closing) due to MongoAWSError: Could not load credentials from any providers (some moments after the failures, the connections were restored. We believe it was a glitch at AWS at that moment). Apparently, the AWS credentials provider does not retry by default. We would like to enable these retries by configuring the AWS credentials provider. However, the driver uses the AWS credentials provider with no arguments.