@go-to-k/cdkd 0.267.15 → 0.267.16
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/{asg-provider-BhY47O9R.js → asg-provider-Ge0MCN5U.js} +2 -2
- package/dist/{asg-provider-BhY47O9R.js.map → asg-provider-Ge0MCN5U.js.map} +1 -1
- package/dist/cli.js +89 -8
- package/dist/cli.js.map +1 -1
- package/dist/{deploy-engine-D7oQWXsX.js → deploy-engine-BjGr3po1.js} +3 -3
- package/dist/{deploy-engine-D7oQWXsX.js.map → deploy-engine-BjGr3po1.js.map} +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $ as WorkGraph, $t as NestedStackChildDirectDestroyError, A as slowCcOperationTimeoutMs, At as CFN_TEMPLATE_BODY_LIMIT, B as applyRoleArnIfSet, Bt as AwsClients, C as yellow, Ct as resolveAutoAssetStorage, D as ProviderRegistry, Dt as resolveStateBucketWithDefaultAndSource, E as clearOnUpdateRemoval, Et as resolveStateBucketWithDefault, F as refStateLookupFromResource, Ft as expectedOwnerParam, G as DagBuilder, Gt as CdkdError, H as describeTypeWithThrottleRetry, Ht as resetAwsClients, I as WAFv2WebACLProvider, It as AssemblyReader, J as S3StateBackend, Jt as LocalInvokeBuildError$1, K as TemplateParser, L as normalizeAwsTagsToCfn, Lt as processStackMessages, M as isTerminationProtectionPropagationError, Mt as MIGRATE_TMP_PREFIX, N as IntrinsicFunctionResolver, Nt as findLargeInlineResources, O as findActionableSilentDrops, Ot as resolveUseCdkBootstrapAssets, P as cfnRefValueFromPhysicalId, Pt as uploadCfnTemplate, Q as stringifyValue, Qt as MissingCdkCliError, R as resolveExplicitPhysicalId, S as red, St as resolveApp, T as collectInlinePolicyNamesManagedBySiblings, Tt as resolveSkipPrefix, U as withRetry, Ut as setAwsClients, V as DiffCalculator, Vt as getAwsClients, W as isRetryableTransientError, X as shouldRetainResource, Xt as LocalStartServiceError, Y as rebuildClientForBucketRegion, Yt as LocalMigrateError, Z as AssetPublisher, _ as formatResourceLine, _t as getDockerImageBySourceHash, a as DeploymentEventsStore, an as StackTerminationProtectionError, at as BOOTSTRAP_MARKER_PREFIX, b as gray, bt as getDefaultStateBucketName, c as replayFailedOperations, ct as parseBootstrapMarker, d as IMPLICIT_DELETE_DEPENDENCIES, dn as withErrorHandling, dt as buildDockerImage, en as PartialFailureError, et as buildAssetRedirectMap, f as computeImplicitDeleteEdges, ft as formatDockerLoginError, g as renderStatefulReason, gt as AssetManifestLoader, h as isStatefulRecreateTargetSync, ht as runDockerStreaming, i as DeploymentEventsReader, in as StackHasActiveImportsError, it as AssetModeResolver, j as disableInstanceApiTermination, jt as CFN_TEMPLATE_URL_LIMIT, k as CloudControlProvider, kt as warnDeprecatedNoPrefixCliFlag, l as replayRollback, lt as validateAssetBucketName, m as MULTI_REGION_RECREATE_BLOCKED_TYPES, mt as runDockerForeground, n as DEFAULT_RESOURCE_WARN_AFTER_MS, nn as ResourceTimeoutError, nt as loadPublishableAssetManifest, o as planFailedOps, ot as ensureAssetStorage, p as extractDeploymentEventError, pt as getDockerCmd, q as LockManager, r as DeployEngine, rn as ResourceUpdateNotSupportedError, rt as rewriteTemplateAssetReferences, s as planRollback, st as getBootstrapMarkerKey, t as DEFAULT_RESOURCE_TIMEOUT_MS, tn as ProvisioningError, tt as createAssetRedirectResolver, u as withResourceDeadline, un as normalizeAwsError, ut as validateContainerRepoName, v as bold, vt as Synthesizer, w as IAMRoleProvider, wt as resolveCaptureObservedState, x as green, xt as getLegacyStateBucketName, y as cyan, yt as synthesisStatusMessage, z as assertRegionMatch, zt as resolveBucketRegion } from "./deploy-engine-
|
|
2
|
+
import { $ as WorkGraph, $t as NestedStackChildDirectDestroyError, A as slowCcOperationTimeoutMs, At as CFN_TEMPLATE_BODY_LIMIT, B as applyRoleArnIfSet, Bt as AwsClients, C as yellow, Ct as resolveAutoAssetStorage, D as ProviderRegistry, Dt as resolveStateBucketWithDefaultAndSource, E as clearOnUpdateRemoval, Et as resolveStateBucketWithDefault, F as refStateLookupFromResource, Ft as expectedOwnerParam, G as DagBuilder, Gt as CdkdError, H as describeTypeWithThrottleRetry, Ht as resetAwsClients, I as WAFv2WebACLProvider, It as AssemblyReader, J as S3StateBackend, Jt as LocalInvokeBuildError$1, K as TemplateParser, L as normalizeAwsTagsToCfn, Lt as processStackMessages, M as isTerminationProtectionPropagationError, Mt as MIGRATE_TMP_PREFIX, N as IntrinsicFunctionResolver, Nt as findLargeInlineResources, O as findActionableSilentDrops, Ot as resolveUseCdkBootstrapAssets, P as cfnRefValueFromPhysicalId, Pt as uploadCfnTemplate, Q as stringifyValue, Qt as MissingCdkCliError, R as resolveExplicitPhysicalId, S as red, St as resolveApp, T as collectInlinePolicyNamesManagedBySiblings, Tt as resolveSkipPrefix, U as withRetry, Ut as setAwsClients, V as DiffCalculator, Vt as getAwsClients, W as isRetryableTransientError, X as shouldRetainResource, Xt as LocalStartServiceError, Y as rebuildClientForBucketRegion, Yt as LocalMigrateError, Z as AssetPublisher, _ as formatResourceLine, _t as getDockerImageBySourceHash, a as DeploymentEventsStore, an as StackTerminationProtectionError, at as BOOTSTRAP_MARKER_PREFIX, b as gray, bt as getDefaultStateBucketName, c as replayFailedOperations, ct as parseBootstrapMarker, d as IMPLICIT_DELETE_DEPENDENCIES, dn as withErrorHandling, dt as buildDockerImage, en as PartialFailureError, et as buildAssetRedirectMap, f as computeImplicitDeleteEdges, ft as formatDockerLoginError, g as renderStatefulReason, gt as AssetManifestLoader, h as isStatefulRecreateTargetSync, ht as runDockerStreaming, i as DeploymentEventsReader, in as StackHasActiveImportsError, it as AssetModeResolver, j as disableInstanceApiTermination, jt as CFN_TEMPLATE_URL_LIMIT, k as CloudControlProvider, kt as warnDeprecatedNoPrefixCliFlag, l as replayRollback, lt as validateAssetBucketName, m as MULTI_REGION_RECREATE_BLOCKED_TYPES, mt as runDockerForeground, n as DEFAULT_RESOURCE_WARN_AFTER_MS, nn as ResourceTimeoutError, nt as loadPublishableAssetManifest, o as planFailedOps, ot as ensureAssetStorage, p as extractDeploymentEventError, pt as getDockerCmd, q as LockManager, r as DeployEngine, rn as ResourceUpdateNotSupportedError, rt as rewriteTemplateAssetReferences, s as planRollback, st as getBootstrapMarkerKey, t as DEFAULT_RESOURCE_TIMEOUT_MS, tn as ProvisioningError, tt as createAssetRedirectResolver, u as withResourceDeadline, un as normalizeAwsError, ut as validateContainerRepoName, v as bold, vt as Synthesizer, w as IAMRoleProvider, wt as resolveCaptureObservedState, x as green, xt as getLegacyStateBucketName, y as cyan, yt as synthesisStatusMessage, z as assertRegionMatch, zt as resolveBucketRegion } from "./deploy-engine-BjGr3po1.js";
|
|
3
3
|
import { a as getLiveRenderer, c as PATTERN_B_RESOURCE_TYPES, d as generateResourceNameWithFallback, f as withSkipPrefix, i as runStackBuffered, n as getLogger, o as PATTERN_B_NAME_OPTIONS, p as withStackName, s as PATTERN_B_NAME_PROPERTIES, u as generateResourceName } from "./logger-BYMEE-BS.js";
|
|
4
|
-
import { t as ASGProvider } from "./asg-provider-
|
|
4
|
+
import { t as ASGProvider } from "./asg-provider-Ge0MCN5U.js";
|
|
5
5
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
6
6
|
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
7
7
|
import { CopyObjectCommand, CreateBucketCommand, DeleteBucketAnalyticsConfigurationCommand, DeleteBucketCommand, DeleteBucketCorsCommand, DeleteBucketIntelligentTieringConfigurationCommand, DeleteBucketInventoryConfigurationCommand, DeleteBucketLifecycleCommand, DeleteBucketMetricsConfigurationCommand, DeleteBucketPolicyCommand, DeleteBucketReplicationCommand, DeleteBucketTaggingCommand, DeleteBucketWebsiteCommand, DeleteObjectsCommand, GetBucketAccelerateConfigurationCommand, GetBucketCorsCommand, GetBucketEncryptionCommand, GetBucketLifecycleConfigurationCommand, GetBucketLocationCommand, GetBucketLoggingCommand, GetBucketNotificationConfigurationCommand, GetBucketPolicyCommand, GetBucketReplicationCommand, GetBucketTaggingCommand, GetBucketVersioningCommand, GetBucketWebsiteCommand, GetObjectCommand, GetObjectLockConfigurationCommand, GetPublicAccessBlockCommand, HeadBucketCommand, ListBucketAnalyticsConfigurationsCommand, ListBucketIntelligentTieringConfigurationsCommand, ListBucketInventoryConfigurationsCommand, ListBucketMetricsConfigurationsCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchBucket, PutBucketAccelerateConfigurationCommand, PutBucketAnalyticsConfigurationCommand, PutBucketCorsCommand, PutBucketEncryptionCommand, PutBucketIntelligentTieringConfigurationCommand, PutBucketInventoryConfigurationCommand, PutBucketLifecycleConfigurationCommand, PutBucketLoggingCommand, PutBucketMetricsConfigurationCommand, PutBucketNotificationConfigurationCommand, PutBucketOwnershipControlsCommand, PutBucketPolicyCommand, PutBucketReplicationCommand, PutBucketTaggingCommand, PutBucketVersioningCommand, PutBucketWebsiteCommand, PutObjectCommand, PutObjectLockConfigurationCommand, PutPublicAccessBlockCommand, S3Client, S3ServiceException } from "@aws-sdk/client-s3";
|
|
@@ -7020,8 +7020,28 @@ var SNSTopicProvider = class {
|
|
|
7020
7020
|
*
|
|
7021
7021
|
* SNS topics have limited mutable properties (DisplayName, KmsMasterKeyId, etc.).
|
|
7022
7022
|
* TopicName is immutable and requires replacement (handled by deployment layer).
|
|
7023
|
+
*
|
|
7024
|
+
* Thin wrapper that maps any AWS SDK failure onto {@link ProvisioningError}
|
|
7025
|
+
* the same way {@link create} and {@link delete} do, so an update failure
|
|
7026
|
+
* carries cdkd's typed error formatting and exit-code handling instead of
|
|
7027
|
+
* surfacing raw (issue #1267). This provider issues many separate `send`
|
|
7028
|
+
* calls across attributes / policies / subscriptions, so the wrap lives at
|
|
7029
|
+
* the boundary and the body stays in {@link applyUpdate}.
|
|
7030
|
+
*
|
|
7031
|
+
* A typed control-flow error is re-thrown untouched: the deploy engine
|
|
7032
|
+
* matches those by class to decide its fallback, so swallowing one into a
|
|
7033
|
+
* ProvisioningError would silently disable that path.
|
|
7023
7034
|
*/
|
|
7024
|
-
async update(logicalId, physicalId,
|
|
7035
|
+
async update(logicalId, physicalId, resourceType, properties, previousProperties) {
|
|
7036
|
+
try {
|
|
7037
|
+
return await this.applyUpdate(logicalId, physicalId, properties, previousProperties);
|
|
7038
|
+
} catch (error) {
|
|
7039
|
+
if (error instanceof CdkdError) throw error;
|
|
7040
|
+
const cause = error instanceof Error ? error : void 0;
|
|
7041
|
+
throw new ProvisioningError(`Failed to update SNS topic ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
|
|
7042
|
+
}
|
|
7043
|
+
}
|
|
7044
|
+
async applyUpdate(logicalId, physicalId, properties, previousProperties) {
|
|
7025
7045
|
this.logger.debug(`Updating SNS topic ${logicalId}: ${physicalId}`);
|
|
7026
7046
|
for (const attr of [
|
|
7027
7047
|
{
|
|
@@ -9391,8 +9411,27 @@ var LambdaEventSourceMappingProvider = class {
|
|
|
9391
9411
|
}
|
|
9392
9412
|
/**
|
|
9393
9413
|
* Update a Lambda Event Source Mapping
|
|
9414
|
+
*
|
|
9415
|
+
* Thin wrapper that maps any AWS SDK failure onto {@link ProvisioningError}
|
|
9416
|
+
* the same way {@link create} and {@link delete} do, so an update failure
|
|
9417
|
+
* carries cdkd's typed error formatting and exit-code handling instead of
|
|
9418
|
+
* surfacing raw (issue #1267). The body lives in {@link applyUpdate} so the
|
|
9419
|
+
* wrap is a boundary concern rather than a large indentation change.
|
|
9420
|
+
*
|
|
9421
|
+
* A typed control-flow error is re-thrown untouched: the deploy engine
|
|
9422
|
+
* matches those by class to decide its fallback, so swallowing one into a
|
|
9423
|
+
* ProvisioningError would silently disable that path.
|
|
9394
9424
|
*/
|
|
9395
|
-
async update(logicalId, physicalId,
|
|
9425
|
+
async update(logicalId, physicalId, resourceType, properties, previousProperties) {
|
|
9426
|
+
try {
|
|
9427
|
+
return await this.applyUpdate(logicalId, physicalId, properties, previousProperties);
|
|
9428
|
+
} catch (error) {
|
|
9429
|
+
if (error instanceof CdkdError) throw error;
|
|
9430
|
+
const cause = error instanceof Error ? error : void 0;
|
|
9431
|
+
throw new ProvisioningError(`Failed to update event source mapping ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
|
|
9432
|
+
}
|
|
9433
|
+
}
|
|
9434
|
+
async applyUpdate(logicalId, physicalId, properties, previousProperties) {
|
|
9396
9435
|
this.logger.debug(`Updating event source mapping ${logicalId}: ${physicalId}`);
|
|
9397
9436
|
const updateParams = {
|
|
9398
9437
|
UUID: physicalId,
|
|
@@ -12856,8 +12895,28 @@ var LogsLogGroupProvider = class {
|
|
|
12856
12895
|
* class after creation), so a class change throws
|
|
12857
12896
|
* {@link ResourceUpdateNotSupportedError} instead of being silently
|
|
12858
12897
|
* dropped; `--replace` recreates the log group under the new class.
|
|
12898
|
+
*
|
|
12899
|
+
* Thin wrapper that maps any AWS SDK failure onto {@link ProvisioningError}
|
|
12900
|
+
* the same way {@link create} and {@link delete} do, so an update failure
|
|
12901
|
+
* carries cdkd's typed error formatting and exit-code handling instead of
|
|
12902
|
+
* surfacing raw (issue #1267). The body lives in {@link applyUpdate} so the
|
|
12903
|
+
* wrap is a boundary concern rather than a large indentation change.
|
|
12904
|
+
*
|
|
12905
|
+
* The {@link ResourceUpdateNotSupportedError} thrown by the LogGroupClass
|
|
12906
|
+
* guard is re-thrown untouched: the deploy engine matches it by class to
|
|
12907
|
+
* fall back to replacement, so swallowing it into a ProvisioningError would
|
|
12908
|
+
* turn a recoverable class change into a hard failure.
|
|
12859
12909
|
*/
|
|
12860
|
-
async update(logicalId, physicalId,
|
|
12910
|
+
async update(logicalId, physicalId, resourceType, properties, previousProperties) {
|
|
12911
|
+
try {
|
|
12912
|
+
return await this.applyUpdate(logicalId, physicalId, properties, previousProperties);
|
|
12913
|
+
} catch (error) {
|
|
12914
|
+
if (error instanceof CdkdError) throw error;
|
|
12915
|
+
const cause = error instanceof Error ? error : void 0;
|
|
12916
|
+
throw new ProvisioningError(`Failed to update log group ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
|
|
12917
|
+
}
|
|
12918
|
+
}
|
|
12919
|
+
async applyUpdate(logicalId, physicalId, properties, previousProperties) {
|
|
12861
12920
|
this.logger.debug(`Updating log group ${logicalId}: ${physicalId}`);
|
|
12862
12921
|
const normalizeClass = (v) => typeof v === "string" && v.length > 0 ? v : "STANDARD";
|
|
12863
12922
|
const prevClass = normalizeClass(previousProperties["LogGroupClass"]);
|
|
@@ -14422,8 +14481,30 @@ var EventBridgeBusProvider = class {
|
|
|
14422
14481
|
throw new ProvisioningError(`Failed to create EventBus ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
|
|
14423
14482
|
}
|
|
14424
14483
|
}
|
|
14425
|
-
|
|
14426
|
-
|
|
14484
|
+
/**
|
|
14485
|
+
* Update an EventBus.
|
|
14486
|
+
*
|
|
14487
|
+
* Thin wrapper that maps any AWS SDK failure onto {@link ProvisioningError}
|
|
14488
|
+
* the same way {@link create} and {@link delete} do, so an update failure
|
|
14489
|
+
* carries cdkd's typed error formatting and exit-code handling instead of
|
|
14490
|
+
* surfacing raw (issue #1267). The body lives in {@link applyUpdate} so the
|
|
14491
|
+
* wrap is a boundary concern rather than a 70-line indentation change.
|
|
14492
|
+
*
|
|
14493
|
+
* A typed control-flow error is re-thrown untouched: the deploy engine
|
|
14494
|
+
* matches those by class to decide its fallback, so swallowing one into a
|
|
14495
|
+
* ProvisioningError would silently disable that path.
|
|
14496
|
+
*/
|
|
14497
|
+
async update(logicalId, physicalId, resourceType, properties, previousProperties) {
|
|
14498
|
+
try {
|
|
14499
|
+
return await this.applyUpdate(logicalId, physicalId, properties, previousProperties);
|
|
14500
|
+
} catch (error) {
|
|
14501
|
+
if (error instanceof CdkdError) throw error;
|
|
14502
|
+
const cause = error instanceof Error ? error : void 0;
|
|
14503
|
+
throw new ProvisioningError(`Failed to update EventBus ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
|
|
14504
|
+
}
|
|
14505
|
+
}
|
|
14506
|
+
async applyUpdate(logicalId, physicalId, properties, previousProperties) {
|
|
14507
|
+
this.logger.debug(`Updating EventBus ${logicalId}: ${physicalId}`);
|
|
14427
14508
|
const descChanged = properties["Description"] !== previousProperties["Description"];
|
|
14428
14509
|
const kmsChanged = properties["KmsKeyIdentifier"] !== previousProperties["KmsKeyIdentifier"];
|
|
14429
14510
|
const dlcChanged = JSON.stringify(properties["DeadLetterConfig"]) !== JSON.stringify(previousProperties["DeadLetterConfig"]);
|
|
@@ -62086,7 +62167,7 @@ function createMigrateCommand() {
|
|
|
62086
62167
|
*/
|
|
62087
62168
|
function buildProgram() {
|
|
62088
62169
|
const program = new Command();
|
|
62089
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.267.
|
|
62170
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.267.16");
|
|
62090
62171
|
program.hook("preAction", (_thisCommand, actionCommand) => {
|
|
62091
62172
|
const { profile } = actionCommand.optsWithGlobals();
|
|
62092
62173
|
if (profile !== void 0) process.env["AWS_PROFILE"] = profile;
|