@go-to-k/cdkd 0.140.0 → 0.141.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 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-EtWSTAje.js";
3
- import { A as AssetPublisher, B as resolveStateBucketWithDefault, C as applyRoleArnIfSet, D as LockManager, E as TemplateParser, F as getDefaultStateBucketName, G as MIGRATE_TMP_PREFIX, H as warnDeprecatedNoPrefixCliFlag, I as getLegacyStateBucketName, J as AssemblyReader, K as findLargeInlineResources, L as resolveApp, M as WorkGraph, N as buildDockerImage, O as S3StateBackend, P as Synthesizer, Q as CdkdError, R as resolveCaptureObservedState, S as IntrinsicFunctionResolver, T as DagBuilder, U as CFN_TEMPLATE_BODY_LIMIT, V as resolveStateBucketWithDefaultAndSource, W as CFN_TEMPLATE_URL_LIMIT, X as resolveBucketRegion, _ as normalizeAwsTagsToCfn, _t as normalizeAwsError, a as withRetry, at as MissingCdkCliError, b as CloudControlProvider, c as cyan, ct as ResourceTimeoutError, d as red, dt as StackHasActiveImportsError, f as yellow, ft as StackTerminationProtectionError, g as matchesCdkPath, h as CDK_PATH_TAG, i as withResourceDeadline, j as stringifyValue, k as shouldRetainResource, l as gray, lt as ResourceUpdateNotSupportedError, m as collectInlinePolicyNamesManagedBySiblings, n as DEFAULT_RESOURCE_WARN_AFTER_MS, nt as LocalMigrateError, o as IMPLICIT_DELETE_DEPENDENCIES, ot as PartialFailureError, p as IAMRoleProvider, q as uploadCfnTemplate, r as DeployEngine, rt as LocalStartServiceError, s as bold, st as ProvisioningError, t as DEFAULT_RESOURCE_TIMEOUT_MS, tt as LocalInvokeBuildError, u as green, ut as RouteDiscoveryError, v as resolveExplicitPhysicalId, vt as withErrorHandling, w as DiffCalculator, x as assertRegionMatch, y as ProviderRegistry, z as resolveSkipPrefix } from "./deploy-engine-wdfQVR__.js";
3
+ import { A as AssetPublisher, B as resolveStateBucketWithDefault, C as applyRoleArnIfSet, D as LockManager, E as TemplateParser, F as getDefaultStateBucketName, G as MIGRATE_TMP_PREFIX, H as warnDeprecatedNoPrefixCliFlag, I as getLegacyStateBucketName, J as AssemblyReader, K as findLargeInlineResources, L as resolveApp, M as WorkGraph, N as buildDockerImage, O as S3StateBackend, P as Synthesizer, Q as CdkdError, R as resolveCaptureObservedState, S as IntrinsicFunctionResolver, T as DagBuilder, U as CFN_TEMPLATE_BODY_LIMIT, V as resolveStateBucketWithDefaultAndSource, W as CFN_TEMPLATE_URL_LIMIT, X as resolveBucketRegion, _ as normalizeAwsTagsToCfn, _t as normalizeAwsError, a as withRetry, at as MissingCdkCliError, b as CloudControlProvider, c as cyan, ct as ResourceTimeoutError, d as red, dt as StackHasActiveImportsError, f as yellow, ft as StackTerminationProtectionError, g as matchesCdkPath, h as CDK_PATH_TAG, i as withResourceDeadline, j as stringifyValue, k as shouldRetainResource, l as gray, lt as ResourceUpdateNotSupportedError, m as collectInlinePolicyNamesManagedBySiblings, n as DEFAULT_RESOURCE_WARN_AFTER_MS, nt as LocalMigrateError, o as IMPLICIT_DELETE_DEPENDENCIES, ot as PartialFailureError, p as IAMRoleProvider, q as uploadCfnTemplate, r as DeployEngine, rt as LocalStartServiceError, s as bold, st as ProvisioningError, t as DEFAULT_RESOURCE_TIMEOUT_MS, tt as LocalInvokeBuildError, u as green, ut as RouteDiscoveryError, v as resolveExplicitPhysicalId, vt as withErrorHandling, w as DiffCalculator, x as assertRegionMatch, y as ProviderRegistry, z as resolveSkipPrefix } from "./deploy-engine-Dff3_JMn.js";
4
4
  import { a as setAwsClients, i as resetAwsClients, r as getAwsClients, t as AwsClients } from "./aws-clients-BF03Alpe.js";
5
5
  import { createHash, createHmac, createPublicKey, createVerify, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
6
6
  import { CopyObjectCommand, CreateBucketCommand, DeleteBucketAnalyticsConfigurationCommand, DeleteBucketCommand, DeleteBucketCorsCommand, DeleteBucketIntelligentTieringConfigurationCommand, DeleteBucketInventoryConfigurationCommand, DeleteBucketLifecycleCommand, DeleteBucketMetricsConfigurationCommand, DeleteBucketPolicyCommand, DeleteBucketReplicationCommand, DeleteBucketTaggingCommand, DeleteBucketWebsiteCommand, DeleteObjectsCommand, GetBucketAccelerateConfigurationCommand, GetBucketCorsCommand, GetBucketEncryptionCommand, GetBucketLifecycleConfigurationCommand, GetBucketLocationCommand, GetBucketLoggingCommand, GetBucketNotificationConfigurationCommand, GetBucketPolicyCommand, GetBucketReplicationCommand, GetBucketTaggingCommand, GetBucketVersioningCommand, GetBucketWebsiteCommand, GetObjectCommand, GetObjectLockConfigurationCommand, GetPublicAccessBlockCommand, HeadBucketCommand, ListBucketAnalyticsConfigurationsCommand, ListBucketIntelligentTieringConfigurationsCommand, ListBucketInventoryConfigurationsCommand, ListBucketMetricsConfigurationsCommand, ListBucketsCommand, ListDirectoryBucketsCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchBucket, PutBucketAccelerateConfigurationCommand, PutBucketAnalyticsConfigurationCommand, PutBucketCorsCommand, PutBucketEncryptionCommand, PutBucketIntelligentTieringConfigurationCommand, PutBucketInventoryConfigurationCommand, PutBucketLifecycleConfigurationCommand, PutBucketLoggingCommand, PutBucketMetricsConfigurationCommand, PutBucketNotificationConfigurationCommand, PutBucketOwnershipControlsCommand, PutBucketPolicyCommand, PutBucketReplicationCommand, PutBucketTaggingCommand, PutBucketVersioningCommand, PutBucketWebsiteCommand, PutObjectCommand, PutObjectLockConfigurationCommand, PutPublicAccessBlockCommand, S3Client, S3ServiceException } from "@aws-sdk/client-s3";
@@ -31436,7 +31436,7 @@ async function diffCommand(stacks, options) {
31436
31436
  region: stackRegion,
31437
31437
  resources: {},
31438
31438
  outputs: {},
31439
- version: 5,
31439
+ version: 6,
31440
31440
  lastModified: Date.now()
31441
31441
  };
31442
31442
  if (!stateResult) logger.debug(`No existing state for ${stackInfo.stackName} (${stackRegion})`);
@@ -36014,7 +36014,7 @@ function buildStackState(stackName, region, rows, templateParser, template, exis
36014
36014
  };
36015
36015
  }
36016
36016
  return {
36017
- version: 5,
36017
+ version: 6,
36018
36018
  stackName,
36019
36019
  region,
36020
36020
  resources,
@@ -55134,7 +55134,7 @@ function reorderArgs(argv) {
55134
55134
  */
55135
55135
  async function main() {
55136
55136
  const program = new Command();
55137
- program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.140.0");
55137
+ program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.141.0");
55138
55138
  program.addCommand(createBootstrapCommand());
55139
55139
  program.addCommand(createSynthCommand());
55140
55140
  program.addCommand(createListCommand());
@@ -3297,7 +3297,8 @@ const STATE_SCHEMA_VERSIONS_READABLE = [
3297
3297
  2,
3298
3298
  3,
3299
3299
  4,
3300
- 5
3300
+ 5,
3301
+ 6
3301
3302
  ];
3302
3303
  /**
3303
3304
  * Returns true when a recorded `DeletionPolicy` should prevent cdkd from
@@ -3540,7 +3541,7 @@ var S3StateBackend = class {
3540
3541
  const { expectedEtag, migrateLegacy } = options;
3541
3542
  const body = {
3542
3543
  ...state,
3543
- version: 5,
3544
+ version: 6,
3544
3545
  stackName,
3545
3546
  region
3546
3547
  };
@@ -9039,7 +9040,7 @@ var DeployEngine = class {
9039
9040
  try {
9040
9041
  const currentStateData = await this.stateBackend.getState(stackName, this.stackRegion);
9041
9042
  const currentState = currentStateData?.state ?? {
9042
- version: 5,
9043
+ version: 6,
9043
9044
  region: this.stackRegion,
9044
9045
  stackName,
9045
9046
  resources: {},
@@ -9080,7 +9081,7 @@ var DeployEngine = class {
9080
9081
  await this.drainObservedCaptures(currentState.resources);
9081
9082
  try {
9082
9083
  const refreshedState = {
9083
- version: 5,
9084
+ version: 6,
9084
9085
  region: this.stackRegion,
9085
9086
  stackName: currentState.stackName,
9086
9087
  resources: currentState.resources,
@@ -9180,7 +9181,7 @@ var DeployEngine = class {
9180
9181
  saveChain = saveChain.then(async () => {
9181
9182
  try {
9182
9183
  const partialState = {
9183
- version: 5,
9184
+ version: 6,
9184
9185
  region: this.stackRegion,
9185
9186
  stackName: currentState.stackName,
9186
9187
  resources: newResources,
@@ -9286,7 +9287,7 @@ var DeployEngine = class {
9286
9287
  } catch (error) {
9287
9288
  try {
9288
9289
  const preRollbackState = {
9289
- version: 5,
9290
+ version: 6,
9290
9291
  region: this.stackRegion,
9291
9292
  stackName: currentState.stackName,
9292
9293
  resources: newResources,
@@ -9315,7 +9316,7 @@ var DeployEngine = class {
9315
9316
  } else await this.performRollback(completedOperations, newResources, stackName);
9316
9317
  try {
9317
9318
  const postRollbackState = {
9318
- version: 5,
9319
+ version: 6,
9319
9320
  region: this.stackRegion,
9320
9321
  stackName: currentState.stackName,
9321
9322
  resources: newResources,
@@ -9330,7 +9331,7 @@ var DeployEngine = class {
9330
9331
  try {
9331
9332
  const freshEtag = (await this.stateBackend.getState(stackName, this.stackRegion))?.etag;
9332
9333
  const postRollbackState = {
9333
- version: 5,
9334
+ version: 6,
9334
9335
  region: this.stackRegion,
9335
9336
  stackName: currentState.stackName,
9336
9337
  resources: newResources,
@@ -9349,7 +9350,7 @@ var DeployEngine = class {
9349
9350
  const outputs = await this.resolveOutputs(template, newResources, stackName, parameterValues, conditions);
9350
9351
  return {
9351
9352
  state: {
9352
- version: 5,
9353
+ version: 6,
9353
9354
  region: this.stackRegion,
9354
9355
  stackName: currentState.stackName,
9355
9356
  resources: newResources,
@@ -9900,4 +9901,4 @@ var DeployEngine = class {
9900
9901
 
9901
9902
  //#endregion
9902
9903
  export { ConfigError as $, AssetPublisher as A, resolveStateBucketWithDefault as B, applyRoleArnIfSet as C, LockManager as D, TemplateParser as E, getDefaultStateBucketName as F, MIGRATE_TMP_PREFIX as G, warnDeprecatedNoPrefixCliFlag as H, getLegacyStateBucketName as I, AssemblyReader as J, findLargeInlineResources as K, resolveApp as L, WorkGraph as M, buildDockerImage as N, S3StateBackend as O, Synthesizer as P, CdkdError as Q, resolveCaptureObservedState as R, IntrinsicFunctionResolver as S, DagBuilder as T, CFN_TEMPLATE_BODY_LIMIT as U, resolveStateBucketWithDefaultAndSource as V, CFN_TEMPLATE_URL_LIMIT as W, resolveBucketRegion as X, clearBucketRegionCache as Y, AssetError as Z, normalizeAwsTagsToCfn as _, normalizeAwsError as _t, withRetry as a, MissingCdkCliError as at, CloudControlProvider as b, cyan as c, ResourceTimeoutError as ct, red as d, StackHasActiveImportsError as dt, DependencyError as et, yellow as f, StackTerminationProtectionError as ft, matchesCdkPath as g, isCdkdError as gt, CDK_PATH_TAG as h, formatError as ht, withResourceDeadline as i, LockError as it, stringifyValue as j, shouldRetainResource as k, gray as l, ResourceUpdateNotSupportedError as lt, collectInlinePolicyNamesManagedBySiblings as m, SynthesisError as mt, DEFAULT_RESOURCE_WARN_AFTER_MS as n, LocalMigrateError as nt, IMPLICIT_DELETE_DEPENDENCIES as o, PartialFailureError as ot, IAMRoleProvider as p, StateError as pt, uploadCfnTemplate as q, DeployEngine as r, LocalStartServiceError as rt, bold as s, ProvisioningError as st, DEFAULT_RESOURCE_TIMEOUT_MS as t, LocalInvokeBuildError as tt, green as u, RouteDiscoveryError as ut, resolveExplicitPhysicalId as v, withErrorHandling as vt, DiffCalculator as w, assertRegionMatch as x, ProviderRegistry as y, resolveSkipPrefix as z };
9903
- //# sourceMappingURL=deploy-engine-wdfQVR__.js.map
9904
+ //# sourceMappingURL=deploy-engine-Dff3_JMn.js.map