@go-to-k/cdkd 0.268.2 → 0.268.4

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.
@@ -2856,7 +2856,9 @@ async function expandMacrosAttempt(template, opts, logger) {
2856
2856
  try {
2857
2857
  await waitUntilChangeSetCreateComplete({
2858
2858
  client: cfn,
2859
- maxWaitTime: waiterMaxWaitSeconds
2859
+ maxWaitTime: waiterMaxWaitSeconds,
2860
+ minDelay: 2,
2861
+ maxDelay: 5
2860
2862
  }, {
2861
2863
  StackName: transientStackName,
2862
2864
  ChangeSetName: changeSetName
@@ -7964,6 +7966,7 @@ async function withRetry(operation, logicalId, opts = {}) {
7964
7966
  const defaultSchedule = opts.maxRetries === void 0 && opts.initialDelayMs === void 0 && opts.maxDelayMs === void 0 && opts.isRetryable === void 0;
7965
7967
  const attemptCeiling = defaultSchedule ? Math.max(maxRetries, 26) : maxRetries;
7966
7968
  let lastError;
7969
+ let sawPropagation = false;
7967
7970
  for (let attempt = 0; attempt <= attemptCeiling; attempt++) try {
7968
7971
  return await operation();
7969
7972
  } catch (error) {
@@ -7971,7 +7974,8 @@ async function withRetry(operation, logicalId, opts = {}) {
7971
7974
  const message = error instanceof Error ? error.message : String(error);
7972
7975
  const retryable = opts.isRetryable ? opts.isRetryable(message, error) : isRetryableTransientError(error, message);
7973
7976
  const propagation = defaultSchedule && isIamPropagationError(message);
7974
- const attemptLimit = propagation ? 26 : maxRetries;
7977
+ if (propagation) sawPropagation = true;
7978
+ const attemptLimit = sawPropagation ? 26 : maxRetries;
7975
7979
  if (!retryable || attempt >= attemptLimit) throw error;
7976
7980
  const delay = propagation ? Math.min(250 * Math.pow(2, attempt), IAM_PROPAGATION_MAX_DELAY_MS) : Math.min(initialDelayMs * Math.pow(2, attempt), maxDelayMs);
7977
7981
  opts.logger?.debug(` ⏳ Retrying ${logicalId} in ${delay / 1e3}s (attempt ${attempt + 1}/${attemptLimit}) - ${message}`);
@@ -11939,7 +11943,7 @@ var CloudControlProvider = class {
11939
11943
  this.logger.debug(`Deleting resource ${logicalId} (${resourceType}), physical ID: ${physicalId}`);
11940
11944
  if (context?.removeProtection === true && resourceType === "AWS::AutoScaling::AutoScalingGroup") {
11941
11945
  this.logger.debug(`Delegating protected AutoScalingGroup ${logicalId} delete to the SDK ASGProvider (Cloud Control cannot force-delete a protected ASG)`);
11942
- const { ASGProvider } = await import("./asg-provider-gaXfXSH0.js").then((n) => n.n);
11946
+ const { ASGProvider } = await import("./asg-provider-iWNOeyib.js").then((n) => n.n);
11943
11947
  await new ASGProvider().delete(logicalId, physicalId, resourceType, _properties, context);
11944
11948
  return;
11945
11949
  }
@@ -12982,7 +12986,9 @@ var CustomResourceProvider = class CustomResourceProvider {
12982
12986
  }));
12983
12987
  await waitUntilFunctionUpdatedV2({
12984
12988
  client: this.lambdaClient,
12985
- maxWaitTime: 120
12989
+ maxWaitTime: 120,
12990
+ minDelay: 1,
12991
+ maxDelay: 5
12986
12992
  }, { FunctionName: serviceToken });
12987
12993
  } catch (error) {
12988
12994
  this.logger.debug(`Could not recycle backing function for ${logicalId} (${error instanceof Error ? error.message : String(error)}); retrying invoke without a forced cold start`);
@@ -13035,11 +13041,15 @@ var CustomResourceProvider = class CustomResourceProvider {
13035
13041
  try {
13036
13042
  await waitUntilFunctionActiveV2({
13037
13043
  client: this.lambdaClient,
13038
- maxWaitTime: 600
13044
+ maxWaitTime: 600,
13045
+ minDelay: 1,
13046
+ maxDelay: 5
13039
13047
  }, { FunctionName: serviceToken });
13040
13048
  await waitUntilFunctionUpdatedV2({
13041
13049
  client: this.lambdaClient,
13042
- maxWaitTime: 600
13050
+ maxWaitTime: 600,
13051
+ minDelay: 1,
13052
+ maxDelay: 5
13043
13053
  }, { FunctionName: serviceToken });
13044
13054
  } catch (error) {
13045
13055
  throw new Error(`Lambda backing custom resource ${logicalId} (${serviceToken}) did not reach a ready state for Invoke: ${error instanceof Error ? error.message : String(error)}`);
@@ -17651,7 +17661,7 @@ const FLUSH_INTERVAL_MS = 2e3;
17651
17661
  const FLUSH_EVENT_THRESHOLD = 50;
17652
17662
  /** Build-time cdkd version, with a dev fallback for non-built contexts. */
17653
17663
  function getCdkdVersion() {
17654
- return "0.268.2";
17664
+ return "0.268.4";
17655
17665
  }
17656
17666
  /**
17657
17667
  * Generate a time-sortable unique run id, e.g.
@@ -19697,4 +19707,4 @@ var DeployEngine = class {
19697
19707
 
19698
19708
  //#endregion
19699
19709
  export { WorkGraph as $, LockError as $t, slowCcOperationTimeoutMs as A, warnDeprecatedNoPrefixCliFlag as At, applyRoleArnIfSet as B, resolveBucketRegion as Bt, yellow as C, resolveAutoAssetStorage as Ct, ProviderRegistry as D, resolveStateBucketWithDefaultAndSource as Dt, clearOnUpdateRemoval as E, resolveStateBucketWithDefault as Et, refStateLookupFromResource as F, uploadCfnTemplate as Ft, DagBuilder as G, AssetError as Gt, describeTypeWithThrottleRetry as H, getAwsClients as Ht, WAFv2WebACLProvider as I, expectedOwnerParam as It, S3StateBackend as J, DependencyError as Jt, TemplateParser as K, CdkdError as Kt, normalizeAwsTagsToCfn as L, AssemblyReader as Lt, isTerminationProtectionPropagationError as M, CFN_TEMPLATE_URL_LIMIT as Mt, IntrinsicFunctionResolver as N, MIGRATE_TMP_PREFIX as Nt, findActionableSilentDrops as O, resolveUseCdkBootstrapAssets as Ot, cfnRefValueFromPhysicalId as P, findLargeInlineResources as Pt, stringifyValue as Q, LocalStartServiceError as Qt, resolveExplicitPhysicalId as R, processStackMessages as Rt, red as S, resolveApp as St, collectInlinePolicyNamesManagedBySiblings as T, resolveSkipPrefix as Tt, withRetry as U, resetAwsClients as Ut, DiffCalculator as V, AwsClients as Vt, isRetryableTransientError as W, setAwsClients as Wt, shouldRetainResource as X, LocalInvokeBuildError as Xt, rebuildClientForBucketRegion as Y, DeployCancelledError as Yt, AssetPublisher as Z, LocalMigrateError as Zt, formatResourceLine as _, getDockerImageBySourceHash as _t, DeploymentEventsStore as a, ResourceUpdateNotSupportedError as an, BOOTSTRAP_MARKER_PREFIX as at, gray as b, getDefaultStateBucketName as bt, replayFailedOperations as c, StateError as cn, parseBootstrapMarker as ct, IMPLICIT_DELETE_DEPENDENCIES as d, isCdkdError as dn, buildDockerImage as dt, MissingCdkCliError as en, buildAssetRedirectMap as et, computeImplicitDeleteEdges as f, normalizeAwsError as fn, formatDockerLoginError as ft, renderStatefulReason as g, AssetManifestLoader as gt, isStatefulRecreateTargetSync as h, runDockerStreaming as ht, DeploymentEventsReader as i, ResourceTimeoutError as in, AssetModeResolver as it, disableInstanceApiTermination as j, CFN_TEMPLATE_BODY_LIMIT as jt, CloudControlProvider as k, stateBucketExistenceConfirmed as kt, replayRollback as l, SynthesisError as ln, validateAssetBucketName as lt, MULTI_REGION_RECREATE_BLOCKED_TYPES as m, __exportAll as mn, runDockerForeground as mt, DEFAULT_RESOURCE_WARN_AFTER_MS as n, PartialFailureError as nn, loadPublishableAssetManifest as nt, planFailedOps as o, StackHasActiveImportsError as on, ensureAssetStorage as ot, extractDeploymentEventError as p, withErrorHandling as pn, getDockerCmd as pt, LockManager as q, ConfigError as qt, DeployEngine as r, ProvisioningError as rn, rewriteTemplateAssetReferences as rt, planRollback as s, StackTerminationProtectionError as sn, getBootstrapMarkerKey as st, DEFAULT_RESOURCE_TIMEOUT_MS as t, NestedStackChildDirectDestroyError as tn, createAssetRedirectResolver as tt, withResourceDeadline as u, formatError as un, validateContainerRepoName as ut, bold as v, Synthesizer as vt, IAMRoleProvider as w, resolveCaptureObservedState as wt, green as x, getLegacyStateBucketName as xt, cyan as y, synthesisStatusMessage as yt, assertRegionMatch as z, clearBucketRegionCache as zt };
19700
- //# sourceMappingURL=deploy-engine-BEjF-h_6.js.map
19710
+ //# sourceMappingURL=deploy-engine--qUEKkTR.js.map