-
Type: Investigation
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
Use Case
As a non aws user
I want to not have aws-sdk installed by default
So that I don't have extra modules installed
As an aws user
I want to have the aws-sdk version I install to be validated by npm
So that I know I'm using a compatible version with the mongodb driver
User Impact
- Users need to install the aws-sdk as a dependency of their project if they are AWS auth users.
Unknowns
- questions that need to be answered to determine implementation
Acceptance Criteria
Implementation Requirements
- Move aws-sdk to a peerDependency in package.json
- Add optional: true to peerDependeciesMeta for aws-sdk
- Import aws-sdk lazily inside aws auth logic
Testing Requirements
- Test dynamic import behavior
Documentation Requirements
- Add migration guide description
Follow Up Requirements
- additional tickets to file, required releases, etc
- depends on
-
NODE-4898 Make @aws-sdk/credential-providers an optional peerDependency
- Closed
- related to
-
MONGOSH-1358 Update to driver and bson v5.x
- Closed