@go-to-k/cdkd 0.185.1 → 0.187.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-BaPUKMxP.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";
|
|
@@ -62,7 +62,8 @@ import { CreateVectorBucketCommand, DeleteIndexCommand, DeleteVectorBucketComman
|
|
|
62
62
|
import { CreateNamespaceCommand, CreateTableBucketCommand, CreateTableCommand as CreateTableCommand$2, DeleteNamespaceCommand as DeleteNamespaceCommand$1, DeleteTableBucketCommand, DeleteTableCommand as DeleteTableCommand$2, GetTableBucketCommand, GetTableCommand as GetTableCommand$1, ListNamespacesCommand as ListNamespacesCommand$1, ListTableBucketsCommand, ListTablesCommand as ListTablesCommand$1, ListTagsForResourceCommand as ListTagsForResourceCommand$19, NotFoundException as NotFoundException$5, S3TablesClient } from "@aws-sdk/client-s3tables";
|
|
63
63
|
import { AttachLoadBalancerTargetGroupsCommand, AttachLoadBalancersCommand, AttachTrafficSourcesCommand, AutoScalingClient, CreateAutoScalingGroupCommand, CreateOrUpdateTagsCommand, DeleteAutoScalingGroupCommand, DeleteLifecycleHookCommand, DeleteNotificationConfigurationCommand, DeleteTagsCommand as DeleteTagsCommand$1, DescribeAutoScalingGroupsCommand, DescribeLifecycleHooksCommand, DescribeNotificationConfigurationsCommand, DescribeTrafficSourcesCommand, DetachLoadBalancerTargetGroupsCommand, DetachLoadBalancersCommand, DetachTrafficSourcesCommand, DisableMetricsCollectionCommand, EnableMetricsCollectionCommand, PutLifecycleHookCommand, PutNotificationConfigurationCommand, UpdateAutoScalingGroupCommand } from "@aws-sdk/client-auto-scaling";
|
|
64
64
|
import { Document, Pair, Scalar, YAMLMap, YAMLSeq, parse as parse$1, stringify } from "yaml";
|
|
65
|
-
import {
|
|
65
|
+
import { createLocalStateProvider, isCfnFlagPresent, rejectExplicitCfnStackWithMultipleStacks, setEmbedConfig, substituteAgainstState, substituteAgainstStateAsync, substituteEnvVarsFromState, substituteEnvVarsFromStateAsync } from "cdk-local";
|
|
66
|
+
import { CloudMapRegistry, ConnectionRegistry, EcsTaskResolutionError, HOST_GATEWAY_MIN_VERSION, LocalInvokeBuildError, architectureToPlatform, attachAuthorizers, attachStageContext, availableApiIdentifiers, bufferToBody, buildCloudMapIndex, buildCognitoJwksUrl, buildConnectEvent, buildContainerImage, buildCorsConfigByApiId, buildCorsConfigFromCloudFrontChain, buildDisconnectEvent, buildJwksUrlFromIssuer, buildMessageEvent, buildMgmtEndpointEnvUrl, buildStageMap, createAuthorizerCache, createFileWatcher, createJwksCache, createWatchPredicates, defaultCredentialsLoader, derivePseudoParametersFromRegion, discoverRoutes, discoverWebSocketApis, filterRoutesByApiIdentifier, getContainerNetworkIp, groupRoutesByServer, handleConnectionsRequest, materializeLayerFromArn, parseConnectionsPath, parseSelectionExpressionPath, probeHostGatewaySupport, readMtlsMaterialsFromDisk, resolveEnvVars, resolveRuntimeCodeMountPath, resolveRuntimeFileExtension, resolveRuntimeImage, resolveWatchConfig, startApiServer, substituteImagePlaceholders, tryResolveImageFnJoin } from "cdk-local/internal";
|
|
66
67
|
import { createServer } from "node:net";
|
|
67
68
|
import { promisify } from "node:util";
|
|
68
69
|
import { setTimeout as setTimeout$1 } from "node:timers/promises";
|
|
@@ -15947,7 +15948,8 @@ var ApiGatewayV2Provider = class {
|
|
|
15947
15948
|
"DisableExecuteApiEndpoint",
|
|
15948
15949
|
"Version",
|
|
15949
15950
|
"RouteSelectionExpression",
|
|
15950
|
-
"ApiKeySelectionExpression"
|
|
15951
|
+
"ApiKeySelectionExpression",
|
|
15952
|
+
"IpAddressType"
|
|
15951
15953
|
])],
|
|
15952
15954
|
["AWS::ApiGatewayV2::Stage", new Set([
|
|
15953
15955
|
"ApiId",
|
|
@@ -15986,7 +15988,8 @@ var ApiGatewayV2Provider = class {
|
|
|
15986
15988
|
"AuthorizerUri",
|
|
15987
15989
|
"AuthorizerPayloadFormatVersion",
|
|
15988
15990
|
"AuthorizerResultTtlInSeconds",
|
|
15989
|
-
"EnableSimpleResponses"
|
|
15991
|
+
"EnableSimpleResponses",
|
|
15992
|
+
"IdentityValidationExpression"
|
|
15990
15993
|
])]
|
|
15991
15994
|
]);
|
|
15992
15995
|
/**
|
|
@@ -16083,6 +16086,7 @@ var ApiGatewayV2Provider = class {
|
|
|
16083
16086
|
Version: properties["Version"],
|
|
16084
16087
|
RouteSelectionExpression: properties["RouteSelectionExpression"],
|
|
16085
16088
|
ApiKeySelectionExpression: properties["ApiKeySelectionExpression"],
|
|
16089
|
+
IpAddressType: properties["IpAddressType"],
|
|
16086
16090
|
Tags: this.cfnTagsToRecord(properties["Tags"])
|
|
16087
16091
|
}));
|
|
16088
16092
|
const apiId = response.ApiId;
|
|
@@ -16279,7 +16283,8 @@ var ApiGatewayV2Provider = class {
|
|
|
16279
16283
|
AuthorizerUri: properties["AuthorizerUri"],
|
|
16280
16284
|
AuthorizerPayloadFormatVersion: properties["AuthorizerPayloadFormatVersion"],
|
|
16281
16285
|
AuthorizerResultTtlInSeconds: properties["AuthorizerResultTtlInSeconds"],
|
|
16282
|
-
EnableSimpleResponses: properties["EnableSimpleResponses"]
|
|
16286
|
+
EnableSimpleResponses: properties["EnableSimpleResponses"],
|
|
16287
|
+
IdentityValidationExpression: properties["IdentityValidationExpression"]
|
|
16283
16288
|
}))).AuthorizerId;
|
|
16284
16289
|
this.logger.debug(`Successfully created API Gateway V2 Authorizer ${logicalId}: ${authorizerId}`);
|
|
16285
16290
|
return {
|
|
@@ -16344,6 +16349,7 @@ var ApiGatewayV2Provider = class {
|
|
|
16344
16349
|
if (resp.ProtocolType === "WEBSOCKET" && resp.ApiKeySelectionExpression !== void 0) result["ApiKeySelectionExpression"] = resp.ApiKeySelectionExpression;
|
|
16345
16350
|
if (resp.DisableExecuteApiEndpoint !== void 0) result["DisableExecuteApiEndpoint"] = resp.DisableExecuteApiEndpoint;
|
|
16346
16351
|
if (resp.Version !== void 0) result["Version"] = resp.Version;
|
|
16352
|
+
if (resp.IpAddressType !== void 0) result["IpAddressType"] = resp.IpAddressType;
|
|
16347
16353
|
result["Tags"] = normalizeAwsTagsToCfn(resp.Tags);
|
|
16348
16354
|
return result;
|
|
16349
16355
|
} catch (err) {
|
|
@@ -16434,6 +16440,7 @@ var ApiGatewayV2Provider = class {
|
|
|
16434
16440
|
result["AuthorizerPayloadFormatVersion"] = resp.AuthorizerPayloadFormatVersion ?? "";
|
|
16435
16441
|
if (resp.AuthorizerResultTtlInSeconds !== void 0) result["AuthorizerResultTtlInSeconds"] = resp.AuthorizerResultTtlInSeconds;
|
|
16436
16442
|
if (resp.EnableSimpleResponses !== void 0) result["EnableSimpleResponses"] = resp.EnableSimpleResponses;
|
|
16443
|
+
if (resp.IdentityValidationExpression !== void 0) result["IdentityValidationExpression"] = resp.IdentityValidationExpression;
|
|
16437
16444
|
}
|
|
16438
16445
|
return result;
|
|
16439
16446
|
} catch (err) {
|
|
@@ -16492,7 +16499,8 @@ var ApiGatewayV2Provider = class {
|
|
|
16492
16499
|
* `UpdateApi` accepts the full Update input shape (not JSON Patch).
|
|
16493
16500
|
* Mutable fields cdkd manages: `Name` / `Description` /
|
|
16494
16501
|
* `CorsConfiguration` / `DisableExecuteApiEndpoint` / `Version` /
|
|
16495
|
-
* `RouteSelectionExpression` / `ApiKeySelectionExpression
|
|
16502
|
+
* `RouteSelectionExpression` / `ApiKeySelectionExpression` /
|
|
16503
|
+
* `IpAddressType`.
|
|
16496
16504
|
* `ProtocolType` is immutable — the deploy engine handles changes via
|
|
16497
16505
|
* the replacement path; we surface a `ResourceUpdateNotSupportedError`
|
|
16498
16506
|
* if it ever reaches us anyway.
|
|
@@ -16529,6 +16537,10 @@ var ApiGatewayV2Provider = class {
|
|
|
16529
16537
|
input.ApiKeySelectionExpression = properties["ApiKeySelectionExpression"];
|
|
16530
16538
|
changed = true;
|
|
16531
16539
|
}
|
|
16540
|
+
if (properties["IpAddressType"] !== void 0 && properties["IpAddressType"] !== previousProperties["IpAddressType"]) {
|
|
16541
|
+
input.IpAddressType = properties["IpAddressType"];
|
|
16542
|
+
changed = true;
|
|
16543
|
+
}
|
|
16532
16544
|
if (!changed) {
|
|
16533
16545
|
this.logger.debug(`No mutable Api fields changed for ${logicalId}; skipping UpdateApi`);
|
|
16534
16546
|
return {
|
|
@@ -16771,6 +16783,10 @@ var ApiGatewayV2Provider = class {
|
|
|
16771
16783
|
input.EnableSimpleResponses = properties["EnableSimpleResponses"];
|
|
16772
16784
|
changed = true;
|
|
16773
16785
|
}
|
|
16786
|
+
if (properties["IdentityValidationExpression"] !== void 0 && properties["IdentityValidationExpression"] !== previousProperties["IdentityValidationExpression"]) {
|
|
16787
|
+
input.IdentityValidationExpression = properties["IdentityValidationExpression"];
|
|
16788
|
+
changed = true;
|
|
16789
|
+
}
|
|
16774
16790
|
if (!changed) {
|
|
16775
16791
|
this.logger.debug(`No mutable Authorizer fields changed for ${logicalId}; skipping UpdateAuthorizer`);
|
|
16776
16792
|
return {
|
|
@@ -51547,7 +51563,7 @@ function reorderArgs(argv) {
|
|
|
51547
51563
|
*/
|
|
51548
51564
|
async function main() {
|
|
51549
51565
|
const program = new Command();
|
|
51550
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.
|
|
51566
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.187.0");
|
|
51551
51567
|
program.addCommand(createBootstrapCommand());
|
|
51552
51568
|
program.addCommand(createSynthCommand());
|
|
51553
51569
|
program.addCommand(createListCommand());
|