@go-to-k/cdkd 0.167.3 → 0.168.0
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 +27 -15
- package/dist/cli.js.map +1 -1
- package/dist/{deploy-engine-BQkk03hJ.js → deploy-engine-Cux0aKqI.js} +45 -11
- package/dist/deploy-engine-Cux0aKqI.js.map +1 -0
- package/dist/index.d.ts +8 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/deploy-engine-BQkk03hJ.js.map +0 -1
package/dist/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { _ as withSkipPrefix, a as runDockerStreaming, c as getLogger, d as getLiveRenderer, f as PATTERN_B_NAME_PROPERTIES, g as generateResourceNameWithFallback, h as generateResourceName, i as runDockerForeground, n as formatDockerLoginError, p as PATTERN_B_RESOURCE_TYPES, r as getDockerCmd, u as runStackBuffered, v as withStackName } from "./docker-cmd-iDMcWcre.js";
|
|
3
|
-
import { A as S3StateBackend, B as resolveCaptureObservedState, C as assertRegionMatch, D as DagBuilder, E as DiffCalculator, F as buildDockerImage, G as CFN_TEMPLATE_BODY_LIMIT, H as resolveStateBucketWithDefault, I as Synthesizer, J as findLargeInlineResources, K as CFN_TEMPLATE_URL_LIMIT, L as getDefaultStateBucketName, M as AssetPublisher, N as stringifyValue, O as TemplateParser, P as WorkGraph, Q as resolveBucketRegion, R as getLegacyStateBucketName, S as CloudControlProvider, T as applyRoleArnIfSet, U as resolveStateBucketWithDefaultAndSource, V as resolveSkipPrefix, W as warnDeprecatedNoPrefixCliFlag, X as AssemblyReader, Y as uploadCfnTemplate, _ as matchesCdkPath, a as withRetry, at as LocalStartServiceError, b as ProviderRegistry, bt as normalizeAwsError, c as bold, ct as NestedStackChildDirectDestroyError, d as green, dt as ResourceTimeoutError, et as CdkdError, f as red, ft as ResourceUpdateNotSupportedError, g as CDK_PATH_TAG, h as collectInlinePolicyNamesManagedBySiblings, ht as StackTerminationProtectionError, i as withResourceDeadline, it as LocalMigrateError, j as shouldRetainResource, k as LockManager, l as cyan, lt as PartialFailureError, m as IAMRoleProvider, mt as StackHasActiveImportsError, n as DEFAULT_RESOURCE_WARN_AFTER_MS, o as IMPLICIT_DELETE_DEPENDENCIES, p as yellow, pt as RouteDiscoveryError, q as MIGRATE_TMP_PREFIX, r as DeployEngine, rt as LocalInvokeBuildError, s as formatResourceLine, st as MissingCdkCliError, t as DEFAULT_RESOURCE_TIMEOUT_MS, u as gray, ut as ProvisioningError, v as normalizeAwsTagsToCfn, w as IntrinsicFunctionResolver, x as findActionableSilentDrops, xt as withErrorHandling, y as resolveExplicitPhysicalId, z as resolveApp } from "./deploy-engine-
|
|
3
|
+
import { A as S3StateBackend, B as resolveCaptureObservedState, C as assertRegionMatch, D as DagBuilder, E as DiffCalculator, F as buildDockerImage, G as CFN_TEMPLATE_BODY_LIMIT, H as resolveStateBucketWithDefault, I as Synthesizer, J as findLargeInlineResources, K as CFN_TEMPLATE_URL_LIMIT, L as getDefaultStateBucketName, M as AssetPublisher, N as stringifyValue, O as TemplateParser, P as WorkGraph, Q as resolveBucketRegion, R as getLegacyStateBucketName, S as CloudControlProvider, T as applyRoleArnIfSet, U as resolveStateBucketWithDefaultAndSource, V as resolveSkipPrefix, W as warnDeprecatedNoPrefixCliFlag, X as AssemblyReader, Y as uploadCfnTemplate, _ as matchesCdkPath, a as withRetry, at as LocalStartServiceError, b as ProviderRegistry, bt as normalizeAwsError, c as bold, ct as NestedStackChildDirectDestroyError, d as green, dt as ResourceTimeoutError, et as CdkdError, f as red, ft as ResourceUpdateNotSupportedError, g as CDK_PATH_TAG, h as collectInlinePolicyNamesManagedBySiblings, ht as StackTerminationProtectionError, i as withResourceDeadline, it as LocalMigrateError, j as shouldRetainResource, k as LockManager, l as cyan, lt as PartialFailureError, m as IAMRoleProvider, mt as StackHasActiveImportsError, n as DEFAULT_RESOURCE_WARN_AFTER_MS, o as IMPLICIT_DELETE_DEPENDENCIES, p as yellow, pt as RouteDiscoveryError, q as MIGRATE_TMP_PREFIX, r as DeployEngine, rt as LocalInvokeBuildError, s as formatResourceLine, st as MissingCdkCliError, t as DEFAULT_RESOURCE_TIMEOUT_MS, u as gray, ut as ProvisioningError, v as normalizeAwsTagsToCfn, w as IntrinsicFunctionResolver, x as findActionableSilentDrops, xt as withErrorHandling, y as resolveExplicitPhysicalId, z as resolveApp } from "./deploy-engine-Cux0aKqI.js";
|
|
4
4
|
import { a as setAwsClients, i as resetAwsClients, r as getAwsClients, t as AwsClients } from "./aws-clients-B15NAPbL.js";
|
|
5
5
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
6
6
|
import { createHash, createHmac, createPublicKey, createVerify, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
|
|
@@ -1369,16 +1369,28 @@ async function findDownstreamConsumers(input) {
|
|
|
1369
1369
|
const region = ref.region ?? input.baseRegion;
|
|
1370
1370
|
if (ref.stackName === input.producerStack && region === input.producerRegion) return null;
|
|
1371
1371
|
try {
|
|
1372
|
-
const
|
|
1373
|
-
if (!
|
|
1374
|
-
const
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1372
|
+
const got = await input.stateBackend.getState(ref.stackName, region);
|
|
1373
|
+
if (!got) return null;
|
|
1374
|
+
const out = [];
|
|
1375
|
+
const imports = got.state.imports;
|
|
1376
|
+
if (imports && imports.length > 0) {
|
|
1377
|
+
for (const entry of imports) if (entry.sourceStack === input.producerStack && entry.sourceRegion === input.producerRegion) out.push({
|
|
1378
|
+
consumerStack: ref.stackName,
|
|
1379
|
+
consumerRegion: region,
|
|
1380
|
+
exportName: entry.exportName,
|
|
1381
|
+
intrinsic: "ImportValue"
|
|
1382
|
+
});
|
|
1383
|
+
}
|
|
1384
|
+
const outputReads = got.state.outputReads;
|
|
1385
|
+
if (outputReads && outputReads.length > 0) {
|
|
1386
|
+
for (const entry of outputReads) if (entry.sourceStack === input.producerStack && entry.sourceRegion === input.producerRegion) out.push({
|
|
1387
|
+
consumerStack: ref.stackName,
|
|
1388
|
+
consumerRegion: region,
|
|
1389
|
+
exportName: entry.outputName,
|
|
1390
|
+
intrinsic: "GetStackOutput"
|
|
1391
|
+
});
|
|
1392
|
+
}
|
|
1393
|
+
return out.length > 0 ? out : null;
|
|
1382
1394
|
} catch (err) {
|
|
1383
1395
|
logger.debug(`findDownstreamConsumers: skip ${ref.stackName} (${region}); ${err instanceof Error ? err.message : String(err)}`);
|
|
1384
1396
|
return null;
|
|
@@ -33933,7 +33945,7 @@ async function deployCommand(stacks, options) {
|
|
|
33933
33945
|
validation: validateRecreateTargets({
|
|
33934
33946
|
template: stackInfo.template,
|
|
33935
33947
|
state: stateForRecreateCheck?.state ?? {
|
|
33936
|
-
version:
|
|
33948
|
+
version: 8,
|
|
33937
33949
|
stackName: stackInfo.stackName,
|
|
33938
33950
|
region: stackRegion,
|
|
33939
33951
|
resources: {},
|
|
@@ -34940,7 +34952,7 @@ async function loadStateOrEmpty(stackName, region, stateBackend) {
|
|
|
34940
34952
|
region,
|
|
34941
34953
|
resources: {},
|
|
34942
34954
|
outputs: {},
|
|
34943
|
-
version:
|
|
34955
|
+
version: 8,
|
|
34944
34956
|
lastModified: Date.now()
|
|
34945
34957
|
};
|
|
34946
34958
|
}
|
|
@@ -41656,7 +41668,7 @@ function buildStackState(stackName, region, rows, templateParser, template, exis
|
|
|
41656
41668
|
};
|
|
41657
41669
|
}
|
|
41658
41670
|
return {
|
|
41659
|
-
version:
|
|
41671
|
+
version: 8,
|
|
41660
41672
|
stackName,
|
|
41661
41673
|
region,
|
|
41662
41674
|
resources,
|
|
@@ -60915,7 +60927,7 @@ function reorderArgs(argv) {
|
|
|
60915
60927
|
*/
|
|
60916
60928
|
async function main() {
|
|
60917
60929
|
const program = new Command();
|
|
60918
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.
|
|
60930
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.168.0");
|
|
60919
60931
|
program.addCommand(createBootstrapCommand());
|
|
60920
60932
|
program.addCommand(createSynthCommand());
|
|
60921
60933
|
program.addCommand(createListCommand());
|