@go-to-k/cdkd 0.152.0 → 0.152.2
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 +3 -3
- package/dist/cli.js.map +1 -1
- package/dist/{deploy-engine-CV51PIkg.js → deploy-engine-C4yMO329.js} +35 -7
- package/dist/deploy-engine-C4yMO329.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-CV51PIkg.js.map +0 -1
|
@@ -4468,6 +4468,7 @@ var DagBuilder = class {
|
|
|
4468
4468
|
this.logger.debug(`Added node: ${logicalId} (${resource?.Type})`);
|
|
4469
4469
|
});
|
|
4470
4470
|
this.logger.debug(`Total nodes: ${resourceIds.length}`);
|
|
4471
|
+
const parameterNames = new Set(Object.keys(template.Parameters ?? {}));
|
|
4471
4472
|
let edgeCount = 0;
|
|
4472
4473
|
let relaxedEdgeCount = 0;
|
|
4473
4474
|
for (const logicalId of resourceIds) {
|
|
@@ -4485,7 +4486,8 @@ var DagBuilder = class {
|
|
|
4485
4486
|
graph.setEdge(depId, logicalId);
|
|
4486
4487
|
edgeCount++;
|
|
4487
4488
|
this.logger.debug(`Added edge: ${depId} -> ${logicalId}`);
|
|
4488
|
-
} else this.logger.
|
|
4489
|
+
} else if (parameterNames.has(depId)) this.logger.debug(`Skipped Parameter reference: ${logicalId} -> ${depId}`);
|
|
4490
|
+
else this.logger.warn(`Resource ${logicalId} depends on ${depId}, but ${depId} not found in template`);
|
|
4489
4491
|
}
|
|
4490
4492
|
}
|
|
4491
4493
|
if (relaxedEdgeCount > 0) this.logger.info(`[DagBuilder] Relaxed ${relaxedEdgeCount} CDK-defensive DependsOn edge(s) (default; opt out with --no-aggressive-vpc-parallel)`);
|
|
@@ -8528,6 +8530,32 @@ const cyan = (s) => `${codes.cyan}${s}${codes.reset}`;
|
|
|
8528
8530
|
const gray = (s) => `${codes.gray}${s}${codes.reset}`;
|
|
8529
8531
|
const bold = (s) => `${codes.bright}${s}${codes.reset}`;
|
|
8530
8532
|
|
|
8533
|
+
//#endregion
|
|
8534
|
+
//#region src/utils/resource-line.ts
|
|
8535
|
+
/**
|
|
8536
|
+
* Format the per-resource status line printed by `cdkd deploy` / `cdkd destroy`.
|
|
8537
|
+
*
|
|
8538
|
+
* All three operations share the layout `<glyph> <id> (<type>) <verb>`; callers
|
|
8539
|
+
* prepend their own prefix (a two-space indent, or a `[current/total] ` counter).
|
|
8540
|
+
*
|
|
8541
|
+
* Every successful op uses a green/colored check (✓), NOT a cross (✗): the op
|
|
8542
|
+
* succeeded, and a red ✗ reads as a failure — which is exactly what the separate
|
|
8543
|
+
* "✗ Failed to delete" error path prints. The op is distinguished by COLOR, not
|
|
8544
|
+
* glyph: green = created, yellow = updated, green-check-with-red-verb = deleted
|
|
8545
|
+
* (the verb stays red to keep the destructive nature of the delete visible).
|
|
8546
|
+
*
|
|
8547
|
+
* `verbOverride` replaces the default verb word (e.g. `'updated (metadata)'` for
|
|
8548
|
+
* a metadata-only update) while keeping the op's glyph and color.
|
|
8549
|
+
*/
|
|
8550
|
+
function formatResourceLine(op, logicalId, resourceType, verbOverride) {
|
|
8551
|
+
const body = `${bold(logicalId)} ${gray(`(${resourceType})`)}`;
|
|
8552
|
+
switch (op) {
|
|
8553
|
+
case "created": return `${green("✓")} ${body} ${green(verbOverride ?? "created")}`;
|
|
8554
|
+
case "updated": return `${yellow("✓")} ${body} ${yellow(verbOverride ?? "updated")}`;
|
|
8555
|
+
case "deleted": return `${green("✓")} ${body} ${red(verbOverride ?? "deleted")}`;
|
|
8556
|
+
}
|
|
8557
|
+
}
|
|
8558
|
+
|
|
8531
8559
|
//#endregion
|
|
8532
8560
|
//#region src/deployment/dag-executor.ts
|
|
8533
8561
|
/**
|
|
@@ -9633,7 +9661,7 @@ var DeployEngine = class {
|
|
|
9633
9661
|
if (progress) progress.current++;
|
|
9634
9662
|
const createPrefix = progress ? `[${progress.current}/${progress.total}] ` : " ";
|
|
9635
9663
|
renderer.removeTask(logicalId);
|
|
9636
|
-
this.logger.info(`${createPrefix}${
|
|
9664
|
+
this.logger.info(`${createPrefix}${formatResourceLine("created", logicalId, resourceType)}`);
|
|
9637
9665
|
break;
|
|
9638
9666
|
}
|
|
9639
9667
|
case "UPDATE": {
|
|
@@ -9660,7 +9688,7 @@ var DeployEngine = class {
|
|
|
9660
9688
|
if (progress) progress.current++;
|
|
9661
9689
|
const attrPrefix = progress ? `[${progress.current}/${progress.total}] ` : " ";
|
|
9662
9690
|
renderer.removeTask(logicalId);
|
|
9663
|
-
this.logger.info(`${attrPrefix}${
|
|
9691
|
+
this.logger.info(`${attrPrefix}${formatResourceLine("updated", logicalId, resourceType, "updated (metadata)")}`);
|
|
9664
9692
|
break;
|
|
9665
9693
|
}
|
|
9666
9694
|
this.logger.debug(`Skipping ${logicalId}: no actual changes after intrinsic function resolution`);
|
|
@@ -9739,7 +9767,7 @@ var DeployEngine = class {
|
|
|
9739
9767
|
if (progress) progress.current++;
|
|
9740
9768
|
const updatePrefix = progress ? `[${progress.current}/${progress.total}] ` : " ";
|
|
9741
9769
|
renderer.removeTask(logicalId);
|
|
9742
|
-
this.logger.info(`${updatePrefix}${
|
|
9770
|
+
this.logger.info(`${updatePrefix}${formatResourceLine("updated", logicalId, resourceType)}`);
|
|
9743
9771
|
}
|
|
9744
9772
|
break;
|
|
9745
9773
|
}
|
|
@@ -9765,7 +9793,7 @@ var DeployEngine = class {
|
|
|
9765
9793
|
if (progress) progress.current++;
|
|
9766
9794
|
const deletePrefix = progress ? `[${progress.current}/${progress.total}] ` : " ";
|
|
9767
9795
|
renderer.removeTask(logicalId);
|
|
9768
|
-
this.logger.info(`${deletePrefix}${
|
|
9796
|
+
this.logger.info(`${deletePrefix}${formatResourceLine("deleted", logicalId, resourceType)}`);
|
|
9769
9797
|
break;
|
|
9770
9798
|
}
|
|
9771
9799
|
}
|
|
@@ -9971,5 +9999,5 @@ var DeployEngine = class {
|
|
|
9971
9999
|
};
|
|
9972
10000
|
|
|
9973
10001
|
//#endregion
|
|
9974
|
-
export {
|
|
9975
|
-
//# sourceMappingURL=deploy-engine-
|
|
10002
|
+
export { CdkdError as $, shouldRetainResource as A, resolveSkipPrefix as B, IntrinsicFunctionResolver as C, TemplateParser as D, DagBuilder as E, Synthesizer as F, CFN_TEMPLATE_URL_LIMIT as G, resolveStateBucketWithDefaultAndSource as H, getDefaultStateBucketName as I, uploadCfnTemplate as J, MIGRATE_TMP_PREFIX as K, getLegacyStateBucketName as L, stringifyValue as M, WorkGraph as N, LockManager as O, buildDockerImage as P, AssetError as Q, resolveApp as R, assertRegionMatch as S, DiffCalculator as T, warnDeprecatedNoPrefixCliFlag as U, resolveStateBucketWithDefault as V, CFN_TEMPLATE_BODY_LIMIT as W, clearBucketRegionCache as X, AssemblyReader as Y, resolveBucketRegion as Z, matchesCdkPath as _, formatError as _t, withRetry as a, LockError as at, ProviderRegistry as b, withErrorHandling as bt, bold as c, PartialFailureError as ct, green as d, ResourceUpdateNotSupportedError as dt, ConfigError as et, red as f, RouteDiscoveryError as ft, CDK_PATH_TAG as g, SynthesisError as gt, collectInlinePolicyNamesManagedBySiblings as h, StateError as ht, withResourceDeadline as i, LocalStartServiceError as it, AssetPublisher as j, S3StateBackend as k, cyan as l, ProvisioningError as lt, IAMRoleProvider as m, StackTerminationProtectionError as mt, DEFAULT_RESOURCE_WARN_AFTER_MS as n, LocalInvokeBuildError as nt, IMPLICIT_DELETE_DEPENDENCIES as o, MissingCdkCliError as ot, yellow as p, StackHasActiveImportsError as pt, findLargeInlineResources as q, DeployEngine as r, LocalMigrateError as rt, formatResourceLine as s, NestedStackChildDirectDestroyError as st, DEFAULT_RESOURCE_TIMEOUT_MS as t, DependencyError as tt, gray as u, ResourceTimeoutError as ut, normalizeAwsTagsToCfn as v, isCdkdError as vt, applyRoleArnIfSet as w, CloudControlProvider as x, resolveExplicitPhysicalId as y, normalizeAwsError as yt, resolveCaptureObservedState as z };
|
|
10003
|
+
//# sourceMappingURL=deploy-engine-C4yMO329.js.map
|