@go-to-k/cdkd 0.280.20 → 0.280.21
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-BWT5cpBO.js → asg-provider-FOwZJoaD.js} +2 -2
- package/dist/{asg-provider-BWT5cpBO.js.map → asg-provider-FOwZJoaD.js.map} +1 -1
- package/dist/cli.js +53 -8
- package/dist/cli.js.map +1 -1
- package/dist/{deploy-engine-CC3BV-Gp.js → deploy-engine-2LVq2qWa.js} +3 -3
- package/dist/{deploy-engine-CC3BV-Gp.js.map → deploy-engine-2LVq2qWa.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 requireConfigString, $t as processStackMessages, A as red, At as runDockerStreaming, B as isTerminationProtectionPropagationError, Bt as resolveSkipPrefix, C as isStatefulRecreateTargetSync, Ct as parseBootstrapMarker, D as cyan, Dn as normalizeAwsError, Dt as formatDockerLoginError, E as bold, Et as buildDockerImage, F as ProviderRegistry, Ft as getDefaultStateBucketName, G as normalizeAwsTagsToCfn, Gt as warnDeprecatedNoPrefixCliFlag, H as cfnRefValueFromPhysicalId, Ht as resolveStateBucketWithDefaultAndSource, I as findActionableSilentDrops, It as getLegacyStateBucketName, J as configStringRefusal, Jt as MIGRATE_TMP_PREFIX, K as resolveExplicitPhysicalId, Kt as CFN_TEMPLATE_BODY_LIMIT, L as CloudControlProvider, Lt as resolveApp, M as IAMRoleProvider, Mt as getDockerImageBySourceHash, N as collectInlinePolicyNamesManagedBySiblings, Nt as Synthesizer, O as gray, On as withErrorHandling, Ot as getDockerCmd, P as clearOnUpdateRemoval, Pt as synthesisStatusMessage, Q as requireConfigObject, Qt as AssemblyReader, R as slowCcOperationTimeoutMs, Rt as resolveAutoAssetStorage, S as MULTI_REGION_RECREATE_BLOCKED_TYPES, Sn as StackTerminationProtectionError, St as getBootstrapMarkerKey, T as formatResourceLine, Tt as validateContainerRepoName, U as refStateLookupFromResource, Ut as resolveUseCdkBootstrapAssets, V as IntrinsicFunctionResolver, Vt as resolveStateBucketWithDefault, W as WAFv2WebACLProvider, Wt as stateBucketExistenceConfirmed, X as replayWarn, Xt as uploadCfnTemplate, Y as readConfigString, Yt as findLargeInlineResources, Z as requireConfigArray, Zt as expectedOwnerParam, _ as createPreDeleteFinalSnapshot, _n as PartialFailureError, _t as loadPublishableAssetManifest, a as DeploymentEventsStore, an as setAwsClients, at as isThrottlingError, b as unsupportedFinalSnapshotError, bn as ResourceUpdateNotSupportedError, bt as BOOTSTRAP_MARKER_PREFIX, c as replayFailedOperations, ct as LockManager, d as IMPLICIT_DELETE_DEPENDENCIES, dn as LocalInvokeBuildError$1, dt as shouldRetainResource, et as applyRoleArnIfSet, f as computeImplicitDeleteEdges, fn as LocalMigrateError, ft as AssetPublisher, g as ccRoutedFinalSnapshotError, gn as NestedStackChildDirectDestroyError, gt as createAssetRedirectResolver, h as buildFinalSnapshotIdentifier, hn as MissingCdkCliError, ht as buildAssetRedirectMap, i as DeploymentEventsReader, in as resetAwsClients, it as isRetryableTransientError, j as yellow, jt as AssetManifestLoader, k as green, kt as runDockerForeground, l as replayRollback, lt as S3StateBackend, m as PRE_DELETE_SNAPSHOT_TYPES, mt as WorkGraph, n as DEFAULT_RESOURCE_WARN_AFTER_MS, nn as AwsClients, nt as describeTypeWithThrottleRetry, o as planFailedOps, ot as DagBuilder, p as ATOMIC_FINAL_SNAPSHOT_TYPES, pn as LocalStartServiceError, pt as stringifyValue, q as assertRegionMatch, qt as CFN_TEMPLATE_URL_LIMIT, r as DeployEngine, rn as getAwsClients, rt as withRetry, s as planRollback, sn as CdkdError, st as TemplateParser, t as DEFAULT_RESOURCE_TIMEOUT_MS, tn as resolveBucketRegion, tt as DiffCalculator, u as withResourceDeadline, un as DeployCancelledError, ut as rebuildClientForBucketRegion, v as isFinalSnapshotError, vn as ProvisioningError, vt as rewriteTemplateAssetReferences, w as renderStatefulReason, wt as validateAssetBucketName, x as extractDeploymentEventError, xn as StackHasActiveImportsError, xt as ensureAssetStorage, y as refusesFinalSnapshot, yn as ResourceTimeoutError, yt as AssetModeResolver, z as disableInstanceApiTermination, zt as resolveCaptureObservedState } from "./deploy-engine-
|
|
2
|
+
import { $ as requireConfigString, $t as processStackMessages, A as red, At as runDockerStreaming, B as isTerminationProtectionPropagationError, Bt as resolveSkipPrefix, C as isStatefulRecreateTargetSync, Ct as parseBootstrapMarker, D as cyan, Dn as normalizeAwsError, Dt as formatDockerLoginError, E as bold, Et as buildDockerImage, F as ProviderRegistry, Ft as getDefaultStateBucketName, G as normalizeAwsTagsToCfn, Gt as warnDeprecatedNoPrefixCliFlag, H as cfnRefValueFromPhysicalId, Ht as resolveStateBucketWithDefaultAndSource, I as findActionableSilentDrops, It as getLegacyStateBucketName, J as configStringRefusal, Jt as MIGRATE_TMP_PREFIX, K as resolveExplicitPhysicalId, Kt as CFN_TEMPLATE_BODY_LIMIT, L as CloudControlProvider, Lt as resolveApp, M as IAMRoleProvider, Mt as getDockerImageBySourceHash, N as collectInlinePolicyNamesManagedBySiblings, Nt as Synthesizer, O as gray, On as withErrorHandling, Ot as getDockerCmd, P as clearOnUpdateRemoval, Pt as synthesisStatusMessage, Q as requireConfigObject, Qt as AssemblyReader, R as slowCcOperationTimeoutMs, Rt as resolveAutoAssetStorage, S as MULTI_REGION_RECREATE_BLOCKED_TYPES, Sn as StackTerminationProtectionError, St as getBootstrapMarkerKey, T as formatResourceLine, Tt as validateContainerRepoName, U as refStateLookupFromResource, Ut as resolveUseCdkBootstrapAssets, V as IntrinsicFunctionResolver, Vt as resolveStateBucketWithDefault, W as WAFv2WebACLProvider, Wt as stateBucketExistenceConfirmed, X as replayWarn, Xt as uploadCfnTemplate, Y as readConfigString, Yt as findLargeInlineResources, Z as requireConfigArray, Zt as expectedOwnerParam, _ as createPreDeleteFinalSnapshot, _n as PartialFailureError, _t as loadPublishableAssetManifest, a as DeploymentEventsStore, an as setAwsClients, at as isThrottlingError, b as unsupportedFinalSnapshotError, bn as ResourceUpdateNotSupportedError, bt as BOOTSTRAP_MARKER_PREFIX, c as replayFailedOperations, ct as LockManager, d as IMPLICIT_DELETE_DEPENDENCIES, dn as LocalInvokeBuildError$1, dt as shouldRetainResource, et as applyRoleArnIfSet, f as computeImplicitDeleteEdges, fn as LocalMigrateError, ft as AssetPublisher, g as ccRoutedFinalSnapshotError, gn as NestedStackChildDirectDestroyError, gt as createAssetRedirectResolver, h as buildFinalSnapshotIdentifier, hn as MissingCdkCliError, ht as buildAssetRedirectMap, i as DeploymentEventsReader, in as resetAwsClients, it as isRetryableTransientError, j as yellow, jt as AssetManifestLoader, k as green, kt as runDockerForeground, l as replayRollback, lt as S3StateBackend, m as PRE_DELETE_SNAPSHOT_TYPES, mt as WorkGraph, n as DEFAULT_RESOURCE_WARN_AFTER_MS, nn as AwsClients, nt as describeTypeWithThrottleRetry, o as planFailedOps, ot as DagBuilder, p as ATOMIC_FINAL_SNAPSHOT_TYPES, pn as LocalStartServiceError, pt as stringifyValue, q as assertRegionMatch, qt as CFN_TEMPLATE_URL_LIMIT, r as DeployEngine, rn as getAwsClients, rt as withRetry, s as planRollback, sn as CdkdError, st as TemplateParser, t as DEFAULT_RESOURCE_TIMEOUT_MS, tn as resolveBucketRegion, tt as DiffCalculator, u as withResourceDeadline, un as DeployCancelledError, ut as rebuildClientForBucketRegion, v as isFinalSnapshotError, vn as ProvisioningError, vt as rewriteTemplateAssetReferences, w as renderStatefulReason, wt as validateAssetBucketName, x as extractDeploymentEventError, xn as StackHasActiveImportsError, xt as ensureAssetStorage, y as refusesFinalSnapshot, yn as ResourceTimeoutError, yt as AssetModeResolver, z as disableInstanceApiTermination, zt as resolveCaptureObservedState } from "./deploy-engine-2LVq2qWa.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-FOwZJoaD.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, DeleteBucketEncryptionCommand, DeleteBucketIntelligentTieringConfigurationCommand, DeleteBucketInventoryConfigurationCommand, DeleteBucketLifecycleCommand, DeleteBucketMetricsConfigurationCommand, DeleteBucketOwnershipControlsCommand, DeleteBucketPolicyCommand, DeleteBucketReplicationCommand, DeleteBucketTaggingCommand, DeleteBucketWebsiteCommand, DeleteObjectsCommand, GetBucketAccelerateConfigurationCommand, GetBucketCorsCommand, GetBucketEncryptionCommand, GetBucketLifecycleConfigurationCommand, GetBucketLocationCommand, GetBucketLoggingCommand, GetBucketNotificationConfigurationCommand, GetBucketOwnershipControlsCommand, 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";
|
|
@@ -52933,7 +52933,7 @@ function findRevertDroppedAwsKeys(drifts, desiredProperties, awsProperties) {
|
|
|
52933
52933
|
}
|
|
52934
52934
|
for (const key of driftedTopLevelKeys) {
|
|
52935
52935
|
if (!(key in desiredProperties)) continue;
|
|
52936
|
-
collectMissingPaths(awsProperties[key], desiredProperties[key], key, dropped);
|
|
52936
|
+
collectMissingPaths(awsProperties[key], desiredProperties[key], key, dropped, isTagListKey(key) ? isServiceManagedTagKey : void 0);
|
|
52937
52937
|
}
|
|
52938
52938
|
return [...dropped].sort();
|
|
52939
52939
|
}
|
|
@@ -52941,12 +52941,46 @@ function findRevertDroppedAwsKeys(drifts, desiredProperties, awsProperties) {
|
|
|
52941
52941
|
* Walk the AWS-side value against the desired-side value, recording every path
|
|
52942
52942
|
* present on the AWS side and absent on the desired side.
|
|
52943
52943
|
*
|
|
52944
|
-
*
|
|
52945
|
-
* drift comparator itself treats arrays as single values (its paths never
|
|
52944
|
+
* Plain objects are descended into. A POSITIONAL array is compared wholesale —
|
|
52945
|
+
* the drift comparator itself treats arrays as single values (its paths never
|
|
52946
52946
|
* carry an index), so an element-wise walk here would report positions the
|
|
52947
52947
|
* rest of the revert path cannot reason about.
|
|
52948
|
-
|
|
52949
|
-
|
|
52948
|
+
*
|
|
52949
|
+
* A KEYED list is the exception, and it is the shape with the most to drop
|
|
52950
|
+
* (issue [#1626](https://github.com/go-to-k/cdkd/issues/1626)). An
|
|
52951
|
+
* `[{Key, Value}]` list is semantically a MAP that CFn spells as an array —
|
|
52952
|
+
* ELBv2 `LoadBalancerAttributes`, `ListenerAttributes`, `TargetGroupAttributes`
|
|
52953
|
+
* and every `Tags` list are this shape — so its entries have stable identities,
|
|
52954
|
+
* not positions, and `Key` is exactly what the user would act on. Skipping it
|
|
52955
|
+
* left the pass blind precisely where `readCurrentState` returns AWS's FULL
|
|
52956
|
+
* attribute set (~20 entries) against a template that declares one or two: the
|
|
52957
|
+
* plan warned about nothing while the revert was about to touch eighteen keys.
|
|
52958
|
+
*
|
|
52959
|
+
* Keyed-list entries are reported in BRACKET form (`LoadBalancerAttributes
|
|
52960
|
+
* [deletion_protection.enabled]`) rather than dotted, because attribute keys
|
|
52961
|
+
* contain dots themselves and a dotted path would be ambiguous with a nested
|
|
52962
|
+
* object.
|
|
52963
|
+
*
|
|
52964
|
+
* `isPreservedKey` exempts entries the revert does NOT actually drop — the
|
|
52965
|
+
* caller passes {@link isServiceManagedTagKey} for a top-level TAG LIST, whose
|
|
52966
|
+
* revert goes through {@link mergeTagListForRevert} and keeps `aws:`-prefixed /
|
|
52967
|
+
* `AmazonECSManaged` entries (issue #1501). Reporting those would be a warning
|
|
52968
|
+
* about a loss that cannot happen.
|
|
52969
|
+
*/
|
|
52970
|
+
function collectMissingPaths(awsValue, desiredValue, path, out, isPreservedKey) {
|
|
52971
|
+
if (isKeyedList(awsValue)) {
|
|
52972
|
+
if (!isKeyedList(desiredValue)) {
|
|
52973
|
+
if (desiredValue === void 0) out.add(path);
|
|
52974
|
+
return;
|
|
52975
|
+
}
|
|
52976
|
+
const desiredKeys = new Set(desiredValue.map((e) => e.Key));
|
|
52977
|
+
for (const entry of awsValue) {
|
|
52978
|
+
if (desiredKeys.has(entry.Key)) continue;
|
|
52979
|
+
if (isPreservedKey?.(entry.Key)) continue;
|
|
52980
|
+
out.add(`${path}[${entry.Key}]`);
|
|
52981
|
+
}
|
|
52982
|
+
return;
|
|
52983
|
+
}
|
|
52950
52984
|
if (!isPlainRecord(awsValue)) return;
|
|
52951
52985
|
if (!isPlainRecord(desiredValue)) {
|
|
52952
52986
|
if (desiredValue === void 0) out.add(path);
|
|
@@ -52961,6 +52995,17 @@ function collectMissingPaths(awsValue, desiredValue, path, out) {
|
|
|
52961
52995
|
collectMissingPaths(value, desiredValue[key], childPath, out);
|
|
52962
52996
|
}
|
|
52963
52997
|
}
|
|
52998
|
+
/**
|
|
52999
|
+
* A NON-EMPTY array whose every element is an object carrying a string `Key`.
|
|
53000
|
+
*
|
|
53001
|
+
* Emptiness is deliberately excluded: `[]` carries no identities, so treating
|
|
53002
|
+
* it as keyed would report nothing on the AWS side and — as the DESIRED side —
|
|
53003
|
+
* would claim every AWS entry is dropped, which is already what the
|
|
53004
|
+
* whole-list arm reports more legibly.
|
|
53005
|
+
*/
|
|
53006
|
+
function isKeyedList(value) {
|
|
53007
|
+
return Array.isArray(value) && value.length > 0 && value.every((e) => typeof e === "object" && e !== null && typeof e.Key === "string");
|
|
53008
|
+
}
|
|
52964
53009
|
function isPlainRecord(value) {
|
|
52965
53010
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
52966
53011
|
}
|
|
@@ -70107,7 +70152,7 @@ function createMigrateCommand() {
|
|
|
70107
70152
|
*/
|
|
70108
70153
|
function buildProgram() {
|
|
70109
70154
|
const program = new Command();
|
|
70110
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.280.
|
|
70155
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.280.21");
|
|
70111
70156
|
program.hook("preAction", (_thisCommand, actionCommand) => {
|
|
70112
70157
|
const { profile } = actionCommand.optsWithGlobals();
|
|
70113
70158
|
if (profile !== void 0) process.env["AWS_PROFILE"] = profile;
|