diff --git a/packages/credential-provider-node/src/remoteProvider.ts b/packages/credential-provider-node/src/remoteProvider.ts index 27dce9a2de8e..9165a1af066d 100644 --- a/packages/credential-provider-node/src/remoteProvider.ts +++ b/packages/credential-provider-node/src/remoteProvider.ts @@ -24,7 +24,7 @@ export const remoteProvider = async ( return chain(fromHttp(init), fromContainerMetadata(init)); } - if (process.env[ENV_IMDS_DISABLED]) { + if (process.env[ENV_IMDS_DISABLED] && process.env[ENV_IMDS_DISABLED] !== "false") { return async () => { throw new CredentialsProviderError("EC2 Instance Metadata Service access disabled", { logger: init.logger }); };