@go-to-k/cdkd 0.229.0 → 0.229.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { A as withErrorHandling, B as generateResourceNameWithFallback, C as StackHasActiveImportsError, F as getLiveRenderer, H as withStackName, I as PATTERN_B_NAME_PROPERTIES, L as PATTERN_B_RESOURCE_TYPES, M as getLogger, P as runStackBuffered, S as ResourceUpdateNotSupportedError, V as withSkipPrefix, _ as MissingCdkCliError, a as assertRegionMatch, b as ProvisioningError, f as LocalInvokeBuildError$1, i as resolveExplicitPhysicalId, k as normalizeAwsError, l as CdkdError, m as LocalStartServiceError, n as matchesCdkPath, o as disableInstanceApiTermination, p as LocalMigrateError, r as normalizeAwsTagsToCfn, s as isTerminationProtectionPropagationError, t as CDK_PATH_TAG, v as NestedStackChildDirectDestroyError, w as StackTerminationProtectionError, x as ResourceTimeoutError, y as PartialFailureError, z as generateResourceName } from "./import-helpers-wLipXr5g.js";
|
|
3
3
|
import { a as setAwsClients, i as resetAwsClients, r as getAwsClients, t as AwsClients } from "./aws-clients-pjPwZz1r.js";
|
|
4
|
-
import { $ as findLargeInlineResources, A as shouldRetainResource, B as getDockerImageBySourceHash, C as applyRoleArnIfSet, D as LockManager, E as TemplateParser, F as formatDockerLoginError, G as resolveCaptureObservedState, H as getDefaultStateBucketName, I as getDockerCmd, J as resolveStateBucketWithDefaultAndSource, K as resolveSkipPrefix, L as runDockerForeground, M as stringifyValue, N as WorkGraph, O as S3StateBackend, P as buildDockerImage, Q as MIGRATE_TMP_PREFIX, R as runDockerStreaming, S as IntrinsicFunctionResolver, T as DagBuilder, U as getLegacyStateBucketName, V as Synthesizer, W as resolveApp, X as CFN_TEMPLATE_BODY_LIMIT, Y as warnDeprecatedNoPrefixCliFlag, Z as CFN_TEMPLATE_URL_LIMIT, _ as IAMRoleProvider, a as withRetry, b as findActionableSilentDrops, c as computeImplicitDeleteEdges, d as bold, et as uploadCfnTemplate, f as cyan, g as yellow, h as red, i as withResourceDeadline, j as AssetPublisher, k as rebuildClientForBucketRegion, l as extractDeploymentEventError, m as green, n as DEFAULT_RESOURCE_WARN_AFTER_MS, o as isRetryableTransientError, p as gray, q as resolveStateBucketWithDefault, r as DeployEngine, rt as resolveBucketRegion, s as IMPLICIT_DELETE_DEPENDENCIES, t as DEFAULT_RESOURCE_TIMEOUT_MS, tt as AssemblyReader, u as formatResourceLine, v as collectInlinePolicyNamesManagedBySiblings, w as DiffCalculator, x as CloudControlProvider, y as ProviderRegistry, z as AssetManifestLoader } from "./deploy-engine-
|
|
4
|
+
import { $ as findLargeInlineResources, A as shouldRetainResource, B as getDockerImageBySourceHash, C as applyRoleArnIfSet, D as LockManager, E as TemplateParser, F as formatDockerLoginError, G as resolveCaptureObservedState, H as getDefaultStateBucketName, I as getDockerCmd, J as resolveStateBucketWithDefaultAndSource, K as resolveSkipPrefix, L as runDockerForeground, M as stringifyValue, N as WorkGraph, O as S3StateBackend, P as buildDockerImage, Q as MIGRATE_TMP_PREFIX, R as runDockerStreaming, S as IntrinsicFunctionResolver, T as DagBuilder, U as getLegacyStateBucketName, V as Synthesizer, W as resolveApp, X as CFN_TEMPLATE_BODY_LIMIT, Y as warnDeprecatedNoPrefixCliFlag, Z as CFN_TEMPLATE_URL_LIMIT, _ as IAMRoleProvider, a as withRetry, b as findActionableSilentDrops, c as computeImplicitDeleteEdges, d as bold, et as uploadCfnTemplate, f as cyan, g as yellow, h as red, i as withResourceDeadline, j as AssetPublisher, k as rebuildClientForBucketRegion, l as extractDeploymentEventError, m as green, n as DEFAULT_RESOURCE_WARN_AFTER_MS, o as isRetryableTransientError, p as gray, q as resolveStateBucketWithDefault, r as DeployEngine, rt as resolveBucketRegion, s as IMPLICIT_DELETE_DEPENDENCIES, t as DEFAULT_RESOURCE_TIMEOUT_MS, tt as AssemblyReader, u as formatResourceLine, v as collectInlinePolicyNamesManagedBySiblings, w as DiffCalculator, x as CloudControlProvider, y as ProviderRegistry, z as AssetManifestLoader } from "./deploy-engine-DGgI1zCL.js";
|
|
5
5
|
import { t as ASGProvider } from "./asg-provider-B_hrCxRx.js";
|
|
6
6
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
7
7
|
import { randomBytes, randomUUID } from "node:crypto";
|
|
@@ -1556,7 +1556,7 @@ const FLUSH_INTERVAL_MS = 2e3;
|
|
|
1556
1556
|
const FLUSH_EVENT_THRESHOLD = 50;
|
|
1557
1557
|
/** Build-time cdkd version, with a dev fallback for non-built contexts. */
|
|
1558
1558
|
function getCdkdVersion() {
|
|
1559
|
-
return "0.229.
|
|
1559
|
+
return "0.229.2";
|
|
1560
1560
|
}
|
|
1561
1561
|
/**
|
|
1562
1562
|
* Generate a time-sortable unique run id, e.g.
|
|
@@ -2505,10 +2505,16 @@ var ExportIndexStore = class {
|
|
|
2505
2505
|
*
|
|
2506
2506
|
* @param stacks the stacks being deployed / destroyed together (the `--all`
|
|
2507
2507
|
* set, or the auto-include-dependency-expanded target set).
|
|
2508
|
+
* @param opts see {@link InferCrossStackStackDepsOptions}. `opts.kinds`
|
|
2509
|
+
* restricts which reference kinds count as edges (defaults to both). Pass
|
|
2510
|
+
* `['ImportValue']` for STRONG-only edges (deploy-closure expansion).
|
|
2508
2511
|
* @returns Map<consumerStackName, Set<producerStackName>>. Consumers with no
|
|
2509
2512
|
* inferred cross-stack producer get an empty set entry.
|
|
2510
2513
|
*/
|
|
2511
|
-
function inferCrossStackStackDeps(stacks) {
|
|
2514
|
+
function inferCrossStackStackDeps(stacks, opts) {
|
|
2515
|
+
const kinds = opts?.kinds ?? ["ImportValue", "GetStackOutput"];
|
|
2516
|
+
const wantImportValue = kinds.includes("ImportValue");
|
|
2517
|
+
const wantGetStackOutput = kinds.includes("GetStackOutput");
|
|
2512
2518
|
const exportOwner = /* @__PURE__ */ new Map();
|
|
2513
2519
|
for (const stack of stacks) {
|
|
2514
2520
|
const outputs = stack.template.Outputs;
|
|
@@ -2527,10 +2533,14 @@ function inferCrossStackStackDeps(stacks) {
|
|
|
2527
2533
|
collectCrossStackRefs(stack.template, (kind, value) => {
|
|
2528
2534
|
let producer;
|
|
2529
2535
|
if (kind === "ImportValue") {
|
|
2536
|
+
if (!wantImportValue) return;
|
|
2530
2537
|
if (typeof value === "string") producer = exportOwner.get(value);
|
|
2531
|
-
} else
|
|
2532
|
-
|
|
2533
|
-
if (typeof
|
|
2538
|
+
} else {
|
|
2539
|
+
if (!wantGetStackOutput) return;
|
|
2540
|
+
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
2541
|
+
const sn = value["StackName"];
|
|
2542
|
+
if (typeof sn === "string") producer = sn;
|
|
2543
|
+
}
|
|
2534
2544
|
}
|
|
2535
2545
|
if (producer && producer !== stack.stackName && stackNames.has(producer)) producers.add(producer);
|
|
2536
2546
|
});
|
|
@@ -36835,13 +36845,19 @@ async function deployCommand(stacks, options) {
|
|
|
36835
36845
|
for (const producer of inferredCrossStackDeps.get(stackName) ?? []) union.add(producer);
|
|
36836
36846
|
return union;
|
|
36837
36847
|
};
|
|
36848
|
+
const inferredStrongCrossStackDeps = inferCrossStackStackDeps(allStacks, { kinds: ["ImportValue"] });
|
|
36849
|
+
const effectiveStrongStackDeps = (stackName, deps) => {
|
|
36850
|
+
const union = new Set(deps);
|
|
36851
|
+
for (const producer of inferredStrongCrossStackDeps.get(stackName) ?? []) union.add(producer);
|
|
36852
|
+
return union;
|
|
36853
|
+
};
|
|
36838
36854
|
if (!options.exclusively) {
|
|
36839
36855
|
const targetNames = new Set(targetStacks.map((s) => s.stackName));
|
|
36840
36856
|
const allStackMap = new Map(allStacks.map((s) => [s.stackName, s]));
|
|
36841
36857
|
const addDependencies = (stackName) => {
|
|
36842
36858
|
const stack = allStackMap.get(stackName);
|
|
36843
36859
|
if (!stack) return;
|
|
36844
|
-
for (const depName of
|
|
36860
|
+
for (const depName of effectiveStrongStackDeps(stackName, stack.dependencyNames)) if (!targetNames.has(depName)) {
|
|
36845
36861
|
const depStack = allStackMap.get(depName);
|
|
36846
36862
|
if (depStack) {
|
|
36847
36863
|
targetNames.add(depName);
|
|
@@ -54988,7 +55004,7 @@ function reorderArgs(argv) {
|
|
|
54988
55004
|
async function main() {
|
|
54989
55005
|
installPipeCloseHandler();
|
|
54990
55006
|
const program = new Command();
|
|
54991
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.229.
|
|
55007
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.229.2");
|
|
54992
55008
|
program.addCommand(createBootstrapCommand());
|
|
54993
55009
|
program.addCommand(createSynthCommand());
|
|
54994
55010
|
program.addCommand(createListCommand());
|