@go-to-k/cdkd 0.178.0 → 0.180.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/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { _ as withSkipPrefix, a as runDockerStreaming, c as getLogger, d as getLiveRenderer, f as PATTERN_B_NAME_PROPERTIES, g as generateResourceNameWithFallback, h as generateResourceName, i as runDockerForeground, n as formatDockerLoginError, p as PATTERN_B_RESOURCE_TYPES, r as getDockerCmd, u as runStackBuffered, v as withStackName } from "./docker-cmd-iDMcWcre.js";
|
|
3
|
-
import { A as S3StateBackend, B as resolveCaptureObservedState, C as assertRegionMatch, D as DagBuilder, E as DiffCalculator, F as buildDockerImage, G as CFN_TEMPLATE_BODY_LIMIT, H as resolveStateBucketWithDefault, I as Synthesizer, J as findLargeInlineResources, K as CFN_TEMPLATE_URL_LIMIT, L as getDefaultStateBucketName, M as AssetPublisher, N as stringifyValue, O as TemplateParser, P as WorkGraph, Q as resolveBucketRegion, R as getLegacyStateBucketName, S as CloudControlProvider, T as applyRoleArnIfSet, U as resolveStateBucketWithDefaultAndSource, V as resolveSkipPrefix, W as warnDeprecatedNoPrefixCliFlag, X as AssemblyReader, Y as uploadCfnTemplate, _ as matchesCdkPath, a as withRetry, at as LocalStartServiceError, b as ProviderRegistry, bt as withErrorHandling, c as bold, ct as NestedStackChildDirectDestroyError, d as green, dt as ResourceTimeoutError, et as CdkdError, f as red, ft as ResourceUpdateNotSupportedError, g as CDK_PATH_TAG, h as collectInlinePolicyNamesManagedBySiblings, i as withResourceDeadline, it as LocalMigrateError, j as shouldRetainResource, k as LockManager, l as cyan, lt as PartialFailureError, m as IAMRoleProvider, mt as StackTerminationProtectionError, n as DEFAULT_RESOURCE_WARN_AFTER_MS, o as IMPLICIT_DELETE_DEPENDENCIES, p as yellow, pt as StackHasActiveImportsError, q as MIGRATE_TMP_PREFIX, r as DeployEngine, rt as LocalInvokeBuildError$1, s as formatResourceLine, st as MissingCdkCliError, t as DEFAULT_RESOURCE_TIMEOUT_MS, u as gray, ut as ProvisioningError, v as normalizeAwsTagsToCfn, w as IntrinsicFunctionResolver, x as findActionableSilentDrops, y as resolveExplicitPhysicalId, yt as normalizeAwsError, z as resolveApp } from "./deploy-engine-
|
|
3
|
+
import { A as S3StateBackend, B as resolveCaptureObservedState, C as assertRegionMatch, D as DagBuilder, E as DiffCalculator, F as buildDockerImage, G as CFN_TEMPLATE_BODY_LIMIT, H as resolveStateBucketWithDefault, I as Synthesizer, J as findLargeInlineResources, K as CFN_TEMPLATE_URL_LIMIT, L as getDefaultStateBucketName, M as AssetPublisher, N as stringifyValue, O as TemplateParser, P as WorkGraph, Q as resolveBucketRegion, R as getLegacyStateBucketName, S as CloudControlProvider, T as applyRoleArnIfSet, U as resolveStateBucketWithDefaultAndSource, V as resolveSkipPrefix, W as warnDeprecatedNoPrefixCliFlag, X as AssemblyReader, Y as uploadCfnTemplate, _ as matchesCdkPath, a as withRetry, at as LocalStartServiceError, b as ProviderRegistry, bt as withErrorHandling, c as bold, ct as NestedStackChildDirectDestroyError, d as green, dt as ResourceTimeoutError, et as CdkdError, f as red, ft as ResourceUpdateNotSupportedError, g as CDK_PATH_TAG, h as collectInlinePolicyNamesManagedBySiblings, i as withResourceDeadline, it as LocalMigrateError, j as shouldRetainResource, k as LockManager, l as cyan, lt as PartialFailureError, m as IAMRoleProvider, mt as StackTerminationProtectionError, n as DEFAULT_RESOURCE_WARN_AFTER_MS, o as IMPLICIT_DELETE_DEPENDENCIES, p as yellow, pt as StackHasActiveImportsError, q as MIGRATE_TMP_PREFIX, r as DeployEngine, rt as LocalInvokeBuildError$1, s as formatResourceLine, st as MissingCdkCliError, t as DEFAULT_RESOURCE_TIMEOUT_MS, u as gray, ut as ProvisioningError, v as normalizeAwsTagsToCfn, w as IntrinsicFunctionResolver, x as findActionableSilentDrops, y as resolveExplicitPhysicalId, yt as normalizeAwsError, z as resolveApp } from "./deploy-engine-Db0n6EV_.js";
|
|
4
4
|
import { a as setAwsClients, i as resetAwsClients, r as getAwsClients, t as AwsClients } from "./aws-clients-B15NAPbL.js";
|
|
5
5
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
6
6
|
import { randomBytes, randomUUID } from "node:crypto";
|
|
@@ -15962,7 +15962,9 @@ var ApiGatewayV2Provider = class {
|
|
|
15962
15962
|
"RouteKey",
|
|
15963
15963
|
"Target",
|
|
15964
15964
|
"AuthorizationType",
|
|
15965
|
-
"AuthorizerId"
|
|
15965
|
+
"AuthorizerId",
|
|
15966
|
+
"AuthorizationScopes",
|
|
15967
|
+
"OperationName"
|
|
15966
15968
|
])],
|
|
15967
15969
|
["AWS::ApiGatewayV2::Authorizer", new Set([
|
|
15968
15970
|
"ApiId",
|
|
@@ -15971,7 +15973,9 @@ var ApiGatewayV2Provider = class {
|
|
|
15971
15973
|
"IdentitySource",
|
|
15972
15974
|
"JwtConfiguration",
|
|
15973
15975
|
"AuthorizerUri",
|
|
15974
|
-
"AuthorizerPayloadFormatVersion"
|
|
15976
|
+
"AuthorizerPayloadFormatVersion",
|
|
15977
|
+
"AuthorizerResultTtlInSeconds",
|
|
15978
|
+
"EnableSimpleResponses"
|
|
15975
15979
|
])]
|
|
15976
15980
|
]);
|
|
15977
15981
|
/**
|
|
@@ -16211,7 +16215,9 @@ var ApiGatewayV2Provider = class {
|
|
|
16211
16215
|
RouteKey: routeKey,
|
|
16212
16216
|
Target: properties["Target"],
|
|
16213
16217
|
AuthorizationType: properties["AuthorizationType"],
|
|
16214
|
-
AuthorizerId: properties["AuthorizerId"]
|
|
16218
|
+
AuthorizerId: properties["AuthorizerId"],
|
|
16219
|
+
AuthorizationScopes: properties["AuthorizationScopes"],
|
|
16220
|
+
OperationName: properties["OperationName"]
|
|
16215
16221
|
}))).RouteId;
|
|
16216
16222
|
this.logger.debug(`Successfully created API Gateway V2 Route ${logicalId}: ${routeId}`);
|
|
16217
16223
|
return {
|
|
@@ -16260,7 +16266,9 @@ var ApiGatewayV2Provider = class {
|
|
|
16260
16266
|
IdentitySource: properties["IdentitySource"] ? typeof properties["IdentitySource"] === "string" ? [properties["IdentitySource"]] : properties["IdentitySource"] : void 0,
|
|
16261
16267
|
JwtConfiguration: properties["JwtConfiguration"],
|
|
16262
16268
|
AuthorizerUri: properties["AuthorizerUri"],
|
|
16263
|
-
AuthorizerPayloadFormatVersion: properties["AuthorizerPayloadFormatVersion"]
|
|
16269
|
+
AuthorizerPayloadFormatVersion: properties["AuthorizerPayloadFormatVersion"],
|
|
16270
|
+
AuthorizerResultTtlInSeconds: properties["AuthorizerResultTtlInSeconds"],
|
|
16271
|
+
EnableSimpleResponses: properties["EnableSimpleResponses"]
|
|
16264
16272
|
}))).AuthorizerId;
|
|
16265
16273
|
this.logger.debug(`Successfully created API Gateway V2 Authorizer ${logicalId}: ${authorizerId}`);
|
|
16266
16274
|
return {
|
|
@@ -16390,6 +16398,7 @@ var ApiGatewayV2Provider = class {
|
|
|
16390
16398
|
result["AuthorizerId"] = resp.AuthorizerId ?? "";
|
|
16391
16399
|
result["AuthorizationScopes"] = resp.AuthorizationScopes ? [...resp.AuthorizationScopes] : [];
|
|
16392
16400
|
}
|
|
16401
|
+
if (resp.OperationName !== void 0) result["OperationName"] = resp.OperationName;
|
|
16393
16402
|
return result;
|
|
16394
16403
|
} catch (err) {
|
|
16395
16404
|
if (err instanceof NotFoundException$3) return void 0;
|
|
@@ -16412,6 +16421,8 @@ var ApiGatewayV2Provider = class {
|
|
|
16412
16421
|
else if (resp.AuthorizerType === "REQUEST") {
|
|
16413
16422
|
result["AuthorizerUri"] = resp.AuthorizerUri ?? "";
|
|
16414
16423
|
result["AuthorizerPayloadFormatVersion"] = resp.AuthorizerPayloadFormatVersion ?? "";
|
|
16424
|
+
if (resp.AuthorizerResultTtlInSeconds !== void 0) result["AuthorizerResultTtlInSeconds"] = resp.AuthorizerResultTtlInSeconds;
|
|
16425
|
+
if (resp.EnableSimpleResponses !== void 0) result["EnableSimpleResponses"] = resp.EnableSimpleResponses;
|
|
16415
16426
|
}
|
|
16416
16427
|
return result;
|
|
16417
16428
|
} catch (err) {
|
|
@@ -16643,7 +16654,7 @@ var ApiGatewayV2Provider = class {
|
|
|
16643
16654
|
/**
|
|
16644
16655
|
* `UpdateRoute` keys on `(ApiId, RouteId)`. Mutable fields cdkd
|
|
16645
16656
|
* manages: `RouteKey` / `Target` / `AuthorizationType` /
|
|
16646
|
-
* `AuthorizerId` / `AuthorizationScopes`.
|
|
16657
|
+
* `AuthorizerId` / `AuthorizationScopes` / `OperationName`.
|
|
16647
16658
|
*/
|
|
16648
16659
|
async updateRoute(logicalId, physicalId, resourceType, properties, previousProperties) {
|
|
16649
16660
|
const apiId = properties["ApiId"] ?? previousProperties["ApiId"];
|
|
@@ -16674,6 +16685,10 @@ var ApiGatewayV2Provider = class {
|
|
|
16674
16685
|
input.AuthorizationScopes = properties["AuthorizationScopes"];
|
|
16675
16686
|
changed = true;
|
|
16676
16687
|
}
|
|
16688
|
+
if (properties["OperationName"] !== void 0 && properties["OperationName"] !== previousProperties["OperationName"]) {
|
|
16689
|
+
input.OperationName = properties["OperationName"];
|
|
16690
|
+
changed = true;
|
|
16691
|
+
}
|
|
16677
16692
|
if (!changed) {
|
|
16678
16693
|
this.logger.debug(`No mutable Route fields changed for ${logicalId}; skipping UpdateRoute`);
|
|
16679
16694
|
return {
|
|
@@ -16697,7 +16712,8 @@ var ApiGatewayV2Provider = class {
|
|
|
16697
16712
|
* `UpdateAuthorizer` keys on `(ApiId, AuthorizerId)`. Mutable fields
|
|
16698
16713
|
* cdkd manages: `AuthorizerType` / `Name` / `IdentitySource` /
|
|
16699
16714
|
* `JwtConfiguration` / `AuthorizerUri` /
|
|
16700
|
-
* `AuthorizerPayloadFormatVersion
|
|
16715
|
+
* `AuthorizerPayloadFormatVersion` / `AuthorizerResultTtlInSeconds` /
|
|
16716
|
+
* `EnableSimpleResponses`.
|
|
16701
16717
|
*/
|
|
16702
16718
|
async updateAuthorizer(logicalId, physicalId, resourceType, properties, previousProperties) {
|
|
16703
16719
|
const apiId = properties["ApiId"] ?? previousProperties["ApiId"];
|
|
@@ -16736,6 +16752,14 @@ var ApiGatewayV2Provider = class {
|
|
|
16736
16752
|
input.AuthorizerPayloadFormatVersion = properties["AuthorizerPayloadFormatVersion"];
|
|
16737
16753
|
changed = true;
|
|
16738
16754
|
}
|
|
16755
|
+
if (properties["AuthorizerResultTtlInSeconds"] !== void 0 && properties["AuthorizerResultTtlInSeconds"] !== previousProperties["AuthorizerResultTtlInSeconds"]) {
|
|
16756
|
+
input.AuthorizerResultTtlInSeconds = properties["AuthorizerResultTtlInSeconds"];
|
|
16757
|
+
changed = true;
|
|
16758
|
+
}
|
|
16759
|
+
if (properties["EnableSimpleResponses"] !== void 0 && properties["EnableSimpleResponses"] !== previousProperties["EnableSimpleResponses"]) {
|
|
16760
|
+
input.EnableSimpleResponses = properties["EnableSimpleResponses"];
|
|
16761
|
+
changed = true;
|
|
16762
|
+
}
|
|
16739
16763
|
if (!changed) {
|
|
16740
16764
|
this.logger.debug(`No mutable Authorizer fields changed for ${logicalId}; skipping UpdateAuthorizer`);
|
|
16741
16765
|
return {
|
|
@@ -30641,7 +30665,8 @@ var CodeBuildProvider = class {
|
|
|
30641
30665
|
"FileSystemLocations",
|
|
30642
30666
|
"BuildBatchConfig",
|
|
30643
30667
|
"BadgeEnabled",
|
|
30644
|
-
"SourceVersion"
|
|
30668
|
+
"SourceVersion",
|
|
30669
|
+
"AutoRetryLimit"
|
|
30645
30670
|
])]]);
|
|
30646
30671
|
getClient() {
|
|
30647
30672
|
if (!this.client) this.client = new CodeBuildClient(this.providerRegion ? { region: this.providerRegion } : {});
|
|
@@ -30784,6 +30809,7 @@ var CodeBuildProvider = class {
|
|
|
30784
30809
|
vpcConfig,
|
|
30785
30810
|
logsConfig,
|
|
30786
30811
|
concurrentBuildLimit: properties["ConcurrentBuildLimit"],
|
|
30812
|
+
autoRetryLimit: properties["AutoRetryLimit"],
|
|
30787
30813
|
secondarySources,
|
|
30788
30814
|
secondaryArtifacts,
|
|
30789
30815
|
secondarySourceVersions,
|
|
@@ -30899,6 +30925,7 @@ var CodeBuildProvider = class {
|
|
|
30899
30925
|
if (project.queuedTimeoutInMinutes !== void 0) result["QueuedTimeoutInMinutes"] = project.queuedTimeoutInMinutes;
|
|
30900
30926
|
result["EncryptionKey"] = project.encryptionKey ?? "";
|
|
30901
30927
|
if (project.concurrentBuildLimit !== void 0) result["ConcurrentBuildLimit"] = project.concurrentBuildLimit;
|
|
30928
|
+
if (project.autoRetryLimit !== void 0) result["AutoRetryLimit"] = project.autoRetryLimit;
|
|
30902
30929
|
result["BadgeEnabled"] = project.badge?.badgeEnabled ?? false;
|
|
30903
30930
|
result["SourceVersion"] = project.sourceVersion ?? "";
|
|
30904
30931
|
{
|
|
@@ -51447,7 +51474,7 @@ function reorderArgs(argv) {
|
|
|
51447
51474
|
*/
|
|
51448
51475
|
async function main() {
|
|
51449
51476
|
const program = new Command();
|
|
51450
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.
|
|
51477
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.180.0");
|
|
51451
51478
|
program.addCommand(createBootstrapCommand());
|
|
51452
51479
|
program.addCommand(createSynthCommand());
|
|
51453
51480
|
program.addCommand(createListCommand());
|