@go-to-k/cdkd 0.281.26 → 0.281.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-II3TmZ4t.js → asg-provider-CwcEOJx0.js} +2 -2
- package/dist/{asg-provider-II3TmZ4t.js.map → asg-provider-CwcEOJx0.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{deploy-engine-XC8HOR51.js → deploy-engine-CP5fB_0I.js} +88 -14
- package/dist/deploy-engine-CP5fB_0I.js.map +1 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/deploy-engine-XC8HOR51.js.map +0 -1
|
@@ -2441,25 +2441,99 @@ function collectFnTransformNames(value, seen, out) {
|
|
|
2441
2441
|
* already in hand, since it needs no STS round trip.
|
|
2442
2442
|
*/
|
|
2443
2443
|
/**
|
|
2444
|
-
*
|
|
2445
|
-
*
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2444
|
+
* Region prefix -> `{partition, urlSuffix}`, in match order.
|
|
2445
|
+
*
|
|
2446
|
+
* Exported so a caller needing the WHOLE mapping — rather than one region's
|
|
2447
|
+
* answer — can read it here instead of hand-maintaining a parallel list that
|
|
2448
|
+
* silently goes stale when a partition is added (issue #1785 couples `cdkd
|
|
2449
|
+
* gc`'s suffix list to this table for exactly that reason).
|
|
2450
|
+
*
|
|
2451
|
+
* Every row is VERIFIED against AWS-authored partition data rather than taken
|
|
2452
|
+
* from documentation prose (issue #1764 shipped the last three, and the issue
|
|
2453
|
+
* explicitly asked for confirmation rather than trust). Three independent
|
|
2454
|
+
* AWS-authored sources agree on every row, prefix AND suffix:
|
|
2455
|
+
*
|
|
2456
|
+
* 1. `@aws-sdk/util-endpoints`'s vendored `lib/aws/partitions.json` (the copy
|
|
2457
|
+
* in this repo's own `node_modules`) — each row's `regionRegex` +
|
|
2458
|
+
* `outputs.dnsSuffix`.
|
|
2459
|
+
* 2. botocore's `endpoints.json`, as shipped inside the official AWS CLI v2 —
|
|
2460
|
+
* each row's `regionRegex` + `dnsSuffix`.
|
|
2461
|
+
* 3. `aws-cdk-lib`'s `region-info` `PARTITION_MAP` — each row's prefix +
|
|
2462
|
+
* `domainSuffix`.
|
|
2463
|
+
*
|
|
2464
|
+
* Two things the sources settle that are easy to get wrong:
|
|
2465
|
+
*
|
|
2466
|
+
* - `aws-us-gov`'s suffix really IS the commercial `amazonaws.com`; GovCloud
|
|
2467
|
+
* is the one non-commercial partition that does not have its own DNS suffix.
|
|
2468
|
+
* - Each partition is named by exactly ONE region prefix upstream, so this
|
|
2469
|
+
* table needs no per-partition prefix list.
|
|
2470
|
+
*
|
|
2471
|
+
* Match ORDER is only load-bearing to the extent that no prefix here is a
|
|
2472
|
+
* prefix of another — `us-iso-` cannot swallow `us-isob-` / `us-isof-` because
|
|
2473
|
+
* of its trailing hyphen. A row whose prefix nests inside an earlier one would
|
|
2474
|
+
* be unreachable, so keep that invariant (it is pinned by a unit test).
|
|
2475
|
+
*
|
|
2476
|
+
* The one deliberate divergence from upstream is `eusc-`: the SDK / botocore
|
|
2477
|
+
* regex is `^eusc\-(de)\-\w+\-\d+$` and CDK pins the prefix `eusc-de-`, i.e.
|
|
2478
|
+
* both are scoped to today's single European Sovereign Cloud country. cdkd
|
|
2479
|
+
* matches on the broader `eusc-` because the failure directions are not
|
|
2480
|
+
* symmetric — a future `eusc-<cc>-…` region falling through to commercial is
|
|
2481
|
+
* the exact bug this table was widened to fix, while a false match is
|
|
2482
|
+
* impossible: no other partition's regions begin with `eusc-`.
|
|
2483
|
+
*/
|
|
2484
|
+
const PARTITION_TABLE = [
|
|
2485
|
+
{
|
|
2486
|
+
prefix: "cn-",
|
|
2449
2487
|
partition: "aws-cn",
|
|
2450
2488
|
urlSuffix: "amazonaws.com.cn"
|
|
2451
|
-
}
|
|
2452
|
-
|
|
2489
|
+
},
|
|
2490
|
+
{
|
|
2491
|
+
prefix: "us-gov-",
|
|
2453
2492
|
partition: "aws-us-gov",
|
|
2454
2493
|
urlSuffix: "amazonaws.com"
|
|
2455
|
-
}
|
|
2456
|
-
|
|
2494
|
+
},
|
|
2495
|
+
{
|
|
2496
|
+
prefix: "us-iso-",
|
|
2457
2497
|
partition: "aws-iso",
|
|
2458
2498
|
urlSuffix: "c2s.ic.gov"
|
|
2459
|
-
}
|
|
2460
|
-
|
|
2499
|
+
},
|
|
2500
|
+
{
|
|
2501
|
+
prefix: "us-isob-",
|
|
2461
2502
|
partition: "aws-iso-b",
|
|
2462
2503
|
urlSuffix: "sc2s.sgov.gov"
|
|
2504
|
+
},
|
|
2505
|
+
{
|
|
2506
|
+
prefix: "us-isof-",
|
|
2507
|
+
partition: "aws-iso-f",
|
|
2508
|
+
urlSuffix: "csp.hci.ic.gov"
|
|
2509
|
+
},
|
|
2510
|
+
{
|
|
2511
|
+
prefix: "eu-isoe-",
|
|
2512
|
+
partition: "aws-iso-e",
|
|
2513
|
+
urlSuffix: "cloud.adc-e.uk"
|
|
2514
|
+
},
|
|
2515
|
+
{
|
|
2516
|
+
prefix: "eusc-",
|
|
2517
|
+
partition: "aws-eusc",
|
|
2518
|
+
urlSuffix: "amazonaws.eu"
|
|
2519
|
+
}
|
|
2520
|
+
];
|
|
2521
|
+
/**
|
|
2522
|
+
* Derive the AWS partition / URL suffix for an AWS region. Same mapping
|
|
2523
|
+
* CloudFormation applies to `${AWS::Partition}` / `${AWS::URLSuffix}`.
|
|
2524
|
+
*
|
|
2525
|
+
* An unrecognized region resolves to the commercial partition. That fallback
|
|
2526
|
+
* is deliberate (a brand-new commercial region must keep working before this
|
|
2527
|
+
* table hears about it), but it is also what made the pre-#1764 gap quiet: a
|
|
2528
|
+
* genuine registry host in a partition missing from the table came back with
|
|
2529
|
+
* the COMMERCIAL suffix, so `parseEcrRegistryHost` (`src/utils/ecr-uri.ts`)
|
|
2530
|
+
* rejected it under the strict host check issue #1758 added and the image was
|
|
2531
|
+
* classified `public` — anonymous pull, no `docker login`, opaque failure.
|
|
2532
|
+
*/
|
|
2533
|
+
function derivePartitionAndUrlSuffix(region) {
|
|
2534
|
+
for (const { prefix, partition, urlSuffix } of PARTITION_TABLE) if (region.startsWith(prefix)) return {
|
|
2535
|
+
partition,
|
|
2536
|
+
urlSuffix
|
|
2463
2537
|
};
|
|
2464
2538
|
return {
|
|
2465
2539
|
partition: "aws",
|
|
@@ -13513,7 +13587,7 @@ var CloudControlProvider = class {
|
|
|
13513
13587
|
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);
|
|
13514
13588
|
if (context?.removeProtection === true && resourceType === "AWS::AutoScaling::AutoScalingGroup") {
|
|
13515
13589
|
this.logger.debug(`Delegating protected AutoScalingGroup ${logicalId} delete to the SDK ASGProvider (Cloud Control cannot force-delete a protected ASG)`);
|
|
13516
|
-
const { ASGProvider } = await import("./asg-provider-
|
|
13590
|
+
const { ASGProvider } = await import("./asg-provider-CwcEOJx0.js").then((n) => n.n);
|
|
13517
13591
|
await new ASGProvider().delete(logicalId, physicalId, resourceType, _properties, context);
|
|
13518
13592
|
return;
|
|
13519
13593
|
}
|
|
@@ -20430,7 +20504,7 @@ const FLUSH_INTERVAL_MS = 2e3;
|
|
|
20430
20504
|
const FLUSH_EVENT_THRESHOLD = 50;
|
|
20431
20505
|
/** Build-time cdkd version, with a dev fallback for non-built contexts. */
|
|
20432
20506
|
function getCdkdVersion() {
|
|
20433
|
-
return "0.281.
|
|
20507
|
+
return "0.281.27";
|
|
20434
20508
|
}
|
|
20435
20509
|
/**
|
|
20436
20510
|
* Generate a time-sortable unique run id, e.g.
|
|
@@ -22599,4 +22673,4 @@ var DeployEngine = class {
|
|
|
22599
22673
|
|
|
22600
22674
|
//#endregion
|
|
22601
22675
|
export { configStringRefusal as $, MIGRATE_TMP_PREFIX as $t, green as A, SynthesisError as An, validateContainerRepoName as At, slowCcOperationTimeoutMs as B, getDefaultStateBucketName as Bt, MULTI_REGION_RECREATE_BLOCKED_TYPES as C, PartialFailureError as Cn, rewriteTemplateAssetReferences as Ct, bold as D, StackHasActiveImportsError as Dn, getBootstrapMarkerKey as Dt, formatResourceLine as E, ResourceUpdateNotSupportedError as En, ensureAssetStorage as Et, clearOnUpdateRemoval as F, __exportAll as Fn, runDockerStreaming as Ft, getAccountInfo as G, resolveSkipPrefix as Gt, isTerminationProtectionPropagationError as H, resolveApp as Ht, ProviderRegistry as I, AssetManifestLoader as It, normalizeAwsTagsToCfn as J, resolveUseCdkBootstrapAssets as Jt, refStateLookupFromResource as K, resolveStateBucketWithDefault as Kt, findActionableSilentDrops as L, getDockerImageBySourceHash as Lt, yellow as M, isCdkdError as Mn, formatDockerLoginError as Mt, IAMRoleProvider as N, normalizeAwsError as Nn, getDockerCmd as Nt, cyan as O, StackTerminationProtectionError as On, parseBootstrapMarker as Ot, collectInlinePolicyNamesManagedBySiblings as P, withErrorHandling as Pn, runDockerForeground as Pt, configBooleanRefusal as Q, CFN_TEMPLATE_URL_LIMIT as Qt, findSilentDropProperties as R, Synthesizer as Rt, extractDeploymentEventError as S, NestedStackChildDirectDestroyError as Sn, loadPublishableAssetManifest as St, renderStatefulReason as T, ResourceTimeoutError as Tn, BOOTSTRAP_MARKER_PREFIX as Tt, IntrinsicFunctionResolver as U, resolveAutoAssetStorage as Ut, disableInstanceApiTermination as V, getLegacyStateBucketName as Vt, cfnRefValueFromPhysicalId as W, resolveCaptureObservedState as Wt, assertRegionMatch as X, warnDeprecatedNoPrefixCliFlag as Xt, resolveExplicitPhysicalId as Y, stateBucketExistenceConfirmed as Yt, coerceCfnBoolean as Z, CFN_TEMPLATE_BODY_LIMIT as Zt, createPreDeleteFinalSnapshot as _, LocalInvokeBuildError as _n, AssetPublisher as _t, DeploymentEventsStore as a, processStackMessages as an, applyRoleArnIfSet as at, unsupportedFinalSnapshotError as b, LockError as bn, buildAssetRedirectMap as bt, replayFailedOperations as c, AwsClients as cn, withRetry as ct, IMPLICIT_DELETE_DEPENDENCIES as d, setAwsClients as dn, DagBuilder as dt, findLargeInlineResources as en, readConfigString as et, computeImplicitDeleteEdges as f, AssetError as fn, TemplateParser as ft, ccRoutedFinalSnapshotError as g, DeployCancelledError as gn, shouldRetainResource as gt, buildFinalSnapshotIdentifier as h, DependencyError as hn, rebuildClientForBucketRegion as ht, DeploymentEventsReader as i, AssemblyReader as in, requireConfigString as it, red as j, formatError as jn, buildDockerImage as jt, gray as k, StateError as kn, validateAssetBucketName as kt, replayRollback as l, getAwsClients as ln, isRetryableTransientError as lt, PRE_DELETE_SNAPSHOT_TYPES as m, ConfigError as mn, S3StateBackend as mt, DEFAULT_RESOURCE_WARN_AFTER_MS as n, expectedOwnerParam as nn, requireConfigArray as nt, planFailedOps as o, clearBucketRegionCache as on, DiffCalculator as ot, ATOMIC_FINAL_SNAPSHOT_TYPES as p, CdkdError as pn, LockManager as pt, WAFv2WebACLProvider as q, resolveStateBucketWithDefaultAndSource as qt, DeployEngine as r, derivePartitionAndUrlSuffix as rn, requireConfigObject as rt, planRollback as s, resolveBucketRegion as sn, describeTypeWithThrottleRetry as st, DEFAULT_RESOURCE_TIMEOUT_MS as t, uploadCfnTemplate as tn, replayWarn as tt, withResourceDeadline as u, resetAwsClients as un, isThrottlingError as ut, isFinalSnapshotError as v, LocalMigrateError as vn, stringifyValue as vt, isStatefulRecreateTargetSync as w, ProvisioningError as wn, AssetModeResolver as wt, makeCanonicalizePropertiesFn as x, MissingCdkCliError as xn, createAssetRedirectResolver as xt, refusesFinalSnapshot as y, LocalStartServiceError as yn, WorkGraph as yt, CloudControlProvider as z, synthesisStatusMessage as zt };
|
|
22602
|
-
//# sourceMappingURL=deploy-engine-
|
|
22676
|
+
//# sourceMappingURL=deploy-engine-CP5fB_0I.js.map
|