@cdklabs/cdk-ecs-codedeploy 0.0.245 → 0.0.247
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/.jsii +4 -4
- package/.jsii.tabl.json +1 -1
- package/API.md +2 -2
- package/lib/api-canary/index.js +1 -1
- package/lib/ecs-appspec/index.js +1 -1
- package/lib/ecs-deployment/index.js +1 -1
- package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.d.ts +2 -2
- package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/package.json +14 -14
- package/node_modules/@aws-sdk/client-sso/package.json +11 -11
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +14 -14
- package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +43 -17
- package/node_modules/@aws-sdk/client-sts/dist-es/defaultStsRoleAssumers.js +17 -15
- package/node_modules/@aws-sdk/client-sts/dist-types/defaultRoleAssumers.d.ts +4 -4
- package/node_modules/@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers.d.ts +11 -3
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/defaultRoleAssumers.d.ts +4 -7
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/defaultStsRoleAssumers.d.ts +11 -3
- package/node_modules/@aws-sdk/client-sts/package.json +12 -12
- package/node_modules/@aws-sdk/core/CHANGELOG.md +11 -0
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +13 -7
- package/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js +6 -2
- package/node_modules/@aws-sdk/core/package.json +1 -1
- package/node_modules/@aws-sdk/core/src/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.ts +10 -2
- package/node_modules/@aws-sdk/core/tsconfig.cjs.tsbuildinfo +1 -1
- package/node_modules/@aws-sdk/core/tsconfig.es.tsbuildinfo +1 -1
- package/node_modules/@aws-sdk/core/tsconfig.types.tsbuildinfo +1 -1
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +10 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js +5 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-node/package.json +10 -9
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +5 -1
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js +5 -1
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-host-header/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-logger/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js +10 -2
- package/node_modules/@aws-sdk/middleware-signing/dist-es/awsAuthConfiguration.js +6 -2
- package/node_modules/@aws-sdk/middleware-signing/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +3 -3
- package/node_modules/@aws-sdk/region-config-resolver/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +16 -0
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/credentials.d.ts +3 -0
- package/node_modules/@aws-sdk/types/package.json +1 -1
- package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/package.json +4 -4
|
@@ -1,18 +1,18 @@
|
|
|
1
|
+
import { partition } from "@aws-sdk/util-endpoints";
|
|
1
2
|
import { AssumeRoleCommand } from "./commands/AssumeRoleCommand";
|
|
2
3
|
import { AssumeRoleWithWebIdentityCommand, } from "./commands/AssumeRoleWithWebIdentityCommand";
|
|
3
4
|
const ASSUME_ROLE_DEFAULT_REGION = "us-east-1";
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
const resolveRegion = async (_region, _parentRegion, credentialProviderLogger) => {
|
|
6
|
+
const region = typeof _region === "function" ? await _region() : _region;
|
|
7
|
+
const parentRegion = typeof _parentRegion === "function" ? await _parentRegion() : _parentRegion;
|
|
8
|
+
if (!parentRegion || partition(parentRegion).name === "aws") {
|
|
9
|
+
credentialProviderLogger?.debug?.("@aws-sdk/client-sts::resolveRegion", "accepting first of:", `${region} (provider)`, `${ASSUME_ROLE_DEFAULT_REGION} (STS default)`);
|
|
10
|
+
return region ?? ASSUME_ROLE_DEFAULT_REGION;
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
credentialProviderLogger?.debug?.("@aws-sdk/client-sts::resolveRegion", "accepting first of:", `${region} (provider)`, `${parentRegion} (parent client)`, `${ASSUME_ROLE_DEFAULT_REGION} (STS default)`);
|
|
14
|
+
return region ?? parentRegion ?? ASSUME_ROLE_DEFAULT_REGION;
|
|
7
15
|
}
|
|
8
|
-
return async () => {
|
|
9
|
-
try {
|
|
10
|
-
return await region();
|
|
11
|
-
}
|
|
12
|
-
catch (e) {
|
|
13
|
-
return ASSUME_ROLE_DEFAULT_REGION;
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
16
|
};
|
|
17
17
|
export const getDefaultRoleAssumer = (stsOptions, stsClientCtor) => {
|
|
18
18
|
let stsClient;
|
|
@@ -20,11 +20,12 @@ export const getDefaultRoleAssumer = (stsOptions, stsClientCtor) => {
|
|
|
20
20
|
return async (sourceCreds, params) => {
|
|
21
21
|
closureSourceCreds = sourceCreds;
|
|
22
22
|
if (!stsClient) {
|
|
23
|
-
const { logger, region, requestHandler } = stsOptions;
|
|
23
|
+
const { logger, region, requestHandler, credentialProviderLogger } = stsOptions;
|
|
24
|
+
const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger);
|
|
24
25
|
stsClient = new stsClientCtor({
|
|
25
26
|
logger,
|
|
26
27
|
credentialDefaultProvider: () => async () => closureSourceCreds,
|
|
27
|
-
region:
|
|
28
|
+
region: resolvedRegion,
|
|
28
29
|
...(requestHandler ? { requestHandler } : {}),
|
|
29
30
|
});
|
|
30
31
|
}
|
|
@@ -45,10 +46,11 @@ export const getDefaultRoleAssumerWithWebIdentity = (stsOptions, stsClientCtor)
|
|
|
45
46
|
let stsClient;
|
|
46
47
|
return async (params) => {
|
|
47
48
|
if (!stsClient) {
|
|
48
|
-
const { logger, region, requestHandler } = stsOptions;
|
|
49
|
+
const { logger, region, requestHandler, credentialProviderLogger } = stsOptions;
|
|
50
|
+
const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger);
|
|
49
51
|
stsClient = new stsClientCtor({
|
|
50
52
|
logger,
|
|
51
|
-
region:
|
|
53
|
+
region: resolvedRegion,
|
|
52
54
|
...(requestHandler ? { requestHandler } : {}),
|
|
53
55
|
});
|
|
54
56
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Pluggable } from "@smithy/types";
|
|
2
|
-
import { DefaultCredentialProvider, RoleAssumer, RoleAssumerWithWebIdentity } from "./defaultStsRoleAssumers";
|
|
3
|
-
import { ServiceInputTypes, ServiceOutputTypes
|
|
2
|
+
import { DefaultCredentialProvider, RoleAssumer, RoleAssumerWithWebIdentity, STSRoleAssumerOptions } from "./defaultStsRoleAssumers";
|
|
3
|
+
import { ServiceInputTypes, ServiceOutputTypes } from "./STSClient";
|
|
4
4
|
/**
|
|
5
5
|
* The default role assumer that used by credential providers when sts:AssumeRole API is needed.
|
|
6
6
|
*/
|
|
7
|
-
export declare const getDefaultRoleAssumer: (stsOptions?:
|
|
7
|
+
export declare const getDefaultRoleAssumer: (stsOptions?: STSRoleAssumerOptions, stsPlugins?: Pluggable<ServiceInputTypes, ServiceOutputTypes>[]) => RoleAssumer;
|
|
8
8
|
/**
|
|
9
9
|
* The default role assumer that used by credential providers when sts:AssumeRoleWithWebIdentity API is needed.
|
|
10
10
|
*/
|
|
11
|
-
export declare const getDefaultRoleAssumerWithWebIdentity: (stsOptions?:
|
|
11
|
+
export declare const getDefaultRoleAssumerWithWebIdentity: (stsOptions?: STSRoleAssumerOptions, stsPlugins?: Pluggable<ServiceInputTypes, ServiceOutputTypes>[]) => RoleAssumerWithWebIdentity;
|
|
12
12
|
/**
|
|
13
13
|
* The default credential providers depend STS client to assume role with desired API: sts:assumeRole,
|
|
14
14
|
* sts:assumeRoleWithWebIdentity, etc. This function decorates the default credential provider with role assumers which
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { CredentialProviderOptions } from "@aws-sdk/types";
|
|
2
|
+
import { AwsCredentialIdentity, Logger, Provider } from "@smithy/types";
|
|
2
3
|
import { AssumeRoleCommandInput } from "./commands/AssumeRoleCommand";
|
|
3
4
|
import { AssumeRoleWithWebIdentityCommandInput } from "./commands/AssumeRoleWithWebIdentityCommand";
|
|
4
5
|
import type { STSClient, STSClientConfig } from "./STSClient";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export type STSRoleAssumerOptions = Pick<STSClientConfig, "logger" | "region" | "requestHandler"> & {
|
|
10
|
+
credentialProviderLogger?: Logger;
|
|
11
|
+
parentClientConfig?: CredentialProviderOptions["parentClientConfig"];
|
|
12
|
+
};
|
|
5
13
|
/**
|
|
6
14
|
* @internal
|
|
7
15
|
*/
|
|
@@ -10,7 +18,7 @@ export type RoleAssumer = (sourceCreds: AwsCredentialIdentity, params: AssumeRol
|
|
|
10
18
|
* The default role assumer that used by credential providers when sts:AssumeRole API is needed.
|
|
11
19
|
* @internal
|
|
12
20
|
*/
|
|
13
|
-
export declare const getDefaultRoleAssumer: (stsOptions:
|
|
21
|
+
export declare const getDefaultRoleAssumer: (stsOptions: STSRoleAssumerOptions, stsClientCtor: new (options: STSClientConfig) => STSClient) => RoleAssumer;
|
|
14
22
|
/**
|
|
15
23
|
* @internal
|
|
16
24
|
*/
|
|
@@ -19,7 +27,7 @@ export type RoleAssumerWithWebIdentity = (params: AssumeRoleWithWebIdentityComma
|
|
|
19
27
|
* The default role assumer that used by credential providers when sts:AssumeRoleWithWebIdentity API is needed.
|
|
20
28
|
* @internal
|
|
21
29
|
*/
|
|
22
|
-
export declare const getDefaultRoleAssumerWithWebIdentity: (stsOptions:
|
|
30
|
+
export declare const getDefaultRoleAssumerWithWebIdentity: (stsOptions: STSRoleAssumerOptions, stsClientCtor: new (options: STSClientConfig) => STSClient) => RoleAssumerWithWebIdentity;
|
|
23
31
|
/**
|
|
24
32
|
* @internal
|
|
25
33
|
*/
|
|
@@ -3,18 +3,15 @@ import {
|
|
|
3
3
|
DefaultCredentialProvider,
|
|
4
4
|
RoleAssumer,
|
|
5
5
|
RoleAssumerWithWebIdentity,
|
|
6
|
+
STSRoleAssumerOptions,
|
|
6
7
|
} from "./defaultStsRoleAssumers";
|
|
7
|
-
import {
|
|
8
|
-
ServiceInputTypes,
|
|
9
|
-
ServiceOutputTypes,
|
|
10
|
-
STSClientConfig,
|
|
11
|
-
} from "./STSClient";
|
|
8
|
+
import { ServiceInputTypes, ServiceOutputTypes } from "./STSClient";
|
|
12
9
|
export declare const getDefaultRoleAssumer: (
|
|
13
|
-
stsOptions?:
|
|
10
|
+
stsOptions?: STSRoleAssumerOptions,
|
|
14
11
|
stsPlugins?: Pluggable<ServiceInputTypes, ServiceOutputTypes>[]
|
|
15
12
|
) => RoleAssumer;
|
|
16
13
|
export declare const getDefaultRoleAssumerWithWebIdentity: (
|
|
17
|
-
stsOptions?:
|
|
14
|
+
stsOptions?: STSRoleAssumerOptions,
|
|
18
15
|
stsPlugins?: Pluggable<ServiceInputTypes, ServiceOutputTypes>[]
|
|
19
16
|
) => RoleAssumerWithWebIdentity;
|
|
20
17
|
export declare const decorateDefaultCredentialProvider: (
|
|
@@ -1,20 +1,28 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CredentialProviderOptions } from "@aws-sdk/types";
|
|
2
|
+
import { AwsCredentialIdentity, Logger, Provider } from "@smithy/types";
|
|
2
3
|
import { AssumeRoleCommandInput } from "./commands/AssumeRoleCommand";
|
|
3
4
|
import { AssumeRoleWithWebIdentityCommandInput } from "./commands/AssumeRoleWithWebIdentityCommand";
|
|
4
5
|
import { STSClient, STSClientConfig } from "./STSClient";
|
|
6
|
+
export type STSRoleAssumerOptions = Pick<
|
|
7
|
+
STSClientConfig,
|
|
8
|
+
"logger" | "region" | "requestHandler"
|
|
9
|
+
> & {
|
|
10
|
+
credentialProviderLogger?: Logger;
|
|
11
|
+
parentClientConfig?: CredentialProviderOptions["parentClientConfig"];
|
|
12
|
+
};
|
|
5
13
|
export type RoleAssumer = (
|
|
6
14
|
sourceCreds: AwsCredentialIdentity,
|
|
7
15
|
params: AssumeRoleCommandInput
|
|
8
16
|
) => Promise<AwsCredentialIdentity>;
|
|
9
17
|
export declare const getDefaultRoleAssumer: (
|
|
10
|
-
stsOptions:
|
|
18
|
+
stsOptions: STSRoleAssumerOptions,
|
|
11
19
|
stsClientCtor: new (options: STSClientConfig) => STSClient
|
|
12
20
|
) => RoleAssumer;
|
|
13
21
|
export type RoleAssumerWithWebIdentity = (
|
|
14
22
|
params: AssumeRoleWithWebIdentityCommandInput
|
|
15
23
|
) => Promise<AwsCredentialIdentity>;
|
|
16
24
|
export declare const getDefaultRoleAssumerWithWebIdentity: (
|
|
17
|
-
stsOptions:
|
|
25
|
+
stsOptions: STSRoleAssumerOptions,
|
|
18
26
|
stsClientCtor: new (options: STSClientConfig) => STSClient
|
|
19
27
|
) => RoleAssumerWithWebIdentity;
|
|
20
28
|
export type DefaultCredentialProvider = (
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sts",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.511.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-sts",
|
|
@@ -22,16 +22,16 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
24
24
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
-
"@aws-sdk/middleware-logger": "3.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
31
|
-
"@aws-sdk/types": "3.
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
25
|
+
"@aws-sdk/core": "3.511.0",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.511.0",
|
|
27
|
+
"@aws-sdk/middleware-logger": "3.511.0",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "3.511.0",
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "3.511.0",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "3.511.0",
|
|
31
|
+
"@aws-sdk/types": "3.511.0",
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.511.0",
|
|
33
|
+
"@aws-sdk/util-user-agent-browser": "3.511.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "3.511.0",
|
|
35
35
|
"@smithy/config-resolver": "^2.1.1",
|
|
36
36
|
"@smithy/core": "^1.3.1",
|
|
37
37
|
"@smithy/fetch-http-handler": "^2.4.1",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
},
|
|
89
89
|
"license": "Apache-2.0",
|
|
90
90
|
"peerDependencies": {
|
|
91
|
-
"@aws-sdk/credential-provider-node": "^3.
|
|
91
|
+
"@aws-sdk/credential-provider-node": "^3.511.0"
|
|
92
92
|
},
|
|
93
93
|
"browser": {
|
|
94
94
|
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.511.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.510.0...v3.511.0) (2024-02-09)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **credential-provider-node:** pass client region to inner credential client region ([#5758](https://github.com/aws/aws-sdk-js-v3/issues/5758)) ([8c0b29e](https://github.com/aws/aws-sdk-js-v3/commit/8c0b29eabfe0ce8dbd2cbdcfb8b0a31b003bc3f2))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.496.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.495.0...v3.496.0) (2024-01-19)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -154,7 +154,13 @@ var resolveAwsSdkSigV4Config = /* @__PURE__ */ __name((config) => {
|
|
|
154
154
|
}
|
|
155
155
|
if (!normalizedCreds) {
|
|
156
156
|
if (config.credentialDefaultProvider) {
|
|
157
|
-
normalizedCreds = (0, import_core.normalizeProvider)(
|
|
157
|
+
normalizedCreds = (0, import_core.normalizeProvider)(
|
|
158
|
+
config.credentialDefaultProvider(
|
|
159
|
+
Object.assign({}, config, {
|
|
160
|
+
parentClientConfig: config
|
|
161
|
+
})
|
|
162
|
+
)
|
|
163
|
+
);
|
|
158
164
|
} else {
|
|
159
165
|
normalizedCreds = /* @__PURE__ */ __name(async () => {
|
|
160
166
|
throw new Error("`credentials` is missing");
|
|
@@ -303,14 +309,14 @@ var awsExpectUnion = /* @__PURE__ */ __name((value) => {
|
|
|
303
309
|
// Annotate the CommonJS export names for ESM import in node:
|
|
304
310
|
|
|
305
311
|
0 && (module.exports = {
|
|
306
|
-
|
|
312
|
+
emitWarningIfUnsupportedVersion,
|
|
307
313
|
AwsSdkSigV4Signer,
|
|
314
|
+
AWSSDKSigV4Signer,
|
|
315
|
+
resolveAwsSdkSigV4Config,
|
|
316
|
+
resolveAWSSDKSigV4Config,
|
|
317
|
+
_toStr,
|
|
308
318
|
_toBool,
|
|
309
319
|
_toNum,
|
|
310
|
-
|
|
311
|
-
awsExpectUnion,
|
|
312
|
-
emitWarningIfUnsupportedVersion,
|
|
313
|
-
resolveAWSSDKSigV4Config,
|
|
314
|
-
resolveAwsSdkSigV4Config
|
|
320
|
+
awsExpectUnion
|
|
315
321
|
});
|
|
316
322
|
|
package/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js
CHANGED
|
@@ -7,10 +7,14 @@ export const resolveAwsSdkSigV4Config = (config) => {
|
|
|
7
7
|
}
|
|
8
8
|
if (!normalizedCreds) {
|
|
9
9
|
if (config.credentialDefaultProvider) {
|
|
10
|
-
normalizedCreds = normalizeProvider(config.credentialDefaultProvider(config
|
|
10
|
+
normalizedCreds = normalizeProvider(config.credentialDefaultProvider(Object.assign({}, config, {
|
|
11
|
+
parentClientConfig: config,
|
|
12
|
+
})));
|
|
11
13
|
}
|
|
12
14
|
else {
|
|
13
|
-
normalizedCreds = async () => {
|
|
15
|
+
normalizedCreds = async () => {
|
|
16
|
+
throw new Error("`credentials` is missing");
|
|
17
|
+
};
|
|
14
18
|
}
|
|
15
19
|
}
|
|
16
20
|
const { signingEscapePath = true, systemClockOffset = config.systemClockOffset || 0, sha256, } = config;
|
|
@@ -111,9 +111,17 @@ export const resolveAwsSdkSigV4Config = <T>(
|
|
|
111
111
|
// credentialDefaultProvider should always be populated, but in case
|
|
112
112
|
// it isn't, set a default identity provider that throws an error
|
|
113
113
|
if (config.credentialDefaultProvider) {
|
|
114
|
-
normalizedCreds = normalizeProvider(
|
|
114
|
+
normalizedCreds = normalizeProvider(
|
|
115
|
+
config.credentialDefaultProvider(
|
|
116
|
+
Object.assign({}, config as any, {
|
|
117
|
+
parentClientConfig: config,
|
|
118
|
+
})
|
|
119
|
+
)
|
|
120
|
+
);
|
|
115
121
|
} else {
|
|
116
|
-
normalizedCreds = async () => {
|
|
122
|
+
normalizedCreds = async () => {
|
|
123
|
+
throw new Error("`credentials` is missing");
|
|
124
|
+
};
|
|
117
125
|
}
|
|
118
126
|
}
|
|
119
127
|
|