@go-to-k/cdkd 0.275.6 → 0.276.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.
- package/README.md +7 -7
- package/dist/{asg-provider-zDD6EIRo.js → asg-provider-Cfex3rAs.js} +2 -2
- package/dist/{asg-provider-zDD6EIRo.js.map → asg-provider-Cfex3rAs.js.map} +1 -1
- package/dist/cli.js +40 -36
- package/dist/cli.js.map +1 -1
- package/dist/{deploy-engine-D5j6_ZH6.js → deploy-engine-C581XZwt.js} +471 -53
- package/dist/deploy-engine-C581XZwt.js.map +1 -0
- package/dist/index.d.ts +17 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/deploy-engine-D5j6_ZH6.js.map +0 -1
|
@@ -18,6 +18,8 @@ import { CloudFrontClient, GetCloudFrontOriginAccessIdentityCommand } from "@aws
|
|
|
18
18
|
import { CloudWatchClient } from "@aws-sdk/client-cloudwatch";
|
|
19
19
|
import { CloudWatchLogsClient } from "@aws-sdk/client-cloudwatch-logs";
|
|
20
20
|
import { BedrockAgentCoreControlClient } from "@aws-sdk/client-bedrock-agentcore-control";
|
|
21
|
+
import { CreateClusterSnapshotCommand, DescribeClusterSnapshotsCommand, DescribeClustersCommand, RedshiftClient } from "@aws-sdk/client-redshift";
|
|
22
|
+
import { CreateSnapshotCommand as CreateSnapshotCommand$1, DescribeReplicationGroupsCommand, DescribeSnapshotsCommand as DescribeSnapshotsCommand$1, ElastiCacheClient } from "@aws-sdk/client-elasticache";
|
|
21
23
|
import { ACMClient } from "@aws-sdk/client-acm";
|
|
22
24
|
import { LambdaMicrovmsClient } from "@aws-sdk/client-lambda-microvms";
|
|
23
25
|
import { createReadStream, existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
@@ -33,8 +35,6 @@ import { CreateRepositoryCommand, DescribeImagesCommand as DescribeImagesCommand
|
|
|
33
35
|
import { hostname } from "os";
|
|
34
36
|
import graphlib from "graphlib";
|
|
35
37
|
import { DescribeDBClustersCommand, DescribeDBInstancesCommand, RDSClient } from "@aws-sdk/client-rds";
|
|
36
|
-
import { DescribeReplicationGroupsCommand, ElastiCacheClient } from "@aws-sdk/client-elasticache";
|
|
37
|
-
import { DescribeClustersCommand, RedshiftClient } from "@aws-sdk/client-redshift";
|
|
38
38
|
import { DescribeDomainCommand, OpenSearchClient } from "@aws-sdk/client-opensearch";
|
|
39
39
|
import { CreateWebACLCommand, DeleteWebACLCommand, GetWebACLCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$11, TagResourceCommand as TagResourceCommand$13, UntagResourceCommand as UntagResourceCommand$13, UpdateWebACLCommand, WAFNonexistentItemException, WAFV2Client } from "@aws-sdk/client-wafv2";
|
|
40
40
|
import { getSignedUrl } from "@aws-sdk/s3-request-presigner";
|
|
@@ -627,6 +627,8 @@ var AwsClients = class {
|
|
|
627
627
|
cloudWatchClient;
|
|
628
628
|
cloudWatchLogsClient;
|
|
629
629
|
bedrockAgentCoreControlClient;
|
|
630
|
+
redshiftClient;
|
|
631
|
+
elastiCacheClient;
|
|
630
632
|
acmClient;
|
|
631
633
|
lambdaMicrovmsClient;
|
|
632
634
|
config;
|
|
@@ -935,6 +937,32 @@ var AwsClients = class {
|
|
|
935
937
|
return this.getBedrockAgentCoreControlClient();
|
|
936
938
|
}
|
|
937
939
|
/**
|
|
940
|
+
* Get Redshift client
|
|
941
|
+
*/
|
|
942
|
+
getRedshiftClient() {
|
|
943
|
+
if (!this.redshiftClient) this.redshiftClient = new RedshiftClient({ ...this.clientOptions });
|
|
944
|
+
return this.redshiftClient;
|
|
945
|
+
}
|
|
946
|
+
/**
|
|
947
|
+
* Convenience getter for Redshift client
|
|
948
|
+
*/
|
|
949
|
+
get redshift() {
|
|
950
|
+
return this.getRedshiftClient();
|
|
951
|
+
}
|
|
952
|
+
/**
|
|
953
|
+
* Get ElastiCache client
|
|
954
|
+
*/
|
|
955
|
+
getElastiCacheClient() {
|
|
956
|
+
if (!this.elastiCacheClient) this.elastiCacheClient = new ElastiCacheClient({ ...this.clientOptions });
|
|
957
|
+
return this.elastiCacheClient;
|
|
958
|
+
}
|
|
959
|
+
/**
|
|
960
|
+
* Convenience getter for ElastiCache client
|
|
961
|
+
*/
|
|
962
|
+
get elastiCache() {
|
|
963
|
+
return this.getElastiCacheClient();
|
|
964
|
+
}
|
|
965
|
+
/**
|
|
938
966
|
* Destroy all clients
|
|
939
967
|
*/
|
|
940
968
|
destroy() {
|
|
@@ -956,6 +984,8 @@ var AwsClients = class {
|
|
|
956
984
|
this.cloudWatchClient?.destroy();
|
|
957
985
|
this.cloudWatchLogsClient?.destroy();
|
|
958
986
|
this.bedrockAgentCoreControlClient?.destroy();
|
|
987
|
+
this.redshiftClient?.destroy();
|
|
988
|
+
this.elastiCacheClient?.destroy();
|
|
959
989
|
this.acmClient?.destroy();
|
|
960
990
|
this.lambdaMicrovmsClient?.destroy();
|
|
961
991
|
}
|
|
@@ -7685,6 +7715,24 @@ var ReplacementRulesRegistry = class {
|
|
|
7685
7715
|
"KeyName",
|
|
7686
7716
|
"NetworkInterfaces"
|
|
7687
7717
|
]) });
|
|
7718
|
+
this.rules.set("AWS::EC2::Volume", {
|
|
7719
|
+
replacementProperties: /* @__PURE__ */ new Set([
|
|
7720
|
+
"AvailabilityZone",
|
|
7721
|
+
"AvailabilityZoneId",
|
|
7722
|
+
"Encrypted",
|
|
7723
|
+
"KmsKeyId",
|
|
7724
|
+
"OutpostArn",
|
|
7725
|
+
"SnapshotId"
|
|
7726
|
+
]),
|
|
7727
|
+
updateableProperties: /* @__PURE__ */ new Set([
|
|
7728
|
+
"AutoEnableIO",
|
|
7729
|
+
"Iops",
|
|
7730
|
+
"Size",
|
|
7731
|
+
"Throughput",
|
|
7732
|
+
"VolumeType",
|
|
7733
|
+
"Tags"
|
|
7734
|
+
])
|
|
7735
|
+
});
|
|
7688
7736
|
this.rules.set("AWS::ECS::TaskDefinition", { replacementProperties: /* @__PURE__ */ new Set([
|
|
7689
7737
|
"Family",
|
|
7690
7738
|
"ContainerDefinitions",
|
|
@@ -7769,7 +7817,8 @@ const OTHER_TRANSIENT_ERROR_MESSAGE_PATTERNS = [
|
|
|
7769
7817
|
"wait 60 seconds",
|
|
7770
7818
|
"concurrent update operation",
|
|
7771
7819
|
"because it is in use",
|
|
7772
|
-
"Rate exceeded"
|
|
7820
|
+
"Rate exceeded",
|
|
7821
|
+
"There is an operation running on the Cluster"
|
|
7773
7822
|
];
|
|
7774
7823
|
/**
|
|
7775
7824
|
* Patterns that mark an AWS error as a transient/retryable failure.
|
|
@@ -12041,7 +12090,7 @@ var CloudControlProvider = class {
|
|
|
12041
12090
|
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);
|
|
12042
12091
|
if (context?.removeProtection === true && resourceType === "AWS::AutoScaling::AutoScalingGroup") {
|
|
12043
12092
|
this.logger.debug(`Delegating protected AutoScalingGroup ${logicalId} delete to the SDK ASGProvider (Cloud Control cannot force-delete a protected ASG)`);
|
|
12044
|
-
const { ASGProvider } = await import("./asg-provider-
|
|
12093
|
+
const { ASGProvider } = await import("./asg-provider-Cfex3rAs.js").then((n) => n.n);
|
|
12045
12094
|
await new ASGProvider().delete(logicalId, physicalId, resourceType, _properties, context);
|
|
12046
12095
|
return;
|
|
12047
12096
|
}
|
|
@@ -16756,6 +16805,7 @@ const STATEFUL_TYPES = /* @__PURE__ */ new Set([
|
|
|
16756
16805
|
"AWS::FSx::FileSystem",
|
|
16757
16806
|
"AWS::S3::Bucket",
|
|
16758
16807
|
"AWS::ECR::Repository",
|
|
16808
|
+
"AWS::EC2::Volume",
|
|
16759
16809
|
"AWS::Kinesis::Stream",
|
|
16760
16810
|
"AWS::Elasticsearch::Domain",
|
|
16761
16811
|
"AWS::OpenSearchService::Domain",
|
|
@@ -17034,21 +17084,21 @@ function extractDeploymentEventError(err) {
|
|
|
17034
17084
|
//#endregion
|
|
17035
17085
|
//#region src/provisioning/final-snapshot.ts
|
|
17036
17086
|
/**
|
|
17037
|
-
* `DeletionPolicy: Snapshot` support (
|
|
17087
|
+
* `DeletionPolicy: Snapshot` support (issues #1352 / #1353).
|
|
17038
17088
|
*
|
|
17039
17089
|
* CloudFormation creates a final snapshot BEFORE deleting a resource whose
|
|
17040
17090
|
* `DeletionPolicy` is `Snapshot`. cdkd historically treated the policy as
|
|
17041
17091
|
* `Delete` (no snapshot — silent data loss vs CFn, live-A/B-confirmed on
|
|
17042
|
-
* `AWS::EC2::Volume`). The
|
|
17043
|
-
* two mechanisms below; a Snapshot-tagged type supported by NEITHER
|
|
17044
|
-
*
|
|
17045
|
-
* the data loss.
|
|
17092
|
+
* `AWS::EC2::Volume`). The delete paths now honor the policy through the
|
|
17093
|
+
* two mechanisms below; a Snapshot-tagged type supported by NEITHER (or one
|
|
17094
|
+
* routed via Cloud Control, which has no snapshot notion) is refused with an
|
|
17095
|
+
* actionable error unless `--skip-final-snapshot` opts into the data loss.
|
|
17046
17096
|
*
|
|
17047
17097
|
* The full CFn-documented Snapshot-capable type list (CFn refuses the
|
|
17048
17098
|
* attribute on anything else): AWS::EC2::Volume, AWS::ElastiCache::CacheCluster,
|
|
17049
17099
|
* AWS::ElastiCache::ReplicationGroup, AWS::Neptune::DBCluster,
|
|
17050
17100
|
* AWS::RDS::DBCluster, AWS::RDS::DBInstance, AWS::Redshift::Cluster,
|
|
17051
|
-
* AWS::DocDB::DBCluster.
|
|
17101
|
+
* AWS::DocDB::DBCluster — all covered by one of the two mechanisms.
|
|
17052
17102
|
*/
|
|
17053
17103
|
/**
|
|
17054
17104
|
* Types whose delete API takes an atomic final-snapshot parameter. The
|
|
@@ -17065,44 +17115,61 @@ const ATOMIC_FINAL_SNAPSHOT_TYPES = /* @__PURE__ */ new Set([
|
|
|
17065
17115
|
]);
|
|
17066
17116
|
/**
|
|
17067
17117
|
* Types with no atomic delete parameter, where cdkd snapshots explicitly
|
|
17068
|
-
* BEFORE the (routing-layer-agnostic) delete
|
|
17069
|
-
* CC-API-routed
|
|
17070
|
-
*
|
|
17071
|
-
|
|
17072
|
-
|
|
17118
|
+
* BEFORE the (routing-layer-agnostic) delete via
|
|
17119
|
+
* {@link createPreDeleteFinalSnapshot}. All three are CC-API-routed (no SDK
|
|
17120
|
+
* provider), so the pre-delete snapshot lives at the delete call sites, not
|
|
17121
|
+
* in a provider: `AWS::EC2::Volume` (EC2 `CreateSnapshot`, issue #1352),
|
|
17122
|
+
* `AWS::Redshift::Cluster` (`CreateClusterSnapshot`, issue #1353), and
|
|
17123
|
+
* `AWS::ElastiCache::ReplicationGroup` (ElastiCache `CreateSnapshot`
|
|
17124
|
+
* against the replication group, issue #1353).
|
|
17125
|
+
*/
|
|
17126
|
+
const PRE_DELETE_SNAPSHOT_TYPES = /* @__PURE__ */ new Set([
|
|
17127
|
+
"AWS::EC2::Volume",
|
|
17128
|
+
"AWS::Redshift::Cluster",
|
|
17129
|
+
"AWS::ElastiCache::ReplicationGroup"
|
|
17130
|
+
]);
|
|
17131
|
+
/** Sanitize a physical id into the snapshot-identifier charset (shared by the
|
|
17132
|
+
* identifier builder and the pre-delete reuse-probe prefix match). */
|
|
17133
|
+
function sanitizeSnapshotBase(physicalId) {
|
|
17134
|
+
let base = physicalId.toLowerCase().replace(/[^a-z0-9-]/g, "-").replace(/-{2,}/g, "-").replace(/^-+|-+$/g, "");
|
|
17135
|
+
if (!/^[a-z]/.test(base)) base = `r${base}`;
|
|
17136
|
+
return base;
|
|
17137
|
+
}
|
|
17073
17138
|
/**
|
|
17074
|
-
*
|
|
17075
|
-
*
|
|
17076
|
-
*
|
|
17139
|
+
* The `<sanitized-physical-id>-final-` prefix every cdkd final snapshot of a
|
|
17140
|
+
* given source shares — the reuse-probe key for the name-keyed snapshot APIs
|
|
17141
|
+
* (Redshift / ElastiCache), the analogue of the EBS tag. Applies the same
|
|
17142
|
+
* per-service length cap as {@link buildFinalSnapshotIdentifier} so a
|
|
17143
|
+
* truncated generated name still matches its own prefix.
|
|
17077
17144
|
*/
|
|
17078
|
-
|
|
17145
|
+
function finalSnapshotNamePrefix(physicalId, resourceType) {
|
|
17146
|
+
const maxLength = resourceType === "AWS::ElastiCache::CacheCluster" || resourceType === "AWS::ElastiCache::ReplicationGroup" ? 50 : 255;
|
|
17147
|
+
return `${sanitizeSnapshotBase(physicalId).slice(0, maxLength - 22).replace(/-+$/, "")}-final-`;
|
|
17148
|
+
}
|
|
17079
17149
|
/**
|
|
17080
|
-
* Build the final-snapshot identifier for
|
|
17150
|
+
* Build the final-snapshot identifier for a snapshot-creating delete.
|
|
17081
17151
|
*
|
|
17082
17152
|
* Constraints are the intersection of the RDS / Neptune / DocDB snapshot
|
|
17083
17153
|
* identifier rules and the ElastiCache snapshot name rules: start with a
|
|
17084
17154
|
* letter, letters/digits/hyphens only, no consecutive or trailing hyphen.
|
|
17085
17155
|
* The physical id already satisfies the source API's naming rules; it is
|
|
17086
17156
|
* lowercased (RDS canonicalizes to lowercase anyway) and defensively
|
|
17087
|
-
* re-sanitized. A UTC timestamp suffix keeps repeated
|
|
17088
|
-
* re-created same-name resource from colliding; within ONE
|
|
17157
|
+
* re-sanitized. A UTC timestamp suffix keeps repeated deletes of a
|
|
17158
|
+
* re-created same-name resource from colliding; within ONE run the
|
|
17089
17159
|
* identifier is generated once per resource, so delete retries reuse it.
|
|
17090
17160
|
*/
|
|
17091
17161
|
function buildFinalSnapshotIdentifier(physicalId, resourceType, now = /* @__PURE__ */ new Date()) {
|
|
17092
17162
|
const ts = now.toISOString().replace(/[-:]/g, "").replace(/\..*$/, "").replace("T", "-").toLowerCase();
|
|
17093
|
-
|
|
17094
|
-
if (!/^[a-z]/.test(base)) base = `r${base}`;
|
|
17095
|
-
const maxLength = resourceType === "AWS::ElastiCache::CacheCluster" ? 50 : 255;
|
|
17096
|
-
const suffix = `-final-${ts}`;
|
|
17097
|
-
base = base.slice(0, maxLength - suffix.length).replace(/-+$/, "");
|
|
17098
|
-
return `${base}${suffix}`;
|
|
17163
|
+
return `${finalSnapshotNamePrefix(physicalId, resourceType)}${ts}`;
|
|
17099
17164
|
}
|
|
17100
17165
|
/** Tag key marking a cdkd-created final snapshot of an EBS volume. */
|
|
17101
17166
|
const EBS_FINAL_SNAPSHOT_TAG_KEY = "cdkd:final-snapshot-of";
|
|
17102
17167
|
/** Test seam (matches the `describe-type.ts` / macro-expander pattern). */
|
|
17103
17168
|
const finalSnapshotDelays = { sleep: (ms) => new Promise((resolve) => setTimeout(resolve, ms)) };
|
|
17104
|
-
const
|
|
17105
|
-
const
|
|
17169
|
+
const PRE_DELETE_SNAPSHOT_POLL_INTERVAL_MS = 5e3;
|
|
17170
|
+
const PRE_DELETE_SNAPSHOT_TIMEOUT_MS = 3600 * 1e3;
|
|
17171
|
+
/** Post-snapshot settle budget for a Redshift cluster before its delete. */
|
|
17172
|
+
const REDSHIFT_CLUSTER_SETTLE_TIMEOUT_MS = 1200 * 1e3;
|
|
17106
17173
|
function errMsg(error) {
|
|
17107
17174
|
return error instanceof Error ? error.message : String(error);
|
|
17108
17175
|
}
|
|
@@ -17116,7 +17183,12 @@ function isVolumeNotFound(error) {
|
|
|
17116
17183
|
*
|
|
17117
17184
|
* Idempotent across destroy re-runs: an existing pending/completed snapshot
|
|
17118
17185
|
* carrying the `cdkd:final-snapshot-of: <volumeId>` tag is reused instead of
|
|
17119
|
-
* creating a second one.
|
|
17186
|
+
* creating a second one. Reusing a `completed` snapshot is safe HERE (and
|
|
17187
|
+
* only here) because an EBS volume id is AWS-generated and never reused, so
|
|
17188
|
+
* the tag can only ever point at THIS volume's data — unlike the name-keyed
|
|
17189
|
+
* Redshift / ElastiCache APIs, whose user-chosen ids repeat across
|
|
17190
|
+
* generations and therefore only resume an in-flight snapshot (see
|
|
17191
|
+
* {@link RESUMABLE_SNAPSHOT_STATUS}).
|
|
17120
17192
|
*
|
|
17121
17193
|
* @returns the snapshot id, or `null` when the volume no longer exists
|
|
17122
17194
|
* (nothing to snapshot; the subsequent delete is idempotent too).
|
|
@@ -17159,7 +17231,7 @@ async function createEbsFinalSnapshot(client, volumeId, logicalId, logger) {
|
|
|
17159
17231
|
}
|
|
17160
17232
|
if (!snapshotId) throw new CdkdError(`CreateSnapshot for ${logicalId} (${volumeId}) returned no snapshot id. The volume was NOT deleted.`, "FINAL_SNAPSHOT_FAILED");
|
|
17161
17233
|
logger.info(`Creating final snapshot ${snapshotId} for ${logicalId} (${volumeId}) — DeletionPolicy: Snapshot`);
|
|
17162
|
-
const deadline = Date.now() +
|
|
17234
|
+
const deadline = Date.now() + PRE_DELETE_SNAPSHOT_TIMEOUT_MS;
|
|
17163
17235
|
let notFoundPolls = 0;
|
|
17164
17236
|
for (;;) {
|
|
17165
17237
|
let state;
|
|
@@ -17176,7 +17248,7 @@ async function createEbsFinalSnapshot(client, volumeId, logicalId, logger) {
|
|
|
17176
17248
|
}
|
|
17177
17249
|
if (state === "error") throw new CdkdError(`Final snapshot ${snapshotId} for ${logicalId} (${volumeId}) entered 'error' state. The volume was NOT deleted.`, "FINAL_SNAPSHOT_FAILED");
|
|
17178
17250
|
if (Date.now() >= deadline) throw new CdkdError(`Timed out waiting for final snapshot ${snapshotId} of ${logicalId} (${volumeId}) to complete. The volume was NOT deleted; the snapshot continues in AWS — re-run the destroy once it completes (the existing snapshot is reused, not duplicated).`, "FINAL_SNAPSHOT_TIMEOUT");
|
|
17179
|
-
await finalSnapshotDelays.sleep(
|
|
17251
|
+
await finalSnapshotDelays.sleep(PRE_DELETE_SNAPSHOT_POLL_INTERVAL_MS);
|
|
17180
17252
|
}
|
|
17181
17253
|
}
|
|
17182
17254
|
/**
|
|
@@ -17201,10 +17273,284 @@ function ccRoutedFinalSnapshotError(logicalId, resourceType, skipFlagHint) {
|
|
|
17201
17273
|
}
|
|
17202
17274
|
/**
|
|
17203
17275
|
* Build the refusal error for a Snapshot-tagged type cdkd cannot snapshot.
|
|
17204
|
-
* Thrown by the
|
|
17276
|
+
* Thrown by the delete call sites BEFORE any delete is issued. Since #1353
|
|
17277
|
+
* every CFn-documented Snapshot-capable type is covered, so this only fires
|
|
17278
|
+
* for a type CloudFormation itself would refuse the attribute on (hand-
|
|
17279
|
+
* edited templates / imported state).
|
|
17205
17280
|
*/
|
|
17206
17281
|
function unsupportedFinalSnapshotError(logicalId, resourceType, skipFlagHint) {
|
|
17207
|
-
return new CdkdError(`${logicalId} (${resourceType}) has DeletionPolicy: Snapshot, but
|
|
17282
|
+
return new CdkdError(`${logicalId} (${resourceType}) has DeletionPolicy: Snapshot, but cdkd does not implement final snapshots for this type (CloudFormation itself only supports Snapshot on: EC2 Volume, ElastiCache CacheCluster / ReplicationGroup, Neptune / RDS / DocDB clusters, RDS instances, Redshift clusters). Deleting it now would destroy its data WITHOUT the final snapshot the policy promises. Re-run with ${skipFlagHint} to delete WITHOUT a final snapshot (DATA LOSS), or retain the resource (DeletionPolicy: Retain) and delete it manually after snapshotting.`, "FINAL_SNAPSHOT_UNSUPPORTED");
|
|
17283
|
+
}
|
|
17284
|
+
/**
|
|
17285
|
+
* Dispatch the pre-delete final snapshot for a `PRE_DELETE_SNAPSHOT_TYPES`
|
|
17286
|
+
* member: create (or resume) the snapshot and wait until it is ready, so the
|
|
17287
|
+
* caller's subsequent (routing-layer-agnostic) delete cannot lose data.
|
|
17288
|
+
*
|
|
17289
|
+
* @returns the snapshot id, or `null` when the source resource no longer
|
|
17290
|
+
* exists (nothing to snapshot; the subsequent delete is idempotent too).
|
|
17291
|
+
*/
|
|
17292
|
+
async function createPreDeleteFinalSnapshot(resourceType, physicalId, logicalId, clients, logger) {
|
|
17293
|
+
switch (resourceType) {
|
|
17294
|
+
case "AWS::EC2::Volume": return createEbsFinalSnapshot(clients.ec2, physicalId, logicalId, logger);
|
|
17295
|
+
case "AWS::Redshift::Cluster": return createRedshiftFinalSnapshot(clients.redshift, physicalId, logicalId, logger);
|
|
17296
|
+
case "AWS::ElastiCache::ReplicationGroup": return createReplicationGroupFinalSnapshot(clients.elastiCache, physicalId, logicalId, logger);
|
|
17297
|
+
default: throw new CdkdError(`No pre-delete final-snapshot implementation for ${logicalId} (${resourceType}). The resource was NOT deleted.`, "FINAL_SNAPSHOT_FAILED");
|
|
17298
|
+
}
|
|
17299
|
+
}
|
|
17300
|
+
/**
|
|
17301
|
+
* Shared wait loop for the name-keyed snapshot APIs (Redshift / ElastiCache):
|
|
17302
|
+
* poll a status getter until the ready status, tolerating a bounded window of
|
|
17303
|
+
* eventual-consistency NotFound right after creation, and wrapping every
|
|
17304
|
+
* other poll failure as a typed FINAL_SNAPSHOT error (see the EBS loop's
|
|
17305
|
+
* comment for why the wrap is load-bearing).
|
|
17306
|
+
*/
|
|
17307
|
+
async function waitForNamedSnapshot(opts) {
|
|
17308
|
+
const { snapshotId, logicalId, sourceId, noun, logger } = opts;
|
|
17309
|
+
logger.info(`${opts.reused ? "Resuming" : "Creating"} final snapshot ${snapshotId} for ${logicalId} (${sourceId}) — DeletionPolicy: Snapshot`);
|
|
17310
|
+
const deadline = Date.now() + PRE_DELETE_SNAPSHOT_TIMEOUT_MS;
|
|
17311
|
+
let notFoundPolls = 0;
|
|
17312
|
+
for (;;) {
|
|
17313
|
+
let status;
|
|
17314
|
+
try {
|
|
17315
|
+
status = await opts.pollStatus();
|
|
17316
|
+
notFoundPolls = 0;
|
|
17317
|
+
} catch (pollError) {
|
|
17318
|
+
if (opts.isTransientNotFound(pollError) && ++notFoundPolls <= 24) status = void 0;
|
|
17319
|
+
else throw new CdkdError(`Failed while waiting for final snapshot ${snapshotId} of ${logicalId} (${sourceId}): ${errMsg(pollError)}. The ${noun} was NOT deleted; re-run the delete (the snapshot is reused, not duplicated).`, "FINAL_SNAPSHOT_FAILED", pollError instanceof Error ? pollError : void 0);
|
|
17320
|
+
}
|
|
17321
|
+
if (status === opts.readyStatus) {
|
|
17322
|
+
logger.info(`Final snapshot ${snapshotId} ready for ${logicalId} (${sourceId})`);
|
|
17323
|
+
return snapshotId;
|
|
17324
|
+
}
|
|
17325
|
+
if (status !== void 0 && opts.failedStatuses.includes(status)) throw new CdkdError(`Final snapshot ${snapshotId} for ${logicalId} (${sourceId}) entered '${status}' state. The ${noun} was NOT deleted.`, "FINAL_SNAPSHOT_FAILED");
|
|
17326
|
+
if (Date.now() >= deadline) throw new CdkdError(`Timed out waiting for final snapshot ${snapshotId} of ${logicalId} (${sourceId}) to become ready. The ${noun} was NOT deleted; the snapshot continues in AWS — re-run the delete once it is ready (the existing snapshot is reused, not duplicated).`, "FINAL_SNAPSHOT_TIMEOUT");
|
|
17327
|
+
await finalSnapshotDelays.sleep(PRE_DELETE_SNAPSHOT_POLL_INTERVAL_MS);
|
|
17328
|
+
}
|
|
17329
|
+
}
|
|
17330
|
+
function errorNameOrMessageIncludes(error, token) {
|
|
17331
|
+
return (error instanceof Error ? error.name : "") === token || errMsg(error).includes(token);
|
|
17332
|
+
}
|
|
17333
|
+
/** Max reuse-probe pages to walk (bounded so a huge snapshot history cannot
|
|
17334
|
+
* stall a delete; a miss only costs one extra snapshot, never data). */
|
|
17335
|
+
const REUSE_PROBE_MAX_PAGES = 10;
|
|
17336
|
+
/**
|
|
17337
|
+
* Matcher for a snapshot cdkd itself generated for `physicalId`: the exact
|
|
17338
|
+
* `<sanitized-id>-final-<yyyymmdd>-<hhmmss>` shape, NOT a bare prefix. A bare
|
|
17339
|
+
* prefix would also match a USER's snapshot named e.g. `mydb-final-backup`
|
|
17340
|
+
* and silently adopt it as "the" final snapshot.
|
|
17341
|
+
*/
|
|
17342
|
+
function generatedSnapshotNameMatcher(physicalId, resourceType) {
|
|
17343
|
+
const escaped = finalSnapshotNamePrefix(physicalId, resourceType).replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
17344
|
+
return new RegExp(`^${escaped}\\d{8}-\\d{6}$`);
|
|
17345
|
+
}
|
|
17346
|
+
/**
|
|
17347
|
+
* Is this snapshot resumable from an interrupted delete attempt?
|
|
17348
|
+
*
|
|
17349
|
+
* ONLY an in-flight (`creating`) snapshot qualifies. This is load-bearing,
|
|
17350
|
+
* not conservatism: Redshift / ElastiCache identifiers are USER-CHOSEN and
|
|
17351
|
+
* REUSABLE, and a manual snapshot outlives the resource it came from — so a
|
|
17352
|
+
* deploy -> destroy -> deploy -> destroy cycle of a fixed-name cluster would
|
|
17353
|
+
* find generation 1's `available` snapshot, skip `CreateSnapshot`, and delete
|
|
17354
|
+
* generation 2 with NO snapshot of its data. That is precisely the silent
|
|
17355
|
+
* data loss this whole feature exists to prevent (reviewer catch).
|
|
17356
|
+
*
|
|
17357
|
+
* A `creating` snapshot cannot span generations: the new generation can only
|
|
17358
|
+
* be created after the old resource is gone, by which time its snapshot has
|
|
17359
|
+
* settled to `available`. The cost of the narrower rule is one redundant
|
|
17360
|
+
* snapshot when a delete is re-run after its snapshot already completed —
|
|
17361
|
+
* cost, never data loss, and the timestamped identifier never collides.
|
|
17362
|
+
*/
|
|
17363
|
+
const RESUMABLE_SNAPSHOT_STATUS = "creating";
|
|
17364
|
+
/**
|
|
17365
|
+
* Redshift `CreateClusterSnapshot` + wait to `available` (issue #1353).
|
|
17366
|
+
* Idempotent across delete re-runs: a creating/available manual snapshot of
|
|
17367
|
+
* this cluster whose identifier carries cdkd's `<cluster>-final-` prefix is
|
|
17368
|
+
* reused instead of creating a second one.
|
|
17369
|
+
*/
|
|
17370
|
+
async function createRedshiftFinalSnapshot(client, clusterId, logicalId, logger) {
|
|
17371
|
+
const matches = generatedSnapshotNameMatcher(clusterId, "AWS::Redshift::Cluster");
|
|
17372
|
+
let snapshotId;
|
|
17373
|
+
try {
|
|
17374
|
+
let marker;
|
|
17375
|
+
for (let page = 0; page < REUSE_PROBE_MAX_PAGES && !snapshotId; page++) {
|
|
17376
|
+
const existing = await client.send(new DescribeClusterSnapshotsCommand({
|
|
17377
|
+
ClusterIdentifier: clusterId,
|
|
17378
|
+
SnapshotType: "manual",
|
|
17379
|
+
...marker !== void 0 && { Marker: marker }
|
|
17380
|
+
}));
|
|
17381
|
+
snapshotId = existing.Snapshots?.find((s) => s.SnapshotIdentifier !== void 0 && matches.test(s.SnapshotIdentifier) && s.Status === RESUMABLE_SNAPSHOT_STATUS)?.SnapshotIdentifier;
|
|
17382
|
+
marker = existing.Marker;
|
|
17383
|
+
if (marker === void 0) break;
|
|
17384
|
+
}
|
|
17385
|
+
if (snapshotId) logger.debug(`Resuming in-flight final snapshot ${snapshotId} for ${logicalId} (${clusterId}) from a previous delete attempt`);
|
|
17386
|
+
} catch (probeError) {
|
|
17387
|
+
logger.debug(`Final-snapshot reuse probe failed for ${clusterId}: ${errMsg(probeError)}`);
|
|
17388
|
+
}
|
|
17389
|
+
const reused = snapshotId !== void 0;
|
|
17390
|
+
if (!snapshotId) {
|
|
17391
|
+
const newId = buildFinalSnapshotIdentifier(clusterId, "AWS::Redshift::Cluster");
|
|
17392
|
+
try {
|
|
17393
|
+
await client.send(new CreateClusterSnapshotCommand({
|
|
17394
|
+
SnapshotIdentifier: newId,
|
|
17395
|
+
ClusterIdentifier: clusterId
|
|
17396
|
+
}));
|
|
17397
|
+
snapshotId = newId;
|
|
17398
|
+
} catch (createError) {
|
|
17399
|
+
if (errorNameOrMessageIncludes(createError, "ClusterNotFoundFault")) {
|
|
17400
|
+
logger.debug(`Redshift cluster ${clusterId} no longer exists — skipping final snapshot for ${logicalId}`);
|
|
17401
|
+
return null;
|
|
17402
|
+
}
|
|
17403
|
+
if (errorNameOrMessageIncludes(createError, "InvalidClusterStateFault")) {
|
|
17404
|
+
logger.info(`Redshift cluster ${clusterId} is not in a snapshottable state (likely already deleting) — skipping the final snapshot for ${logicalId}: ${errMsg(createError)}`);
|
|
17405
|
+
return null;
|
|
17406
|
+
}
|
|
17407
|
+
throw new CdkdError(`Failed to create the final snapshot for ${logicalId} (${clusterId}) required by DeletionPolicy: Snapshot: ${errMsg(createError)}. The cluster was NOT deleted.`, "FINAL_SNAPSHOT_FAILED");
|
|
17408
|
+
}
|
|
17409
|
+
}
|
|
17410
|
+
const readySnapshotId = await waitForNamedSnapshot({
|
|
17411
|
+
snapshotId,
|
|
17412
|
+
logicalId,
|
|
17413
|
+
sourceId: clusterId,
|
|
17414
|
+
noun: "cluster",
|
|
17415
|
+
reused,
|
|
17416
|
+
readyStatus: "available",
|
|
17417
|
+
failedStatuses: [
|
|
17418
|
+
"failed",
|
|
17419
|
+
"cancelled",
|
|
17420
|
+
"deleted"
|
|
17421
|
+
],
|
|
17422
|
+
pollStatus: async () => {
|
|
17423
|
+
return (await client.send(new DescribeClusterSnapshotsCommand({ SnapshotIdentifier: snapshotId }))).Snapshots?.[0]?.Status;
|
|
17424
|
+
},
|
|
17425
|
+
isTransientNotFound: (e) => errorNameOrMessageIncludes(e, "ClusterSnapshotNotFoundFault"),
|
|
17426
|
+
logger
|
|
17427
|
+
});
|
|
17428
|
+
await waitForRedshiftClusterSettled(client, clusterId, logicalId, logger);
|
|
17429
|
+
return readySnapshotId;
|
|
17430
|
+
}
|
|
17431
|
+
/**
|
|
17432
|
+
* Poll a Redshift cluster until it is out of the transient state a just-taken
|
|
17433
|
+
* snapshot leaves it in, so the caller's delete is not rejected. Bounded and
|
|
17434
|
+
* NEVER fatal: a NotFound means the cluster is already gone, and exhausting
|
|
17435
|
+
* the budget only logs — the delete (and its own retry) still runs.
|
|
17436
|
+
*/
|
|
17437
|
+
async function waitForRedshiftClusterSettled(client, clusterId, logicalId, logger) {
|
|
17438
|
+
const deadline = Date.now() + REDSHIFT_CLUSTER_SETTLE_TIMEOUT_MS;
|
|
17439
|
+
for (;;) {
|
|
17440
|
+
let status;
|
|
17441
|
+
try {
|
|
17442
|
+
status = (await client.send(new DescribeClustersCommand({ ClusterIdentifier: clusterId }))).Clusters?.[0]?.ClusterStatus;
|
|
17443
|
+
} catch (pollError) {
|
|
17444
|
+
if (errorNameOrMessageIncludes(pollError, "ClusterNotFoundFault")) return;
|
|
17445
|
+
logger.debug(`Could not read Redshift cluster ${clusterId} while waiting for it to settle: ${errMsg(pollError)}`);
|
|
17446
|
+
return;
|
|
17447
|
+
}
|
|
17448
|
+
if (status === void 0 || status === "available") {
|
|
17449
|
+
await finalSnapshotDelays.sleep(PRE_DELETE_SNAPSHOT_POLL_INTERVAL_MS);
|
|
17450
|
+
return;
|
|
17451
|
+
}
|
|
17452
|
+
if (Date.now() >= deadline) {
|
|
17453
|
+
logger.info(`Redshift cluster ${clusterId} (${logicalId}) is still '${status}' after the post-snapshot settle wait — proceeding with the delete anyway.`);
|
|
17454
|
+
return;
|
|
17455
|
+
}
|
|
17456
|
+
logger.debug(`Waiting for Redshift cluster ${clusterId} to settle (status: ${status})`);
|
|
17457
|
+
await finalSnapshotDelays.sleep(PRE_DELETE_SNAPSHOT_POLL_INTERVAL_MS);
|
|
17458
|
+
}
|
|
17459
|
+
}
|
|
17460
|
+
/**
|
|
17461
|
+
* ElastiCache final snapshot for a replication group + wait to `available`
|
|
17462
|
+
* (issue #1353), then the caller's delete proceeds.
|
|
17463
|
+
*
|
|
17464
|
+
* **Cluster-mode matters** (found live 2026-08-03, not by the mocked unit
|
|
17465
|
+
* tests): `CreateSnapshot` accepts `ReplicationGroupId` ONLY for a
|
|
17466
|
+
* cluster-mode-ENABLED (sharded) group. For the cluster-mode-DISABLED
|
|
17467
|
+
* default — which is what a plain CDK / CFn replication group is — AWS
|
|
17468
|
+
* rejects it with "Cannot snapshot a replication group with cluster-mode
|
|
17469
|
+
* disabled. Please specify a cache cluster instead.", and the snapshot must
|
|
17470
|
+
* name the PRIMARY member cache cluster instead. Both shapes produce one
|
|
17471
|
+
* snapshot of the group's data; only the parameter differs.
|
|
17472
|
+
*
|
|
17473
|
+
* Idempotent across delete re-runs via the `<group>-final-` name prefix,
|
|
17474
|
+
* probed against whichever source this group's mode uses.
|
|
17475
|
+
*
|
|
17476
|
+
* Redis only — Memcached / snapshot-incapable node types surface AWS's
|
|
17477
|
+
* rejection wrapped, matching CloudFormation's DELETE_FAILED for the same
|
|
17478
|
+
* template.
|
|
17479
|
+
*/
|
|
17480
|
+
async function createReplicationGroupFinalSnapshot(client, replicationGroupId, logicalId, logger) {
|
|
17481
|
+
let snapshotSource;
|
|
17482
|
+
try {
|
|
17483
|
+
const group = (await client.send(new DescribeReplicationGroupsCommand({ ReplicationGroupId: replicationGroupId }))).ReplicationGroups?.[0];
|
|
17484
|
+
if (group === void 0) {
|
|
17485
|
+
logger.debug(`Replication group ${replicationGroupId} no longer exists — skipping final snapshot for ${logicalId}`);
|
|
17486
|
+
return null;
|
|
17487
|
+
}
|
|
17488
|
+
if (group.ClusterEnabled === true) snapshotSource = { ReplicationGroupId: replicationGroupId };
|
|
17489
|
+
else {
|
|
17490
|
+
const member = group.NodeGroups?.flatMap((n) => n.NodeGroupMembers ?? []).find((m) => m.CurrentRole === "primary")?.CacheClusterId ?? group.MemberClusters?.[0];
|
|
17491
|
+
if (member === void 0) throw new CdkdError(`Replication group ${replicationGroupId} (${logicalId}) has cluster-mode disabled but reports no member cache cluster to snapshot. The replication group was NOT deleted.`, "FINAL_SNAPSHOT_FAILED");
|
|
17492
|
+
snapshotSource = { CacheClusterId: member };
|
|
17493
|
+
}
|
|
17494
|
+
} catch (describeError) {
|
|
17495
|
+
if (describeError instanceof CdkdError) throw describeError;
|
|
17496
|
+
if (errorNameOrMessageIncludes(describeError, "ReplicationGroupNotFoundFault")) {
|
|
17497
|
+
logger.debug(`Replication group ${replicationGroupId} no longer exists — skipping final snapshot for ${logicalId}`);
|
|
17498
|
+
return null;
|
|
17499
|
+
}
|
|
17500
|
+
throw new CdkdError(`Failed to read replication group ${replicationGroupId} (${logicalId}) to pick the final snapshot source required by DeletionPolicy: Snapshot: ${errMsg(describeError)}. The replication group was NOT deleted.`, "FINAL_SNAPSHOT_FAILED", describeError instanceof Error ? describeError : void 0);
|
|
17501
|
+
}
|
|
17502
|
+
const matches = generatedSnapshotNameMatcher(replicationGroupId, "AWS::ElastiCache::ReplicationGroup");
|
|
17503
|
+
let snapshotId;
|
|
17504
|
+
try {
|
|
17505
|
+
let marker;
|
|
17506
|
+
for (let page = 0; page < REUSE_PROBE_MAX_PAGES && !snapshotId; page++) {
|
|
17507
|
+
const existing = await client.send(new DescribeSnapshotsCommand$1({
|
|
17508
|
+
...snapshotSource,
|
|
17509
|
+
...marker !== void 0 && { Marker: marker }
|
|
17510
|
+
}));
|
|
17511
|
+
snapshotId = existing.Snapshots?.find((s) => s.SnapshotName !== void 0 && matches.test(s.SnapshotName) && s.SnapshotStatus === RESUMABLE_SNAPSHOT_STATUS)?.SnapshotName;
|
|
17512
|
+
marker = existing.Marker;
|
|
17513
|
+
if (marker === void 0) break;
|
|
17514
|
+
}
|
|
17515
|
+
if (snapshotId) logger.debug(`Resuming in-flight final snapshot ${snapshotId} for ${logicalId} (${replicationGroupId}) from a previous delete attempt`);
|
|
17516
|
+
} catch (probeError) {
|
|
17517
|
+
logger.debug(`Final-snapshot reuse probe failed for ${replicationGroupId}: ${errMsg(probeError)}`);
|
|
17518
|
+
}
|
|
17519
|
+
const reused = snapshotId !== void 0;
|
|
17520
|
+
if (!snapshotId) {
|
|
17521
|
+
const newId = buildFinalSnapshotIdentifier(replicationGroupId, "AWS::ElastiCache::ReplicationGroup");
|
|
17522
|
+
try {
|
|
17523
|
+
await client.send(new CreateSnapshotCommand$1({
|
|
17524
|
+
...snapshotSource,
|
|
17525
|
+
SnapshotName: newId
|
|
17526
|
+
}));
|
|
17527
|
+
snapshotId = newId;
|
|
17528
|
+
} catch (createError) {
|
|
17529
|
+
if (errorNameOrMessageIncludes(createError, "ReplicationGroupNotFoundFault")) {
|
|
17530
|
+
logger.debug(`Replication group ${replicationGroupId} no longer exists — skipping final snapshot for ${logicalId}`);
|
|
17531
|
+
return null;
|
|
17532
|
+
}
|
|
17533
|
+
if (errorNameOrMessageIncludes(createError, "InvalidReplicationGroupStateFault")) {
|
|
17534
|
+
logger.info(`Replication group ${replicationGroupId} is not in a snapshottable state (likely already deleting) — skipping the final snapshot for ${logicalId}: ${errMsg(createError)}`);
|
|
17535
|
+
return null;
|
|
17536
|
+
}
|
|
17537
|
+
throw new CdkdError(`Failed to create the final snapshot for ${logicalId} (${replicationGroupId}) required by DeletionPolicy: Snapshot: ${errMsg(createError)}. The replication group was NOT deleted.`, "FINAL_SNAPSHOT_FAILED");
|
|
17538
|
+
}
|
|
17539
|
+
}
|
|
17540
|
+
return waitForNamedSnapshot({
|
|
17541
|
+
snapshotId,
|
|
17542
|
+
logicalId,
|
|
17543
|
+
sourceId: replicationGroupId,
|
|
17544
|
+
noun: "replication group",
|
|
17545
|
+
reused,
|
|
17546
|
+
readyStatus: "available",
|
|
17547
|
+
failedStatuses: ["failed"],
|
|
17548
|
+
pollStatus: async () => {
|
|
17549
|
+
return (await client.send(new DescribeSnapshotsCommand$1({ SnapshotName: snapshotId }))).Snapshots?.[0]?.SnapshotStatus;
|
|
17550
|
+
},
|
|
17551
|
+
isTransientNotFound: (e) => errorNameOrMessageIncludes(e, "SnapshotNotFoundFault"),
|
|
17552
|
+
logger
|
|
17553
|
+
});
|
|
17208
17554
|
}
|
|
17209
17555
|
|
|
17210
17556
|
//#endregion
|
|
@@ -17407,6 +17753,23 @@ async function withResourceDeadline(operation, opts) {
|
|
|
17407
17753
|
//#endregion
|
|
17408
17754
|
//#region src/deployment/rollback-executor.ts
|
|
17409
17755
|
/**
|
|
17756
|
+
* `UpdateReplacePolicy: Snapshot` on a rollback's delete-of-the-NEW-resource
|
|
17757
|
+
* (issue #1354): honor it where it costs nothing — an atomic-final-snapshot
|
|
17758
|
+
* type on the SDK route gets a generated identifier threaded into the delete
|
|
17759
|
+
* context. Every other Snapshot shape (pre-delete types, cc-api routing)
|
|
17760
|
+
* keeps the plain delete DELIBERATELY: the rollback executor's delete-new is
|
|
17761
|
+
* load-bearing for same-name re-creation (orphaning would break the revert),
|
|
17762
|
+
* it has no snapshot-client plumbing by design (registry + region only), and
|
|
17763
|
+
* the new resource was created by the deploy being reverted. Recorded as a
|
|
17764
|
+
* scope decision on issue #1354.
|
|
17765
|
+
*/
|
|
17766
|
+
function rollbackFinalSnapshotId(resourceType, record, fallbackProvisionedBy) {
|
|
17767
|
+
if (record.updateReplacePolicy !== "Snapshot") return void 0;
|
|
17768
|
+
if (!ATOMIC_FINAL_SNAPSHOT_TYPES.has(resourceType)) return void 0;
|
|
17769
|
+
if ((record.provisionedBy ?? fallbackProvisionedBy) === "cc-api") return void 0;
|
|
17770
|
+
return buildFinalSnapshotIdentifier(record.physicalId, resourceType);
|
|
17771
|
+
}
|
|
17772
|
+
/**
|
|
17410
17773
|
* Retry schedule for a re-create that must wait out a name-release delay:
|
|
17411
17774
|
* an async delete's late name release ("already exists") or the SQS 60s
|
|
17412
17775
|
* same-name cooldown (issue #1206). 2s/4s/8s then capped at 10s over 8
|
|
@@ -17657,7 +18020,13 @@ async function replaySingle(op, stateResources, stackName, ctx, orphanLogicalIds
|
|
|
17657
18020
|
resourceType: op.resourceType,
|
|
17658
18021
|
provisionedBy: current.provisionedBy ?? op.provisionedBy
|
|
17659
18022
|
});
|
|
17660
|
-
|
|
18023
|
+
{
|
|
18024
|
+
const finalSnapshotIdentifier = rollbackFinalSnapshotId(op.resourceType, current, op.provisionedBy);
|
|
18025
|
+
await newDeleteProvider.delete(op.logicalId, current.physicalId, op.resourceType, current.properties, {
|
|
18026
|
+
expectedRegion: ctx.region,
|
|
18027
|
+
...finalSnapshotIdentifier !== void 0 && { finalSnapshotIdentifier }
|
|
18028
|
+
});
|
|
18029
|
+
}
|
|
17661
18030
|
stateResources[op.logicalId] = prev;
|
|
17662
18031
|
logger.info(` Rollback: ${op.logicalId} restored to the retained old resource`);
|
|
17663
18032
|
await afterOp?.(op.logicalId);
|
|
@@ -17699,7 +18068,13 @@ async function replaySingle(op, stateResources, stackName, ctx, orphanLogicalIds
|
|
|
17699
18068
|
} catch (createError) {
|
|
17700
18069
|
if (!isNameCollisionError(createError instanceof Error ? createError.message : String(createError))) throw createError;
|
|
17701
18070
|
logger.info(` Rollback: re-create collided with the new resource's name — deleting the new resource (${current.physicalId}) first...`);
|
|
17702
|
-
|
|
18071
|
+
{
|
|
18072
|
+
const finalSnapshotIdentifier = rollbackFinalSnapshotId(op.resourceType, current, op.provisionedBy);
|
|
18073
|
+
await newDeleteProvider.delete(op.logicalId, current.physicalId, op.resourceType, current.properties, {
|
|
18074
|
+
expectedRegion: ctx.region,
|
|
18075
|
+
...finalSnapshotIdentifier !== void 0 && { finalSnapshotIdentifier }
|
|
18076
|
+
});
|
|
18077
|
+
}
|
|
17703
18078
|
deletedNewFirst = true;
|
|
17704
18079
|
delete stateResources[op.logicalId];
|
|
17705
18080
|
await afterOp?.(op.logicalId);
|
|
@@ -17730,7 +18105,11 @@ async function replaySingle(op, stateResources, stackName, ctx, orphanLogicalIds
|
|
|
17730
18105
|
};
|
|
17731
18106
|
await afterOp?.(op.logicalId);
|
|
17732
18107
|
if (!deletedNewFirst && !adoptedLiveNewResource) try {
|
|
17733
|
-
|
|
18108
|
+
const finalSnapshotIdentifier = rollbackFinalSnapshotId(op.resourceType, current, op.provisionedBy);
|
|
18109
|
+
await newDeleteProvider.delete(op.logicalId, current.physicalId, op.resourceType, current.properties, {
|
|
18110
|
+
expectedRegion: ctx.region,
|
|
18111
|
+
...finalSnapshotIdentifier !== void 0 && { finalSnapshotIdentifier }
|
|
18112
|
+
});
|
|
17734
18113
|
} catch (deleteError) {
|
|
17735
18114
|
logger.warn(` Rollback: old ${op.logicalId} re-created, but deleting the new resource (${current.physicalId}) failed: ${deleteError instanceof Error ? deleteError.message : String(deleteError)}. Delete it manually — it is no longer tracked in state.`);
|
|
17736
18115
|
result.warnings++;
|
|
@@ -17994,7 +18373,7 @@ const FLUSH_INTERVAL_MS = 2e3;
|
|
|
17994
18373
|
const FLUSH_EVENT_THRESHOLD = 50;
|
|
17995
18374
|
/** Build-time cdkd version, with a dev fallback for non-built contexts. */
|
|
17996
18375
|
function getCdkdVersion() {
|
|
17997
|
-
return "0.
|
|
18376
|
+
return "0.276.1";
|
|
17998
18377
|
}
|
|
17999
18378
|
/**
|
|
18000
18379
|
* Generate a time-sortable unique run id, e.g.
|
|
@@ -19518,17 +19897,46 @@ var DeployEngine = class {
|
|
|
19518
19897
|
throw new ProvisioningError(`Unrewritten asset reference on '${logicalId}' (${resourceType}): this region uses cdkd-owned asset storage, but the following resolved properties still point at the CDK bootstrap storage that 'cdk gc' may garbage-collect:\n${findings.map((f) => ` - ${f.path}: still references '${f.source}'`).join("\n")}\nThis is a template shape cdkd's asset-reference rewrite did not cover — deploying it would split-brain the stack (assets in cdkd storage, properties reading the CDK bucket). Please report this at https://github.com/go-to-k/cdkd/issues with the property shape. Workaround: deploy with --use-cdk-bootstrap-assets to pin the legacy destinations for this app.`, resourceType, logicalId);
|
|
19519
19898
|
}
|
|
19520
19899
|
/**
|
|
19900
|
+
* The `Snapshot`-policy gate every engine delete site runs BEFORE its
|
|
19901
|
+
* delete (issues #1352 / #1353 / #1354). Given the resource's effective
|
|
19902
|
+
* policy for THIS delete (`DeletionPolicy` on the destroy / removal paths,
|
|
19903
|
+
* `UpdateReplacePolicy` on the replacement paths):
|
|
19904
|
+
*
|
|
19905
|
+
* - not `Snapshot` (or `--skip-final-snapshot`) → no-op.
|
|
19906
|
+
* - atomic type, SDK-routed → returns the generated identifier for the
|
|
19907
|
+
* provider's atomic final-snapshot delete parameter.
|
|
19908
|
+
* - atomic type, cc-api-routed → refuses (Cloud Control has no
|
|
19909
|
+
* final-snapshot parameter; `CloudControlProvider.delete` also
|
|
19910
|
+
* fail-closes on the context field as defense-in-depth).
|
|
19911
|
+
* - `PRE_DELETE_SNAPSHOT_TYPES` (EC2 Volume / Redshift Cluster /
|
|
19912
|
+
* ElastiCache ReplicationGroup) → creates the snapshot and waits for
|
|
19913
|
+
* it here, then returns undefined (the subsequent delete is plain).
|
|
19914
|
+
* - anything else Snapshot-tagged → refuses.
|
|
19915
|
+
*/
|
|
19916
|
+
async prepareFinalSnapshotForDelete(logicalId, resourceType, currentResource, policy) {
|
|
19917
|
+
if (policy !== "Snapshot" || this.options.skipFinalSnapshot === true) return void 0;
|
|
19918
|
+
if (ATOMIC_FINAL_SNAPSHOT_TYPES.has(resourceType) && currentResource.provisionedBy !== "cc-api") return buildFinalSnapshotIdentifier(currentResource.physicalId, resourceType);
|
|
19919
|
+
if (ATOMIC_FINAL_SNAPSHOT_TYPES.has(resourceType)) throw ccRoutedFinalSnapshotError(logicalId, resourceType, "--skip-final-snapshot");
|
|
19920
|
+
if (PRE_DELETE_SNAPSHOT_TYPES.has(resourceType)) {
|
|
19921
|
+
await createPreDeleteFinalSnapshot(resourceType, currentResource.physicalId, logicalId, this.options.finalSnapshotClients ?? getAwsClients(), this.logger);
|
|
19922
|
+
return;
|
|
19923
|
+
}
|
|
19924
|
+
throw unsupportedFinalSnapshotError(logicalId, resourceType, "--skip-final-snapshot");
|
|
19925
|
+
}
|
|
19926
|
+
/**
|
|
19521
19927
|
* `--replace` delete-first fallback for a property-driven replacement of a
|
|
19522
19928
|
* custom-named resource: delete the old name holder, then re-create it
|
|
19523
19929
|
* under the same name. Shared by the create-first collision catch (issue
|
|
19524
19930
|
* #960 follow-up) and the name-idempotent same-id guard (issue #1238) so
|
|
19525
19931
|
* the two --replace escape hatches cannot drift apart.
|
|
19526
19932
|
*/
|
|
19527
|
-
async replaceDeleteFirstAndRecreate(logicalId, resourceType, currentResource, oldDeleteProvider, replaceProvider, replaceProps) {
|
|
19933
|
+
async replaceDeleteFirstAndRecreate(logicalId, resourceType, currentResource, oldDeleteProvider, replaceProvider, replaceProps, updateReplacePolicy) {
|
|
19934
|
+
const finalSnapshotIdentifier = await this.prepareFinalSnapshotForDelete(logicalId, resourceType, currentResource, updateReplacePolicy);
|
|
19528
19935
|
try {
|
|
19529
19936
|
await oldDeleteProvider.delete(logicalId, currentResource.physicalId, resourceType, currentResource.properties, {
|
|
19530
19937
|
expectedRegion: this.stackRegion,
|
|
19531
|
-
forceDataDelete: this.options.forceStatefulRecreation === true
|
|
19938
|
+
forceDataDelete: this.options.forceStatefulRecreation === true,
|
|
19939
|
+
...finalSnapshotIdentifier !== void 0 && { finalSnapshotIdentifier }
|
|
19532
19940
|
});
|
|
19533
19941
|
} catch (deleteError) {
|
|
19534
19942
|
throw new Error(`Failed to delete old resource ${logicalId} (${currentResource.physicalId}) during the --replace delete-first fallback: ${deleteError instanceof Error ? deleteError.message : String(deleteError)}`);
|
|
@@ -19669,10 +20077,12 @@ var DeployEngine = class {
|
|
|
19669
20077
|
if (updateReplacePolicy === "Retain") this.logger.warn(` ⚠ ${logicalId} has UpdateReplacePolicy: Retain — ${recreateFlagName} will leak the old physical resource (${currentResource.physicalId}). The new resource shares the same name where applicable; if the type has user-supplied names (e.g. functionName, bucketName), the create will deterministically collide with the retained orphan.`);
|
|
19670
20078
|
else {
|
|
19671
20079
|
this.logger.info(` Destroying old ${logicalId} (${currentResource.physicalId}) before recreate...`);
|
|
20080
|
+
const recreateFinalSnapshotId = await this.prepareFinalSnapshotForDelete(logicalId, resourceType, currentResource, updateReplacePolicy);
|
|
19672
20081
|
try {
|
|
19673
20082
|
await oldDeleteProvider.delete(logicalId, currentResource.physicalId, resourceType, currentResource.properties, {
|
|
19674
20083
|
expectedRegion: this.stackRegion,
|
|
19675
|
-
forceDataDelete: this.options.forceStatefulRecreation === true
|
|
20084
|
+
forceDataDelete: this.options.forceStatefulRecreation === true,
|
|
20085
|
+
...recreateFinalSnapshotId !== void 0 && { finalSnapshotIdentifier: recreateFinalSnapshotId }
|
|
19676
20086
|
});
|
|
19677
20087
|
this.logger.info(` ${green("✓")} Old resource deleted`);
|
|
19678
20088
|
} catch (deleteError) {
|
|
@@ -19702,22 +20112,32 @@ var DeployEngine = class {
|
|
|
19702
20112
|
if (this.options.replace !== true) throw new CdkdError(`${logicalId} (${resourceType}) requires replacement, but the create-first attempt collided with the existing resource: ${createMsg}. The resource has a user-supplied physical name, so the CloudFormation-style safe replacement order (create the new resource before deleting the old) cannot reuse the occupied name — CloudFormation refuses this shape with "cannot update a stack when a custom-named resource requires replacing". Either rename the resource in your CDK code (a fresh name lets the safe create-first order proceed), or re-run with \`cdkd deploy --replace\` to delete the old resource FIRST and recreate it under the same name (the resource is briefly unavailable while it is recreated).`, "NAMED_REPLACEMENT_COLLISION");
|
|
19703
20113
|
this.logger.info(` Create-first collided with the custom-named resource and --replace is set — deleting old ${logicalId} (${currentResource.physicalId}) first...`);
|
|
19704
20114
|
deletedOldFirst = true;
|
|
19705
|
-
createResult = await this.replaceDeleteFirstAndRecreate(logicalId, resourceType, currentResource, oldDeleteProvider, replaceProvider, replaceProps);
|
|
20115
|
+
createResult = await this.replaceDeleteFirstAndRecreate(logicalId, resourceType, currentResource, oldDeleteProvider, replaceProvider, replaceProps, updateReplacePolicy);
|
|
19706
20116
|
}
|
|
19707
20117
|
if (!deletedOldFirst && createResult.physicalId === currentResource.physicalId) {
|
|
19708
20118
|
if (updateReplacePolicy === "Retain") throw new CdkdError(`${logicalId} (${resourceType}) requires replacement, but its Create API is name-idempotent: the create-first attempt returned the existing resource (${currentResource.physicalId}) instead of creating a new one, and UpdateReplacePolicy: Retain pins that resource in place. Rename the resource in your CDK code — with Retain, the old resource keeps the name, so a same-name replacement can never proceed.`, "NAMED_REPLACEMENT_IDEMPOTENT_CREATE");
|
|
19709
20119
|
if (this.options.replace !== true) throw new CdkdError(`${logicalId} (${resourceType}) requires replacement, but its Create API is name-idempotent: the create-first attempt returned the EXISTING resource (${currentResource.physicalId}) instead of creating a new one, so deleting the "old" resource would silently destroy the resource the deploy just reported as created. The resource has a user-supplied physical name; either change or remove the explicit name in your CDK code (a fresh or generated name lets the safe create-first order proceed), or re-run with \`cdkd deploy --replace\` to delete the old resource FIRST and recreate it under the same name (the resource is briefly unavailable while it is recreated). Note: this branch is also reached when the old resource was deleted out-of-band and the physical id is name-derived — there the create was a genuine fresh create; \`--replace\` converges that case too.`, "NAMED_REPLACEMENT_IDEMPOTENT_CREATE");
|
|
19710
20120
|
this.logger.info(` Create-first returned the existing resource (name-idempotent Create API) and --replace is set — deleting old ${logicalId} (${currentResource.physicalId}) first...`);
|
|
19711
20121
|
deletedOldFirst = true;
|
|
19712
|
-
createResult = await this.replaceDeleteFirstAndRecreate(logicalId, resourceType, currentResource, oldDeleteProvider, replaceProvider, replaceProps);
|
|
20122
|
+
createResult = await this.replaceDeleteFirstAndRecreate(logicalId, resourceType, currentResource, oldDeleteProvider, replaceProvider, replaceProps, updateReplacePolicy);
|
|
19713
20123
|
}
|
|
19714
20124
|
if (deletedOldFirst) {} else if (updateReplacePolicy === "Retain") this.logger.info(` Retaining old ${logicalId} (${currentResource.physicalId}) - UpdateReplacePolicy: Retain`);
|
|
19715
20125
|
else {
|
|
19716
20126
|
this.logger.info(` Deleting old ${logicalId} (${currentResource.physicalId})...`);
|
|
20127
|
+
let cleanupFinalSnapshotId;
|
|
20128
|
+
let snapshotBlockedDelete = false;
|
|
19717
20129
|
try {
|
|
20130
|
+
cleanupFinalSnapshotId = await this.prepareFinalSnapshotForDelete(logicalId, resourceType, currentResource, updateReplacePolicy);
|
|
20131
|
+
} catch (snapshotError) {
|
|
20132
|
+
if (snapshotError instanceof CdkdError && snapshotError.code === "FINAL_SNAPSHOT_UNSUPPORTED") throw snapshotError;
|
|
20133
|
+
snapshotBlockedDelete = true;
|
|
20134
|
+
this.logger.warn(` ⚠ Final snapshot for old ${logicalId} (${currentResource.physicalId}) failed: ${snapshotError instanceof Error ? snapshotError.message : String(snapshotError)}. The old resource was NOT deleted (UpdateReplacePolicy: Snapshot) — delete it manually once you have a snapshot; it is no longer tracked in state.`);
|
|
20135
|
+
}
|
|
20136
|
+
if (!snapshotBlockedDelete) try {
|
|
19718
20137
|
await oldDeleteProvider.delete(logicalId, currentResource.physicalId, resourceType, currentResource.properties, {
|
|
19719
20138
|
expectedRegion: this.stackRegion,
|
|
19720
|
-
forceDataDelete: this.options.forceStatefulRecreation === true
|
|
20139
|
+
forceDataDelete: this.options.forceStatefulRecreation === true,
|
|
20140
|
+
...cleanupFinalSnapshotId !== void 0 && { finalSnapshotIdentifier: cleanupFinalSnapshotId }
|
|
19721
20141
|
});
|
|
19722
20142
|
this.logger.info(` ${green("✓")} Old resource deleted`);
|
|
19723
20143
|
} catch (deleteError) {
|
|
@@ -19763,10 +20183,12 @@ var DeployEngine = class {
|
|
|
19763
20183
|
if (statefulReason && this.options.forceStatefulRecreation !== true) throw new CdkdError(`--replace would DELETE + CREATE the stateful resource ${logicalId} (${resourceType}) — ${renderStatefulReason(statefulReason)}. Re-run with --force-stateful-recreation to confirm the data loss, or change the resource definition to avoid the immutable-property change.`, "STATEFUL_REPLACE_BLOCKED");
|
|
19764
20184
|
}
|
|
19765
20185
|
this.logger.info(`UPDATE not supported for ${logicalId} (${resourceType}), replacing (DELETE → CREATE)`);
|
|
20186
|
+
const fallbackFinalSnapshotId = await this.prepareFinalSnapshotForDelete(logicalId, resourceType, currentResource, template?.Resources?.[logicalId]?.UpdateReplacePolicy ?? currentResource.updateReplacePolicy);
|
|
19766
20187
|
try {
|
|
19767
20188
|
await updateProvider.delete(logicalId, currentResource.physicalId, resourceType, currentProps, {
|
|
19768
20189
|
expectedRegion: this.stackRegion,
|
|
19769
|
-
forceDataDelete: this.options.forceStatefulRecreation === true
|
|
20190
|
+
forceDataDelete: this.options.forceStatefulRecreation === true,
|
|
20191
|
+
...fallbackFinalSnapshotId !== void 0 && { finalSnapshotIdentifier: fallbackFinalSnapshotId }
|
|
19770
20192
|
});
|
|
19771
20193
|
} catch (deleteError) {
|
|
19772
20194
|
const deleteMsg = deleteError instanceof Error ? deleteError.message : String(deleteError);
|
|
@@ -19818,11 +20240,7 @@ var DeployEngine = class {
|
|
|
19818
20240
|
delete stateResources[logicalId];
|
|
19819
20241
|
break;
|
|
19820
20242
|
}
|
|
19821
|
-
|
|
19822
|
-
if (deletionPolicy === "Snapshot" && this.options.skipFinalSnapshot !== true) if (ATOMIC_FINAL_SNAPSHOT_TYPES.has(resourceType) && currentResource.provisionedBy !== "cc-api") finalSnapshotIdentifier = buildFinalSnapshotIdentifier(currentResource.physicalId, resourceType);
|
|
19823
|
-
else if (ATOMIC_FINAL_SNAPSHOT_TYPES.has(resourceType)) throw ccRoutedFinalSnapshotError(logicalId, resourceType, "--skip-final-snapshot");
|
|
19824
|
-
else if (PRE_DELETE_SNAPSHOT_TYPES.has(resourceType)) await createEbsFinalSnapshot(this.options.finalSnapshotEc2 ?? getAwsClients().ec2, currentResource.physicalId, logicalId, this.logger);
|
|
19825
|
-
else throw unsupportedFinalSnapshotError(logicalId, resourceType, "--skip-final-snapshot");
|
|
20243
|
+
const finalSnapshotIdentifier = await this.prepareFinalSnapshotForDelete(logicalId, resourceType, currentResource, deletionPolicy);
|
|
19826
20244
|
const deleteProvider = this.providerRegistry.getProviderFor({
|
|
19827
20245
|
resourceType,
|
|
19828
20246
|
provisionedBy: currentResource.provisionedBy
|
|
@@ -20064,5 +20482,5 @@ var DeployEngine = class {
|
|
|
20064
20482
|
};
|
|
20065
20483
|
|
|
20066
20484
|
//#endregion
|
|
20067
|
-
export { TemplateParser as $, CdkdError as $t, yellow as A, resolveAutoAssetStorage as At, IntrinsicFunctionResolver as B, MIGRATE_TMP_PREFIX as Bt, renderStatefulReason as C, AssetManifestLoader as Ct, gray as D, getDefaultStateBucketName as Dt, cyan as E, synthesisStatusMessage as Et, findActionableSilentDrops as F, resolveUseCdkBootstrapAssets as Ft, resolveExplicitPhysicalId as G, processStackMessages as Gt, refStateLookupFromResource as H, uploadCfnTemplate as Ht, CloudControlProvider as I, stateBucketExistenceConfirmed as It, DiffCalculator as J, AwsClients as Jt, assertRegionMatch as K, clearBucketRegionCache as Kt, slowCcOperationTimeoutMs as L, warnDeprecatedNoPrefixCliFlag as Lt, collectInlinePolicyNamesManagedBySiblings as M, resolveSkipPrefix as Mt, clearOnUpdateRemoval as N, resolveStateBucketWithDefault as Nt, green as O, getLegacyStateBucketName as Ot, ProviderRegistry as P, resolveStateBucketWithDefaultAndSource as Pt, DagBuilder as Q, AssetError as Qt, disableInstanceApiTermination as R, CFN_TEMPLATE_BODY_LIMIT as Rt, isStatefulRecreateTargetSync as S, runDockerStreaming as St, bold as T, Synthesizer as Tt, WAFv2WebACLProvider as U, expectedOwnerParam as Ut, cfnRefValueFromPhysicalId as V, findLargeInlineResources as Vt, normalizeAwsTagsToCfn as W, AssemblyReader as Wt, withRetry as X, resetAwsClients as Xt, describeTypeWithThrottleRetry as Y, getAwsClients as Yt, isRetryableTransientError as Z, setAwsClients as Zt,
|
|
20068
|
-
//# sourceMappingURL=deploy-engine-
|
|
20485
|
+
export { TemplateParser as $, CdkdError as $t, yellow as A, resolveAutoAssetStorage as At, IntrinsicFunctionResolver as B, MIGRATE_TMP_PREFIX as Bt, renderStatefulReason as C, AssetManifestLoader as Ct, gray as D, getDefaultStateBucketName as Dt, cyan as E, synthesisStatusMessage as Et, findActionableSilentDrops as F, resolveUseCdkBootstrapAssets as Ft, resolveExplicitPhysicalId as G, processStackMessages as Gt, refStateLookupFromResource as H, uploadCfnTemplate as Ht, CloudControlProvider as I, stateBucketExistenceConfirmed as It, DiffCalculator as J, AwsClients as Jt, assertRegionMatch as K, clearBucketRegionCache as Kt, slowCcOperationTimeoutMs as L, warnDeprecatedNoPrefixCliFlag as Lt, collectInlinePolicyNamesManagedBySiblings as M, resolveSkipPrefix as Mt, clearOnUpdateRemoval as N, resolveStateBucketWithDefault as Nt, green as O, getLegacyStateBucketName as Ot, ProviderRegistry as P, resolveStateBucketWithDefaultAndSource as Pt, DagBuilder as Q, AssetError as Qt, disableInstanceApiTermination as R, CFN_TEMPLATE_BODY_LIMIT as Rt, isStatefulRecreateTargetSync as S, runDockerStreaming as St, bold as T, Synthesizer as Tt, WAFv2WebACLProvider as U, expectedOwnerParam as Ut, cfnRefValueFromPhysicalId as V, findLargeInlineResources as Vt, normalizeAwsTagsToCfn as W, AssemblyReader as Wt, withRetry as X, resetAwsClients as Xt, describeTypeWithThrottleRetry as Y, getAwsClients as Yt, isRetryableTransientError as Z, setAwsClients as Zt, createPreDeleteFinalSnapshot as _, formatError as _n, validateContainerRepoName as _t, DeploymentEventsStore as a, LocalStartServiceError as an, stringifyValue as at, extractDeploymentEventError as b, withErrorHandling as bn, getDockerCmd as bt, replayFailedOperations as c, NestedStackChildDirectDestroyError as cn, createAssetRedirectResolver as ct, IMPLICIT_DELETE_DEPENDENCIES as d, ResourceTimeoutError as dn, AssetModeResolver as dt, ConfigError as en, LockManager as et, computeImplicitDeleteEdges as f, ResourceUpdateNotSupportedError as fn, BOOTSTRAP_MARKER_PREFIX as ft, ccRoutedFinalSnapshotError as g, SynthesisError as gn, validateAssetBucketName as gt, buildFinalSnapshotIdentifier as h, StateError as hn, parseBootstrapMarker as ht, DeploymentEventsReader as i, LocalMigrateError as in, AssetPublisher as it, IAMRoleProvider as j, resolveCaptureObservedState as jt, red as k, resolveApp as kt, replayRollback as l, PartialFailureError as ln, loadPublishableAssetManifest as lt, PRE_DELETE_SNAPSHOT_TYPES as m, StackTerminationProtectionError as mn, getBootstrapMarkerKey as mt, DEFAULT_RESOURCE_WARN_AFTER_MS as n, DeployCancelledError as nn, rebuildClientForBucketRegion as nt, planFailedOps as o, LockError as on, WorkGraph as ot, ATOMIC_FINAL_SNAPSHOT_TYPES as p, StackHasActiveImportsError as pn, ensureAssetStorage as pt, applyRoleArnIfSet as q, resolveBucketRegion as qt, DeployEngine as r, LocalInvokeBuildError as rn, shouldRetainResource as rt, planRollback as s, MissingCdkCliError as sn, buildAssetRedirectMap as st, DEFAULT_RESOURCE_TIMEOUT_MS as t, DependencyError as tn, S3StateBackend as tt, withResourceDeadline as u, ProvisioningError as un, rewriteTemplateAssetReferences as ut, isFinalSnapshotError as v, isCdkdError as vn, buildDockerImage as vt, formatResourceLine as w, getDockerImageBySourceHash as wt, MULTI_REGION_RECREATE_BLOCKED_TYPES as x, __exportAll as xn, runDockerForeground as xt, unsupportedFinalSnapshotError as y, normalizeAwsError as yn, formatDockerLoginError as yt, isTerminationProtectionPropagationError as z, CFN_TEMPLATE_URL_LIMIT as zt };
|
|
20486
|
+
//# sourceMappingURL=deploy-engine-C581XZwt.js.map
|