Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: defer loading of credential-provider-imds in util-defaults-mode-node #1149

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

kuhe
Copy link
Contributor

@kuhe kuhe commented Jan 29, 2024

  • lazy load credential-provider-imds inside of util-defaults-mode-node.

This avoids loading the IMDS credential provider package unless it is used. It is currently loaded for every (AWS SDK) client because defaults-mode is part of the base client config.

dynamic imports were tested in Node.js and various bundler (esbuild, vite, webpack) configurations in aws/aws-sdk-js-v3#5681 and aws/aws-sdk-js-v3#5677.

@kuhe kuhe requested review from a team as code owners January 29, 2024 18:12
@kuhe kuhe requested a review from haydenbaker January 29, 2024 18:12
@kuhe kuhe merged commit 280ef3a into smithy-lang:main Jan 29, 2024
7 checks passed
@kuhe kuhe deleted the feat/dynamic-import branch January 29, 2024 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants