@go-to-k/cdkd 0.284.16 → 0.284.18

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.
@@ -346,16 +346,27 @@ function isThrottlingError(error) {
346
346
  *
347
347
  * ACCEPTED RISK, stated rather than discovered later: this makes a
348
348
  * NON-IDEMPOTENT create retryable on a 500 that may have succeeded
349
- * server-side. `EC2Provider.createInstance` issues `RunInstances` with no
350
- * `ClientToken` (only four providers use one at all), and
351
- * `IAMAccessKeyProvider` mints an unnamed key, so a replay can leave a
352
- * resource that is absent from state and therefore from destroy. The class is
353
- * PRE-EXISTING -- the SDK's own three attempts already reach it, and 503 was
354
- * already retryable here -- but this widens the window from ~1s to the full
355
- * schedule. Judged worth it because the alternative is the measured failure
356
- * (a deploy that dies outright on a transient 500), and because the durable
357
- * remedy is per-provider idempotency tokens rather than a blanket refusal to
358
- * retry server errors. Tracked in issue #2039.
349
+ * server-side, so a replay can leave a resource that is absent from state and
350
+ * therefore from destroy. The class is PRE-EXISTING -- the SDK's own three
351
+ * attempts already reach it, and 503 was already retryable here -- but this
352
+ * widens the window from ~1s to the full schedule. Judged worth it because the
353
+ * alternative is the measured failure (a deploy that dies outright on a
354
+ * transient 500), and because the durable remedy is per-provider idempotency
355
+ * tokens rather than a blanket refusal to retry server errors.
356
+ *
357
+ * STATUS (issue #2039, and read this before citing the paragraph above). The
358
+ * two worked examples this note used to carry -- `RunInstances` sent with no
359
+ * `ClientToken`, and `IAMAccessKeyProvider` minting an unnamed key -- are both
360
+ * FIXED, so quoting them as live hazards would now mislead. `RunInstances`,
361
+ * `CreateNatGateway`, `CreateRouteTable`, `CreateNetworkAcl` and
362
+ * `CreateHostedZone` carry a retry-stable token from
363
+ * `src/provisioning/providers/idempotency-token.ts`, and `CreateAccessKey`
364
+ * (which has no token member) reconciles the orphan its own failed attempt
365
+ * left. The claim that "only four providers use one at all" was also wrong when
366
+ * written: six did, and two of those regenerated the token per attempt, which
367
+ * is worse than none. What REMAINS accepted here is the residue -- roughly 25
368
+ * creates across 16 providers audited in issue #2039 and enumerated in issue
369
+ * #2080 -- so this set stays as-is and the remedy stays per-provider.
359
370
  */
360
371
  const TRANSIENT_SERVER_ERROR_STATUS_CODES = /* @__PURE__ */ new Set([
361
372
  500,
@@ -16503,7 +16514,7 @@ var CloudControlProvider = class {
16503
16514
  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);
16504
16515
  if (context?.removeProtection === true && resourceType === "AWS::AutoScaling::AutoScalingGroup") {
16505
16516
  this.logger.debug(`Delegating protected AutoScalingGroup ${logicalId} delete to the SDK ASGProvider (Cloud Control cannot force-delete a protected ASG)`);
16506
- const { ASGProvider } = await import("./asg-provider-D7DqNvVo.js").then((n) => n.n);
16517
+ const { ASGProvider } = await import("./asg-provider-IPF2MfAC.js").then((n) => n.n);
16507
16518
  return await new ASGProvider().delete(logicalId, physicalId, resourceType, _properties, context);
16508
16519
  }
16509
16520
  const isProtectedEc2Instance = context?.removeProtection === true && resourceType === "AWS::EC2::Instance";
@@ -24676,7 +24687,7 @@ const FLUSH_INTERVAL_MS = 2e3;
24676
24687
  const FLUSH_EVENT_THRESHOLD = 50;
24677
24688
  /** Build-time cdkd version, with a dev fallback for non-built contexts. */
24678
24689
  function getCdkdVersion() {
24679
- return "0.284.16";
24690
+ return "0.284.18";
24680
24691
  }
24681
24692
  /**
24682
24693
  * Generate a time-sortable unique run id, e.g.
@@ -27216,4 +27227,4 @@ var DeployEngine = class {
27216
27227
 
27217
27228
  //#endregion
27218
27229
  export { isTerminationProtectionPropagationError as $, ResourceUpdateNotSupportedError as $n, validateAssetBucketName as $t, renderStatefulReason as A, derivePartitionAndUrlSuffix as An, INTRINSIC_KEYS as At, exportAliasCollisionScrubWarning as B, CdkdError as Bn, stringifyValue as Bt, isFinalSnapshotError as C, CFN_TEMPLATE_URL_LIMIT as Cn, s3BucketArn as Ct, extractDeploymentEventError as D, expectedOwnerParam as Dn, s3BucketWebsiteUrl as Dt, makeCanonicalizePropertiesFn as E, uploadCfnTemplate as En, s3BucketRegionalDomainName as Et, green as F, AwsClients as Fn, LockManager as Ft, collectInlinePolicyNamesManagedBySiblings as G, LocalMigrateError as Gn, rewriteTemplateAssetReferences as Gt, secretBearingStateKeyWarning as H, DependencyError as Hn, buildAssetRedirectMap as Ht, red as I, getAwsClients as In, S3StateBackend as It, findActionableSilentDrops as J, MissingCdkCliError as Jn, AssetModeResolver as Jt, clearOnUpdateRemoval as K, LocalStartServiceError as Kn, escapeRegExp$1 as Kt, yellow as L, resetAwsClients as Ln, rebuildClientForBucketRegion as Lt, bold as M, processStackMessages as Mn, withRetry as Mt, cyan as N, clearBucketRegionCache as Nn, DagBuilder as Nt, MULTI_REGION_RECREATE_BLOCKED_TYPES as O, PARTITION_TABLE as On, applyRoleArnIfSet as Ot, gray as P, resolveBucketRegion as Pn, TemplateParser as Pt, disableInstanceApiTermination as Q, ResourceTimeoutError as Qn, parseBootstrapMarker as Qt, collectDeclaredOutputNames as R, setAwsClients as Rn, shouldRetainResource as Rt, createPreDeleteFinalSnapshot as S, CFN_TEMPLATE_BODY_LIMIT as Sn, scrubResourceRecord as St, unsupportedFinalSnapshotError as T, findLargeInlineResources as Tn, s3BucketDualStackDomainName as Tt, stateKeySecretExposure as U, DeployCancelledError as Un, createAssetRedirectResolver as Ut, isExportAliasCollision as V, ConfigError as Vn, WorkGraph as Vt, IAMRoleProvider as W, LocalInvokeBuildError as Wn, loadPublishableAssetManifest as Wt, CloudControlProvider as X, PartialFailureError as Xn, ensureAssetStorage as Xt, findSilentDropProperties as Y, NestedStackChildDirectDestroyError as Yn, BOOTSTRAP_MARKER_PREFIX as Yt, slowCcOperationTimeoutMs as Z, ProvisioningError as Zn, getBootstrapMarkerKey as Zt, computeImplicitDeleteEdges as _, resolveStateBucketWithDefault as _n, STATE_SOURCED_READBACK_RULES as _t, DeploymentEventsStore as a, runDockerForeground as an, isCdkdError as ar, normalizeAwsTagsToCfn as at, buildFinalSnapshotIdentifier as b, stateBucketExistenceConfirmed as bn, maskSecretsInText as bt, replayFailedOperations as c, getDockerImageBySourceHash as cn, isMarkedNonRetryable as cr, coerceCfnBoolean as ct, updatePartialReason as d, getDefaultStateBucketName as dn, markNonRetryable as dr, readConfigString as dt, validateContainerRepoName as en, StackHasActiveImportsError as er, IntrinsicFunctionResolver as et, UNSPECIFIED_SKIP_REASON as f, getLegacyStateBucketName as fn, __exportAll as fr, replayWarn as ft, IMPLICIT_DELETE_DEPENDENCIES as g, resolveSkipPrefix as gn, STATE_SOURCED_CROSS_GENERATION_RULES as gt, maskingRetryLogger as h, resolveCaptureObservedState as hn, requireConfigString as ht, DeploymentEventsReader as i, getDockerCmd as in, formatError as ir, WAFv2WebACLProvider as it, formatResourceLine as j, AssemblyReader as jn, describeTypeWithThrottleRetry as jt, isStatefulRecreateTargetSync as k, canonicalizeRegion as kn, DiffCalculator as kt, replayRollback as l, Synthesizer as ln, isRetryableTransientError as lr, configBooleanRefusal as lt, withResourceDeadline as m, resolveAutoAssetStorage as mn, requireConfigObject as mt, DEFAULT_RESOURCE_WARN_AFTER_MS as n, buildDockerImage as nn, StateError as nr, getAccountInfo as nt, planFailedOps as o, runDockerStreaming as on, normalizeAwsError as or, resolveExplicitPhysicalId as ot, deleteSkipReason as p, resolveApp as pn, requireConfigArray as pt, ProviderRegistry as q, LockError as qn, stripControlChars as qt, DeployEngine as r, formatDockerLoginError as rn, SynthesisError as rr, refStateLookupFromResource as rt, planRollback as s, AssetManifestLoader as sn, withErrorHandling as sr, assertRegionMatch as st, DEFAULT_RESOURCE_TIMEOUT_MS as t, buildDenyExternalAccessPolicy as tn, StackTerminationProtectionError as tr, cfnRefValueFromPhysicalId as tt, updatePartialMessage as u, synthesisStatusMessage as un, isThrottlingError as ur, configStringRefusal as ut, ATOMIC_FINAL_SNAPSHOT_TYPES as v, resolveStateBucketWithDefaultAndSource as vn, TEMPLATE_SOURCED_RULES as vt, refusesFinalSnapshot as w, MIGRATE_TMP_PREFIX as wn, s3BucketDomainName as wt, ccRoutedFinalSnapshotError as x, warnDeprecatedNoPrefixCliFlag as xn, redactSecretsForState as xt, PRE_DELETE_SNAPSHOT_TYPES as y, resolveUseCdkBootstrapAssets as yn, createSecretMasker as yt, collectPublishedOutputNames as z, AssetError as zn, AssetPublisher as zt };
27219
- //# sourceMappingURL=deploy-engine-CI0a6yLX.js.map
27230
+ //# sourceMappingURL=deploy-engine-HK-oROJf.js.map