@go-to-k/cdkd 0.264.0 → 0.264.1

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.
@@ -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-B5N9p1vq.js").then((n) => n.n);
11263
+ const { ASGProvider } = await import("./asg-provider-ByH521ze.js").then((n) => n.n);
11264
11264
  await new ASGProvider().delete(logicalId, physicalId, resourceType, _properties, context);
11265
11265
  return;
11266
11266
  }
@@ -11934,10 +11934,10 @@ var CustomResourceProvider = class CustomResourceProvider {
11934
11934
  responseClientResolveInFlight = null;
11935
11935
  responseClientGeneration = 0;
11936
11936
  /**
11937
- * Whether `this.s3Client` is a provider-OWNED client (built from the
11938
- * `setResponseBucket` region hint or by a region-correction rebuild)
11939
- * vs the shared `AwsClients.s3` instance from the constructor. Owned
11940
- * clients are `destroy()`ed when replaced; the shared one never is.
11937
+ * Whether `this.s3Client` is a provider-OWNED client (built by a
11938
+ * region-correction rebuild) vs the shared `AwsClients.s3` instance
11939
+ * from the constructor. Owned clients are `destroy()`ed when replaced;
11940
+ * the shared one never is.
11941
11941
  */
11942
11942
  ownsS3Client = false;
11943
11943
  /**
@@ -12015,12 +12015,20 @@ var CustomResourceProvider = class CustomResourceProvider {
12015
12015
  return this.asyncResponseTimeoutMs;
12016
12016
  }
12017
12017
  /**
12018
- * Set the S3 bucket for custom resource responses
12019
- * Called by ProviderRegistry when state bucket is configured
12020
- */
12021
- setResponseBucket(bucket, bucketRegion) {
12018
+ * Set the S3 bucket for custom resource responses.
12019
+ * Called by ProviderRegistry when the state bucket is configured.
12020
+ *
12021
+ * There is deliberately NO region parameter (issue #1202): the bucket's
12022
+ * ACTUAL region is resolved lazily via `ensureResponseClient()` before
12023
+ * the first S3 operation (issue #1195), starting from the shared
12024
+ * `AwsClients.s3` client so `--profile` / static credentials carry into
12025
+ * both the `GetBucketLocation` probe and the rebuilt client. The former
12026
+ * deploy-region hint parameter built a default-credential-chain client
12027
+ * (dropping `--profile`) and added nothing — the probe resolves the
12028
+ * bucket's real region regardless of the starting client's region.
12029
+ */
12030
+ setResponseBucket(bucket) {
12022
12031
  this.responseBucket = bucket;
12023
- if (bucketRegion) this.replaceS3Client(new S3Client({ region: bucketRegion }));
12024
12032
  this.responseClientGeneration++;
12025
12033
  this.responseClientResolved = false;
12026
12034
  this.responseClientResolveInFlight = null;
@@ -14893,8 +14901,8 @@ var ProviderRegistry = class {
14893
14901
  * Configure the response bucket for custom resources
14894
14902
  * This allows Lambda handlers using cfn-response to send responses via S3
14895
14903
  */
14896
- setCustomResourceResponseBucket(bucket, bucketRegion) {
14897
- this.customResourceProvider.setResponseBucket(bucket, bucketRegion);
14904
+ setCustomResourceResponseBucket(bucket) {
14905
+ this.customResourceProvider.setResponseBucket(bucket);
14898
14906
  this.logger.debug(`Custom resource response bucket set to: ${bucket}`);
14899
14907
  }
14900
14908
  /**
@@ -17072,7 +17080,7 @@ const FLUSH_INTERVAL_MS = 2e3;
17072
17080
  const FLUSH_EVENT_THRESHOLD = 50;
17073
17081
  /** Build-time cdkd version, with a dev fallback for non-built contexts. */
17074
17082
  function getCdkdVersion() {
17075
- return "0.264.0";
17083
+ return "0.264.1";
17076
17084
  }
17077
17085
  /**
17078
17086
  * Generate a time-sortable unique run id, e.g.
@@ -19009,4 +19017,4 @@ var DeployEngine = class {
19009
19017
 
19010
19018
  //#endregion
19011
19019
  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 };
19012
- //# sourceMappingURL=deploy-engine-hlS6y_-0.js.map
19020
+ //# sourceMappingURL=deploy-engine-DNLQYYBx.js.map