From c7872e2885348645baec604cf7f57e1ce9f99aef Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Thu, 25 Apr 2024 10:14:16 -0700 Subject: [PATCH] chore(credential-provider-node): statically import credential-provider-env (#6026) --- packages/credential-provider-node/src/defaultProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/credential-provider-node/src/defaultProvider.ts b/packages/credential-provider-node/src/defaultProvider.ts index fd39c377bde8..bf1754da06f4 100644 --- a/packages/credential-provider-node/src/defaultProvider.ts +++ b/packages/credential-provider-node/src/defaultProvider.ts @@ -1,3 +1,4 @@ +import { fromEnv } from "@aws-sdk/credential-provider-env"; import type { FromIniInit } from "@aws-sdk/credential-provider-ini"; import type { FromProcessInit } from "@aws-sdk/credential-provider-process"; import type { FromSSOInit, SsoCredentialsParameters } from "@aws-sdk/credential-provider-sso"; @@ -60,7 +61,6 @@ export const defaultProvider = (init: DefaultProviderInit = {}): MemoizedProvide : [ async () => { init.logger?.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromEnv"); - const { fromEnv } = await import("@aws-sdk/credential-provider-env"); return fromEnv(init)(); }, ]),