@cdk8s/awscdk-resolver 0.0.180 → 0.0.181
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 +3 -3
- package/lib/resolve.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/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 +13 -13
- package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +10 -2
- package/node_modules/@aws-sdk/client-sts/dist-es/defaultStsRoleAssumers.js +10 -2
- package/node_modules/@aws-sdk/client-sts/package.json +13 -13
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +12 -0
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +6 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/setCredentialFeature.js +7 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js +6 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/setCredentialFeature.d.ts +7 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setCredentialFeature.d.ts +11 -0
- package/node_modules/@aws-sdk/core/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +4 -1
- package/node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js +4 -1
- package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -2
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +2 -1
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js +2 -1
- package/node_modules/@aws-sdk/credential-provider-http/package.json +3 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +29 -13
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js +3 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js +5 -3
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js +2 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js +10 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveStaticCredentials.js +5 -3
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js +2 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveAssumeRoleCredentials.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveSsoCredentials.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveAssumeRoleCredentials.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveSsoCredentials.d.ts +3 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -8
- package/node_modules/@aws-sdk/credential-provider-node/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +4 -1
- package/node_modules/@aws-sdk/credential-provider-process/dist-es/getValidatedProcessCredentials.js +4 -1
- package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -2
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +8 -1
- package/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js +9 -1
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +6 -1
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js +6 -1
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -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-user-agent/dist-cjs/index.js +13 -1
- package/node_modules/@aws-sdk/middleware-user-agent/dist-es/check-features.js +13 -0
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/check-features.d.ts +2 -1
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/check-features.d.ts +6 -1
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +4 -4
- 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/feature-ids.d.ts +6 -1
- package/node_modules/@aws-sdk/types/dist-types/identity/AwsCredentialIdentity.d.ts +5 -0
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/feature-ids.d.ts +4 -1
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AwsCredentialIdentity.d.ts +5 -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 +3 -3
- package/package.json +3 -3
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/middleware-logger",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.667.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-logger",
|
@@ -22,7 +22,7 @@
|
|
22
22
|
"module": "./dist-es/index.js",
|
23
23
|
"types": "./dist-types/index.d.ts",
|
24
24
|
"dependencies": {
|
25
|
-
"@aws-sdk/types": "3.
|
25
|
+
"@aws-sdk/types": "3.667.0",
|
26
26
|
"@smithy/types": "^3.5.0",
|
27
27
|
"tslib": "^2.6.2"
|
28
28
|
},
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/middleware-recursion-detection",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.667.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-recursion-detection",
|
@@ -21,7 +21,7 @@
|
|
21
21
|
},
|
22
22
|
"license": "Apache-2.0",
|
23
23
|
"dependencies": {
|
24
|
-
"@aws-sdk/types": "3.
|
24
|
+
"@aws-sdk/types": "3.667.0",
|
25
25
|
"@smithy/protocol-http": "^4.1.4",
|
26
26
|
"@smithy/types": "^3.5.0",
|
27
27
|
"tslib": "^2.6.2"
|
@@ -68,7 +68,7 @@ var import_protocol_http = require("@smithy/protocol-http");
|
|
68
68
|
// src/check-features.ts
|
69
69
|
var import_core2 = require("@aws-sdk/core");
|
70
70
|
async function checkFeatures(context, config, args) {
|
71
|
-
var _a;
|
71
|
+
var _a, _b;
|
72
72
|
const request = args.request;
|
73
73
|
if (typeof config.accountIdEndpointMode === "function") {
|
74
74
|
switch (await ((_a = config.accountIdEndpointMode) == null ? void 0 : _a.call(config))) {
|
@@ -83,6 +83,18 @@ async function checkFeatures(context, config, args) {
|
|
83
83
|
break;
|
84
84
|
}
|
85
85
|
}
|
86
|
+
if (typeof config.credentials === "function") {
|
87
|
+
try {
|
88
|
+
const credentials = await ((_b = config.credentials) == null ? void 0 : _b.call(config));
|
89
|
+
if (credentials.accountId) {
|
90
|
+
(0, import_core2.setFeature)(context, "RESOLVED_ACCOUNT_ID", "T");
|
91
|
+
}
|
92
|
+
for (const [key, value] of Object.entries(credentials.$source ?? {})) {
|
93
|
+
(0, import_core2.setFeature)(context, key, value);
|
94
|
+
}
|
95
|
+
} catch (e) {
|
96
|
+
}
|
97
|
+
}
|
86
98
|
}
|
87
99
|
__name(checkFeatures, "checkFeatures");
|
88
100
|
|
@@ -14,4 +14,17 @@ export async function checkFeatures(context, config, args) {
|
|
14
14
|
break;
|
15
15
|
}
|
16
16
|
}
|
17
|
+
if (typeof config.credentials === "function") {
|
18
|
+
try {
|
19
|
+
const credentials = await config.credentials?.();
|
20
|
+
if (credentials.accountId) {
|
21
|
+
setFeature(context, "RESOLVED_ACCOUNT_ID", "T");
|
22
|
+
}
|
23
|
+
for (const [key, value] of Object.entries(credentials.$source ?? {})) {
|
24
|
+
setFeature(context, key, value);
|
25
|
+
}
|
26
|
+
}
|
27
|
+
catch (e) {
|
28
|
+
}
|
29
|
+
}
|
17
30
|
}
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import type { AccountIdEndpointMode } from "@aws-sdk/core/account-id-endpoint";
|
2
2
|
import type { AwsHandlerExecutionContext } from "@aws-sdk/types";
|
3
|
-
import type { BuildHandlerArguments, Provider } from "@smithy/types";
|
3
|
+
import type { AwsCredentialIdentityProvider, BuildHandlerArguments, Provider } from "@smithy/types";
|
4
4
|
/**
|
5
5
|
* @internal
|
6
6
|
*/
|
7
7
|
type PreviouslyResolved = Partial<{
|
8
|
+
credentials?: AwsCredentialIdentityProvider;
|
8
9
|
accountIdEndpointMode?: Provider<AccountIdEndpointMode>;
|
9
10
|
}>;
|
10
11
|
/**
|
@@ -1,7 +1,12 @@
|
|
1
1
|
import { AccountIdEndpointMode } from "@aws-sdk/core/account-id-endpoint";
|
2
2
|
import { AwsHandlerExecutionContext } from "@aws-sdk/types";
|
3
|
-
import {
|
3
|
+
import {
|
4
|
+
AwsCredentialIdentityProvider,
|
5
|
+
BuildHandlerArguments,
|
6
|
+
Provider,
|
7
|
+
} from "@smithy/types";
|
4
8
|
type PreviouslyResolved = Partial<{
|
9
|
+
credentials?: AwsCredentialIdentityProvider;
|
5
10
|
accountIdEndpointMode?: Provider<AccountIdEndpointMode>;
|
6
11
|
}>;
|
7
12
|
export declare function checkFeatures(
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/middleware-user-agent",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.667.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-user-agent",
|
@@ -22,9 +22,9 @@
|
|
22
22
|
},
|
23
23
|
"license": "Apache-2.0",
|
24
24
|
"dependencies": {
|
25
|
-
"@aws-sdk/core": "3.
|
26
|
-
"@aws-sdk/types": "3.
|
27
|
-
"@aws-sdk/util-endpoints": "3.
|
25
|
+
"@aws-sdk/core": "3.667.0",
|
26
|
+
"@aws-sdk/types": "3.667.0",
|
27
|
+
"@aws-sdk/util-endpoints": "3.667.0",
|
28
28
|
"@smithy/core": "^2.4.8",
|
29
29
|
"@smithy/protocol-http": "^4.1.4",
|
30
30
|
"@smithy/types": "^3.5.0",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/region-config-resolver",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.667.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline region-config-resolver",
|
@@ -21,7 +21,7 @@
|
|
21
21
|
},
|
22
22
|
"license": "Apache-2.0",
|
23
23
|
"dependencies": {
|
24
|
-
"@aws-sdk/types": "3.
|
24
|
+
"@aws-sdk/types": "3.667.0",
|
25
25
|
"@smithy/node-config-provider": "^3.1.8",
|
26
26
|
"@smithy/types": "^3.5.0",
|
27
27
|
"@smithy/util-config-provider": "^3.0.0",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/token-providers",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.667.0",
|
4
4
|
"description": "A collection of token providers",
|
5
5
|
"main": "./dist-cjs/index.js",
|
6
6
|
"module": "./dist-es/index.js",
|
@@ -26,7 +26,7 @@
|
|
26
26
|
},
|
27
27
|
"license": "Apache-2.0",
|
28
28
|
"dependencies": {
|
29
|
-
"@aws-sdk/types": "3.
|
29
|
+
"@aws-sdk/types": "3.667.0",
|
30
30
|
"@smithy/property-provider": "^3.1.7",
|
31
31
|
"@smithy/shared-ini-file-loader": "^3.1.8",
|
32
32
|
"@smithy/types": "^3.5.0",
|
@@ -41,7 +41,7 @@
|
|
41
41
|
"typescript": "~4.9.5"
|
42
42
|
},
|
43
43
|
"peerDependencies": {
|
44
|
-
"@aws-sdk/client-sso-oidc": "^3.
|
44
|
+
"@aws-sdk/client-sso-oidc": "^3.667.0"
|
45
45
|
},
|
46
46
|
"types": "./dist-types/index.d.ts",
|
47
47
|
"engines": {
|
@@ -18,7 +18,6 @@ export type AwsSdkFeatures = Partial<{
|
|
18
18
|
ACCOUNT_ID_MODE_DISABLED: "Q";
|
19
19
|
ACCOUNT_ID_MODE_REQUIRED: "R";
|
20
20
|
SIGV4A_SIGNING: "S";
|
21
|
-
RESOLVED_ACCOUNT_ID: "T";
|
22
21
|
FLEXIBLE_CHECKSUMS_REQ_CRC32: "U";
|
23
22
|
FLEXIBLE_CHECKSUMS_REQ_CRC32C: "V";
|
24
23
|
FLEXIBLE_CHECKSUMS_REQ_CRC64: "W";
|
@@ -29,6 +28,12 @@ export type AwsSdkFeatures = Partial<{
|
|
29
28
|
FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED: "b";
|
30
29
|
FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED: "c";
|
31
30
|
DDB_MAPPER: "d";
|
31
|
+
}> & AwsSdkCredentialsFeatures;
|
32
|
+
/**
|
33
|
+
* @internal
|
34
|
+
*/
|
35
|
+
export type AwsSdkCredentialsFeatures = Partial<{
|
36
|
+
RESOLVED_ACCOUNT_ID: "T";
|
32
37
|
CREDENTIALS_CODE: "e";
|
33
38
|
CREDENTIALS_ENV_VARS: "g";
|
34
39
|
CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN: "h";
|
@@ -1 +1,6 @@
|
|
1
|
+
import type { AwsCredentialIdentity } from "@smithy/types";
|
2
|
+
import type { AwsSdkCredentialsFeatures } from "../feature-ids";
|
1
3
|
export { AwsCredentialIdentity, AwsCredentialIdentityProvider } from "@smithy/types";
|
4
|
+
export type AttributedAwsCredentialIdentity = AwsCredentialIdentity & {
|
5
|
+
$source?: AwsSdkCredentialsFeatures;
|
6
|
+
};
|
@@ -15,7 +15,6 @@ export type AwsSdkFeatures = Partial<{
|
|
15
15
|
ACCOUNT_ID_MODE_DISABLED: "Q";
|
16
16
|
ACCOUNT_ID_MODE_REQUIRED: "R";
|
17
17
|
SIGV4A_SIGNING: "S";
|
18
|
-
RESOLVED_ACCOUNT_ID: "T";
|
19
18
|
FLEXIBLE_CHECKSUMS_REQ_CRC32: "U";
|
20
19
|
FLEXIBLE_CHECKSUMS_REQ_CRC32C: "V";
|
21
20
|
FLEXIBLE_CHECKSUMS_REQ_CRC64: "W";
|
@@ -26,6 +25,10 @@ export type AwsSdkFeatures = Partial<{
|
|
26
25
|
FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED: "b";
|
27
26
|
FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED: "c";
|
28
27
|
DDB_MAPPER: "d";
|
28
|
+
}> &
|
29
|
+
AwsSdkCredentialsFeatures;
|
30
|
+
export type AwsSdkCredentialsFeatures = Partial<{
|
31
|
+
RESOLVED_ACCOUNT_ID: "T";
|
29
32
|
CREDENTIALS_CODE: "e";
|
30
33
|
CREDENTIALS_ENV_VARS: "g";
|
31
34
|
CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN: "h";
|
@@ -1,4 +1,9 @@
|
|
1
|
+
import { AwsCredentialIdentity } from "@smithy/types";
|
2
|
+
import { AwsSdkCredentialsFeatures } from "../feature-ids";
|
1
3
|
export {
|
2
4
|
AwsCredentialIdentity,
|
3
5
|
AwsCredentialIdentityProvider,
|
4
6
|
} from "@smithy/types";
|
7
|
+
export type AttributedAwsCredentialIdentity = AwsCredentialIdentity & {
|
8
|
+
$source?: AwsSdkCredentialsFeatures;
|
9
|
+
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/util-endpoints",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.667.0",
|
4
4
|
"description": "Utilities to help with endpoint resolution",
|
5
5
|
"main": "./dist-cjs/index.js",
|
6
6
|
"module": "./dist-es/index.js",
|
@@ -22,7 +22,7 @@
|
|
22
22
|
},
|
23
23
|
"license": "Apache-2.0",
|
24
24
|
"dependencies": {
|
25
|
-
"@aws-sdk/types": "3.
|
25
|
+
"@aws-sdk/types": "3.667.0",
|
26
26
|
"@smithy/types": "^3.5.0",
|
27
27
|
"@smithy/util-endpoints": "^2.1.3",
|
28
28
|
"tslib": "^2.6.2"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/util-user-agent-browser",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.667.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline util-user-agent-browser",
|
@@ -22,7 +22,7 @@
|
|
22
22
|
"license": "Apache-2.0",
|
23
23
|
"react-native": "dist-es/index.native.js",
|
24
24
|
"dependencies": {
|
25
|
-
"@aws-sdk/types": "3.
|
25
|
+
"@aws-sdk/types": "3.667.0",
|
26
26
|
"@smithy/types": "^3.5.0",
|
27
27
|
"bowser": "^2.11.0",
|
28
28
|
"tslib": "^2.6.2"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/util-user-agent-node",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.667.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline util-user-agent-node",
|
@@ -20,8 +20,8 @@
|
|
20
20
|
},
|
21
21
|
"license": "Apache-2.0",
|
22
22
|
"dependencies": {
|
23
|
-
"@aws-sdk/middleware-user-agent": "3.
|
24
|
-
"@aws-sdk/types": "3.
|
23
|
+
"@aws-sdk/middleware-user-agent": "3.667.0",
|
24
|
+
"@aws-sdk/types": "3.667.0",
|
25
25
|
"@smithy/node-config-provider": "^3.1.8",
|
26
26
|
"@smithy/types": "^3.5.0",
|
27
27
|
"tslib": "^2.6.2"
|
package/package.json
CHANGED
@@ -51,7 +51,7 @@
|
|
51
51
|
"aws-cdk": "^2.161.1",
|
52
52
|
"aws-cdk-lib": "2.109.0",
|
53
53
|
"cdk8s": "2.68.91",
|
54
|
-
"cdk8s-cli": "^2.198.
|
54
|
+
"cdk8s-cli": "^2.198.240",
|
55
55
|
"commit-and-tag-version": "^12",
|
56
56
|
"constructs": "10.3.0",
|
57
57
|
"eslint": "^8",
|
@@ -76,7 +76,7 @@
|
|
76
76
|
"constructs": "^10.3.0"
|
77
77
|
},
|
78
78
|
"dependencies": {
|
79
|
-
"@aws-sdk/client-cloudformation": "^3.
|
79
|
+
"@aws-sdk/client-cloudformation": "^3.667.0"
|
80
80
|
},
|
81
81
|
"bundledDependencies": [
|
82
82
|
"@aws-sdk/client-cloudformation"
|
@@ -92,7 +92,7 @@
|
|
92
92
|
"publishConfig": {
|
93
93
|
"access": "public"
|
94
94
|
},
|
95
|
-
"version": "0.0.
|
95
|
+
"version": "0.0.181",
|
96
96
|
"jest": {
|
97
97
|
"coverageProvider": "v8",
|
98
98
|
"testMatch": [
|