@go-to-k/cdkd 0.278.25 → 0.278.27
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-BRlawK4H.js → asg-provider-C2V8DwC0.js} +2 -2
- package/dist/{asg-provider-BRlawK4H.js.map → asg-provider-C2V8DwC0.js.map} +1 -1
- package/dist/cli.js +136 -23
- package/dist/cli.js.map +1 -1
- package/dist/{deploy-engine-B65VTlrZ.js → deploy-engine-0SZS30V4.js} +31 -5
- package/dist/deploy-engine-0SZS30V4.js.map +1 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/deploy-engine-B65VTlrZ.js.map +0 -1
|
@@ -12430,7 +12430,7 @@ var CloudControlProvider = class {
|
|
|
12430
12430
|
if (context?.finalSnapshotIdentifier !== void 0) throw new ProvisioningError(`${logicalId} (${resourceType}) requires a final snapshot (DeletionPolicy: Snapshot), but the Cloud Control API delete route has no final-snapshot parameter. Re-run with --skip-final-snapshot after snapshotting manually, or retain the resource.`, resourceType, logicalId, physicalId);
|
|
12431
12431
|
if (context?.removeProtection === true && resourceType === "AWS::AutoScaling::AutoScalingGroup") {
|
|
12432
12432
|
this.logger.debug(`Delegating protected AutoScalingGroup ${logicalId} delete to the SDK ASGProvider (Cloud Control cannot force-delete a protected ASG)`);
|
|
12433
|
-
const { ASGProvider } = await import("./asg-provider-
|
|
12433
|
+
const { ASGProvider } = await import("./asg-provider-C2V8DwC0.js").then((n) => n.n);
|
|
12434
12434
|
await new ASGProvider().delete(logicalId, physicalId, resourceType, _properties, context);
|
|
12435
12435
|
return;
|
|
12436
12436
|
}
|
|
@@ -18128,6 +18128,32 @@ async function withResourceDeadline(operation, opts) {
|
|
|
18128
18128
|
/** The `--skip-final-snapshot` flag name cited by every refusal below. */
|
|
18129
18129
|
const SKIP_FINAL_SNAPSHOT_FLAG = "--skip-final-snapshot";
|
|
18130
18130
|
/**
|
|
18131
|
+
* The {@link CreateContext} every reverse-replacement re-create passes
|
|
18132
|
+
* (issue #1463). Both arms of that path — the create-first attempt and the
|
|
18133
|
+
* delete-new-first retry — revive the OLD resource from
|
|
18134
|
+
* `previousState.properties`, i.e. from a cdkd STATE record rather than the
|
|
18135
|
+
* template, so a provider pre-flight refusal has no template-side remedy and
|
|
18136
|
+
* must downgrade to a warning. Declared once so the two arms cannot drift.
|
|
18137
|
+
*
|
|
18138
|
+
* These are the only create call sites that can DECLARE a replay. The deploy
|
|
18139
|
+
* engine's five sites (CREATE, the property-driven replacement, the
|
|
18140
|
+
* `--recreate-via-*` destroy-then-create, the `--replace` delete-first
|
|
18141
|
+
* fallback, and the update-failure replacement) are all driven by freshly
|
|
18142
|
+
* resolved TEMPLATE properties, so they deliberately pass no context and the
|
|
18143
|
+
* refusal stands where the user can edit the input.
|
|
18144
|
+
*
|
|
18145
|
+
* The remaining call sites are the providers that re-create inside their own
|
|
18146
|
+
* `update()` (`this.create(...)` in ACM certificate / IAM managed policy / IAM
|
|
18147
|
+
* role / Lambda permission / SNS subscription). Those are NOT template-driven
|
|
18148
|
+
* — this executor's `revert` arm calls `provider.update(...)` with
|
|
18149
|
+
* `previousState.properties`, so they forward a STATE record on a replay — but
|
|
18150
|
+
* they CANNOT receive a context, because `update()` has no context parameter.
|
|
18151
|
+
* The constraint that follows is on providers, not on this constant: a
|
|
18152
|
+
* provider with a create-side pre-flight refusal must not re-create inside
|
|
18153
|
+
* `update()`. See `CreateContext` in `src/types/resource.ts`.
|
|
18154
|
+
*/
|
|
18155
|
+
const REPLAYING_STATE_CREATE_CONTEXT = { replayingState: true };
|
|
18156
|
+
/**
|
|
18131
18157
|
* Which provisioning layer a delete must be judged against: the CURRENT
|
|
18132
18158
|
* state record wins (it is what state says AWS holds right now), with the
|
|
18133
18159
|
* journaled op's routing as the legacy-state fallback. Shared by both
|
|
@@ -18542,7 +18568,7 @@ async function replaySingle(op, stateResources, stackName, ctx, orphanLogicalIds
|
|
|
18542
18568
|
let deletedNewFirst = false;
|
|
18543
18569
|
let createResult;
|
|
18544
18570
|
try {
|
|
18545
|
-
createResult = await withRetry(() => createProvider.create(op.logicalId, op.resourceType, { ...prev.properties }), op.logicalId, {
|
|
18571
|
+
createResult = await withRetry(() => createProvider.create(op.logicalId, op.resourceType, { ...prev.properties }, REPLAYING_STATE_CREATE_CONTEXT), op.logicalId, {
|
|
18546
18572
|
...RECREATE_RETRY_SCHEDULE,
|
|
18547
18573
|
logger,
|
|
18548
18574
|
...isInterrupted && {
|
|
@@ -18565,7 +18591,7 @@ async function replaySingle(op, stateResources, stackName, ctx, orphanLogicalIds
|
|
|
18565
18591
|
delete stateResources[op.logicalId];
|
|
18566
18592
|
await afterOp?.(op.logicalId);
|
|
18567
18593
|
try {
|
|
18568
|
-
createResult = await withRetry(() => createProvider.create(op.logicalId, op.resourceType, { ...prev.properties }), op.logicalId, {
|
|
18594
|
+
createResult = await withRetry(() => createProvider.create(op.logicalId, op.resourceType, { ...prev.properties }, REPLAYING_STATE_CREATE_CONTEXT), op.logicalId, {
|
|
18569
18595
|
...RECREATE_RETRY_SCHEDULE,
|
|
18570
18596
|
logger,
|
|
18571
18597
|
...isInterrupted && {
|
|
@@ -18898,7 +18924,7 @@ const FLUSH_INTERVAL_MS = 2e3;
|
|
|
18898
18924
|
const FLUSH_EVENT_THRESHOLD = 50;
|
|
18899
18925
|
/** Build-time cdkd version, with a dev fallback for non-built contexts. */
|
|
18900
18926
|
function getCdkdVersion() {
|
|
18901
|
-
return "0.278.
|
|
18927
|
+
return "0.278.27";
|
|
18902
18928
|
}
|
|
18903
18929
|
/**
|
|
18904
18930
|
* Generate a time-sortable unique run id, e.g.
|
|
@@ -21010,4 +21036,4 @@ var DeployEngine = class {
|
|
|
21010
21036
|
|
|
21011
21037
|
//#endregion
|
|
21012
21038
|
export { isThrottlingError as $, setAwsClients as $t, red as A, getLegacyStateBucketName as At, isTerminationProtectionPropagationError as B, CFN_TEMPLATE_BODY_LIMIT as Bt, isStatefulRecreateTargetSync as C, __exportAll as Cn, runDockerForeground as Ct, cyan as D, Synthesizer as Dt, bold as E, getDockerImageBySourceHash as Et, ProviderRegistry as F, resolveStateBucketWithDefault as Ft, normalizeAwsTagsToCfn as G, expectedOwnerParam as Gt, cfnRefValueFromPhysicalId as H, MIGRATE_TMP_PREFIX as Ht, findActionableSilentDrops as I, resolveStateBucketWithDefaultAndSource as It, applyRoleArnIfSet as J, clearBucketRegionCache as Jt, resolveExplicitPhysicalId as K, AssemblyReader as Kt, CloudControlProvider as L, resolveUseCdkBootstrapAssets as Lt, IAMRoleProvider as M, resolveAutoAssetStorage as Mt, collectInlinePolicyNamesManagedBySiblings as N, resolveCaptureObservedState as Nt, gray as O, synthesisStatusMessage as Ot, clearOnUpdateRemoval as P, resolveSkipPrefix as Pt, isRetryableTransientError as Q, resetAwsClients as Qt, slowCcOperationTimeoutMs as R, stateBucketExistenceConfirmed as Rt, MULTI_REGION_RECREATE_BLOCKED_TYPES as S, withErrorHandling as Sn, getDockerCmd as St, formatResourceLine as T, AssetManifestLoader as Tt, refStateLookupFromResource as U, findLargeInlineResources as Ut, IntrinsicFunctionResolver as V, CFN_TEMPLATE_URL_LIMIT as Vt, WAFv2WebACLProvider as W, uploadCfnTemplate as Wt, describeTypeWithThrottleRetry as X, AwsClients as Xt, DiffCalculator as Y, resolveBucketRegion as Yt, withRetry as Z, getAwsClients as Zt, createPreDeleteFinalSnapshot as _, StateError as _n, parseBootstrapMarker as _t, DeploymentEventsStore as a, LocalInvokeBuildError as an, shouldRetainResource as at, unsupportedFinalSnapshotError as b, isCdkdError as bn, buildDockerImage as bt, replayFailedOperations as c, LockError as cn, WorkGraph as ct, IMPLICIT_DELETE_DEPENDENCIES as d, PartialFailureError as dn, loadPublishableAssetManifest as dt, AssetError as en, DagBuilder as et, computeImplicitDeleteEdges as f, ProvisioningError as fn, rewriteTemplateAssetReferences as ft, ccRoutedFinalSnapshotError as g, StackTerminationProtectionError as gn, getBootstrapMarkerKey as gt, buildFinalSnapshotIdentifier as h, StackHasActiveImportsError as hn, ensureAssetStorage as ht, DeploymentEventsReader as i, DeployCancelledError as in, rebuildClientForBucketRegion as it, yellow as j, resolveApp as jt, green as k, getDefaultStateBucketName as kt, replayRollback as l, MissingCdkCliError as ln, buildAssetRedirectMap as lt, PRE_DELETE_SNAPSHOT_TYPES as m, ResourceUpdateNotSupportedError as mn, BOOTSTRAP_MARKER_PREFIX as mt, DEFAULT_RESOURCE_WARN_AFTER_MS as n, ConfigError as nn, LockManager as nt, planFailedOps as o, LocalMigrateError as on, AssetPublisher as ot, ATOMIC_FINAL_SNAPSHOT_TYPES as p, ResourceTimeoutError as pn, AssetModeResolver as pt, assertRegionMatch as q, processStackMessages as qt, DeployEngine as r, DependencyError as rn, S3StateBackend as rt, planRollback as s, LocalStartServiceError as sn, stringifyValue as st, DEFAULT_RESOURCE_TIMEOUT_MS as t, CdkdError as tn, TemplateParser as tt, withResourceDeadline as u, NestedStackChildDirectDestroyError as un, createAssetRedirectResolver as ut, isFinalSnapshotError as v, SynthesisError as vn, validateAssetBucketName as vt, renderStatefulReason as w, runDockerStreaming as wt, extractDeploymentEventError as x, normalizeAwsError as xn, formatDockerLoginError as xt, refusesFinalSnapshot as y, formatError as yn, validateContainerRepoName as yt, disableInstanceApiTermination as z, warnDeprecatedNoPrefixCliFlag as zt };
|
|
21013
|
-
//# sourceMappingURL=deploy-engine-
|
|
21039
|
+
//# sourceMappingURL=deploy-engine-0SZS30V4.js.map
|