@go-to-k/cdkd 0.265.0 → 0.265.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/{asg-provider-Cvnv7x_Q.js → asg-provider-90rAbha0.js} +2 -2
- package/dist/{asg-provider-Cvnv7x_Q.js.map → asg-provider-90rAbha0.js.map} +1 -1
- package/dist/cli.js +25 -10
- package/dist/cli.js.map +1 -1
- package/dist/{deploy-engine-BIwwg2DG.js → deploy-engine-BVpHkkUa.js} +23 -6
- package/dist/{deploy-engine-BIwwg2DG.js.map → deploy-engine-BVpHkkUa.js.map} +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -11260,7 +11260,7 @@ var CloudControlProvider = class {
|
|
|
11260
11260
|
this.logger.debug(`Deleting resource ${logicalId} (${resourceType}), physical ID: ${physicalId}`);
|
|
11261
11261
|
if (context?.removeProtection === true && resourceType === "AWS::AutoScaling::AutoScalingGroup") {
|
|
11262
11262
|
this.logger.debug(`Delegating protected AutoScalingGroup ${logicalId} delete to the SDK ASGProvider (Cloud Control cannot force-delete a protected ASG)`);
|
|
11263
|
-
const { ASGProvider } = await import("./asg-provider-
|
|
11263
|
+
const { ASGProvider } = await import("./asg-provider-90rAbha0.js").then((n) => n.n);
|
|
11264
11264
|
await new ASGProvider().delete(logicalId, physicalId, resourceType, _properties, context);
|
|
11265
11265
|
return;
|
|
11266
11266
|
}
|
|
@@ -17143,7 +17143,7 @@ const FLUSH_INTERVAL_MS = 2e3;
|
|
|
17143
17143
|
const FLUSH_EVENT_THRESHOLD = 50;
|
|
17144
17144
|
/** Build-time cdkd version, with a dev fallback for non-built contexts. */
|
|
17145
17145
|
function getCdkdVersion() {
|
|
17146
|
-
return "0.265.
|
|
17146
|
+
return "0.265.2";
|
|
17147
17147
|
}
|
|
17148
17148
|
/**
|
|
17149
17149
|
* Generate a time-sortable unique run id, e.g.
|
|
@@ -18455,7 +18455,12 @@ var DeployEngine = class {
|
|
|
18455
18455
|
* (`operations: []` + the failed ops). Older segments from prior
|
|
18456
18456
|
* un-reverted attempts are preserved by the pop. The next successful deploy
|
|
18457
18457
|
* still deletes the whole journal, bounding the lingering window. With no
|
|
18458
|
-
* failed ops there is nothing left to revert —
|
|
18458
|
+
* failed ops there is nothing left to revert from THIS attempt — but only
|
|
18459
|
+
* this attempt's segment is popped, NOT the whole journal (issue #1215):
|
|
18460
|
+
* the clean rollback reverted only this attempt's ops, so older segments'
|
|
18461
|
+
* completed ops are still live in AWS/state and must keep their revert
|
|
18462
|
+
* records; pop deletes the object itself when the last segment goes, so
|
|
18463
|
+
* the common single-segment case still ends with no journal.
|
|
18459
18464
|
*
|
|
18460
18465
|
* Best-effort like every journal write: a pop failure warns and leaves the
|
|
18461
18466
|
* full segment in place (the pre-#1208 partial-rollback shape — replay is
|
|
@@ -18463,7 +18468,11 @@ var DeployEngine = class {
|
|
|
18463
18468
|
*/
|
|
18464
18469
|
async settleJournalAfterCleanRollback(stackName, failedOperations, initialDeploy) {
|
|
18465
18470
|
if (failedOperations.length === 0) {
|
|
18466
|
-
|
|
18471
|
+
try {
|
|
18472
|
+
await this.stateBackend.popRollbackJournalSegment(stackName, this.stackRegion);
|
|
18473
|
+
} catch (err) {
|
|
18474
|
+
this.logger.debug(`Failed to pop the rollback journal segment after the clean rollback: ${err instanceof Error ? err.message : String(err)}`);
|
|
18475
|
+
}
|
|
18467
18476
|
return;
|
|
18468
18477
|
}
|
|
18469
18478
|
try {
|
|
@@ -18740,7 +18749,15 @@ var DeployEngine = class {
|
|
|
18740
18749
|
}
|
|
18741
18750
|
}
|
|
18742
18751
|
this.logger.info(` Creating new ${logicalId}...`);
|
|
18743
|
-
createResult = await this.withRetry(() => replaceProvider.create(logicalId, resourceType, replaceProps), logicalId, void 0, void 0, replaceProvider)
|
|
18752
|
+
createResult = await withRetry(() => this.withRetry(() => replaceProvider.create(logicalId, resourceType, replaceProps), logicalId, void 0, void 0, replaceProvider), logicalId, {
|
|
18753
|
+
maxRetries: 8,
|
|
18754
|
+
initialDelayMs: 2e3,
|
|
18755
|
+
maxDelayMs: 1e4,
|
|
18756
|
+
logger: this.logger,
|
|
18757
|
+
isInterrupted: () => this.interrupted,
|
|
18758
|
+
onInterrupted: () => new InterruptedError(this.interruptCause ?? "user"),
|
|
18759
|
+
isRetryable: isRecreateRetryableError
|
|
18760
|
+
});
|
|
18744
18761
|
} else {
|
|
18745
18762
|
this.logger.info(` Creating new ${logicalId}...`);
|
|
18746
18763
|
let deletedOldFirst = false;
|
|
@@ -19114,4 +19131,4 @@ var DeployEngine = class {
|
|
|
19114
19131
|
|
|
19115
19132
|
//#endregion
|
|
19116
19133
|
export { createAssetRedirectResolver as $, ResourceTimeoutError as $t, CloudControlProvider as A, MIGRATE_TMP_PREFIX as At, assertRegionMatch as B, setAwsClients as Bt, green as C, resolveSkipPrefix as Ct, collectInlinePolicyNamesManagedBySiblings as D, warnDeprecatedNoPrefixCliFlag as Dt, IAMRoleProvider as E, resolveUseCdkBootstrapAssets as Et, cfnRefValueFromPhysicalId as F, clearBucketRegionCache as Ft, LockManager as G, LocalInvokeBuildError as Gt, DiffCalculator as H, CdkdError as Ht, refStateLookupFromResource as I, resolveBucketRegion as It, shouldRetainResource as J, LockError as Jt, S3StateBackend as K, LocalMigrateError as Kt, WAFv2WebACLProvider as L, AwsClients as Lt, disableInstanceApiTermination as M, uploadCfnTemplate as Mt, isTerminationProtectionPropagationError as N, expectedOwnerParam as Nt, ProviderRegistry as O, CFN_TEMPLATE_BODY_LIMIT as Ot, IntrinsicFunctionResolver as P, AssemblyReader as Pt, buildAssetRedirectMap as Q, ProvisioningError as Qt, normalizeAwsTagsToCfn as R, getAwsClients as Rt, gray as S, resolveCaptureObservedState as St, yellow as T, resolveStateBucketWithDefaultAndSource as Tt, DagBuilder as U, ConfigError as Ut, applyRoleArnIfSet as V, AssetError as Vt, TemplateParser as W, DependencyError as Wt, stringifyValue as X, NestedStackChildDirectDestroyError as Xt, AssetPublisher as Y, MissingCdkCliError as Yt, WorkGraph as Z, PartialFailureError as Zt, isStatefulRecreateTargetSync as _, synthesisStatusMessage as _t, DeploymentEventsStore as a, formatError as an, getBootstrapMarkerKey as at, bold as b, resolveApp as bt, replayFailedOperations as c, withErrorHandling as cn, validateContainerRepoName as ct, withRetry as d, getDockerCmd as dt, ResourceUpdateNotSupportedError as en, loadPublishableAssetManifest as et, isRetryableTransientError as f, runDockerForeground as ft, MULTI_REGION_RECREATE_BLOCKED_TYPES as g, Synthesizer as gt, extractDeploymentEventError as h, getDockerImageBySourceHash as ht, DeploymentEventsReader as i, SynthesisError as in, ensureAssetStorage as it, slowCcOperationTimeoutMs as j, findLargeInlineResources as jt, findActionableSilentDrops as k, CFN_TEMPLATE_URL_LIMIT as kt, replayRollback as l, __exportAll as ln, buildDockerImage as lt, computeImplicitDeleteEdges as m, AssetManifestLoader as mt, DEFAULT_RESOURCE_WARN_AFTER_MS as n, StackTerminationProtectionError as nn, AssetModeResolver as nt, planFailedOps as o, isCdkdError as on, parseBootstrapMarker as ot, IMPLICIT_DELETE_DEPENDENCIES as p, runDockerStreaming as pt, rebuildClientForBucketRegion as q, LocalStartServiceError as qt, DeployEngine as r, StateError as rn, BOOTSTRAP_MARKER_PREFIX as rt, planRollback as s, normalizeAwsError as sn, validateAssetBucketName as st, DEFAULT_RESOURCE_TIMEOUT_MS as t, StackHasActiveImportsError as tn, rewriteTemplateAssetReferences as tt, withResourceDeadline as u, formatDockerLoginError as ut, renderStatefulReason as v, getDefaultStateBucketName as vt, red as w, resolveStateBucketWithDefault as wt, cyan as x, resolveAutoAssetStorage as xt, formatResourceLine as y, getLegacyStateBucketName as yt, resolveExplicitPhysicalId as z, resetAwsClients as zt };
|
|
19117
|
-
//# sourceMappingURL=deploy-engine-
|
|
19134
|
+
//# sourceMappingURL=deploy-engine-BVpHkkUa.js.map
|