@go-to-k/cdkd 0.230.17 → 0.230.19

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 generateResourceName, C as StackHasActiveImportsError, F as getLiveRenderer, H as withSkipPrefix, I as PATTERN_B_NAME_OPTIONS, L as PATTERN_B_NAME_PROPERTIES, M as getLogger, P as runStackBuffered, R as PATTERN_B_RESOURCE_TYPES, S as ResourceUpdateNotSupportedError, U as withStackName, V as generateResourceNameWithFallback, _ 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 } from "./import-helpers-DayvBD4T.js";
3
3
  import { a as setAwsClients, i as resetAwsClients, r as getAwsClients, t as AwsClients } from "./aws-clients-pjPwZz1r.js";
4
- import { $ as CFN_TEMPLATE_BODY_LIMIT, A as LockManager, B as runDockerForeground, C as findActionableSilentDrops, D as DiffCalculator, E as applyRoleArnIfSet, F as stringifyValue, G as getDefaultStateBucketName, H as AssetManifestLoader, I as WorkGraph, J as resolveCaptureObservedState, K as getLegacyStateBucketName, L as buildDockerImage, M as rebuildClientForBucketRegion, N as shouldRetainResource, O as DagBuilder, P as AssetPublisher, Q as warnDeprecatedNoPrefixCliFlag, R as formatDockerLoginError, S as ProviderRegistry, T as IntrinsicFunctionResolver, U as getDockerImageBySourceHash, V as runDockerStreaming, W as Synthesizer, X as resolveStateBucketWithDefault, Y as resolveSkipPrefix, Z as resolveStateBucketWithDefaultAndSource, _ as green, a as withRetry, b as IAMRoleProvider, c as computeImplicitDeleteEdges, d as isStatefulRecreateTargetSync, et as CFN_TEMPLATE_URL_LIMIT, f as renderStatefulReason, g as gray, h as cyan, i as withResourceDeadline, it as AssemblyReader, j as S3StateBackend, k as TemplateParser, l as extractDeploymentEventError, m as bold, n as DEFAULT_RESOURCE_WARN_AFTER_MS, nt as findLargeInlineResources, o as isRetryableTransientError, ot as resolveBucketRegion, p as formatResourceLine, q as resolveApp, r as DeployEngine, rt as uploadCfnTemplate, s as IMPLICIT_DELETE_DEPENDENCIES, t as DEFAULT_RESOURCE_TIMEOUT_MS, tt as MIGRATE_TMP_PREFIX, u as MULTI_REGION_RECREATE_BLOCKED_TYPES, v as red, w as CloudControlProvider, x as collectInlinePolicyNamesManagedBySiblings, y as yellow, z as getDockerCmd } from "./deploy-engine-CAG2RhWS.js";
4
+ import { $ as warnDeprecatedNoPrefixCliFlag, A as LockManager, B as runDockerForeground, C as findActionableSilentDrops, D as DiffCalculator, E as applyRoleArnIfSet, F as stringifyValue, G as synthesisStatusMessage, H as AssetManifestLoader, I as WorkGraph, J as resolveApp, K as getDefaultStateBucketName, L as buildDockerImage, M as rebuildClientForBucketRegion, N as shouldRetainResource, O as DagBuilder, P as AssetPublisher, Q as resolveStateBucketWithDefaultAndSource, R as formatDockerLoginError, S as ProviderRegistry, T as IntrinsicFunctionResolver, U as getDockerImageBySourceHash, V as runDockerStreaming, W as Synthesizer, X as resolveSkipPrefix, Y as resolveCaptureObservedState, Z as resolveStateBucketWithDefault, _ as green, a as withRetry, at as AssemblyReader, b as IAMRoleProvider, c as computeImplicitDeleteEdges, d as isStatefulRecreateTargetSync, et as CFN_TEMPLATE_BODY_LIMIT, f as renderStatefulReason, g as gray, h as cyan, i as withResourceDeadline, it as uploadCfnTemplate, j as S3StateBackend, k as TemplateParser, l as extractDeploymentEventError, m as bold, n as DEFAULT_RESOURCE_WARN_AFTER_MS, nt as MIGRATE_TMP_PREFIX, o as isRetryableTransientError, p as formatResourceLine, q as getLegacyStateBucketName, r as DeployEngine, rt as findLargeInlineResources, s as IMPLICIT_DELETE_DEPENDENCIES, st as resolveBucketRegion, t as DEFAULT_RESOURCE_TIMEOUT_MS, tt as CFN_TEMPLATE_URL_LIMIT, u as MULTI_REGION_RECREATE_BLOCKED_TYPES, v as red, w as CloudControlProvider, x as collectInlinePolicyNamesManagedBySiblings, y as yellow, z as getDockerCmd } from "./deploy-engine-Bdy5xKSQ.js";
5
5
  import { t as ASGProvider } from "./asg-provider-Dgj3loIG.js";
6
6
  import { AsyncLocalStorage } from "node:async_hooks";
7
7
  import { createHash, randomBytes, randomUUID } from "node:crypto";
@@ -782,7 +782,7 @@ async function synthCommand(options) {
782
782
  const app = resolveApp(options.app);
783
783
  if (!app) throw new Error("No app command specified. Use --app, set CDKD_APP env var, or add \"app\" to cdk.json");
784
784
  options.app = app;
785
- logger.info("Synthesizing CDK app...");
785
+ logger.info(synthesisStatusMessage(app, "Synthesizing CDK app..."));
786
786
  logger.debug("App command:", options.app);
787
787
  logger.debug("Output directory:", options.output);
788
788
  const synthesizer = new Synthesizer();
@@ -1445,7 +1445,7 @@ const FLUSH_INTERVAL_MS = 2e3;
1445
1445
  const FLUSH_EVENT_THRESHOLD = 50;
1446
1446
  /** Build-time cdkd version, with a dev fallback for non-built contexts. */
1447
1447
  function getCdkdVersion() {
1448
- return "0.230.17";
1448
+ return "0.230.19";
1449
1449
  }
1450
1450
  /**
1451
1451
  * Generate a time-sortable unique run id, e.g.
@@ -31756,13 +31756,12 @@ var EFSProvider = class {
31756
31756
  }
31757
31757
  async createFileSystem(logicalId, resourceType, properties) {
31758
31758
  this.logger.debug(`Creating EFS FileSystem ${logicalId}`);
31759
- const immutableForToken = {
31760
- AvailabilityZoneName: properties["AvailabilityZoneName"],
31761
- Encrypted: properties["Encrypted"],
31762
- KmsKeyId: properties["KmsKeyId"],
31763
- PerformanceMode: properties["PerformanceMode"]
31764
- };
31765
- const creationToken = `cdkd-${logicalId}-${createHash("sha256").update(JSON.stringify(immutableForToken, Object.keys(immutableForToken).sort())).digest("hex").slice(0, 12)}`;
31759
+ const creationToken = `cdkd-${logicalId}-${createHash("sha256").update([
31760
+ properties["AvailabilityZoneName"],
31761
+ properties["Encrypted"],
31762
+ properties["KmsKeyId"],
31763
+ properties["PerformanceMode"]
31764
+ ].map((v) => JSON.stringify(v ?? null)).join("\0")).digest("hex").slice(0, 12)}`;
31766
31765
  const tags = properties["FileSystemTags"];
31767
31766
  let fileSystemId;
31768
31767
  try {
@@ -37194,7 +37193,7 @@ async function deployCommand(stacks, options) {
37194
37193
  };
37195
37194
  process.on("SIGINT", topLevelSigintHandler);
37196
37195
  try {
37197
- logger.info(cyan("Synthesizing CDK app..."));
37196
+ logger.info(cyan(synthesisStatusMessage(app, "Synthesizing CDK app...")));
37198
37197
  const synthesizer = new Synthesizer();
37199
37198
  const context = parseContextOptions(options.context);
37200
37199
  const { stacks: allStacks } = await synthesizer.synthesize({
@@ -38751,7 +38750,7 @@ async function diffCommand(stacks, options) {
38751
38750
  });
38752
38751
  setAwsClients(awsClients);
38753
38752
  try {
38754
- logger.info("Synthesizing CDK app...");
38753
+ logger.info(synthesisStatusMessage(app, "Synthesizing CDK app..."));
38755
38754
  const synthesizer = new Synthesizer();
38756
38755
  const context = parseContextOptions(options.context);
38757
38756
  const { stacks: allStacks } = await synthesizer.synthesize({
@@ -40860,7 +40859,7 @@ async function orphanCommand(pathArgs, options) {
40860
40859
  const lockManager = new LockManager(awsClients.s3, stateConfig);
40861
40860
  const appCmd = options.app || resolveApp();
40862
40861
  if (!appCmd) throw new Error("'cdkd orphan' requires a CDK app: pass --app or set it in cdk.json. The template is read to resolve construct paths to logical IDs.");
40863
- logger.info("Synthesizing CDK app to read template...");
40862
+ logger.info(synthesisStatusMessage(appCmd, "Synthesizing CDK app to read template..."));
40864
40863
  const synthesizer = new Synthesizer();
40865
40864
  const context = parseContextOptions(options.context);
40866
40865
  const resolved = resolveConstructPaths(pathArgs, (await synthesizer.synthesize({
@@ -41079,7 +41078,7 @@ async function publishAssetsCommand(stacks, options) {
41079
41078
  });
41080
41079
  const app = resolveApp(options.app);
41081
41080
  if (!app) throw new Error("No app command specified. Use --app, set CDKD_APP env var, or add \"app\" to cdk.json");
41082
- logger.info("Synthesizing CDK app...");
41081
+ logger.info(synthesisStatusMessage(app, "Synthesizing CDK app..."));
41083
41082
  const synthesizer = new Synthesizer();
41084
41083
  const context = parseContextOptions(options.context);
41085
41084
  const synthOptions = {
@@ -41898,7 +41897,7 @@ async function exportCommand(stackArg, options) {
41898
41897
  } else {
41899
41898
  const appCmd = options.app || resolveApp();
41900
41899
  if (!appCmd) throw new Error("'cdkd export' requires a CDK app (pass --app or set it in cdk.json) OR a pre-rendered CFn template (--template <path>).");
41901
- logger.info("Synthesizing CDK app to read template...");
41900
+ logger.info(synthesisStatusMessage(appCmd, "Synthesizing CDK app to read template..."));
41902
41901
  const synthesizer = new Synthesizer();
41903
41902
  const context = parseContextOptions(options.context);
41904
41903
  const result = await synthesizer.synthesize({
@@ -45157,7 +45156,7 @@ async function importCommand(stackArg, options) {
45157
45156
  registerAllProviders(providerRegistry);
45158
45157
  const appCmd = options.app || resolveApp();
45159
45158
  if (!appCmd) throw new Error("`cdkd state import` requires a CDK app: pass --app or set it in cdk.json. The template is read to find logical IDs, resource types, and dependencies.");
45160
- logger.info("Synthesizing CDK app to read template...");
45159
+ logger.info(synthesisStatusMessage(appCmd, "Synthesizing CDK app to read template..."));
45161
45160
  const synthesizer = new Synthesizer();
45162
45161
  const context = parseContextOptions(options.context);
45163
45162
  const result = await synthesizer.synthesize({
@@ -49346,7 +49345,7 @@ async function localStartApiCommand(target, options) {
49346
49345
  * Hot reload picks up authorizer-config changes via this re-run.
49347
49346
  */
49348
49347
  const synthesizeAndBuild = async () => {
49349
- logger.info("Synthesizing CDK app...");
49348
+ logger.info(synthesisStatusMessage(appCmd, "Synthesizing CDK app..."));
49350
49349
  const synthesizer = new Synthesizer();
49351
49350
  const context = parseContextOptions(options.context);
49352
49351
  const synthOpts = {
@@ -51667,7 +51666,7 @@ async function localRunTaskCommand(target, options) {
51667
51666
  await ensureDockerAvailable();
51668
51667
  const appCmd = resolveApp(options.app);
51669
51668
  if (!appCmd) throw new Error("No CDK app specified. Pass --app, set CDKD_APP, or add \"app\" to cdk.json.");
51670
- logger.info("Synthesizing CDK app...");
51669
+ logger.info(synthesisStatusMessage(appCmd, "Synthesizing CDK app..."));
51671
51670
  const synthesizer = new Synthesizer();
51672
51671
  const context = parseContextOptions(options.context);
51673
51672
  const synthOpts = {
@@ -52311,7 +52310,7 @@ async function localInvokeAgentCoreCommand(target, options) {
52311
52310
  if (options.profile && profileCredentials) profileCredsFile = await writeProfileCredentialsFile(options.profile, profileCredentials);
52312
52311
  const appCmd = resolveApp(options.app);
52313
52312
  if (!appCmd) throw new CdkdError(`No CDK app specified. Pass --app, set ${getEmbedConfig().envPrefix}_APP, or add "app" to cdk.json.`, "LOCAL_INVOKE_AGENTCORE_NO_APP");
52314
- logger.info("Synthesizing CDK app...");
52313
+ logger.info(synthesisStatusMessage(appCmd, "Synthesizing CDK app..."));
52315
52314
  const synthesizer = new Synthesizer();
52316
52315
  const context = parseContextOptions(options.context);
52317
52316
  const synthOpts = {
@@ -53544,7 +53543,7 @@ async function localInvokeCommand(target, options) {
53544
53543
  if (options.profile && profileCredentials) profileCredsFile = await writeProfileCredentialsFile(options.profile, profileCredentials);
53545
53544
  const appCmd = resolveApp(options.app);
53546
53545
  if (!appCmd) throw new Error("No CDK app specified. Pass --app, set CDKD_APP, or add \"app\" to cdk.json.");
53547
- logger.info("Synthesizing CDK app...");
53546
+ logger.info(synthesisStatusMessage(appCmd, "Synthesizing CDK app..."));
53548
53547
  const synthesizer = new Synthesizer();
53549
53548
  const context = parseContextOptions(options.context);
53550
53549
  const synthOpts = {
@@ -55381,7 +55380,7 @@ function reorderArgs(argv) {
55381
55380
  async function main() {
55382
55381
  installPipeCloseHandler();
55383
55382
  const program = new Command();
55384
- program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.230.17");
55383
+ program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.230.19");
55385
55384
  program.addCommand(createBootstrapCommand());
55386
55385
  program.addCommand(createSynthCommand());
55387
55386
  program.addCommand(createListCommand());