@cdk8s/awscdk-resolver 0.0.732 → 0.0.733

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 CHANGED
@@ -7,7 +7,7 @@
7
7
  "url": "https://aws.amazon.com"
8
8
  },
9
9
  "bundled": {
10
- "@aws-sdk/client-cloudformation": "^3.1166.0"
10
+ "@aws-sdk/client-cloudformation": "^3.1167.0"
11
11
  },
12
12
  "dependencies": {
13
13
  "aws-cdk-lib": "^2.195.0",
@@ -4083,6 +4083,6 @@
4083
4083
  "symbolId": "src/resolve:AwsCdkResolver"
4084
4084
  }
4085
4085
  },
4086
- "version": "0.0.732",
4087
- "fingerprint": "7W9VUPuinhv6gVUiGlzXJC80b2vun9dw9wVVyHGXQ/E="
4086
+ "version": "0.0.733",
4087
+ "fingerprint": "FCWhrRrtYreGJ8EJfw+raVByrlovX/BrVNRiSw+zws4="
4088
4088
  }
package/lib/resolve.js CHANGED
@@ -39,7 +39,7 @@ const child_process_1 = require("child_process");
39
39
  const path = __importStar(require("path"));
40
40
  const aws_cdk_lib_1 = require("aws-cdk-lib");
41
41
  class AwsCdkResolver {
42
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdk8s/awscdk-resolver.AwsCdkResolver", version: "0.0.732" };
42
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdk8s/awscdk-resolver.AwsCdkResolver", version: "0.0.733" };
43
43
  resolve(context) {
44
44
  if (!aws_cdk_lib_1.Token.isUnresolved(context.value)) {
45
45
  return;
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1165.0";
72
+ var version = "3.1166.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudformation",
3
- "version": "3.1166.0",
3
+ "version": "3.1167.0",
4
4
  "description": "AWS SDK for JavaScript Cloudformation Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cloudformation",
6
6
  "license": "Apache-2.0",
@@ -49,7 +49,7 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@aws-sdk/core": "^3.981.0",
52
- "@aws-sdk/credential-provider-node": "^3.972.96",
52
+ "@aws-sdk/credential-provider-node": "^3.972.97",
53
53
  "@aws-sdk/types": "^3.975.1",
54
54
  "@smithy/core": "^3.40.0",
55
55
  "@smithy/fetch-http-handler": "^5.8.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-ini",
3
- "version": "3.973.29",
3
+ "version": "3.973.30",
4
4
  "description": "AWS credential provider that sources credentials from ~/.aws/credentials and ~/.aws/config",
5
5
  "keywords": [
6
6
  "aws",
@@ -48,7 +48,7 @@
48
48
  "@aws-sdk/core": "^3.981.0",
49
49
  "@aws-sdk/credential-provider-env": "^3.972.84",
50
50
  "@aws-sdk/credential-provider-http": "^3.972.86",
51
- "@aws-sdk/credential-provider-login": "^3.972.91",
51
+ "@aws-sdk/credential-provider-login": "^3.972.92",
52
52
  "@aws-sdk/credential-provider-process": "^3.972.84",
53
53
  "@aws-sdk/credential-provider-sso": "^3.973.28",
54
54
  "@aws-sdk/credential-provider-web-identity": "^3.972.90",
@@ -63,7 +63,10 @@ class LoginCredentialsFetcher {
63
63
  const requestHandler = isH2(this.callerClientConfig?.requestHandler)
64
64
  ? undefined
65
65
  : this.callerClientConfig?.requestHandler;
66
- const region = this.profileData.region ?? (await this.callerClientConfig?.region?.()) ?? process.env.AWS_REGION;
66
+ const signInRegion = typeof freshToken.signInRegion === "string" && freshToken.signInRegion.length > 0
67
+ ? freshToken.signInRegion
68
+ : undefined;
69
+ const region = signInRegion ?? this.profileData.region ?? (await this.callerClientConfig?.region?.()) ?? process.env.AWS_REGION;
67
70
  const client = new SigninClient({
68
71
  credentials: {
69
72
  accessKeyId: "",
@@ -74,6 +77,7 @@ class LoginCredentialsFetcher {
74
77
  logger,
75
78
  userAgentAppId,
76
79
  ...this.init?.clientConfig,
80
+ ...(signInRegion && { region: signInRegion }),
77
81
  });
78
82
  this.createDPoPInterceptor(client.middlewareStack);
79
83
  const commandInput = {
@@ -61,7 +61,10 @@ export class LoginCredentialsFetcher {
61
61
  const requestHandler = isH2(this.callerClientConfig?.requestHandler)
62
62
  ? undefined
63
63
  : this.callerClientConfig?.requestHandler;
64
- const region = this.profileData.region ?? (await this.callerClientConfig?.region?.()) ?? process.env.AWS_REGION;
64
+ const signInRegion = typeof freshToken.signInRegion === "string" && freshToken.signInRegion.length > 0
65
+ ? freshToken.signInRegion
66
+ : undefined;
67
+ const region = signInRegion ?? this.profileData.region ?? (await this.callerClientConfig?.region?.()) ?? process.env.AWS_REGION;
65
68
  const client = new SigninClient({
66
69
  credentials: {
67
70
  accessKeyId: "",
@@ -72,6 +75,7 @@ export class LoginCredentialsFetcher {
72
75
  logger,
73
76
  userAgentAppId,
74
77
  ...this.init?.clientConfig,
78
+ ...(signInRegion && { region: signInRegion }),
75
79
  });
76
80
  this.createDPoPInterceptor(client.middlewareStack);
77
81
  const commandInput = {
@@ -18,6 +18,7 @@ export interface LoginToken {
18
18
  refreshToken: string;
19
19
  idToken: string;
20
20
  dpopKey: string;
21
+ signInRegion?: string;
21
22
  }
22
23
  export interface DpopHeader {
23
24
  typ: "dpop+jwt";
@@ -11,7 +11,9 @@ export interface FromLoginCredentialsInit extends CredentialProviderOptions, Sha
11
11
  */
12
12
  profile?: string;
13
13
  /**
14
- * Login client configuration for token refresh operations
14
+ * Login client configuration for token refresh operations.
15
+ * The `signInRegion` recorded in the cached token overrides a `region` set here.
16
+ * A `region` set here applies when the token has no `signInRegion`.
15
17
  */
16
18
  clientConfig?: SigninClientConfig;
17
19
  }
@@ -32,6 +34,7 @@ export interface LoginToken {
32
34
  refreshToken: string;
33
35
  idToken: string;
34
36
  dpopKey: string;
37
+ signInRegion?: string;
35
38
  }
36
39
  /**
37
40
  * DPoP header structure for OAuth 2.0 Demonstrating Proof of Possession
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-login",
3
- "version": "3.972.91",
3
+ "version": "3.972.92",
4
4
  "description": "AWS credential provider that sources credentials from aws login cached tokens",
5
5
  "keywords": [
6
6
  "aws",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-node",
3
- "version": "3.972.96",
3
+ "version": "3.972.97",
4
4
  "description": "AWS credential provider that sources credentials from a Node.JS environment. ",
5
5
  "keywords": [
6
6
  "aws",
@@ -47,7 +47,7 @@
47
47
  "dependencies": {
48
48
  "@aws-sdk/credential-provider-env": "^3.972.84",
49
49
  "@aws-sdk/credential-provider-http": "^3.972.86",
50
- "@aws-sdk/credential-provider-ini": "^3.973.29",
50
+ "@aws-sdk/credential-provider-ini": "^3.973.30",
51
51
  "@aws-sdk/credential-provider-process": "^3.972.84",
52
52
  "@aws-sdk/credential-provider-sso": "^3.973.28",
53
53
  "@aws-sdk/credential-provider-web-identity": "^3.972.90",
package/package.json CHANGED
@@ -78,7 +78,7 @@
78
78
  "constructs": "^10.3.0"
79
79
  },
80
80
  "dependencies": {
81
- "@aws-sdk/client-cloudformation": "^3.1166.0"
81
+ "@aws-sdk/client-cloudformation": "^3.1167.0"
82
82
  },
83
83
  "bundledDependencies": [
84
84
  "@aws-sdk/client-cloudformation"
@@ -92,7 +92,7 @@
92
92
  "publishConfig": {
93
93
  "access": "public"
94
94
  },
95
- "version": "0.0.732",
95
+ "version": "0.0.733",
96
96
  "jest": {
97
97
  "coverageProvider": "v8",
98
98
  "testMatch": [