@go-to-k/cdkd 0.284.20 → 0.284.21
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-Cq-oDB62.js → asg-provider-D5G53CUp.js} +2 -2
- package/dist/{asg-provider-Cq-oDB62.js.map → asg-provider-D5G53CUp.js.map} +1 -1
- package/dist/cli.js +151 -39
- package/dist/cli.js.map +1 -1
- package/dist/{deploy-engine-C6gt7NcL.js → deploy-engine--N_xnvjI.js} +28 -4
- package/dist/deploy-engine--N_xnvjI.js.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/deploy-engine-C6gt7NcL.js.map +0 -1
|
@@ -1237,6 +1237,27 @@ var aws_clients_exports = /* @__PURE__ */ __exportAll({
|
|
|
1237
1237
|
/**
|
|
1238
1238
|
* AWS clients manager
|
|
1239
1239
|
*/
|
|
1240
|
+
/**
|
|
1241
|
+
* {@link canonicalizeRegion}'s body, inlined.
|
|
1242
|
+
*
|
|
1243
|
+
* This module may NOT import it — `scripts/audit-provider-coverage.ts` runs
|
|
1244
|
+
* under `node` with native type stripping and imports this file as
|
|
1245
|
+
* `'../src/utils/aws-clients.ts'`, and Node resolves relative specifiers
|
|
1246
|
+
* LITERALLY: it does not rewrite `.js` to `.ts` the way TypeScript does at emit
|
|
1247
|
+
* time. So a `./aws-partition.js` import here is fine for the bundle and fails
|
|
1248
|
+
* the script with `ERR_MODULE_NOT_FOUND` (which is exactly how this was found —
|
|
1249
|
+
* 32 `gen-nested-key-coverage` cases went red on the first cut of issue #2065).
|
|
1250
|
+
* That constraint had never been written down, because until now this file
|
|
1251
|
+
* happened to have NO relative import at all; the script's own import carries
|
|
1252
|
+
* the other half of the note.
|
|
1253
|
+
*
|
|
1254
|
+
* `tests/unit/utils/aws-clients-region-fold.test.ts` fences BOTH halves: that
|
|
1255
|
+
* this stays byte-equivalent to `canonicalizeRegion` over a table of spellings,
|
|
1256
|
+
* and that this file gains no relative import that would break the script.
|
|
1257
|
+
*/
|
|
1258
|
+
function foldRegion(region) {
|
|
1259
|
+
return region.toLowerCase();
|
|
1260
|
+
}
|
|
1240
1261
|
var AwsClients = class AwsClients {
|
|
1241
1262
|
s3Client;
|
|
1242
1263
|
cloudControlClient;
|
|
@@ -1262,7 +1283,10 @@ var AwsClients = class AwsClients {
|
|
|
1262
1283
|
lambdaMicrovmsClient;
|
|
1263
1284
|
config;
|
|
1264
1285
|
constructor(config = {}) {
|
|
1265
|
-
this.config =
|
|
1286
|
+
this.config = {
|
|
1287
|
+
...config,
|
|
1288
|
+
...config.region !== void 0 && { region: foldRegion(config.region) }
|
|
1289
|
+
};
|
|
1266
1290
|
}
|
|
1267
1291
|
get clientOptions() {
|
|
1268
1292
|
return {
|
|
@@ -16728,7 +16752,7 @@ var CloudControlProvider = class {
|
|
|
16728
16752
|
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);
|
|
16729
16753
|
if (context?.removeProtection === true && resourceType === "AWS::AutoScaling::AutoScalingGroup") {
|
|
16730
16754
|
this.logger.debug(`Delegating protected AutoScalingGroup ${logicalId} delete to the SDK ASGProvider (Cloud Control cannot force-delete a protected ASG)`);
|
|
16731
|
-
const { ASGProvider } = await import("./asg-provider-
|
|
16755
|
+
const { ASGProvider } = await import("./asg-provider-D5G53CUp.js").then((n) => n.n);
|
|
16732
16756
|
return await new ASGProvider().delete(logicalId, physicalId, resourceType, _properties, context);
|
|
16733
16757
|
}
|
|
16734
16758
|
const isProtectedEc2Instance = context?.removeProtection === true && resourceType === "AWS::EC2::Instance";
|
|
@@ -24901,7 +24925,7 @@ const FLUSH_INTERVAL_MS = 2e3;
|
|
|
24901
24925
|
const FLUSH_EVENT_THRESHOLD = 50;
|
|
24902
24926
|
/** Build-time cdkd version, with a dev fallback for non-built contexts. */
|
|
24903
24927
|
function getCdkdVersion() {
|
|
24904
|
-
return "0.284.
|
|
24928
|
+
return "0.284.21";
|
|
24905
24929
|
}
|
|
24906
24930
|
/**
|
|
24907
24931
|
* Generate a time-sortable unique run id, e.g.
|
|
@@ -27441,4 +27465,4 @@ var DeployEngine = class {
|
|
|
27441
27465
|
|
|
27442
27466
|
//#endregion
|
|
27443
27467
|
export { isTerminationProtectionPropagationError as $, PartialFailureError as $n, getBootstrapMarkerKey as $t, renderStatefulReason as A, expectedOwnerParam as An, applyRoleArnIfSet as At, exportAliasCollisionScrubWarning as B, resetAwsClients as Bn, shouldRetainResource as Bt, isFinalSnapshotError as C, stateBucketExistenceConfirmed as Cn, redactSecretsForState as Ct, extractDeploymentEventError as D, MIGRATE_TMP_PREFIX as Dn, s3BucketDualStackDomainName as Dt, makeCanonicalizePropertiesFn as E, CFN_TEMPLATE_URL_LIMIT as En, s3BucketDomainName as Et, green as F, processStackMessages as Fn, DagBuilder as Ft, collectInlinePolicyNamesManagedBySiblings as G, DependencyError as Gn, createAssetRedirectResolver as Gt, secretBearingStateKeyWarning as H, AssetError as Hn, stringifyValue as Ht, red as I, clearBucketRegionCache as In, TemplateParser as It, findActionableSilentDrops as J, LocalMigrateError as Jn, escapeRegExp$1 as Jt, clearOnUpdateRemoval as K, DeployCancelledError as Kn, loadPublishableAssetManifest as Kt, yellow as L, resolveBucketRegion as Ln, LockManager as Lt, bold as M, canonicalizeRegion as Mn, INTRINSIC_KEYS as Mt, cyan as N, derivePartitionAndUrlSuffix as Nn, describeTypeWithThrottleRetry as Nt, MULTI_REGION_RECREATE_BLOCKED_TYPES as O, findLargeInlineResources as On, s3BucketRegionalDomainName as Ot, gray as P, AssemblyReader as Pn, withRetry as Pt, disableInstanceApiTermination as Q, NestedStackChildDirectDestroyError as Qn, ensureAssetStorage as Qt, collectDeclaredOutputNames as R, AwsClients as Rn, S3StateBackend as Rt, createPreDeleteFinalSnapshot as S, resolveUseCdkBootstrapAssets as Sn, maskSecretsInText as St, unsupportedFinalSnapshotError as T, CFN_TEMPLATE_BODY_LIMIT as Tn, s3BucketArn as Tt, stateKeySecretExposure as U, CdkdError as Un, WorkGraph as Ut, isExportAliasCollision as V, setAwsClients as Vn, AssetPublisher as Vt, IAMRoleProvider as W, ConfigError as Wn, buildAssetRedirectMap as Wt, CloudControlProvider as X, LockError as Xn, AssetModeResolver as Xt, findSilentDropProperties as Y, LocalStartServiceError as Yn, stripControlChars as Yt, slowCcOperationTimeoutMs as Z, MissingCdkCliError as Zn, BOOTSTRAP_MARKER_PREFIX as Zt, computeImplicitDeleteEdges as _, resolveAutoAssetStorage as _n, STATE_SOURCED_READBACK_RULES as _t, DeploymentEventsStore as a, buildDockerImage as an, StateError as ar, normalizeAwsTagsToCfn as at, buildFinalSnapshotIdentifier as b, resolveStateBucketWithDefault as bn, dynamicReferenceTokens as bt, replayFailedOperations as c, runDockerForeground as cn, isCdkdError as cr, coerceCfnBoolean as ct, updatePartialReason as d, getDockerImageBySourceHash as dn, isMarkedNonRetryable as dr, readConfigString as dt, parseBootstrapMarker as en, ProvisioningError as er, IntrinsicFunctionResolver as et, UNSPECIFIED_SKIP_REASON as f, Synthesizer as fn, isRetryableTransientError as fr, replayWarn as ft, IMPLICIT_DELETE_DEPENDENCIES as g, resolveApp as gn, STATE_SOURCED_CROSS_GENERATION_RULES as gt, maskingRetryLogger as h, getLegacyStateBucketName as hn, __exportAll as hr, requireConfigString as ht, DeploymentEventsReader as i, buildDenyExternalAccessPolicy as in, StackTerminationProtectionError as ir, WAFv2WebACLProvider as it, formatResourceLine as j, PARTITION_TABLE as jn, DiffCalculator as jt, isStatefulRecreateTargetSync as k, uploadCfnTemplate as kn, s3BucketWebsiteUrl as kt, replayRollback as l, runDockerStreaming as ln, normalizeAwsError as lr, configBooleanRefusal as lt, withResourceDeadline as m, getDefaultStateBucketName as mn, markNonRetryable as mr, requireConfigObject as mt, DEFAULT_RESOURCE_WARN_AFTER_MS as n, validateAssetBucketName as nn, ResourceUpdateNotSupportedError as nr, getAccountInfo as nt, planFailedOps as o, formatDockerLoginError as on, SynthesisError as or, resolveExplicitPhysicalId as ot, deleteSkipReason as p, synthesisStatusMessage as pn, isThrottlingError as pr, requireConfigArray as pt, ProviderRegistry as q, LocalInvokeBuildError as qn, rewriteTemplateAssetReferences as qt, DeployEngine as r, validateContainerRepoName as rn, StackHasActiveImportsError as rr, refStateLookupFromResource as rt, planRollback as s, getDockerCmd as sn, formatError as sr, assertRegionMatch as st, DEFAULT_RESOURCE_TIMEOUT_MS as t, readBootstrapMarkerBody as tn, ResourceTimeoutError as tr, cfnRefValueFromPhysicalId as tt, updatePartialMessage as u, AssetManifestLoader as un, withErrorHandling as ur, configStringRefusal as ut, ATOMIC_FINAL_SNAPSHOT_TYPES as v, resolveCaptureObservedState as vn, TEMPLATE_SOURCED_RULES as vt, refusesFinalSnapshot as w, warnDeprecatedNoPrefixCliFlag as wn, scrubResourceRecord as wt, ccRoutedFinalSnapshotError as x, resolveStateBucketWithDefaultAndSource as xn, isSingleDynamicReferenceToken as xt, PRE_DELETE_SNAPSHOT_TYPES as y, resolveSkipPrefix as yn, createSecretMasker as yt, collectPublishedOutputNames as z, getAwsClients as zn, rebuildClientForBucketRegion as zt };
|
|
27444
|
-
//# sourceMappingURL=deploy-engine
|
|
27468
|
+
//# sourceMappingURL=deploy-engine--N_xnvjI.js.map
|