@cdkd/cli 0.369.0 → 0.370.0
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/{ambient-client-defaults-rk6Owoyy.js → ambient-client-defaults-BEAgEnYC.js} +3 -3
- package/dist/{ambient-client-defaults-rk6Owoyy.js.map → ambient-client-defaults-BEAgEnYC.js.map} +1 -1
- package/dist/{asg-provider-CNRVBqWX.js → asg-provider-cjMb8o1I.js} +6 -6
- package/dist/{asg-provider-CNRVBqWX.js.map → asg-provider-cjMb8o1I.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{custom-resource-runtime-CEDK9itT.js → custom-resource-runtime-LiMlbcFx.js} +6 -6
- package/dist/{custom-resource-runtime-CEDK9itT.js.map → custom-resource-runtime-LiMlbcFx.js.map} +1 -1
- package/dist/{db-associated-roles-CmtjO5eX.js → db-associated-roles-BdugKxHB.js} +2 -2
- package/dist/{db-associated-roles-CmtjO5eX.js.map → db-associated-roles-BdugKxHB.js.map} +1 -1
- package/dist/{delete-started-Csx7vwyg.js → delete-started-BFRg37SF.js} +6 -6
- package/dist/{delete-started-Csx7vwyg.js.map → delete-started-BFRg37SF.js.map} +1 -1
- package/dist/{deploy-engine-BOJDF7gp.js → deploy-engine-DEH08Ipa.js} +530 -134
- package/dist/deploy-engine-DEH08Ipa.js.map +1 -0
- package/dist/{ec2-termination-protection-BfnGV4MW.js → ec2-termination-protection-C9-Ahvql.js} +16 -6
- package/dist/ec2-termination-protection-C9-Ahvql.js.map +1 -0
- package/dist/{ecr-uri-C6KQIzAh.js → ecr-uri-CRaJHJpC.js} +2 -2
- package/dist/{ecr-uri-C6KQIzAh.js.map → ecr-uri-CRaJHJpC.js.map} +1 -1
- package/dist/{expected-bucket-owner-CaFllAu_.js → expected-bucket-owner-CSHY4LqK.js} +2 -2
- package/dist/{expected-bucket-owner-CaFllAu_.js.map → expected-bucket-owner-CSHY4LqK.js.map} +1 -1
- package/dist/{iam-role-provider-DRszX-y3.js → iam-role-provider-7FpK27IJ.js} +9 -9
- package/dist/{iam-role-provider-DRszX-y3.js.map → iam-role-provider-7FpK27IJ.js.map} +1 -1
- package/dist/{image-plan-Db783emh.js → image-plan-CgnzL-SV.js} +9 -9
- package/dist/image-plan-CgnzL-SV.js.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-Db1YslcC.js → logger-DjU1d8tR.js} +2 -2
- package/dist/{logger-Db1YslcC.js.map → logger-DjU1d8tR.js.map} +1 -1
- package/dist/{neptune-provider-rlCSoeoP.js → neptune-provider-CTAXvQQO.js} +20 -15
- package/dist/neptune-provider-CTAXvQQO.js.map +1 -0
- package/dist/{program-DpryKXTn.js → program-o9TI0b9j.js} +18 -16
- package/dist/program-o9TI0b9j.js.map +1 -0
- package/dist/{provider-classes-DtaAa9Bd.js → provider-classes-Baf5t9eA.js} +690 -68
- package/dist/provider-classes-Baf5t9eA.js.map +1 -0
- package/dist/{rds-provider-cQkTDV8C.js → rds-provider-DxQ515q8.js} +25 -19
- package/dist/rds-provider-DxQ515q8.js.map +1 -0
- package/dist/{read-replica-BhIJ9o47.js → read-replica-DQiPcXCF.js} +3 -3
- package/dist/{read-replica-BhIJ9o47.js.map → read-replica-DQiPcXCF.js.map} +1 -1
- package/dist/{replacement-rules-B4u0_NZA.js → replacement-rules-CV85H47l.js} +3 -3
- package/dist/{replacement-rules-B4u0_NZA.js.map → replacement-rules-CV85H47l.js.map} +1 -1
- package/dist/{resource-deadline-D4VcgDmH.js → resource-deadline-DaeYacij.js} +90 -87
- package/dist/{resource-deadline-D4VcgDmH.js.map → resource-deadline-DaeYacij.js.map} +1 -1
- package/dist/{restore-source-guard-CgUon9UO.js → restore-source-guard-VmeqbJUM.js} +53 -5
- package/dist/restore-source-guard-VmeqbJUM.js.map +1 -0
- package/dist/{run-cli-YiJIQRsR.js → run-cli-Cqev-Chr.js} +2 -2
- package/dist/{run-cli-YiJIQRsR.js.map → run-cli-Cqev-Chr.js.map} +1 -1
- package/dist/{settle-own-write-members-ojoMzO_S.js → settle-own-write-members-DzLGW7et.js} +42 -15
- package/dist/{settle-own-write-members-ojoMzO_S.js.map → settle-own-write-members-DzLGW7et.js.map} +1 -1
- package/dist/{version-D4-Ie5QB.js → version-5LxZZWe4.js} +2 -2
- package/dist/{version-D4-Ie5QB.js.map → version-5LxZZWe4.js.map} +1 -1
- package/package.json +1 -1
- package/dist/deploy-engine-BOJDF7gp.js.map +0 -1
- package/dist/ec2-termination-protection-BfnGV4MW.js.map +0 -1
- package/dist/image-plan-Db783emh.js.map +0 -1
- package/dist/neptune-provider-rlCSoeoP.js.map +0 -1
- package/dist/program-DpryKXTn.js.map +0 -1
- package/dist/provider-classes-DtaAa9Bd.js.map +0 -1
- package/dist/rds-provider-cQkTDV8C.js.map +0 -1
- package/dist/restore-source-guard-CgUon9UO.js.map +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { A as displayStackName, C as STACK_REF_MAX_CODE_POINTS, D as displayAwsMessage, O as displayIdent, P as safeMsg, _ as shellQuote, k as displaySafe, m as proseQuoted, o as cdkdRemedy, p as plainOrDescribed, r as SHELL_ACTIVE, w as UNRENDERABLE } from "./version-
|
|
2
|
-
import { _ as currentLogLineMasker, l as describeAwsErrorDiagnostics, m as verboseAwareText, n as getLogger, p as safeStringify$1, r as isStdoutReservedForPayload, u as describeAwsFailure } from "./logger-
|
|
3
|
-
import { $ as AssetError, G as markRedactedCause, ct as SynthesisError, d as MacroExpansionError, et as CdkdError, it as LockError, k as escapeRegExp, lt as isSoftAbort, nt as DeploymentNotApprovedError, p as DependencyError, st as StateError, t as ambientClientDefaults } from "./ambient-client-defaults-
|
|
1
|
+
import { A as displayStackName, C as STACK_REF_MAX_CODE_POINTS, D as displayAwsMessage, O as displayIdent, P as safeMsg, _ as shellQuote, k as displaySafe, m as proseQuoted, o as cdkdRemedy, p as plainOrDescribed, r as SHELL_ACTIVE, w as UNRENDERABLE } from "./version-5LxZZWe4.js";
|
|
2
|
+
import { _ as currentLogLineMasker, l as describeAwsErrorDiagnostics, m as verboseAwareText, n as getLogger, p as safeStringify$1, r as isStdoutReservedForPayload, u as describeAwsFailure } from "./logger-DjU1d8tR.js";
|
|
3
|
+
import { $ as AssetError, G as markRedactedCause, ct as SynthesisError, d as MacroExpansionError, et as CdkdError, it as LockError, k as escapeRegExp, lt as isSoftAbort, nt as DeploymentNotApprovedError, p as DependencyError, st as StateError, t as ambientClientDefaults } from "./ambient-client-defaults-BEAgEnYC.js";
|
|
4
4
|
import { n as awsClientDefaults, r as awsEndpointOverrideActive } from "./aws-client-defaults-DAebi99J.js";
|
|
5
5
|
import { l as s3ClientDefaults } from "./aws-clients-DOkPjjAW.js";
|
|
6
|
-
import { $d as
|
|
7
|
-
import { F as REPLACEMENT_TRIGGER_PROPERTIES, I as changedTriggers, J as jsonParseFailureStandIn, Y as parseFailureDebugDetail, Z as utf8ByteLength, b as createOnlyChangeRequiresReplacement, q as describeJsonParseFailure, x as getCreateOnlyPropertyPaths, z as willReplaceGroup } from "./ec2-termination-protection-
|
|
6
|
+
import { $d as getCdkdAssetBucketName, $u as rebuildClientForBucketRegion, Ad as isDefaultBootstrapRepoName, Bc as siblingsOf, Bd as warnAbsoluteAssetPath, Bu as dropSupersededProviderReplacements, Cc as recordedProvenanceOf, Cd as rememberSynthesizedStacks, Dd as createLazyAssetModeContext, Ec as referenceTokensIn, Fc as namesRecreatedParent, Fl as refuseMalformedResourceEntriesForDeploy, Hc as isLegacyHandleId, Hu as providerReplacementReason, Ic as INTRINSIC_KEYS, Iu as withoutUnwrittenSdkUnwiredProperties, Ku as TemplateParser, Lc as containsIntrinsic, Ld as isCfnTemplateAssetPath, Md as redirectDockerAsset, Nd as redirectFileAsset, Od as flattenAssetPlaceholders, Pu as withoutAcceptedSdkUnwiredProperties, Rc as markNewValueKnownAfterDeploy, Rd as parseAssetManifestBody, Tc as referenceProvenanceOf, Vd as warnWholeAssemblyAsSource, Vo as settleDeclaredMember, Wc as isPlainReferenceTo, Wl as refuseMalformedResourceProperties, Yu as isKnownTokenFreeState, _d as SSM_PARAMETER_VALUE_PREFIX, cf as describeFileReadFailure, cl as inputFingerprinter, dc as AWS_NO_VALUE, dd as missingStateBucketRemedy, df as renderAssemblyPathEscape, ef as getCdkdContainerRepoName, ff as resolveAssemblyPath, if as nullPrototypeRecord, jd as loadPublishableAssetManifest, kd as isDefaultBootstrapBucketName, lf as displayAssemblyPath, md as listNestedTemplateRows, mf as resolveBucketRegion, of as absoluteAssemblyPathEscape, sf as assemblyPathEscape, sl as tryGetTopLevelWriteOnlyProperties, tf as defineOwnKey, ud as stringifyValue, uf as namesTheSameDirectory, ul as movedMaskedProperties, vc as extractGetAttRefs, vd as isListParameterType, xd as purgeNoncurrentKeyVersions, yc as promoteInPlaceAttributeDependents, yd as ssmResolvedValueType, zc as replacementSidesForLog, zd as resolveFileAssetSourcePath, zo as policyDocumentMatchesDeclared } from "./deploy-engine-DEH08Ipa.js";
|
|
7
|
+
import { F as REPLACEMENT_TRIGGER_PROPERTIES, I as changedTriggers, J as jsonParseFailureStandIn, Y as parseFailureDebugDetail, Z as utf8ByteLength, b as createOnlyChangeRequiresReplacement, q as describeJsonParseFailure, x as getCreateOnlyPropertyPaths, z as willReplaceGroup } from "./ec2-termination-protection-C9-Ahvql.js";
|
|
8
8
|
import { r as derivePartitionAndUrlSuffix } from "./aws-partition-DA0r2sr-.js";
|
|
9
|
-
import {
|
|
10
|
-
import { t as expectedOwnerParam } from "./expected-bucket-owner-
|
|
11
|
-
import { zt as acceptedCreateOnlyDropsOf } from "./delete-started-
|
|
12
|
-
import { gn as splitGetAttStringForm, t as ReplacementRulesRegistry } from "./replacement-rules-
|
|
13
|
-
import {
|
|
9
|
+
import { Cn as injectiveKey, Jt as maskerOrIdentity, Sn as withPasteableAwsProfile, cn as UNREPRODUCIBLE_LOCK_CLAUSE, fn as formatLockExpiry, ln as buildForceUnlockCommand, mn as formatLockOwner, pn as formatLockOperation } from "./resource-deadline-DaeYacij.js";
|
|
10
|
+
import { t as expectedOwnerParam } from "./expected-bucket-owner-CSHY4LqK.js";
|
|
11
|
+
import { zt as acceptedCreateOnlyDropsOf } from "./delete-started-BFRg37SF.js";
|
|
12
|
+
import { gn as splitGetAttStringForm, t as ReplacementRulesRegistry } from "./replacement-rules-CV85H47l.js";
|
|
13
|
+
import { k as unsettledPropertiesOf } from "./restore-source-guard-VmeqbJUM.js";
|
|
14
14
|
import { randomBytes, randomUUID } from "node:crypto";
|
|
15
15
|
import { AbortMultipartUploadCommand, DeleteObjectCommand, GetObjectCommand, HeadObjectCommand, NoSuchKey, PutObjectCommand, S3Client, S3ServiceException } from "@aws-sdk/client-s3";
|
|
16
16
|
import { CloudControlClient, GetResourceCommand, ListResourcesCommand } from "@aws-sdk/client-cloudcontrol";
|
|
@@ -2024,7 +2024,7 @@ async function resolveStateBucketWithDefaultAndSource(cliBucket, region, legacyF
|
|
|
2024
2024
|
const { GetCallerIdentityCommand } = await import("@aws-sdk/client-sts");
|
|
2025
2025
|
const { S3Client, HeadBucketCommand, ListObjectsV2Command } = await import("@aws-sdk/client-s3");
|
|
2026
2026
|
const { getAwsClients } = await import("./aws-clients-DOkPjjAW.js").then((n) => n.n);
|
|
2027
|
-
const { expectedOwnerParam, recordResolvedAccountId } = await import("./expected-bucket-owner-
|
|
2027
|
+
const { expectedOwnerParam, recordResolvedAccountId } = await import("./expected-bucket-owner-CSHY4LqK.js").then((n) => n.n);
|
|
2028
2028
|
const probeDeps = {
|
|
2029
2029
|
HeadBucketCommand,
|
|
2030
2030
|
ListObjectsV2Command,
|
|
@@ -4538,6 +4538,9 @@ const IAM_ROLE_POLICY_TYPES = /* @__PURE__ */ new Set([
|
|
|
4538
4538
|
"AWS::IAM::RolePolicy",
|
|
4539
4539
|
"AWS::IAM::ManagedPolicy"
|
|
4540
4540
|
]);
|
|
4541
|
+
function runsCodeDuringDeploy(type) {
|
|
4542
|
+
return type === "AWS::CloudFormation::CustomResource" || type === "AWS::CloudFormation::Stack" || typeof type === "string" && type.startsWith("Custom::");
|
|
4543
|
+
}
|
|
4541
4544
|
var DagBuilder = class {
|
|
4542
4545
|
logger = getLogger().child("DagBuilder");
|
|
4543
4546
|
parser = new TemplateParser();
|
|
@@ -4559,6 +4562,8 @@ var DagBuilder = class {
|
|
|
4559
4562
|
const parameterNames = new Set(Object.keys(template.Parameters ?? {}));
|
|
4560
4563
|
let edgeCount = 0;
|
|
4561
4564
|
let relaxedEdgeCount = 0;
|
|
4565
|
+
let keptEdgeCount = 0;
|
|
4566
|
+
const relaxable = [];
|
|
4562
4567
|
for (const logicalId of resourceIds) {
|
|
4563
4568
|
const resource = this.parser.getResource(template, logicalId);
|
|
4564
4569
|
if (!resource) continue;
|
|
@@ -4569,9 +4574,11 @@ var DagBuilder = class {
|
|
|
4569
4574
|
}
|
|
4570
4575
|
const skip = this.options.relaxCdkVpcDefensiveDeps ? defensiveDependsOnToSkip(resource, template) : null;
|
|
4571
4576
|
for (const depId of dependencies) {
|
|
4572
|
-
if (skip?.has(depId)) {
|
|
4573
|
-
|
|
4574
|
-
|
|
4577
|
+
if (skip?.has(depId) && graph.hasNode(depId)) {
|
|
4578
|
+
relaxable.push({
|
|
4579
|
+
from: depId,
|
|
4580
|
+
to: logicalId
|
|
4581
|
+
});
|
|
4575
4582
|
continue;
|
|
4576
4583
|
}
|
|
4577
4584
|
if (graph.hasNode(depId)) {
|
|
@@ -4582,7 +4589,27 @@ var DagBuilder = class {
|
|
|
4582
4589
|
else this.logger.warn(`Resource ${displayIdent(logicalId)} depends on ${displayIdent(depId)}, but ${displayIdent(depId)} not found in template`);
|
|
4583
4590
|
}
|
|
4584
4591
|
}
|
|
4592
|
+
if (relaxable.length > 0) {
|
|
4593
|
+
for (const { from, to } of relaxable) graph.setEdge(from, to);
|
|
4594
|
+
const upstreamOfCode = /* @__PURE__ */ new Set();
|
|
4595
|
+
for (const id of resourceIds) {
|
|
4596
|
+
if (!runsCodeDuringDeploy(this.parser.getResource(template, id)?.Type)) continue;
|
|
4597
|
+
for (const dep of this.getAllDependencies(graph, id)) upstreamOfCode.add(dep);
|
|
4598
|
+
}
|
|
4599
|
+
for (const { from, to } of relaxable) {
|
|
4600
|
+
if (upstreamOfCode.has(to)) {
|
|
4601
|
+
keptEdgeCount++;
|
|
4602
|
+
edgeCount++;
|
|
4603
|
+
this.logger.debug(safeMsg`Kept CDK-defensive DependsOn edge from ${from} to ${to}: ${to} is upstream of a custom resource or nested stack`);
|
|
4604
|
+
continue;
|
|
4605
|
+
}
|
|
4606
|
+
graph.removeEdge(from, to);
|
|
4607
|
+
relaxedEdgeCount++;
|
|
4608
|
+
this.logger.debug(`Skipped CDK-defensive DependsOn edge from ${displayIdent(from)} to ${displayIdent(to)} (default; opt out with --no-aggressive-vpc-parallel)`);
|
|
4609
|
+
}
|
|
4610
|
+
}
|
|
4585
4611
|
if (relaxedEdgeCount > 0) this.logger.info(`[DagBuilder] Relaxed ${relaxedEdgeCount} CDK-defensive DependsOn edge(s) (default; opt out with --no-aggressive-vpc-parallel)`);
|
|
4612
|
+
if (keptEdgeCount > 0) this.logger.debug(safeMsg`[DagBuilder] Kept ${keptEdgeCount} CDK-defensive DependsOn edge(s) upstream of a custom resource or nested stack`);
|
|
4586
4613
|
this.logger.debug(`Dependency graph built: ${resourceIds.length} nodes, ${edgeCount} edges`);
|
|
4587
4614
|
edgeCount += this.addCustomResourcePolicyEdges(graph, template);
|
|
4588
4615
|
edgeCount += this.addLambdaVpcEdges(graph, template);
|
|
@@ -5612,4 +5639,4 @@ function principalOwnWriteMembers(properties, reads, removed) {
|
|
|
5612
5639
|
}
|
|
5613
5640
|
|
|
5614
5641
|
export { MIGRATE_TMP_PREFIX as $, formatDockerLoginError as A, resolveApp as B, redactDockerArgvValues as C, warnFinchArgvExposure as D, partitionSensitiveEnv as E, Synthesizer as F, resolveStateBucketWithDefaultAndSource as G, resolveCaptureObservedState as H, synthesisStatusMessage as I, resolveUseCdkBootstrapAssets as J, resolveStateBucketWithSource as K, getDefaultStateBucketName as L, runDockerForeground as M, runDockerStreaming as N, isDockerClientEnvKey as O, abortInFlightMultipartUploads as P, CFN_TEMPLATE_URL_LIMIT as Q, getLegacyStateBucketName as R, redactedDockerCause as S, finchSecretArgvRefusal as T, resolveSkipPrefix as U, resolveAutoAssetStorage as V, resolveStateBucketWithDefault as W, warnDeprecatedNoPrefixCliFlag as X, stateBucketExistenceConfirmed as Y, CFN_TEMPLATE_BODY_LIMIT as Z, resolveDockerContextDirectory as _, principalOwnWriteMembers as a, bindLegacyStackAssetParameters as at, describeDockerFailure as b, stringListMember as c, predictedAutoCreatedAssetMode as ct, DagBuilder as d, processStackMessages as dt, findLargeInlineResources as et, LockManager as f, setChildProcessAwsEnv as ft, buildDockerImage as g, WorkGraph as h, mergeDeclaredEntries as i, StageLoadError as it, getDockerCmd as j, isMalformedEnvKey as k, DiffCalculator as l, prepareLegacyStackAssets as lt, AssetPublisher as m, injectedAwsRegionValue as mt, declaredStringList as n, refuseFailedLookups as nt, settleOwnWriteMembers as o, createLegacyAssetParameterBinder as ot, isLockInfoExpired as p, injectAwsRegion as pt, resolveUpdatePolicy as q, inlinePoliciesAreDeclared as r, AssemblyReader as rt, stringListIsDeclared as s, legacyPlanAssetCount as st, declaredInlinePolicies as t, uploadCfnTemplate as tt, LEGACY_HANDLE_HEAL_REASON as u, CdkToolkitBucketMissingError as ut, describeDockerCapturedOutput as v, dockerSpawnEnvWithSensitive as w, redactedCause as x, describeDockerExecFailure as y, loadCdkJson as z };
|
|
5615
|
-
//# sourceMappingURL=settle-own-write-members-
|
|
5642
|
+
//# sourceMappingURL=settle-own-write-members-DzLGW7et.js.map
|