@go-to-k/cdkd 0.238.0 → 0.238.1
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 +28 -7
- package/dist/cli.js.map +1 -1
- package/dist/{deploy-engine-CX6s1TcX.js → deploy-engine-BxEZXkWw.js} +15 -2
- package/dist/deploy-engine-BxEZXkWw.js.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/deploy-engine-CX6s1TcX.js.map +0 -1
package/dist/cli.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
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-BzO-joNR.js";
|
|
3
3
|
import { A as withErrorHandling, C as StackHasActiveImportsError, S as ResourceUpdateNotSupportedError, _ as MissingCdkCliError, a as normalizeAwsTagsToCfn, b as ProvisioningError, f as LocalInvokeBuildError$1, i as matchesCdkPath, k as normalizeAwsError, l as CdkdError, m as LocalStartServiceError, n as isTerminationProtectionPropagationError, o as resolveExplicitPhysicalId, p as LocalMigrateError, r as CDK_PATH_TAG, s as assertRegionMatch, t as disableInstanceApiTermination, v as NestedStackChildDirectDestroyError, w as StackTerminationProtectionError, x as ResourceTimeoutError, y as PartialFailureError } from "./ec2-termination-protection-q-WGWgxa.js";
|
|
4
4
|
import { a as setAwsClients, i as resetAwsClients, r as getAwsClients, t as AwsClients } from "./aws-clients-B15NAPbL.js";
|
|
5
|
-
import { $ as getDockerCmd, A as DiffCalculator, B as buildAssetRedirectMap, C as findActionableSilentDrops, Ct as resolveBucketRegion, D as refStateLookupFromResource, E as cfnRefValueFromPhysicalId, F as rebuildClientForBucketRegion, G as BOOTSTRAP_MARKER_PREFIX, H as loadPublishableAssetManifest, I as shouldRetainResource, J as parseBootstrapMarker, K as ensureAssetStorage, L as AssetPublisher, M as TemplateParser, N as LockManager, O as WAFv2WebACLProvider, P as S3StateBackend, Q as formatDockerLoginError, R as stringifyValue, S as ProviderRegistry, T as IntrinsicFunctionResolver, U as rewriteTemplateAssetReferences, V as createAssetRedirectResolver, W as AssetModeResolver, X as validateContainerRepoName, Y as validateAssetBucketName, Z as buildDockerImage, _ as green, _t as CFN_TEMPLATE_URL_LIMIT, a as withRetry, at as synthesisStatusMessage, b as IAMRoleProvider, bt as uploadCfnTemplate, c as computeImplicitDeleteEdges, ct as resolveApp, d as isStatefulRecreateTargetSync, dt as resolveSkipPrefix, et as runDockerForeground, f as renderStatefulReason, ft as resolveStateBucketWithDefault, g as gray, gt as CFN_TEMPLATE_BODY_LIMIT, h as cyan, ht as warnDeprecatedNoPrefixCliFlag, i as withResourceDeadline, it as Synthesizer, j as DagBuilder, k as applyRoleArnIfSet, l as extractDeploymentEventError, lt as resolveAutoAssetStorage, m as bold, mt as resolveUseCdkBootstrapAssets, n as DEFAULT_RESOURCE_WARN_AFTER_MS, nt as AssetManifestLoader, o as isRetryableTransientError, ot as getDefaultStateBucketName, p as formatResourceLine, pt as resolveStateBucketWithDefaultAndSource, q as getBootstrapMarkerKey, r as DeployEngine, rt as getDockerImageBySourceHash, s as IMPLICIT_DELETE_DEPENDENCIES, st as getLegacyStateBucketName, t as DEFAULT_RESOURCE_TIMEOUT_MS, tt as runDockerStreaming, u as MULTI_REGION_RECREATE_BLOCKED_TYPES, ut as resolveCaptureObservedState, v as red, vt as MIGRATE_TMP_PREFIX, w as CloudControlProvider, x as collectInlinePolicyNamesManagedBySiblings, xt as AssemblyReader, y as yellow, yt as findLargeInlineResources, z as WorkGraph } from "./deploy-engine-
|
|
5
|
+
import { $ as getDockerCmd, A as DiffCalculator, B as buildAssetRedirectMap, C as findActionableSilentDrops, Ct as resolveBucketRegion, D as refStateLookupFromResource, E as cfnRefValueFromPhysicalId, F as rebuildClientForBucketRegion, G as BOOTSTRAP_MARKER_PREFIX, H as loadPublishableAssetManifest, I as shouldRetainResource, J as parseBootstrapMarker, K as ensureAssetStorage, L as AssetPublisher, M as TemplateParser, N as LockManager, O as WAFv2WebACLProvider, P as S3StateBackend, Q as formatDockerLoginError, R as stringifyValue, S as ProviderRegistry, T as IntrinsicFunctionResolver, U as rewriteTemplateAssetReferences, V as createAssetRedirectResolver, W as AssetModeResolver, X as validateContainerRepoName, Y as validateAssetBucketName, Z as buildDockerImage, _ as green, _t as CFN_TEMPLATE_URL_LIMIT, a as withRetry, at as synthesisStatusMessage, b as IAMRoleProvider, bt as uploadCfnTemplate, c as computeImplicitDeleteEdges, ct as resolveApp, d as isStatefulRecreateTargetSync, dt as resolveSkipPrefix, et as runDockerForeground, f as renderStatefulReason, ft as resolveStateBucketWithDefault, g as gray, gt as CFN_TEMPLATE_BODY_LIMIT, h as cyan, ht as warnDeprecatedNoPrefixCliFlag, i as withResourceDeadline, it as Synthesizer, j as DagBuilder, k as applyRoleArnIfSet, l as extractDeploymentEventError, lt as resolveAutoAssetStorage, m as bold, mt as resolveUseCdkBootstrapAssets, n as DEFAULT_RESOURCE_WARN_AFTER_MS, nt as AssetManifestLoader, o as isRetryableTransientError, ot as getDefaultStateBucketName, p as formatResourceLine, pt as resolveStateBucketWithDefaultAndSource, q as getBootstrapMarkerKey, r as DeployEngine, rt as getDockerImageBySourceHash, s as IMPLICIT_DELETE_DEPENDENCIES, st as getLegacyStateBucketName, t as DEFAULT_RESOURCE_TIMEOUT_MS, tt as runDockerStreaming, u as MULTI_REGION_RECREATE_BLOCKED_TYPES, ut as resolveCaptureObservedState, v as red, vt as MIGRATE_TMP_PREFIX, w as CloudControlProvider, x as collectInlinePolicyNamesManagedBySiblings, xt as AssemblyReader, y as yellow, yt as findLargeInlineResources, z as WorkGraph } from "./deploy-engine-BxEZXkWw.js";
|
|
6
6
|
import { t as expectedOwnerParam } from "./expected-bucket-owner-BjEfUnkA.js";
|
|
7
7
|
import { t as ASGProvider } from "./asg-provider-Dbl1_mwT.js";
|
|
8
8
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
@@ -1885,7 +1885,7 @@ const FLUSH_INTERVAL_MS = 2e3;
|
|
|
1885
1885
|
const FLUSH_EVENT_THRESHOLD = 50;
|
|
1886
1886
|
/** Build-time cdkd version, with a dev fallback for non-built contexts. */
|
|
1887
1887
|
function getCdkdVersion() {
|
|
1888
|
-
return "0.238.
|
|
1888
|
+
return "0.238.1";
|
|
1889
1889
|
}
|
|
1890
1890
|
/**
|
|
1891
1891
|
* Generate a time-sortable unique run id, e.g.
|
|
@@ -39263,6 +39263,7 @@ async function computeStackDiff(currentState, template, region, stackName, state
|
|
|
39263
39263
|
resources: currentState.resources,
|
|
39264
39264
|
stateBackend,
|
|
39265
39265
|
stackName,
|
|
39266
|
+
bestEffort: true,
|
|
39266
39267
|
...parameters && { parameters }
|
|
39267
39268
|
});
|
|
39268
39269
|
return diffCalculator.calculateDiff(currentState, template, resolveFn);
|
|
@@ -39299,6 +39300,7 @@ async function resolveChildStackParameters(parentStackRow, parentTemplate, paren
|
|
|
39299
39300
|
resources: parentState.resources,
|
|
39300
39301
|
stateBackend,
|
|
39301
39302
|
stackName: parentStackName,
|
|
39303
|
+
bestEffort: true,
|
|
39302
39304
|
...parentParameters && { parameters: parentParameters }
|
|
39303
39305
|
});
|
|
39304
39306
|
} catch {}
|
|
@@ -39523,6 +39525,27 @@ function stripUnchangedValues(value, other) {
|
|
|
39523
39525
|
return Object.keys(result).length > 0 ? result : value;
|
|
39524
39526
|
}
|
|
39525
39527
|
/**
|
|
39528
|
+
* Render one side of a property change for the diff output.
|
|
39529
|
+
*
|
|
39530
|
+
* A side whose WHOLE value is still a raw intrinsic could not be resolved
|
|
39531
|
+
* against current state — most commonly a `Ref` / `Fn::GetAtt` to a resource
|
|
39532
|
+
* this same deploy will CREATE (the CDK logical-id-churn dance: an
|
|
39533
|
+
* `AWS::ApiGateway::Deployment` hash rotation, a `fn.currentVersion` Lambda
|
|
39534
|
+
* Version). Rendering that via {@link stripUnchangedValues} collapsed it to
|
|
39535
|
+
* the literal string `undefined`, which reads as "this property is being
|
|
39536
|
+
* removed" (issue #1017). Instead, render the raw intrinsic compactly and —
|
|
39537
|
+
* on the NEW side — annotate that the value only exists after the deploy.
|
|
39538
|
+
* Everything else keeps the existing strip-unchanged rendering.
|
|
39539
|
+
*/
|
|
39540
|
+
function renderDiffValue(own, opposite, indent, isNewSide) {
|
|
39541
|
+
if (isIntrinsic(own)) {
|
|
39542
|
+
const suffix = isNewSide ? " (known after deploy)" : "";
|
|
39543
|
+
return `${JSON.stringify(own)}${suffix}`;
|
|
39544
|
+
}
|
|
39545
|
+
const filtered = stripUnchangedValues(own, opposite);
|
|
39546
|
+
return (JSON.stringify(filtered, null, 2) ?? "undefined").replace(/\n/g, `\n${indent}`);
|
|
39547
|
+
}
|
|
39548
|
+
/**
|
|
39526
39549
|
* Render one resource-change map into human-readable diff lines via `logFn`,
|
|
39527
39550
|
* returning the per-type counts. Shared by the root stack block and every
|
|
39528
39551
|
* nested-stack block.
|
|
@@ -39553,11 +39576,9 @@ function renderChangeLines(changes, logFn, ccApiRoutes) {
|
|
|
39553
39576
|
if (change.propertyChanges && change.propertyChanges.length > 0) for (const propChange of change.propertyChanges) {
|
|
39554
39577
|
const requiresReplace = propChange.requiresReplacement ? " [requires replacement]" : "";
|
|
39555
39578
|
const propagated = propChange.replacementPropagated ? " [replacement propagated]" : "";
|
|
39556
|
-
const oldFiltered = stripUnchangedValues(propChange.oldValue, propChange.newValue);
|
|
39557
|
-
const newFiltered = stripUnchangedValues(propChange.newValue, propChange.oldValue);
|
|
39558
39579
|
const indent = " ";
|
|
39559
|
-
const oldStr = (
|
|
39560
|
-
const newStr = (
|
|
39580
|
+
const oldStr = renderDiffValue(propChange.oldValue, propChange.newValue, indent, false);
|
|
39581
|
+
const newStr = renderDiffValue(propChange.newValue, propChange.oldValue, indent, true);
|
|
39561
39582
|
logFn(` - ${propChange.path}:${requiresReplace}${propagated}`);
|
|
39562
39583
|
logFn(` old: ${oldStr}`);
|
|
39563
39584
|
logFn(` new: ${newStr}`);
|
|
@@ -56924,7 +56945,7 @@ function reorderArgs(argv) {
|
|
|
56924
56945
|
async function main() {
|
|
56925
56946
|
installPipeCloseHandler();
|
|
56926
56947
|
const program = new Command();
|
|
56927
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.238.
|
|
56948
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.238.1");
|
|
56928
56949
|
program.addCommand(createBootstrapCommand());
|
|
56929
56950
|
program.addCommand(createSynthCommand());
|
|
56930
56951
|
program.addCommand(createListCommand());
|