@aws-sdk/credential-provider-node 3.734.0 → 3.738.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +1 -1
- package/dist-es/remoteProvider.js +1 -1
- package/package.json +1 -1
package/dist-cjs/index.js
CHANGED
|
@@ -52,7 +52,7 @@ var remoteProvider = /* @__PURE__ */ __name(async (init) => {
|
|
|
52
52
|
const { fromHttp } = await Promise.resolve().then(() => __toESM(require("@aws-sdk/credential-provider-http")));
|
|
53
53
|
return (0, import_property_provider.chain)(fromHttp(init), fromContainerMetadata(init));
|
|
54
54
|
}
|
|
55
|
-
if (process.env[ENV_IMDS_DISABLED]) {
|
|
55
|
+
if (process.env[ENV_IMDS_DISABLED] && process.env[ENV_IMDS_DISABLED] !== "false") {
|
|
56
56
|
return async () => {
|
|
57
57
|
throw new import_property_provider.CredentialsProviderError("EC2 Instance Metadata Service access disabled", { logger: init.logger });
|
|
58
58
|
};
|
|
@@ -7,7 +7,7 @@ export const remoteProvider = async (init) => {
|
|
|
7
7
|
const { fromHttp } = await import("@aws-sdk/credential-provider-http");
|
|
8
8
|
return chain(fromHttp(init), fromContainerMetadata(init));
|
|
9
9
|
}
|
|
10
|
-
if (process.env[ENV_IMDS_DISABLED]) {
|
|
10
|
+
if (process.env[ENV_IMDS_DISABLED] && process.env[ENV_IMDS_DISABLED] !== "false") {
|
|
11
11
|
return async () => {
|
|
12
12
|
throw new CredentialsProviderError("EC2 Instance Metadata Service access disabled", { logger: init.logger });
|
|
13
13
|
};
|