@cdkd/cli 0.350.3 → 0.351.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-CqrM5nDS.js → ambient-client-defaults-BdOY70NL.js} +3 -3
- package/dist/{ambient-client-defaults-CqrM5nDS.js.map → ambient-client-defaults-BdOY70NL.js.map} +1 -1
- package/dist/{asg-provider-hZ4nyheM.js → asg-provider-BhktjcGM.js} +6 -6
- package/dist/{asg-provider-hZ4nyheM.js.map → asg-provider-BhktjcGM.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{custom-resource-runtime-CcClWTa-.js → custom-resource-runtime-BkEa9HAa.js} +6 -6
- package/dist/{custom-resource-runtime-CcClWTa-.js.map → custom-resource-runtime-BkEa9HAa.js.map} +1 -1
- package/dist/db-associated-roles-DZ1mRuUA.js +74 -0
- package/dist/db-associated-roles-DZ1mRuUA.js.map +1 -0
- package/dist/delete-started-ByP_GmQ7.js +887 -0
- package/dist/delete-started-ByP_GmQ7.js.map +1 -0
- package/dist/{deploy-engine-Sw2eta-t.js → deploy-engine-BZNCiQ-B.js} +748 -313
- package/dist/deploy-engine-BZNCiQ-B.js.map +1 -0
- package/dist/{diff-calculator-BvN5rnLe.js → diff-calculator-vaWjL6sQ.js} +24 -15
- package/dist/{diff-calculator-BvN5rnLe.js.map → diff-calculator-vaWjL6sQ.js.map} +1 -1
- package/dist/{ec2-termination-protection-BIIHrzUa.js → ec2-termination-protection-DpNlPDar.js} +6 -6
- package/dist/{ec2-termination-protection-BIIHrzUa.js.map → ec2-termination-protection-DpNlPDar.js.map} +1 -1
- package/dist/{ecr-uri-CQ_BCOjX.js → ecr-uri-Cd_x_ldh.js} +2 -2
- package/dist/{ecr-uri-CQ_BCOjX.js.map → ecr-uri-Cd_x_ldh.js.map} +1 -1
- package/dist/{expected-bucket-owner-DR9qK772.js → expected-bucket-owner-Ba9LshiP.js} +2 -2
- package/dist/{expected-bucket-owner-DR9qK772.js.map → expected-bucket-owner-Ba9LshiP.js.map} +1 -1
- package/dist/{iam-role-provider-i52A7e_4.js → iam-role-provider-CL-dMrn4.js} +7 -7
- package/dist/{iam-role-provider-i52A7e_4.js.map → iam-role-provider-CL-dMrn4.js.map} +1 -1
- package/dist/{image-plan-DOnhBOIa.js → image-plan-C0B05bHS.js} +8 -8
- package/dist/{image-plan-DOnhBOIa.js.map → image-plan-C0B05bHS.js.map} +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-Ce9kvuBB.js → logger-DpAGzSvV.js} +2 -2
- package/dist/{logger-Ce9kvuBB.js.map → logger-DpAGzSvV.js.map} +1 -1
- package/dist/{neptune-provider-Bir1AdqM.js → neptune-provider-CJuYc8IB.js} +7 -7
- package/dist/{neptune-provider-Bir1AdqM.js.map → neptune-provider-CJuYc8IB.js.map} +1 -1
- package/dist/{program-DAAu8qUr.js → program-CUCE3lAz.js} +180 -51
- package/dist/program-CUCE3lAz.js.map +1 -0
- package/dist/{provider-classes-CM8Txuvb.js → provider-classes-YUbciPtV.js} +317 -65
- package/dist/provider-classes-YUbciPtV.js.map +1 -0
- package/dist/{rds-provider-DmVAU_Mv.js → rds-provider-CbmVLapS.js} +20 -691
- package/dist/rds-provider-CbmVLapS.js.map +1 -0
- package/dist/{read-replica-Bmq3NTlC.js → read-replica-BQ5dRRmm.js} +3 -3
- package/dist/{read-replica-Bmq3NTlC.js.map → read-replica-BQ5dRRmm.js.map} +1 -1
- package/dist/{replacement-rules-lOM1aGPr.js → replacement-rules-DZphESoc.js} +60 -7
- package/dist/replacement-rules-DZphESoc.js.map +1 -0
- package/dist/{resource-deadline-1VcUPyH4.js → resource-deadline-_gEj2hxY.js} +45 -5
- package/dist/resource-deadline-_gEj2hxY.js.map +1 -0
- package/dist/{run-cli-BlVizMfM.js → run-cli-bzXhjxpe.js} +2 -2
- package/dist/{run-cli-BlVizMfM.js.map → run-cli-bzXhjxpe.js.map} +1 -1
- package/dist/{update-removal-BOue-bJm.js → update-removal-DOUUID3B.js} +5 -5
- package/dist/{update-removal-BOue-bJm.js.map → update-removal-DOUUID3B.js.map} +1 -1
- package/dist/{version-DINEmsQH.js → version-DTKcNNDa.js} +2 -2
- package/dist/{version-DINEmsQH.js.map → version-DTKcNNDa.js.map} +1 -1
- package/package.json +3 -3
- package/dist/db-instance-modify-retry-CsIlFgIJ.js +0 -116
- package/dist/db-instance-modify-retry-CsIlFgIJ.js.map +0 -1
- package/dist/delete-started-C0g7PYI-.js +0 -191
- package/dist/delete-started-C0g7PYI-.js.map +0 -1
- package/dist/deploy-engine-Sw2eta-t.js.map +0 -1
- package/dist/program-DAAu8qUr.js.map +0 -1
- package/dist/provider-classes-CM8Txuvb.js.map +0 -1
- package/dist/rds-provider-DmVAU_Mv.js.map +0 -1
- package/dist/replacement-rules-lOM1aGPr.js.map +0 -1
- package/dist/resource-deadline-1VcUPyH4.js.map +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { A as displayStackName, C as STACK_REF_MAX_CODE_POINTS, D as displayAwsMessage, I as terminalSafe, L as truncateCodePoints, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, T as asIsMessage, _ as shellQuote, a as UNSHOWABLE_VALUE, c as deployReplaceCommand, d as pasteableCommand, f as physicalIdShownBesideCommand, g as shellBoundedDisplay, h as quotedOrDescribed, i as SHELL_ACTIVE_WHY, j as isPasteableIdent, k as displaySafe, m as proseQuoted, o as cdkdRemedy, p as plainOrDescribed, s as commandHole, t as getCdkdVersion, u as isInertUnquoted, v as withheldTargetClause, w as UNRENDERABLE } from "./version-
|
|
2
|
-
import { $ as withStackScope, A as configStringRefusal, C as fallbackNamePropertyFor, D as coerceCfnInteger, E as coerceCfnBoolean, F as requireConfigString, G as currentNameGeneration, H as looksLikeCdkdGeneratedName, J as getCurrentStackName, K as getCurrentSkipPrefix, M as replayWarn, O as configBooleanRefusal, P as requireConfigObject, Q as withSkipPrefix, S as explicitNamePropertyFor, T as withoutGeneratedFallbackName, V as generateResourceNameWithFallback, W as stackInstanceNameSuffix, X as isNameGeneration, Z as withNameGeneration, _ as currentLogLineMasker, b as alternateNamePropertiesFor, c as VERBOSE_POINTER, et as withStackScopeBeforeStateRead, g as verbosePointerTail, h as verbosePointerSentence, j as readConfigString, k as configIntegerRefusal, m as verboseAwareText, n as getLogger, p as safeStringify, q as getCurrentStackInstanceId, u as describeAwsFailure, v as installLogLineMaskerSource, w as generatedNameFor, x as applyDefaultNameForFallback, y as getLiveRenderer } from "./logger-
|
|
3
|
-
import { A as stripControlChars, C as isNameCooldownError, F as isAmbiguousOutcomeError, G as markRedactedCause, H as isMarkedNonRetryable, J as DynamicReferenceRegionAmbiguousError, K as wrapMaskedAwsError, L as isIamPropagationError, O as relayedNameCollision, P as isAmbiguousCcHandlerErrorCode, Q as AccountIdUnavailableError, S as isNameCollisionErrorFrom, T as isReplayedNameCollisionFrom, U as isThrottlingError, W as markNonRetryable, X as MalformedProducerRecordRefusalError, Y as IntrinsicResolutionRefusalError, Z as SelectOutOfBoundsRefusalError, _ as ResourceUpdateNotSupportedError, a as normalizeAwsError, at as ProvisioningError, b as isUpdateUnsupportedError, et as CdkdError, i as credentialFingerprint, k as escapeRegExp$1, m as ExportInUseError, n as ambientCredentialConfig, nt as DeploymentNotApprovedError, ot as ResourceTimeoutError, q as CrossAccountSecretRefusalError, r as clientDefaultsFor, st as StateError, t as ambientClientDefaults, w as isRecreateRetryableError, z as isTransientServerError } from "./ambient-client-defaults-
|
|
1
|
+
import { A as displayStackName, C as STACK_REF_MAX_CODE_POINTS, D as displayAwsMessage, I as terminalSafe, L as truncateCodePoints, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, T as asIsMessage, _ as shellQuote, a as UNSHOWABLE_VALUE, c as deployReplaceCommand, d as pasteableCommand, f as physicalIdShownBesideCommand, g as shellBoundedDisplay, h as quotedOrDescribed, i as SHELL_ACTIVE_WHY, j as isPasteableIdent, k as displaySafe, m as proseQuoted, o as cdkdRemedy, p as plainOrDescribed, s as commandHole, t as getCdkdVersion, u as isInertUnquoted, v as withheldTargetClause, w as UNRENDERABLE } from "./version-DTKcNNDa.js";
|
|
2
|
+
import { $ as withStackScope, A as configStringRefusal, C as fallbackNamePropertyFor, D as coerceCfnInteger, E as coerceCfnBoolean, F as requireConfigString, G as currentNameGeneration, H as looksLikeCdkdGeneratedName, J as getCurrentStackName, K as getCurrentSkipPrefix, M as replayWarn, O as configBooleanRefusal, P as requireConfigObject, Q as withSkipPrefix, S as explicitNamePropertyFor, T as withoutGeneratedFallbackName, V as generateResourceNameWithFallback, W as stackInstanceNameSuffix, X as isNameGeneration, Z as withNameGeneration, _ as currentLogLineMasker, b as alternateNamePropertiesFor, c as VERBOSE_POINTER, et as withStackScopeBeforeStateRead, g as verbosePointerTail, h as verbosePointerSentence, j as readConfigString, k as configIntegerRefusal, m as verboseAwareText, n as getLogger, p as safeStringify, q as getCurrentStackInstanceId, u as describeAwsFailure, v as installLogLineMaskerSource, w as generatedNameFor, x as applyDefaultNameForFallback, y as getLiveRenderer } from "./logger-DpAGzSvV.js";
|
|
3
|
+
import { A as stripControlChars, C as isNameCooldownError, F as isAmbiguousOutcomeError, G as markRedactedCause, H as isMarkedNonRetryable, J as DynamicReferenceRegionAmbiguousError, K as wrapMaskedAwsError, L as isIamPropagationError, O as relayedNameCollision, P as isAmbiguousCcHandlerErrorCode, Q as AccountIdUnavailableError, S as isNameCollisionErrorFrom, T as isReplayedNameCollisionFrom, U as isThrottlingError, W as markNonRetryable, X as MalformedProducerRecordRefusalError, Y as IntrinsicResolutionRefusalError, Z as SelectOutOfBoundsRefusalError, _ as ResourceUpdateNotSupportedError, a as normalizeAwsError, at as ProvisioningError, b as isUpdateUnsupportedError, et as CdkdError, i as credentialFingerprint, k as escapeRegExp$1, m as ExportInUseError, n as ambientCredentialConfig, nt as DeploymentNotApprovedError, ot as ResourceTimeoutError, q as CrossAccountSecretRefusalError, r as clientDefaultsFor, st as StateError, t as ambientClientDefaults, w as isRecreateRetryableError, z as isTransientServerError } from "./ambient-client-defaults-BdOY70NL.js";
|
|
4
4
|
import { a as getAssumedRoleCredentials, c as setAssumedRoleCredentials, d as quietS3Logger, f as ambientRegion, i as awsEndpointOverrideUrl, n as awsClientDefaults, o as getPreAssumeEnvCredentials, r as awsEndpointOverrideActive, t as SECOND_ROLE_PUBLISH_REFUSAL, u as setPreAssumeEnvCredentials } from "./aws-client-defaults-DAebi99J.js";
|
|
5
5
|
import { l as s3ClientDefaults, r as getAwsClients } from "./aws-clients-DOkPjjAW.js";
|
|
6
|
-
import { A as describeJsonParseFailure, C as PhaseClock, E as recordPhase, M as parseFailureDebugDetail, N as parseJsonNamingNoBody, O as timePhase, P as utf8ByteLength, S as CREATE_ONLY_PATHS_SNAPSHOT, T as phaseTimingsEnabled, _ as hasNoRegistrySchema, a as reDisableInstanceApiTermination, b as IAM_PROPAGATION_MAX_DELAY_MS, c as unchangedBehindSecretReference, d as getCreateOnlyPropertyPaths, f as isIntrinsicShaped, g as describeTypeWithThrottleRetry, h as parseCreateOnlyPropertyPointers, i as observeThenDisableInstanceApiTermination, j as jsonParseFailureStandIn, k as timePhaseSync, l as cachedCreateOnlyPropertyPaths, m as templateResourceTypes, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, p as prefetchCreateOnlyPropertyPaths, r as isTerminationProtectionPropagationError, v as isAwsEmulatorRegistryMiss, w as phaseScopeForStack, x as withRetry, y as reportAwsEmulatorRegistryMiss } from "./ec2-termination-protection-
|
|
6
|
+
import { A as describeJsonParseFailure, C as PhaseClock, E as recordPhase, M as parseFailureDebugDetail, N as parseJsonNamingNoBody, O as timePhase, P as utf8ByteLength, S as CREATE_ONLY_PATHS_SNAPSHOT, T as phaseTimingsEnabled, _ as hasNoRegistrySchema, a as reDisableInstanceApiTermination, b as IAM_PROPAGATION_MAX_DELAY_MS, c as unchangedBehindSecretReference, d as getCreateOnlyPropertyPaths, f as isIntrinsicShaped, g as describeTypeWithThrottleRetry, h as parseCreateOnlyPropertyPointers, i as observeThenDisableInstanceApiTermination, j as jsonParseFailureStandIn, k as timePhaseSync, l as cachedCreateOnlyPropertyPaths, m as templateResourceTypes, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, p as prefetchCreateOnlyPropertyPaths, r as isTerminationProtectionPropagationError, v as isAwsEmulatorRegistryMiss, w as phaseScopeForStack, x as withRetry, y as reportAwsEmulatorRegistryMiss } from "./ec2-termination-protection-DpNlPDar.js";
|
|
7
7
|
import { i as sameRegion, n as canonicalizeRegion, r as derivePartitionAndUrlSuffix } from "./aws-partition-DA0r2sr-.js";
|
|
8
|
-
import { t as expectedOwnerParam } from "./expected-bucket-owner-
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { $t as
|
|
12
|
-
import { C as
|
|
8
|
+
import { t as expectedOwnerParam } from "./expected-bucket-owner-Ba9LshiP.js";
|
|
9
|
+
import { B as refusalTypeShown, Bt as RETRY_AUXILIARY_OWNER, Ct as isInterruptedWaitError, Dt as compositeIdSeparatorRefusal, Ft as createMaskedRetryLogger, G as isMarkedNotGone, H as resolveExplicitPhysicalId, It as isSecretDerivedValue, J as deleteWithProtectionCompensation, Jt as markAuxiliaryFailure, K as markNotGone, Kt as isAuxiliaryFailure, L as isQuotableImportValue, Lt as maskDeep, M as withoutServerErrorRetries, Mt as segmentAfterAnchor, Nt as stateOrphanRecordRemedy, Pt as createMaskedLogSinks, R as normalizeAwsTagsToCfn, Rt as maskerOrIdentity, Tt as canonicalizeRoute53QueryName, U as RESOURCE_NOT_FOUND, Ut as createdBeforeFailure, W as assertRegionMatch, Wt as createdResourceIdentityBeforeFailure, X as observeThenDisableProtection, Yt as markCreatedBeforeFailure, _t as pasteableAwsCommand, an as recoveryCommandFlags, c as clearCreatedReport, cn as DEFAULT_STATE_PREFIX, ct as protectionFlipKey, dt as ElapsedBudgetRegistry, f as retractCreatedResource, fn as producerRecordKey, ft as monotonicNowMs, hn as withPasteableAwsProfile, jt as resourceTypeShown, kt as logicalIdShown, l as collectCreatedResources, ln as injectiveKey, lt as runDeleteAttempt, n as prepareRemovalForUpdate, o as withoutInjectedRemovals, on as sanitizeRecoveryValue, ot as ProtectionFlipRegistry, pt as DELETION_PROTECTION_DOC_POINTER, q as compensateProtectionFlip, qt as isAuxiliaryMarkOf, r as removalWarning, s as CreatedResourceSink, sn as CUSTOM_RESOURCE_RESPONSE_PREFIX, st as isTerminalDeleteFailure, u as reportCreatedResource, ut as ElapsedBudget, vt as protectedReplacementAdvice, wt as startInterruptWatch, x as withUnchangedSecretPrincipalLists, z as quotedRemedyLogicalId, zt as withDerivedNameMasks } from "./update-removal-DOUUID3B.js";
|
|
10
|
+
import { Ct as isReadableBag, Dt as skippedOutputsCarriedFrom, Et as shouldRetainResource, Ot as stackInstanceIdCarriedFrom, St as importableOutputs, Tt as orphansCarriedFrom, _t as acceptedCreateOnlyDropsOf, gt as slowCcOperationTimeoutMs, ht as dbInstanceAttributes, i as dbClusterAttributes, n as isRefusedByName, r as markDeleteStarted, t as isDeleteStarted, vt as describeRegionValueKind, wt as orphansAfterRollback, xt as importableOutputKeys, yt as exportNamesCarriedFrom } from "./delete-started-ByP_GmQ7.js";
|
|
11
|
+
import { $t as recordInheritedParameterValue, A as witnessNormalize, An as recordNoEchoAttributeValues, At as withoutPhysicalNameCopies, B as redactionClaimOf, Cn as noEchoParameterPlaintextsOf, Ct as withLegacyOverlapScan, D as recordedNoEchoValuesOf, Dn as recordFreshNoEchoValuesIn, Dt as replaceEmbeddedPhysicalNameRewrites, E as recordPassedNoEchoParameters, En as recordDerivedMaskOnlyValue, Et as repairPhysicalNameCopyLeaves, F as markLeafCertifiedBag, G as foldRecording, Gt as recordTakenIfBranch, H as mixedLiteralAnswered, Ht as splitOutsideDynamicReferences, I as markSameGenerationBag, In as isDynamicReferenceString, It as secretRerenderPairs, J as hasPassProvenance, Jt as templateRereadsAccountId, K as openRecordingScope, Kt as inheritedPseudoValue, L as mergeResolvedPairs, Ln as isSingleDynamicReferenceToken, M as carryRedactionMarks, Mn as recordProvenPublicExpression, Mt as DYNAMIC_REFERENCE_TOKEN_SCAN, N as intrinsicLeafResolutionOf, Nn as wholeStringLeavesOf, Nt as dynamicReferenceTokens, O as replaceAtCoordinates, Ot as scrubResourceRecord, P as isSameGenerationBag, Pn as withoutNoEchoParameterEntries, Q as recordReferenceResolution, Qt as recordInheritedParameterRead, R as recordIntrinsicLeafResolution, Rn as maskMatchSpans, S as noEchoParametersReadBy, Sn as markNoEchoParameterClass, St as replaceWholeLeaves, Tt as repairEmbeddedPhysicalNamesTowards, U as withLegacyMixedScan, Ut as standsForInheritedSecret, V as resolvedPlaintextOf, Vt as rereadParameterExpression, W as redactForState, Wt as recordDroppedArrayElements, X as passReadVersionsFor, Xt as inheritedParameterExpression, Y as passProvenanceFor, Yt as inheritNestedStackParameterAssociations, Z as recordReferenceProvenanceEntry, Zt as inheritedRenderedToken, _ as noEchoComparison, _n as freshNoEchoValuesOf, _t as maskSecretsInText, an as recordRecoverableMaskedOutput, at as literalSplitDelimitersOf, bn as isScopedSecretVerdict, bt as legacyReferenceLeavesOnly, c as parseLambdaFunctionAddress, ct as recordLogOnlyParameterValue, d as canonicalJson$5, dn as crossStackSourceKey, dt as shareLogOnlyValues, en as redactInheritedParameterValue, et as carryLogOnlyValues, f as isMarkedCoordinate, fn as recordCrossStackExpression, ft as unionOfSecretBags, g as maskedLeafCoordinatesOf, gn as contradictProvenPublicExpression, gt as maskSecretsInError, h as maskWholeValue, hn as carryFreshNoEchoMark, ht as maskRecordedSecretsInText, in as freshNoEchoLeafPositions, it as hasMaskableValues, jn as recordNoEchoParameterFreshValue, jt as spanNamesResolvableService, k as valueAtCoordinate, kt as withPhysicalNameCopies, ln as recordPhysicalNameCopy, lt as recordLogOnlySplitFragments, m as maskReadbackAtCoordinates, mn as carriesSecretMask, mt as errorCauseChain, nn as carriesFreshNoEchoValue, nt as createUnionSecretMasker, on as recoverMaskedOutput, p as maskAtCoordinates, pn as splitGetAttStringForm, pt as createSecretMasker, q as recordSecretResolution, qt as recordInheritedPseudoParameters, rn as embedsFreshNoEchoValue, rt as hasLogOnlyValues, sn as physicalNameCopiesOf, st as printingCorpusOf, t as ReplacementRulesRegistry, tn as withdrawRenderedParameterSpelling, tt as carryLogOnlyValuesCarriedBy, u as canonicalCoordinates, un as recordNestedStackParameterExpressions, ut as recordLogOnlyValue, v as noEchoCoordinatesOf, vn as isMaskOnlyPlaintext, vt as differingStringLeaves, w as readbackPathFor, wn as pinScopedSecretVerdict, wt as embeddedPhysicalNameRewrites, x as noEchoParameterNodesAt, xn as isSecretExpressionByVerdictOrSpelling, xt as overlapRuleAnswered, y as noEchoLeavesOf, yn as isNoEchoParameterPlaintext, yt as legacyLeavesWithoutMask, z as recordIntrinsicLeafResolutionAs, zt as arrayPairsWhateverDrops } from "./replacement-rules-DZphESoc.js";
|
|
12
|
+
import { C as unsettledItemsField, D as withUnsettledItems, E as unsettledPropertiesOf, O as withUnsettledProperties, S as unsettledContextOf, T as unsettledItemsTopKey, c as refuseRestoreFromItself, f as planTagDiff, g as tagPlanWarning, i as withResourceDeadline, k as withoutUnsettledProperties, m as refuseMalformedDesiredTags, n as enclosingDeadlineRemainingMs, p as readTagList, r as whileEnclosingDeadlinesPaused, t as enclosingDeadlineExpired, w as unsettledItemsOf, x as isUsableAttemptedName, y as definedAttributes } from "./resource-deadline-_gEj2hxY.js";
|
|
13
13
|
import { createHash, randomUUID, timingSafeEqual } from "node:crypto";
|
|
14
14
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
15
15
|
import { CreateBucketCommand, DeleteObjectCommand, DeleteObjectsCommand, GetBucketLifecycleConfigurationCommand, GetBucketLocationCommand, GetBucketReplicationCommand, GetObjectCommand, HeadBucketCommand, HeadObjectCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchKey, PutBucketEncryptionCommand, PutBucketLifecycleConfigurationCommand, PutBucketPolicyCommand, PutObjectCommand, PutPublicAccessBlockCommand, S3Client } from "@aws-sdk/client-s3";
|
|
@@ -82,7 +82,7 @@ async function resolveBucketRegion(bucketName, opts = {}) {
|
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
84
|
try {
|
|
85
|
-
const { expectedOwnerParam } = await import("./expected-bucket-owner-
|
|
85
|
+
const { expectedOwnerParam } = await import("./expected-bucket-owner-Ba9LshiP.js").then((n) => n.n);
|
|
86
86
|
return (await client.send(new GetBucketLocationCommand({
|
|
87
87
|
Bucket: bucketName,
|
|
88
88
|
...await expectedOwnerParam(client)
|
|
@@ -3354,6 +3354,10 @@ function parseRollbackJournal(bodyString, stackName) {
|
|
|
3354
3354
|
});
|
|
3355
3355
|
}
|
|
3356
3356
|
}
|
|
3357
|
+
for (const field of ["previousDependencies", "templateDependencies"]) {
|
|
3358
|
+
const lists = seg[field];
|
|
3359
|
+
if (lists !== void 0 && (typeof lists !== "object" || lists === null || Array.isArray(lists) || !Object.values(lists).every((list) => Array.isArray(list) && list.every((id) => typeof id === "string")))) refuseMalformed(shownStack, `segments[${s}].${field} must map logical ids to string arrays when present.`);
|
|
3360
|
+
}
|
|
3357
3361
|
const prevOut = seg["previousOutputs"];
|
|
3358
3362
|
if (prevOut !== void 0) {
|
|
3359
3363
|
const outputs = typeof prevOut === "object" && prevOut !== null && !Array.isArray(prevOut) ? prevOut["outputs"] : void 0;
|
|
@@ -5506,6 +5510,7 @@ const PROPERTY_COVERAGE_BY_TYPE = /* @__PURE__ */ new Map([
|
|
|
5506
5510
|
"RuntimePlatform",
|
|
5507
5511
|
"Tags",
|
|
5508
5512
|
"TaskRoleArn",
|
|
5513
|
+
"TrustedExecutionConfiguration",
|
|
5509
5514
|
"Volumes"
|
|
5510
5515
|
]),
|
|
5511
5516
|
sdkUnwired: /* @__PURE__ */ new Map([["InferenceAccelerators", "AWS Elastic Inference end-of-life 2024-04; use AWS Inferentia / Trainium accelerator instance families instead"]]),
|
|
@@ -8682,34 +8687,34 @@ function passedKey(passed) {
|
|
|
8682
8687
|
function isNestedStackRow(logicalId, walk) {
|
|
8683
8688
|
if (!Object.hasOwn(walk.resources, logicalId)) return false;
|
|
8684
8689
|
const definition = walk.resources[logicalId];
|
|
8685
|
-
return isPlainObject$
|
|
8690
|
+
return isPlainObject$8(definition) && definition["Type"] === "AWS::CloudFormation::Stack";
|
|
8686
8691
|
}
|
|
8687
8692
|
function getAttAttribute(operand, target) {
|
|
8688
8693
|
if (Array.isArray(operand)) return operand.length === 2 && typeof operand[1] === "string" ? operand[1] : void 0;
|
|
8689
8694
|
return typeof operand === "string" ? operand.slice(target.length + 1) : void 0;
|
|
8690
8695
|
}
|
|
8691
8696
|
function rowParameters(definition) {
|
|
8692
|
-
const properties = isPlainObject$
|
|
8697
|
+
const properties = isPlainObject$8(definition) ? definition["Properties"] : void 0;
|
|
8693
8698
|
if (properties === void 0) return {};
|
|
8694
|
-
if (!isPlainObject$
|
|
8699
|
+
if (!isPlainObject$8(properties)) return "unknown";
|
|
8695
8700
|
const parameters = properties["Parameters"];
|
|
8696
8701
|
if (parameters === void 0) return {};
|
|
8697
|
-
if (!isPlainObject$
|
|
8702
|
+
if (!isPlainObject$8(parameters) || intrinsicKey(parameters) !== void 0) return "unknown";
|
|
8698
8703
|
return parameters;
|
|
8699
8704
|
}
|
|
8700
8705
|
function childParameterInputs(template, passed) {
|
|
8701
|
-
const declared = isPlainObject$
|
|
8706
|
+
const declared = isPlainObject$8(template.Parameters) ? template.Parameters : {};
|
|
8702
8707
|
const inputs = /* @__PURE__ */ new Map();
|
|
8703
8708
|
for (const name of Object.keys(declared)) {
|
|
8704
8709
|
const definition = declared[name];
|
|
8705
|
-
if (isPlainObject$
|
|
8710
|
+
if (isPlainObject$8(definition) && declaresNoEcho(definition)) inputs.set(name, { kind: "secret" });
|
|
8706
8711
|
else if (passed.has(name)) {
|
|
8707
8712
|
const passedClass = passed.get(name);
|
|
8708
8713
|
inputs.set(name, passedClass === "clean" ? {
|
|
8709
8714
|
kind: "value",
|
|
8710
8715
|
value: void 0
|
|
8711
8716
|
} : passedClass === "unknown" ? { kind: "unknown" } : { kind: "secret" });
|
|
8712
|
-
} else if (isPlainObject$
|
|
8717
|
+
} else if (isPlainObject$8(definition) && Object.hasOwn(definition, "Default") && !carriesSecretValue(definition["Default"], [])) inputs.set(name, {
|
|
8713
8718
|
kind: "value",
|
|
8714
8719
|
value: definition["Default"]
|
|
8715
8720
|
});
|
|
@@ -8726,7 +8731,7 @@ function closureClass(closure) {
|
|
|
8726
8731
|
return closure.unread ? "unread" : "clean";
|
|
8727
8732
|
}
|
|
8728
8733
|
async function childOutputClass(loaded, outputName, passed, chain, shared) {
|
|
8729
|
-
if (loaded === void 0 || !isPlainObject$
|
|
8734
|
+
if (loaded === void 0 || !isPlainObject$8(loaded.template)) return "unknown";
|
|
8730
8735
|
const scopeKey = JSON.stringify([loaded.identity, passedKey(passed)]);
|
|
8731
8736
|
const memoKey = JSON.stringify([scopeKey, outputName]);
|
|
8732
8737
|
const memo = shared.outputs.get(memoKey);
|
|
@@ -8739,8 +8744,8 @@ async function classifyChildOutput(loaded, outputName, passed, chain, shared, sc
|
|
|
8739
8744
|
if (++shared.steps > MAX_NESTED_OUTPUT_STEPS) return "unknown";
|
|
8740
8745
|
if (chain.includes(loaded.identity) || chain.length >= MAX_NESTED_OUTPUT_DEPTH) return "unknown";
|
|
8741
8746
|
const template = loaded.template;
|
|
8742
|
-
const output = (isPlainObject$
|
|
8743
|
-
if (!isPlainObject$
|
|
8747
|
+
const output = (isPlainObject$8(template.Outputs) ? template.Outputs : {})[outputName];
|
|
8748
|
+
if (!isPlainObject$8(output) || !Object.hasOwn(output, "Value")) return "unknown";
|
|
8744
8749
|
const scope = {
|
|
8745
8750
|
walk: newWalk({
|
|
8746
8751
|
template,
|
|
@@ -8812,7 +8817,7 @@ async function expressionClass(value, scope) {
|
|
|
8812
8817
|
return result;
|
|
8813
8818
|
};
|
|
8814
8819
|
if (Array.isArray(value)) return all(value);
|
|
8815
|
-
if (!isPlainObject$
|
|
8820
|
+
if (!isPlainObject$8(value)) return "clean";
|
|
8816
8821
|
const key = intrinsicKey(value);
|
|
8817
8822
|
if (key === void 0) return all(Object.values(value));
|
|
8818
8823
|
const operand = value[key];
|
|
@@ -8827,7 +8832,7 @@ async function expressionClass(value, scope) {
|
|
|
8827
8832
|
case "Fn::Sub": {
|
|
8828
8833
|
const text = Array.isArray(operand) ? operand[0] : operand;
|
|
8829
8834
|
if (typeof text !== "string") return worseOf("unknown", await expressionClass(operand, scope));
|
|
8830
|
-
const vars = Array.isArray(operand) && isPlainObject$
|
|
8835
|
+
const vars = Array.isArray(operand) && isPlainObject$8(operand[1]) ? operand[1] : {};
|
|
8831
8836
|
let result = text.includes("{{resolve:") ? "secret" : "clean";
|
|
8832
8837
|
result = worseOf(result, await all(Object.values(vars)));
|
|
8833
8838
|
for (const name of subPlaceholders(text)) {
|
|
@@ -8919,7 +8924,7 @@ async function classifyPassedParameters(parameters, sources) {
|
|
|
8919
8924
|
}
|
|
8920
8925
|
async function classifyPassed(parameters, sources, nested) {
|
|
8921
8926
|
const classes = /* @__PURE__ */ new Map();
|
|
8922
|
-
if (!isPlainObject$
|
|
8927
|
+
if (!isPlainObject$8(parameters)) return classes;
|
|
8923
8928
|
for (const [name, expression] of Object.entries(parameters)) {
|
|
8924
8929
|
let passedClass;
|
|
8925
8930
|
try {
|
|
@@ -8941,11 +8946,11 @@ function passedParameterClassesOf(bag) {
|
|
|
8941
8946
|
|
|
8942
8947
|
// src/deployment/masked-property-fingerprints/input-walk.ts
|
|
8943
8948
|
var UnknownInput = class extends Error {};
|
|
8944
|
-
function isPlainObject$
|
|
8949
|
+
function isPlainObject$8(value) {
|
|
8945
8950
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
8946
8951
|
}
|
|
8947
8952
|
const DYNAMIC_REFERENCE_OPEN = "{{resolve:";
|
|
8948
|
-
const NESTED_STACK_TYPE$
|
|
8953
|
+
const NESTED_STACK_TYPE$5 = "AWS::CloudFormation::Stack";
|
|
8949
8954
|
const NESTED_OUTPUT_PREFIX = "Outputs.";
|
|
8950
8955
|
function carriesSecretValue(value, corpora) {
|
|
8951
8956
|
if (carriesSecretMask(value)) return true;
|
|
@@ -8961,7 +8966,7 @@ function carriesSecretValue(value, corpora) {
|
|
|
8961
8966
|
return false;
|
|
8962
8967
|
}
|
|
8963
8968
|
function parameterInputsFor(args) {
|
|
8964
|
-
const declared = isPlainObject$
|
|
8969
|
+
const declared = isPlainObject$8(args.template.Parameters) ? args.template.Parameters : {};
|
|
8965
8970
|
const values = args.values ?? {};
|
|
8966
8971
|
const inputs = /* @__PURE__ */ new Map();
|
|
8967
8972
|
const bound = {};
|
|
@@ -8972,7 +8977,7 @@ function parameterInputsFor(args) {
|
|
|
8972
8977
|
continue;
|
|
8973
8978
|
}
|
|
8974
8979
|
const value = values[name];
|
|
8975
|
-
let secret = isPlainObject$
|
|
8980
|
+
let secret = isPlainObject$8(definition) && declaresNoEcho(definition) || carriesSecretValue(value, []);
|
|
8976
8981
|
if (!secret && args.nestedChild === true && args.supplied !== void 0) {
|
|
8977
8982
|
if (Object.hasOwn(args.supplied, name)) {
|
|
8978
8983
|
const passed = args.passedClasses?.get(name);
|
|
@@ -9029,10 +9034,10 @@ function intrinsicKey(value) {
|
|
|
9029
9034
|
const key = keys[0];
|
|
9030
9035
|
return key === "Ref" || key.startsWith("Fn::") ? key : void 0;
|
|
9031
9036
|
}
|
|
9032
|
-
const OPAQUE_ATTRIBUTE_TYPES = /* @__PURE__ */ new Set(["AWS::CloudFormation::CustomResource", NESTED_STACK_TYPE$
|
|
9037
|
+
const OPAQUE_ATTRIBUTE_TYPES = /* @__PURE__ */ new Set(["AWS::CloudFormation::CustomResource", NESTED_STACK_TYPE$5]);
|
|
9033
9038
|
function hasOpaqueAttributes(logicalId, walk) {
|
|
9034
9039
|
const definition = walk.resources[logicalId];
|
|
9035
|
-
const type = isPlainObject$
|
|
9040
|
+
const type = isPlainObject$8(definition) ? definition["Type"] : void 0;
|
|
9036
9041
|
return typeof type === "string" && (type.startsWith("Custom::") || OPAQUE_ATTRIBUTE_TYPES.has(type));
|
|
9037
9042
|
}
|
|
9038
9043
|
function getAttTarget(operand) {
|
|
@@ -9057,7 +9062,7 @@ function taintOf(logicalId, walk) {
|
|
|
9057
9062
|
const visit = (value) => {
|
|
9058
9063
|
if (typeof value === "string") return value.includes(DYNAMIC_REFERENCE_OPEN);
|
|
9059
9064
|
if (Array.isArray(value)) return value.some(visit);
|
|
9060
|
-
if (!isPlainObject$
|
|
9065
|
+
if (!isPlainObject$8(value)) return false;
|
|
9061
9066
|
const key = intrinsicKey(value);
|
|
9062
9067
|
const operand = key === void 0 ? void 0 : value[key];
|
|
9063
9068
|
let verdict = "clean";
|
|
@@ -9069,7 +9074,7 @@ function taintOf(logicalId, walk) {
|
|
|
9069
9074
|
else if (key === "Fn::FindInMap" && mapReadClass(operand, walk.sources.template) !== "clean") verdict = "tainted";
|
|
9070
9075
|
else if (key === "Fn::Sub") {
|
|
9071
9076
|
const text = Array.isArray(operand) ? operand[0] : operand;
|
|
9072
|
-
const vars = Array.isArray(operand) && isPlainObject$
|
|
9077
|
+
const vars = Array.isArray(operand) && isPlainObject$8(operand[1]) ? operand[1] : {};
|
|
9073
9078
|
if (typeof text === "string") for (const name of subPlaceholders(text)) {
|
|
9074
9079
|
if (Object.hasOwn(vars, name)) continue;
|
|
9075
9080
|
const owner = name.includes(".") ? name.split(".")[0] : name;
|
|
@@ -9083,7 +9088,7 @@ function taintOf(logicalId, walk) {
|
|
|
9083
9088
|
return Object.values(value).some(visit);
|
|
9084
9089
|
};
|
|
9085
9090
|
const definition = walk.resources[logicalId];
|
|
9086
|
-
const result = visit(isPlainObject$
|
|
9091
|
+
const result = visit(isPlainObject$8(definition) ? definition["Properties"] : void 0) ? "tainted" : unknown ? "unknown" : "clean";
|
|
9087
9092
|
walk.inProgress.delete(logicalId);
|
|
9088
9093
|
walk.taint.set(logicalId, result);
|
|
9089
9094
|
return result;
|
|
@@ -9099,7 +9104,7 @@ function conditionInput(name, walk) {
|
|
|
9099
9104
|
return typeof verdict === "boolean" ? verdict : "unknown";
|
|
9100
9105
|
}
|
|
9101
9106
|
function conditionClosure(name, walk) {
|
|
9102
|
-
const definitions = isPlainObject$
|
|
9107
|
+
const definitions = isPlainObject$8(walk.sources.template.Conditions) ? walk.sources.template.Conditions : {};
|
|
9103
9108
|
let secret = false;
|
|
9104
9109
|
let unknown = false;
|
|
9105
9110
|
let unread = false;
|
|
@@ -9114,7 +9119,7 @@ function conditionClosure(name, walk) {
|
|
|
9114
9119
|
value.forEach(visit);
|
|
9115
9120
|
return;
|
|
9116
9121
|
}
|
|
9117
|
-
if (!isPlainObject$
|
|
9122
|
+
if (!isPlainObject$8(value)) return;
|
|
9118
9123
|
const keys = Object.keys(value);
|
|
9119
9124
|
if (keys.length === 1 && keys[0] === "Condition" && typeof value["Condition"] === "string") {
|
|
9120
9125
|
pending.push(value["Condition"]);
|
|
@@ -9147,7 +9152,7 @@ function conditionClosure(name, walk) {
|
|
|
9147
9152
|
if (key === "Fn::Sub") {
|
|
9148
9153
|
const operand = value["Fn::Sub"];
|
|
9149
9154
|
const text = Array.isArray(operand) ? operand[0] : operand;
|
|
9150
|
-
const vars = Array.isArray(operand) && isPlainObject$
|
|
9155
|
+
const vars = Array.isArray(operand) && isPlainObject$8(operand[1]) ? operand[1] : {};
|
|
9151
9156
|
if (typeof text === "string") for (const name of subPlaceholders(text)) {
|
|
9152
9157
|
if (Object.hasOwn(vars, name)) continue;
|
|
9153
9158
|
if (name.includes(".") && !name.startsWith("AWS::")) secret = true;
|
|
@@ -9176,8 +9181,8 @@ function mapReadClass(operand, template) {
|
|
|
9176
9181
|
const mapName = Array.isArray(operand) ? operand[0] : void 0;
|
|
9177
9182
|
if (typeof mapName !== "string") return "unknown";
|
|
9178
9183
|
const mappings = template.Mappings;
|
|
9179
|
-
const map = isPlainObject$
|
|
9180
|
-
if (!isPlainObject$
|
|
9184
|
+
const map = isPlainObject$8(mappings) && Object.hasOwn(mappings, mapName) ? mappings[mapName] : void 0;
|
|
9185
|
+
if (!isPlainObject$8(map)) return "unknown";
|
|
9181
9186
|
return carriesSecretValue(map, []) ? "secret" : "clean";
|
|
9182
9187
|
}
|
|
9183
9188
|
async function resolvedInput(node, walk) {
|
|
@@ -9255,7 +9260,7 @@ async function inputForm(value, walk) {
|
|
|
9255
9260
|
...proof(walk, () => parts.every(isProven))
|
|
9256
9261
|
};
|
|
9257
9262
|
}
|
|
9258
|
-
if (!isPlainObject$
|
|
9263
|
+
if (!isPlainObject$8(value)) return {
|
|
9259
9264
|
form: value,
|
|
9260
9265
|
concrete: true
|
|
9261
9266
|
};
|
|
@@ -9319,7 +9324,7 @@ async function inputForm(value, walk) {
|
|
|
9319
9324
|
concrete: false
|
|
9320
9325
|
};
|
|
9321
9326
|
}
|
|
9322
|
-
const explicit = Array.isArray(operand) && isPlainObject$
|
|
9327
|
+
const explicit = Array.isArray(operand) && isPlainObject$8(operand[1]) ? operand[1] : {};
|
|
9323
9328
|
const vars = await inputForm(explicit, walk);
|
|
9324
9329
|
const placeholders = [];
|
|
9325
9330
|
let concrete = vars.concrete && !text.includes("{{resolve:");
|
|
@@ -9377,8 +9382,8 @@ function newWalk(sources, nested = {
|
|
|
9377
9382
|
return {
|
|
9378
9383
|
...covered !== void 0 && { covered },
|
|
9379
9384
|
sources,
|
|
9380
|
-
resources: isPlainObject$
|
|
9381
|
-
parameters: isPlainObject$
|
|
9385
|
+
resources: isPlainObject$8(sources.template.Resources) ? sources.template.Resources : {},
|
|
9386
|
+
parameters: isPlainObject$8(sources.template.Parameters) ? sources.template.Parameters : {},
|
|
9382
9387
|
taint: /* @__PURE__ */ new Map(),
|
|
9383
9388
|
inProgress: /* @__PURE__ */ new Set(),
|
|
9384
9389
|
stackChain: nested.stackChain,
|
|
@@ -9414,7 +9419,7 @@ function possiblyMaskedKeys(resolvedProps, corpora) {
|
|
|
9414
9419
|
const wholeShortLeaf = (value) => {
|
|
9415
9420
|
if (typeof value === "string") return short.includes(value);
|
|
9416
9421
|
if (Array.isArray(value)) return value.some(wholeShortLeaf);
|
|
9417
|
-
if (isPlainObject$
|
|
9422
|
+
if (isPlainObject$8(value)) return Object.values(value).some(wholeShortLeaf);
|
|
9418
9423
|
return false;
|
|
9419
9424
|
};
|
|
9420
9425
|
return Object.keys(resolvedProps).filter((key) => {
|
|
@@ -9445,7 +9450,7 @@ function maskedPropertyFingerprintsOf(record) {
|
|
|
9445
9450
|
const read = /* @__PURE__ */ new Map();
|
|
9446
9451
|
if (record === null || typeof record !== "object") return read;
|
|
9447
9452
|
const field = record.maskedPropertyFingerprints;
|
|
9448
|
-
if (!isPlainObject$
|
|
9453
|
+
if (!isPlainObject$8(field)) return read;
|
|
9449
9454
|
for (const [key, value] of Object.entries(field)) if (typeof value === "string" && value.startsWith("sha256:")) read.set(key, value);
|
|
9450
9455
|
return read;
|
|
9451
9456
|
}
|
|
@@ -9453,7 +9458,7 @@ function maskedPropertyInputFingerprintsOf(record) {
|
|
|
9453
9458
|
const read = /* @__PURE__ */ new Map();
|
|
9454
9459
|
if (record === null || typeof record !== "object") return read;
|
|
9455
9460
|
const field = record.maskedPropertyInputFingerprints;
|
|
9456
|
-
if (!isPlainObject$
|
|
9461
|
+
if (!isPlainObject$8(field)) return read;
|
|
9457
9462
|
const text = maskedPropertyFingerprintsOf(record);
|
|
9458
9463
|
for (const [key, value] of Object.entries(field)) {
|
|
9459
9464
|
if (typeof value !== "string" || !value.startsWith("inputs-sha256:")) continue;
|
|
@@ -9500,7 +9505,7 @@ async function movedMaskedProperties(record, templateProps, fingerprinter, onReb
|
|
|
9500
9505
|
function withRebaselinedFingerprints(record, fingerprints) {
|
|
9501
9506
|
const text = maskedPropertyFingerprintsOf(record);
|
|
9502
9507
|
const field = record.maskedPropertyInputFingerprints;
|
|
9503
|
-
const next = isPlainObject$
|
|
9508
|
+
const next = isPlainObject$8(field) ? Object.entries(field) : [];
|
|
9504
9509
|
let changed = false;
|
|
9505
9510
|
for (const [key, value] of Object.entries(fingerprints)) {
|
|
9506
9511
|
if (text.get(key) !== splitInputFingerprint(value).text) continue;
|
|
@@ -9533,10 +9538,10 @@ function withMaskedPropertyFingerprints(scrubbed, writtenBag, templateProps, sec
|
|
|
9533
9538
|
fingerprints = maskedPropertyFingerprintsFor(scrubbed.properties, templateProps);
|
|
9534
9539
|
inputs = boundInputFingerprints(fingerprints, inputFingerprints);
|
|
9535
9540
|
} else {
|
|
9536
|
-
if (!isPlainObject$
|
|
9541
|
+
if (!isPlainObject$8(previous)) return scrubbed;
|
|
9537
9542
|
if (corpora.length === 0) return scrubbed;
|
|
9538
9543
|
fingerprints = { ...previous };
|
|
9539
|
-
inputs = isPlainObject$
|
|
9544
|
+
inputs = isPlainObject$8(previousInputs) ? { ...previousInputs } : void 0;
|
|
9540
9545
|
}
|
|
9541
9546
|
if (fingerprints !== void 0 && corpora.length > 0) {
|
|
9542
9547
|
const refused = Object.keys(fingerprints).filter((key) => Object.hasOwn(templateProps, key) && corpora.some((corpus) => templateCarriesNeedle(templateProps[key], corpus)));
|
|
@@ -9896,7 +9901,7 @@ function nameKeyFor(resourceType) {
|
|
|
9896
9901
|
const property = explicitNamePropertyFor(resourceType);
|
|
9897
9902
|
return typeof property === "string" ? flat(property) : void 0;
|
|
9898
9903
|
}
|
|
9899
|
-
function valueAt(bag, path) {
|
|
9904
|
+
function valueAt$1(bag, path) {
|
|
9900
9905
|
let node = bag;
|
|
9901
9906
|
for (const segment of path.slice(0, -1)) {
|
|
9902
9907
|
if (node === null || typeof node !== "object" || Array.isArray(node)) return void 0;
|
|
@@ -9913,14 +9918,14 @@ function unreadableAt(bag, path) {
|
|
|
9913
9918
|
if (node === null || typeof node !== "object" || Array.isArray(node)) return false;
|
|
9914
9919
|
node = node[segment];
|
|
9915
9920
|
}
|
|
9916
|
-
return node !== void 0 && node !== null && valueAt(bag, path) === void 0;
|
|
9921
|
+
return node !== void 0 && node !== null && valueAt$1(bag, path) === void 0;
|
|
9917
9922
|
}
|
|
9918
9923
|
function heldAt(recorded, observed, path) {
|
|
9919
9924
|
if (unreadableAt(recorded, path)) return {
|
|
9920
9925
|
value: void 0,
|
|
9921
9926
|
unreadable: true
|
|
9922
9927
|
};
|
|
9923
|
-
const value = valueAt(recorded, path) ?? valueAt(observed, path);
|
|
9928
|
+
const value = valueAt$1(recorded, path) ?? valueAt$1(observed, path);
|
|
9924
9929
|
return {
|
|
9925
9930
|
value,
|
|
9926
9931
|
unreadable: value === void 0 && unreadableAt(observed, path)
|
|
@@ -9978,9 +9983,9 @@ const DEPLOY_VOICE = {
|
|
|
9978
9983
|
};
|
|
9979
9984
|
function sentIdentifierIs(requested, recorded, observed, physicalId) {
|
|
9980
9985
|
const isNameKey = (key) => /(Name|Identifier)$/.test(key);
|
|
9981
|
-
if (!Object.keys(requested).some((key) => isNameKey(key) && valueAt(requested, [key]) === physicalId)) return false;
|
|
9986
|
+
if (!Object.keys(requested).some((key) => isNameKey(key) && valueAt$1(requested, [key]) === physicalId)) return false;
|
|
9982
9987
|
return [...new Set([...Object.keys(requested), ...Object.keys(recorded ?? {})].filter(isNameKey))].every((key) => {
|
|
9983
|
-
const sent = valueAt(requested, [key]);
|
|
9988
|
+
const sent = valueAt$1(requested, [key]);
|
|
9984
9989
|
return sent !== void 0 && heldAt(recorded, observed, [key]).value === sent;
|
|
9985
9990
|
});
|
|
9986
9991
|
}
|
|
@@ -10009,7 +10014,7 @@ function replayPrefixChoice(input) {
|
|
|
10009
10014
|
if (raw === void 0 || raw === "") return { kind: "not-applicable" };
|
|
10010
10015
|
const recorded = getCurrentSkipPrefix();
|
|
10011
10016
|
const property = rewrite.property;
|
|
10012
|
-
const declared = valueAt(input.properties, [property]);
|
|
10017
|
+
const declared = valueAt$1(input.properties, [property]);
|
|
10013
10018
|
if (declared === void 0 || typeof input.logicalId !== "string" || typeof input.physicalId !== "string" || input.physicalId === "") return {
|
|
10014
10019
|
kind: "unreproduced",
|
|
10015
10020
|
skipPrefix: recorded,
|
|
@@ -10157,22 +10162,22 @@ function reverseReplacementTrustsGeneratedName(resourceType) {
|
|
|
10157
10162
|
// src/deployment/replacement-name-holder/holder.ts
|
|
10158
10163
|
function recordSetHolds(requested, recorded, observed, newPhysicalId, r, v) {
|
|
10159
10164
|
const newRecord = `${v.holderRecord} (${r.shown(newPhysicalId)})`;
|
|
10160
|
-
const wantName = valueAt(requested, ["Name"]);
|
|
10161
|
-
const wantType = valueAt(requested, ["Type"]);
|
|
10165
|
+
const wantName = valueAt$1(requested, ["Name"]);
|
|
10166
|
+
const wantType = valueAt$1(requested, ["Type"]);
|
|
10162
10167
|
const haveName = heldAt(recorded, observed, ["Name"]).value;
|
|
10163
10168
|
const haveType = heldAt(recorded, observed, ["Type"]).value;
|
|
10164
10169
|
if (wantName === void 0 || wantType === void 0) return unproven(`cdkd cannot read the Name and Type ${v.createdRecord} asked for`);
|
|
10165
10170
|
const wanted = `${v.create} asked for Name ${r.quoted(wantName)}`;
|
|
10166
10171
|
if (haveName === void 0 || haveType === void 0) return unproven(`${wanted}, and cdkd cannot read the name ${newRecord} holds`);
|
|
10167
10172
|
if (dnsFold(wantName) !== dnsFold(haveName)) return /\\[0-9]{3}/.test(wantName + haveName) ? unproven(`${wanted}, and cdkd cannot compare it with the escaped name ${newRecord} holds`) : elsewhere(`${wanted}, while ${newRecord} holds Name ${r.quoted(haveName)}`);
|
|
10168
|
-
const wantZoneId = valueAt(requested, ["HostedZoneId"]);
|
|
10173
|
+
const wantZoneId = valueAt$1(requested, ["HostedZoneId"]);
|
|
10169
10174
|
const haveZoneId = heldAt(recorded, observed, ["HostedZoneId"]).value;
|
|
10170
|
-
const wantZoneName = valueAt(requested, ["HostedZoneName"]);
|
|
10175
|
+
const wantZoneName = valueAt$1(requested, ["HostedZoneName"]);
|
|
10171
10176
|
const haveZoneName = heldAt(recorded, observed, ["HostedZoneName"]).value;
|
|
10172
10177
|
const sameZone = wantZoneId !== void 0 && haveZoneId !== void 0 ? zoneIdFold(wantZoneId) === zoneIdFold(haveZoneId) : wantZoneName !== void 0 && haveZoneName !== void 0 ? dnsFold(wantZoneName) === dnsFold(haveZoneName) : void 0;
|
|
10173
10178
|
if (sameZone === false) return elsewhere(`${wanted}, while ${newRecord} is in another hosted zone`);
|
|
10174
10179
|
if (sameZone === void 0) return unproven(`${wanted}, and cdkd cannot tell whether ${newRecord} is in the same hosted zone`);
|
|
10175
|
-
const wantSet = valueAt(requested, ["SetIdentifier"]);
|
|
10180
|
+
const wantSet = valueAt$1(requested, ["SetIdentifier"]);
|
|
10176
10181
|
const haveSet = heldAt(recorded, observed, ["SetIdentifier"]).value;
|
|
10177
10182
|
if (wantType.toUpperCase() === "CNAME" !== (haveType.toUpperCase() === "CNAME")) return HOLDS;
|
|
10178
10183
|
if (wantType.toUpperCase() !== haveType.toUpperCase()) return elsewhere(`${wanted} of Type ${r.quoted(wantType)}, while ${newRecord} is a ${r.quoted(haveType)} record of that name`);
|
|
@@ -10188,7 +10193,7 @@ function pathValue(bag, path) {
|
|
|
10188
10193
|
return node;
|
|
10189
10194
|
}
|
|
10190
10195
|
function rewrittenNameHolds(input, rewrite, viaCloudControl, labels, newResource, r, v) {
|
|
10191
|
-
const declared = valueAt(input.requested, [rewrite.property]);
|
|
10196
|
+
const declared = valueAt$1(input.requested, [rewrite.property]);
|
|
10192
10197
|
const logicalId = typeof input.logicalId === "string" && input.logicalId !== "" ? input.logicalId : void 0;
|
|
10193
10198
|
if (declared === void 0 && (viaCloudControl || logicalId === void 0)) return unproven(`${v.create} named no ${labels}, and cdkd cannot derive the name its provider generates, so it cannot show that ${newResource} holds it`);
|
|
10194
10199
|
const sent = viaCloudControl ? declared : generateResourceNameWithFallback(declared, logicalId ?? "", { maxLength: rewrite.maxLength });
|
|
@@ -10222,11 +10227,11 @@ function holderVerdict(input, v) {
|
|
|
10222
10227
|
const rewrite = ownEntry$1(SENT_NAME_REWRITTEN, oldResourceType);
|
|
10223
10228
|
if (rewrite !== void 0) return rewrittenNameHolds(input, rewrite, input.createdVia === "cc-api", labels, newResource, r, v);
|
|
10224
10229
|
let generatedName = false;
|
|
10225
|
-
let namePath = oldKey.name.find((path) => valueAt(requested, path) !== void 0);
|
|
10226
|
-
let wantName = namePath === void 0 ? void 0 : valueAt(requested, namePath);
|
|
10230
|
+
let namePath = oldKey.name.find((path) => valueAt$1(requested, path) !== void 0);
|
|
10231
|
+
let wantName = namePath === void 0 ? void 0 : valueAt$1(requested, namePath);
|
|
10227
10232
|
if (namePath === void 0 && input.generated !== void 0 && reverseReplacementTrustsGeneratedName(oldResourceType)) {
|
|
10228
|
-
namePath = oldKey.name.find((path) => valueAt(input.generated, path) !== void 0);
|
|
10229
|
-
wantName = namePath === void 0 ? void 0 : valueAt(input.generated, namePath);
|
|
10233
|
+
namePath = oldKey.name.find((path) => valueAt$1(input.generated, path) !== void 0);
|
|
10234
|
+
wantName = namePath === void 0 ? void 0 : valueAt$1(input.generated, namePath);
|
|
10230
10235
|
generatedName = wantName !== void 0;
|
|
10231
10236
|
}
|
|
10232
10237
|
const derived = ownEntry$1(DERIVED_GENERATED_NAMES, oldResourceType);
|
|
@@ -10245,14 +10250,14 @@ function holderVerdict(input, v) {
|
|
|
10245
10250
|
const h = heldAt(recorded, observed, path);
|
|
10246
10251
|
return h.value !== void 0 || h.unreadable;
|
|
10247
10252
|
});
|
|
10248
|
-
const recordedName = namePathHeld && valueAt(recorded, namePathHeld);
|
|
10249
|
-
const observedName = namePathHeld && valueAt(observed, namePathHeld);
|
|
10253
|
+
const recordedName = namePathHeld && valueAt$1(recorded, namePathHeld);
|
|
10254
|
+
const observedName = namePathHeld && valueAt$1(observed, namePathHeld);
|
|
10250
10255
|
if (namePathHeld !== void 0 && recordedName !== void 0 && observedName !== void 0 && !same(recordedName, observedName)) return unproven(`${wanted}, and the records of ${newResource} disagree on its ${r.shown(namePathHeld.join("."))} (recorded ${r.quoted(recordedName)}, read back ${r.quoted(observedName)}), so cdkd cannot show which name it holds`);
|
|
10251
10256
|
const haveName = namePathHeld === void 0 ? void 0 : heldAt(recorded, observed, namePathHeld).value;
|
|
10252
10257
|
if (!(haveName !== void 0 && same(haveName, wantName) || physicalId !== "" && !NO_PHYSICAL_ID_NAME_PROOF.has(newResourceType) && holderIdNames(inCase(physicalId), inCase(wantName)))) return haveName !== void 0 && !generatedName ? elsewhere(`${wanted}, while ${newResource} holds ${r.quoted(haveName)}`) : unproven(`${wanted}, and cdkd cannot show that ${newResource} holds that name`);
|
|
10253
10258
|
for (const [i, path] of (oldKey.scope ?? []).entries()) {
|
|
10254
10259
|
const label = r.shown(path.join("."));
|
|
10255
|
-
const wantRaw = valueAt(requested, path);
|
|
10260
|
+
const wantRaw = valueAt$1(requested, path);
|
|
10256
10261
|
const have = heldAt(recorded, observed, path);
|
|
10257
10262
|
if (wantRaw === void 0 && unreadableAt(requested, path) || have.unreadable) return unproven(`${wanted}, and cdkd cannot read the ${label} that places it`);
|
|
10258
10263
|
const fallback = oldKey.scopeDefaults?.[i];
|
|
@@ -11624,11 +11629,11 @@ function validReferenceRegion(region) {
|
|
|
11624
11629
|
if (typeof region !== "string") return void 0;
|
|
11625
11630
|
return canonicalizeRegion(region) === region && isClientSafeRegion(region) ? region : void 0;
|
|
11626
11631
|
}
|
|
11627
|
-
function isPlainObject$
|
|
11632
|
+
function isPlainObject$7(value) {
|
|
11628
11633
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
11629
11634
|
}
|
|
11630
11635
|
function validateReferenceProvenance(token, raw) {
|
|
11631
|
-
if (!isSingleDynamicReferenceToken(token) || !isPlainObject$
|
|
11636
|
+
if (!isSingleDynamicReferenceToken(token) || !isPlainObject$7(raw)) return void 0;
|
|
11632
11637
|
const versionsRaw = Object.hasOwn(raw, "versions") ? raw["versions"] : void 0;
|
|
11633
11638
|
const readRaw = Object.hasOwn(raw, "readVersions") ? raw["readVersions"] : void 0;
|
|
11634
11639
|
if (readRaw !== void 0) {
|
|
@@ -11646,11 +11651,11 @@ function validateReferenceProvenance(token, raw) {
|
|
|
11646
11651
|
return out;
|
|
11647
11652
|
}
|
|
11648
11653
|
function referenceProvenanceOf(record) {
|
|
11649
|
-
if (!isPlainObject$
|
|
11654
|
+
if (!isPlainObject$7(record) || !Object.hasOwn(record, "referenceProvenance")) return void 0;
|
|
11650
11655
|
return validatedBag(record["referenceProvenance"]);
|
|
11651
11656
|
}
|
|
11652
11657
|
function validatedBag(field) {
|
|
11653
|
-
if (!isPlainObject$
|
|
11658
|
+
if (!isPlainObject$7(field)) return void 0;
|
|
11654
11659
|
const out = Object.create(null);
|
|
11655
11660
|
for (const [token, raw] of Object.entries(field)) {
|
|
11656
11661
|
const entry = validateReferenceProvenance(token, raw);
|
|
@@ -11659,9 +11664,9 @@ function validatedBag(field) {
|
|
|
11659
11664
|
return { ...out };
|
|
11660
11665
|
}
|
|
11661
11666
|
function recordedProvenanceOf(record, token) {
|
|
11662
|
-
if (!isPlainObject$
|
|
11667
|
+
if (!isPlainObject$7(record) || !Object.hasOwn(record, "referenceProvenance")) return void 0;
|
|
11663
11668
|
const field = record["referenceProvenance"];
|
|
11664
|
-
if (!isPlainObject$
|
|
11669
|
+
if (!isPlainObject$7(field) || !Object.hasOwn(field, token)) return void 0;
|
|
11665
11670
|
return validateReferenceProvenance(token, field[token]);
|
|
11666
11671
|
}
|
|
11667
11672
|
function recordedReferenceRegions(record) {
|
|
@@ -11683,7 +11688,7 @@ function regionsOf(field) {
|
|
|
11683
11688
|
function keepHeldTokenProvenance(record) {
|
|
11684
11689
|
if (!hasReferenceProvenanceField(record)) return record;
|
|
11685
11690
|
const field = record.referenceProvenance;
|
|
11686
|
-
if (!isPlainObject$
|
|
11691
|
+
if (!isPlainObject$7(field)) return record;
|
|
11687
11692
|
const held = recordReferenceTokens(record);
|
|
11688
11693
|
const keys = Object.keys(field);
|
|
11689
11694
|
if (keys.every((token) => held.has(token))) return record;
|
|
@@ -11695,12 +11700,12 @@ function keepHeldTokenProvenance(record) {
|
|
|
11695
11700
|
};
|
|
11696
11701
|
}
|
|
11697
11702
|
function hasReferenceProvenanceField(record) {
|
|
11698
|
-
return isPlainObject$
|
|
11703
|
+
return isPlainObject$7(record) && Object.hasOwn(record, "referenceProvenance") && record["referenceProvenance"] !== void 0;
|
|
11699
11704
|
}
|
|
11700
11705
|
function outputReferenceProvenanceOf(state, outputKey) {
|
|
11701
|
-
if (!isPlainObject$
|
|
11706
|
+
if (!isPlainObject$7(state) || !Object.hasOwn(state, "outputReferenceProvenance")) return;
|
|
11702
11707
|
const field = state["outputReferenceProvenance"];
|
|
11703
|
-
if (!isPlainObject$
|
|
11708
|
+
if (!isPlainObject$7(field) || !Object.hasOwn(field, outputKey)) return void 0;
|
|
11704
11709
|
return validatedBag(field[outputKey]);
|
|
11705
11710
|
}
|
|
11706
11711
|
function persistable(token, entry) {
|
|
@@ -11718,7 +11723,7 @@ function tokensUnderPaths(properties, paths) {
|
|
|
11718
11723
|
for (const item of value) descend(item, path, next);
|
|
11719
11724
|
return;
|
|
11720
11725
|
}
|
|
11721
|
-
if (isPlainObject$
|
|
11726
|
+
if (isPlainObject$7(value) && Object.hasOwn(value, path[at])) descend(value[path[at]], path, at + 1);
|
|
11722
11727
|
};
|
|
11723
11728
|
for (const path of paths) descend(properties, path, 0);
|
|
11724
11729
|
return out;
|
|
@@ -11761,7 +11766,7 @@ function unionWithPrevious(pass, before) {
|
|
|
11761
11766
|
}
|
|
11762
11767
|
function outputProvenanceForPersist(args) {
|
|
11763
11768
|
const { outputs, resolvedThisRun, carriedFrom, sinkOf } = args;
|
|
11764
|
-
if (!resolvedThisRun) return carriedFrom !== void 0 && isPlainObject$
|
|
11769
|
+
if (!resolvedThisRun) return carriedFrom !== void 0 && isPlainObject$7(carriedFrom.outputReferenceProvenance) ? carriedFrom.outputReferenceProvenance : void 0;
|
|
11765
11770
|
let out;
|
|
11766
11771
|
for (const [outputKey, value] of Object.entries(outputs)) {
|
|
11767
11772
|
const sink = sinkOf(outputKey);
|
|
@@ -12014,7 +12019,10 @@ const REF_RETURNS_SEGMENT_AFTER_PIPE = /* @__PURE__ */ new Set([
|
|
|
12014
12019
|
"AWS::AppConfig::Environment",
|
|
12015
12020
|
"AWS::AppConfig::ConfigurationProfile",
|
|
12016
12021
|
"AWS::AppConfig::HostedConfigurationVersion",
|
|
12017
|
-
"AWS::AppConfig::Deployment"
|
|
12022
|
+
"AWS::AppConfig::Deployment",
|
|
12023
|
+
"AWS::SSM::MaintenanceWindowTarget",
|
|
12024
|
+
"AWS::SSM::MaintenanceWindowTask",
|
|
12025
|
+
"AWS::CodeDeploy::DeploymentGroup"
|
|
12018
12026
|
]);
|
|
12019
12027
|
const REF_RETURNS_SEGMENT_BEFORE_FIRST_PIPE = /* @__PURE__ */ new Set([
|
|
12020
12028
|
"AWS::EC2::EIP",
|
|
@@ -12110,6 +12118,14 @@ function cfnRefValueFromPhysicalId(resourceType, physicalId, stateLookup) {
|
|
|
12110
12118
|
const tableName = glueTableRefFromPhysicalId(physicalId, stateLookup);
|
|
12111
12119
|
if (tableName !== void 0) return tableName;
|
|
12112
12120
|
}
|
|
12121
|
+
if (resourceType === "AWS::Logs::LogStream") {
|
|
12122
|
+
const i = physicalId.indexOf("|");
|
|
12123
|
+
if (i >= 0) return physicalId.substring(i + 1);
|
|
12124
|
+
}
|
|
12125
|
+
if (resourceType === "AWS::Logs::SubscriptionFilter") {
|
|
12126
|
+
const i = physicalId.lastIndexOf("|");
|
|
12127
|
+
if (i >= 0) return physicalId.substring(0, i);
|
|
12128
|
+
}
|
|
12113
12129
|
if (resourceType === "AWS::Backup::BackupSelection" && stateLookup) {
|
|
12114
12130
|
const selectionId = stateLookup(["SelectionId"]);
|
|
12115
12131
|
if (selectionId) return selectionId;
|
|
@@ -12527,6 +12543,50 @@ function s3BucketWebsiteUrl(bucketName, region) {
|
|
|
12527
12543
|
return `http://${bucketName}.s3-website${S3_WEBSITE_ENDPOINT_LEGACY_DASH_REGIONS.has(folded) ? "-" : "."}${folded}.${urlSuffix}`;
|
|
12528
12544
|
}
|
|
12529
12545
|
|
|
12546
|
+
// src/deployment/intrinsic-resolver/getatt/flat-object-attributes.ts
|
|
12547
|
+
const FLAT_OBJECT_MEMBERS = {
|
|
12548
|
+
"AWS::RDS::DBInstance": {
|
|
12549
|
+
Endpoint: { required: [
|
|
12550
|
+
"Address",
|
|
12551
|
+
"HostedZoneId",
|
|
12552
|
+
"Port"
|
|
12553
|
+
] },
|
|
12554
|
+
ListenerEndpoint: {
|
|
12555
|
+
required: ["Address", "Port"],
|
|
12556
|
+
optional: ["HostedZoneId"]
|
|
12557
|
+
},
|
|
12558
|
+
CertificateDetails: { required: ["CAIdentifier", "ValidTill"] }
|
|
12559
|
+
},
|
|
12560
|
+
"AWS::RDS::DBCluster": {
|
|
12561
|
+
Endpoint: { required: ["Address", "Port"] },
|
|
12562
|
+
ReadEndpoint: { required: ["Address"] }
|
|
12563
|
+
}
|
|
12564
|
+
};
|
|
12565
|
+
function shapeOf(resourceType, attributeName) {
|
|
12566
|
+
if (!Object.hasOwn(FLAT_OBJECT_MEMBERS, resourceType)) return void 0;
|
|
12567
|
+
const byType = FLAT_OBJECT_MEMBERS[resourceType];
|
|
12568
|
+
return Object.hasOwn(byType, attributeName) ? byType[attributeName] : void 0;
|
|
12569
|
+
}
|
|
12570
|
+
function memberValue(attributes, key) {
|
|
12571
|
+
const value = Object.hasOwn(attributes, key) ? attributes[key] : void 0;
|
|
12572
|
+
return value === null || value === "" ? void 0 : value;
|
|
12573
|
+
}
|
|
12574
|
+
function assembleFlatObjectAttribute(resourceType, attributeName, attributes) {
|
|
12575
|
+
const shape = attributes === void 0 ? void 0 : shapeOf(resourceType, attributeName);
|
|
12576
|
+
if (attributes === void 0 || shape === void 0) return void 0;
|
|
12577
|
+
const entries = [];
|
|
12578
|
+
for (const member of shape.required) {
|
|
12579
|
+
const value = memberValue(attributes, `${attributeName}.${member}`);
|
|
12580
|
+
if (value === void 0) return void 0;
|
|
12581
|
+
entries.push([member, value]);
|
|
12582
|
+
}
|
|
12583
|
+
for (const member of shape.optional ?? []) {
|
|
12584
|
+
const value = memberValue(attributes, `${attributeName}.${member}`);
|
|
12585
|
+
if (value !== void 0) entries.push([member, value]);
|
|
12586
|
+
}
|
|
12587
|
+
return Object.fromEntries(entries.sort(([a], [b]) => a.localeCompare(b)));
|
|
12588
|
+
}
|
|
12589
|
+
|
|
12530
12590
|
// src/deployment/intrinsic-resolver/getatt-heal.ts
|
|
12531
12591
|
function staleRecordRemedy(resolver, outcome, context) {
|
|
12532
12592
|
const touch = `change any property of the resource so its next update re-records the attributes, or re-import it with ${proseQuoted(cdkdRemedy("cdkd import"))}`;
|
|
@@ -12571,9 +12631,9 @@ async function healStaleAttributes(_resolver, logicalId, resource, context) {
|
|
|
12571
12631
|
};
|
|
12572
12632
|
}
|
|
12573
12633
|
}
|
|
12574
|
-
function usableHealedAttribute(_resolver, outcome, attributeName) {
|
|
12634
|
+
function usableHealedAttribute(_resolver, outcome, attributeName, resourceType) {
|
|
12575
12635
|
if (outcome?.kind !== "read") return void 0;
|
|
12576
|
-
const value = readHealedAttribute(outcome.attributes, attributeName);
|
|
12636
|
+
const value = readHealedAttribute(outcome.attributes, attributeName) ?? (resourceType === void 0 ? void 0 : assembleFlatObjectAttribute(resourceType, attributeName, outcome.attributes));
|
|
12577
12637
|
return value === void 0 || carriesSecretMask(value) ? void 0 : value;
|
|
12578
12638
|
}
|
|
12579
12639
|
function serveHealedAttribute(resolver, logicalId, attributeName, value, context) {
|
|
@@ -12595,7 +12655,7 @@ async function constructWithStaleRecordHeal(resolver, resource, attributeName, c
|
|
|
12595
12655
|
if (!(error instanceof StaleAttributeMissSignal)) throw error;
|
|
12596
12656
|
}
|
|
12597
12657
|
const outcome = await healStaleAttributes(resolver, logicalId, resource, context) ?? { kind: "not-attempted" };
|
|
12598
|
-
const healed = usableHealedAttribute(resolver, outcome, attributeName);
|
|
12658
|
+
const healed = usableHealedAttribute(resolver, outcome, attributeName, resource.resourceType);
|
|
12599
12659
|
if (healed !== void 0) return serveHealedAttribute(resolver, logicalId, attributeName, healed, context);
|
|
12600
12660
|
return constructGuardedAttribute(resolver, resource, attributeName, {
|
|
12601
12661
|
...context,
|
|
@@ -12691,7 +12751,18 @@ function isOwnArnAttribute(resourceType, attributeName) {
|
|
|
12691
12751
|
const lower = attributeName.toLowerCase();
|
|
12692
12752
|
return lower === "arn" || lower === `${typeName.toLowerCase()}arn`;
|
|
12693
12753
|
}
|
|
12694
|
-
const CFN_REJECTED_GETATT_ATTRIBUTES = /* @__PURE__ */ new Set([
|
|
12754
|
+
const CFN_REJECTED_GETATT_ATTRIBUTES = /* @__PURE__ */ new Set([
|
|
12755
|
+
"AWS::CloudFormation::WaitConditionHandle.Id",
|
|
12756
|
+
"AWS::IAM::UserToGroupAddition.Id",
|
|
12757
|
+
"AWS::CloudFormation::Stack.ChangeSetId",
|
|
12758
|
+
"AWS::CloudFormation::Stack.CreationTime",
|
|
12759
|
+
"AWS::CloudFormation::Stack.LastUpdateTime",
|
|
12760
|
+
"AWS::CloudFormation::Stack.Outputs",
|
|
12761
|
+
"AWS::CloudFormation::Stack.ParentId",
|
|
12762
|
+
"AWS::CloudFormation::Stack.RootId",
|
|
12763
|
+
"AWS::CloudFormation::Stack.StackId",
|
|
12764
|
+
"AWS::CloudFormation::Stack.StackStatus"
|
|
12765
|
+
]);
|
|
12695
12766
|
const PHYSICAL_ID_ATTRIBUTES = /* @__PURE__ */ new Set([
|
|
12696
12767
|
"AWS::ApiGateway::Account.Id",
|
|
12697
12768
|
"AWS::Budgets::Budget.Id",
|
|
@@ -12699,6 +12770,7 @@ const PHYSICAL_ID_ATTRIBUTES = /* @__PURE__ */ new Set([
|
|
|
12699
12770
|
"AWS::SQS::QueuePolicy.Id"
|
|
12700
12771
|
]);
|
|
12701
12772
|
function guardedPhysicalIdFallback(resolver, logicalId, attributeName, resourceType, physicalId, context) {
|
|
12773
|
+
if (CFN_REJECTED_GETATT_ATTRIBUTES.has(`${resourceType}.${attributeName}`)) throw markNonRetryable(new IntrinsicResolutionRefusalError(`Cannot resolve Fn::GetAtt [${displayMasked(resolver, logicalId, context)}, ${displayMasked(resolver, attributeName, context)}] for ${displayMasked(resolver, resourceType, context)}: CloudFormation does not support this attribute in Fn::GetAtt and rejects the template at validation. ` + (resourceType === "AWS::CloudFormation::Stack" ? `Remove the reference; a nested stack supports only Outputs.<Key> attributes.` : `Remove the reference.`)));
|
|
12702
12774
|
if (context?.staleAttributeHeal?.phase === "probe") throw new StaleAttributeMissSignal();
|
|
12703
12775
|
const healOutcome = context?.staleAttributeHeal?.phase === "settled" ? context.staleAttributeHeal.outcome : void 0;
|
|
12704
12776
|
const recordMayBeStale = healOutcome?.kind === "failed" || healOutcome?.kind === "not-found";
|
|
@@ -12714,7 +12786,7 @@ function guardedPhysicalIdFallback(resolver, logicalId, attributeName, resourceT
|
|
|
12714
12786
|
const resources = context?.resources;
|
|
12715
12787
|
const record = resources !== void 0 && Object.hasOwn(resources, logicalId) ? resources[logicalId] : void 0;
|
|
12716
12788
|
const coverage = getPropertyCoverage(resourceType);
|
|
12717
|
-
if (
|
|
12789
|
+
if (record?.provisionedBy !== "cc-api" && coverage?.readOnly.has(topAttribute) === true && !isPhysicalIdIdentifier(resourceType, coverage.primaryIdentifier, topAttribute) && !PHYSICAL_ID_ATTRIBUTES.has(`${resourceType}.${attributeName}`) && !(isOwnArnAttribute(resourceType, attributeName) && physicalId.startsWith("arn:"))) throw markNonRetryable(new IntrinsicResolutionRefusalError(`Cannot resolve Fn::GetAtt [${displayMasked(resolver, logicalId, context)}, ${displayMasked(resolver, attributeName, context)}] for ${loggedType}: ` + (recordMayBeStale ? `the state record holds no value for it, and its physical ID ` : healOutcome?.kind === "read" ? `the provider's re-read of the resource reports no value for it (one still creating has none yet), and its physical ID ` : `cdkd does not record it for this resource type, and its physical ID `) + `${quotedRender(displayMasked(resolver, physicalId, context), "\"")} is not the value CloudFormation returns, so serving it would silently produce a wrong value. ` + (recordMayBeStale ? staleRecordRemedy(resolver, healOutcome, context) : unenrichedRemedy(resolver, resourceType, attributeName, healOutcome, context))));
|
|
12718
12790
|
resolver.physicalIdFallbackCount++;
|
|
12719
12791
|
if (recordMayBeStale) {
|
|
12720
12792
|
resolver.logger.warn(`The state record for ${displayMasked(resolver, logicalId, context)} (${loggedType}) holds no ${displayMasked(resolver, attributeName, context)}, returning physical ID. ` + staleRecordRemedy(resolver, healOutcome, context));
|
|
@@ -14660,6 +14732,9 @@ async function constructAttributeForAppTypes(resolver, resource, attributeName,
|
|
|
14660
14732
|
case "DBInstanceArn":
|
|
14661
14733
|
case "Arn": return `arn:${partition}:rds:${region}:${accountId}:db:${physicalId}`;
|
|
14662
14734
|
case "DbiResourceId":
|
|
14735
|
+
case "Endpoint":
|
|
14736
|
+
case "ListenerEndpoint":
|
|
14737
|
+
case "CertificateDetails":
|
|
14663
14738
|
case "Endpoint.HostedZoneId":
|
|
14664
14739
|
case "ListenerEndpoint.Address":
|
|
14665
14740
|
case "ListenerEndpoint.Port":
|
|
@@ -14674,15 +14749,29 @@ async function constructAttributeForAppTypes(resolver, resource, attributeName,
|
|
|
14674
14749
|
resourceType,
|
|
14675
14750
|
context,
|
|
14676
14751
|
why: "cdkd cannot build it from the DB instance identifier",
|
|
14677
|
-
remedyWhenHealCompleted: attributeName.startsWith("ListenerEndpoint
|
|
14752
|
+
remedyWhenHealCompleted: attributeName.startsWith("ListenerEndpoint") ? "This DB instance has no listener endpoint, and CloudFormation cannot return one for it either: remove the reference, or use Endpoint.Address." : "RDS does not report it for the instance yet (it may still be creating): deploy again once the instance is available."
|
|
14678
14753
|
});
|
|
14679
14754
|
}
|
|
14680
14755
|
return guardedPhysicalIdFallback(resolver, logicalId, attributeName, resourceType, physicalId, context);
|
|
14681
14756
|
}
|
|
14682
|
-
if (resourceType === "AWS::RDS::DBCluster" || resourceType === "AWS::DocDB::DBCluster" || resourceType === "AWS::Neptune::DBCluster")
|
|
14683
|
-
|
|
14684
|
-
|
|
14685
|
-
|
|
14757
|
+
if (resourceType === "AWS::RDS::DBCluster" || resourceType === "AWS::DocDB::DBCluster" || resourceType === "AWS::Neptune::DBCluster") {
|
|
14758
|
+
switch (attributeName) {
|
|
14759
|
+
case "DBClusterArn":
|
|
14760
|
+
case "Arn": return `arn:${partition}:rds:${region}:${accountId}:cluster:${physicalId}`;
|
|
14761
|
+
case "Endpoint":
|
|
14762
|
+
case "ReadEndpoint":
|
|
14763
|
+
if (resourceType !== "AWS::RDS::DBCluster") break;
|
|
14764
|
+
healBeforeConstructing(resolver, context);
|
|
14765
|
+
refuseUnconstructibleAttribute(resolver, {
|
|
14766
|
+
logicalId,
|
|
14767
|
+
attributeName,
|
|
14768
|
+
resourceType,
|
|
14769
|
+
context,
|
|
14770
|
+
why: "cdkd cannot build it from the DB cluster identifier",
|
|
14771
|
+
remedyWhenHealCompleted: "RDS does not report it for the cluster yet (it may still be creating): deploy again once the cluster is available."
|
|
14772
|
+
});
|
|
14773
|
+
}
|
|
14774
|
+
return guardedPhysicalIdFallback(resolver, logicalId, attributeName, resourceType, physicalId, context);
|
|
14686
14775
|
}
|
|
14687
14776
|
if (resourceType === "AWS::S3Express::DirectoryBucket" && attributeName === "AvailabilityZoneName") {
|
|
14688
14777
|
const zoneId = /--([a-z0-9]+(?:-[a-z0-9]+)*)--x-s3$/.exec(physicalId)?.[1];
|
|
@@ -16007,7 +16096,7 @@ async function resolveGetAtt(resolver, getAtt, context) {
|
|
|
16007
16096
|
if (!resource) throw markNonRetryable(/* @__PURE__ */ new Error(`Resource ${displayMasked(resolver, logicalId, context)} not found for Fn::GetAtt`));
|
|
16008
16097
|
recordSecretNamedRead(logicalId, void 0, context);
|
|
16009
16098
|
if (!isAlwaysLiveAttribute(resource.resourceType, attributeName) && resource.attributes !== void 0) {
|
|
16010
|
-
const storedValue = Object.hasOwn(resource.attributes, attributeName) ? resource.attributes[attributeName] :
|
|
16099
|
+
const storedValue = Object.hasOwn(resource.attributes, attributeName) ? resource.attributes[attributeName] : assembleFlatObjectAttribute(resource.resourceType, attributeName, resource.attributes);
|
|
16011
16100
|
const flatValue = isImpossibleEmptyStoredAttribute(resource.resourceType, attributeName, storedValue) ? void 0 : storedValue;
|
|
16012
16101
|
if (flatValue !== void 0) {
|
|
16013
16102
|
if (isStalePlaceholderArnAttribute(resource.resourceType, attributeName, flatValue)) {
|
|
@@ -17622,6 +17711,74 @@ function apiGatewayV2DefinitionObject(location) {
|
|
|
17622
17711
|
};
|
|
17623
17712
|
}
|
|
17624
17713
|
|
|
17714
|
+
// src/provisioning/cc-nested-create-only-patch.ts
|
|
17715
|
+
function isPlainObject$6(value) {
|
|
17716
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
17717
|
+
}
|
|
17718
|
+
function topLevelKeyOf(op) {
|
|
17719
|
+
if (op.op !== "add" && op.op !== "replace") return void 0;
|
|
17720
|
+
const pointer = op.path.slice(1);
|
|
17721
|
+
if (!op.path.startsWith("/") || pointer.includes("/")) return void 0;
|
|
17722
|
+
return pointer.replace(/~1/g, "/").replace(/~0/g, "~");
|
|
17723
|
+
}
|
|
17724
|
+
function writesTopLevelObject(patch) {
|
|
17725
|
+
return patch.some((op) => topLevelKeyOf(op) !== void 0 && isPlainObject$6(op.value));
|
|
17726
|
+
}
|
|
17727
|
+
function omitsThroughObjects(root, path) {
|
|
17728
|
+
let node = root;
|
|
17729
|
+
for (const segment of path) {
|
|
17730
|
+
if (!Object.hasOwn(node, segment)) return true;
|
|
17731
|
+
const next = node[segment];
|
|
17732
|
+
if (!isPlainObject$6(next)) return false;
|
|
17733
|
+
node = next;
|
|
17734
|
+
}
|
|
17735
|
+
return false;
|
|
17736
|
+
}
|
|
17737
|
+
function valueAt(root, path) {
|
|
17738
|
+
let node = root;
|
|
17739
|
+
for (const segment of path) {
|
|
17740
|
+
if (!isPlainObject$6(node) || !Object.hasOwn(node, segment)) return void 0;
|
|
17741
|
+
node = node[segment];
|
|
17742
|
+
}
|
|
17743
|
+
return node;
|
|
17744
|
+
}
|
|
17745
|
+
function nestedCreateOnlyGaps(patch, createOnlyPaths) {
|
|
17746
|
+
const gaps = [];
|
|
17747
|
+
for (const op of patch) {
|
|
17748
|
+
const key = topLevelKeyOf(op);
|
|
17749
|
+
if (key === void 0 || !isPlainObject$6(op.value)) continue;
|
|
17750
|
+
for (const path of createOnlyPaths) {
|
|
17751
|
+
if (path.length < 2 || path[0] !== key) continue;
|
|
17752
|
+
if (omitsThroughObjects(op.value, path.slice(1))) gaps.push([...path]);
|
|
17753
|
+
}
|
|
17754
|
+
}
|
|
17755
|
+
return gaps;
|
|
17756
|
+
}
|
|
17757
|
+
function withCarriedCreateOnlyMembers(patch, gaps, liveModel) {
|
|
17758
|
+
return patch.map((op) => {
|
|
17759
|
+
const key = topLevelKeyOf(op);
|
|
17760
|
+
if (key === void 0 || !isPlainObject$6(op.value)) return op;
|
|
17761
|
+
let value;
|
|
17762
|
+
for (const path of gaps) {
|
|
17763
|
+
if (path[0] !== key) continue;
|
|
17764
|
+
const live = valueAt(liveModel, path);
|
|
17765
|
+
if (live === void 0) continue;
|
|
17766
|
+
value ??= structuredClone(op.value);
|
|
17767
|
+
const rest = path.slice(1);
|
|
17768
|
+
let parent = value;
|
|
17769
|
+
for (const segment of rest.slice(0, -1)) {
|
|
17770
|
+
if (!isPlainObject$6(parent[segment])) parent[segment] = {};
|
|
17771
|
+
parent = parent[segment];
|
|
17772
|
+
}
|
|
17773
|
+
parent[rest[rest.length - 1]] = live;
|
|
17774
|
+
}
|
|
17775
|
+
return value === void 0 ? op : {
|
|
17776
|
+
...op,
|
|
17777
|
+
value
|
|
17778
|
+
};
|
|
17779
|
+
});
|
|
17780
|
+
}
|
|
17781
|
+
|
|
17625
17782
|
// src/provisioning/cloud-control/update.ts
|
|
17626
17783
|
async function update$2(logicalId, physicalId, resourceType, properties, previousProperties, context) {
|
|
17627
17784
|
const mask = maskerOrIdentity(context?.maskSecrets);
|
|
@@ -17677,6 +17834,13 @@ async function updateInIdLogScope(logicalId, physicalId, resourceType, propertie
|
|
|
17677
17834
|
}
|
|
17678
17835
|
}
|
|
17679
17836
|
patch = withGuardDutyDetectorReadBackOps(resourceType, patch, cleanProperties, context?.desiredFromAwsReadback === true ? { previous: cleanPreviousProperties } : void 0);
|
|
17837
|
+
if (writesTopLevelObject(patch)) {
|
|
17838
|
+
const gaps = nestedCreateOnlyGaps(patch, await getCreateOnlyPropertyPaths(resourceType));
|
|
17839
|
+
if (gaps.length > 0) {
|
|
17840
|
+
const liveModel = await this.readCcResourceModel(resourceType, physicalId, idLog);
|
|
17841
|
+
if (liveModel !== void 0) patch = withCarriedCreateOnlyMembers(patch, gaps, liveModel);
|
|
17842
|
+
}
|
|
17843
|
+
}
|
|
17680
17844
|
let reimported = false;
|
|
17681
17845
|
if (isApiGatewayV2Import(resourceType, cleanProperties)) {
|
|
17682
17846
|
const split = splitApiGatewayV2ImportPatch(patch, cleanPreviousProperties, cleanProperties);
|
|
@@ -18770,7 +18934,7 @@ async function deleteInIdLogScope(logicalId, physicalId, resourceType, propertie
|
|
|
18770
18934
|
const indeterminateGuard = await this.confirmDeleteTargetIdentity(logicalId, resourceType, physicalId, context);
|
|
18771
18935
|
if (context?.removeProtection === true && resourceType === "AWS::AutoScaling::AutoScalingGroup") {
|
|
18772
18936
|
this.logger.debug(`Delegating protected AutoScalingGroup ${logicalId} delete to the SDK ASGProvider (Cloud Control cannot force-delete a protected ASG)`);
|
|
18773
|
-
const { ASGProvider } = await import("./asg-provider-
|
|
18937
|
+
const { ASGProvider } = await import("./asg-provider-BhktjcGM.js");
|
|
18774
18938
|
const delegateRegion = ambientRegion();
|
|
18775
18939
|
let asgProvider = this.asgDeleteDelegates.get(delegateRegion);
|
|
18776
18940
|
if (asgProvider === void 0) {
|
|
@@ -18924,7 +19088,7 @@ async function sdkDeleteDelegateInCcRegion(resourceType, logicalId, physicalId)
|
|
|
18924
19088
|
const family = SDK_DELETE_FAMILIES.get(resourceType);
|
|
18925
19089
|
const cached = this.sdkDeleteDelegates.get(family);
|
|
18926
19090
|
if (cached !== void 0 && cached.region === ccRegion) return cached.provider;
|
|
18927
|
-
const provider = family === "rds" ? new (await (import("./rds-provider-
|
|
19091
|
+
const provider = family === "rds" ? new (await (import("./rds-provider-CbmVLapS.js"))).RDSProvider({ region: ccRegion }) : new (await (import("./neptune-provider-CJuYc8IB.js"))).NeptuneProvider({ region: ccRegion });
|
|
18928
19092
|
this.sdkDeleteDelegates.set(family, {
|
|
18929
19093
|
region: ccRegion,
|
|
18930
19094
|
provider
|
|
@@ -19442,11 +19606,7 @@ async function enrichResourceAttributes(resourceType, physicalId, attributes, lo
|
|
|
19442
19606
|
try {
|
|
19443
19607
|
const cluster = (await new RDSClient({ ...ambientClientDefaults() }).send(new DescribeDBClustersCommand({ DBClusterIdentifier: physicalId }))).DBClusters?.[0];
|
|
19444
19608
|
if (cluster) {
|
|
19445
|
-
|
|
19446
|
-
if (cluster.Port !== void 0) enriched["Endpoint.Port"] = String(cluster.Port);
|
|
19447
|
-
if (cluster.ReaderEndpoint) enriched["ReadEndpoint.Address"] = cluster.ReaderEndpoint;
|
|
19448
|
-
if (cluster.DBClusterArn) enriched["Arn"] = cluster.DBClusterArn;
|
|
19449
|
-
if (cluster.DbClusterResourceId) enriched["DBClusterResourceId"] = cluster.DbClusterResourceId;
|
|
19609
|
+
Object.assign(enriched, dbClusterAttributes(cluster));
|
|
19450
19610
|
log.debug(`Enriched RDS DBCluster ${physicalId} with Endpoint/Port/Arn from DescribeDBClusters`);
|
|
19451
19611
|
}
|
|
19452
19612
|
} catch (error) {
|
|
@@ -19457,7 +19617,7 @@ async function enrichResourceAttributes(resourceType, physicalId, attributes, lo
|
|
|
19457
19617
|
try {
|
|
19458
19618
|
const inst = (await new RDSClient({ ...ambientClientDefaults() }).send(new DescribeDBInstancesCommand({ DBInstanceIdentifier: physicalId }))).DBInstances?.[0];
|
|
19459
19619
|
if (inst) {
|
|
19460
|
-
Object.assign(enriched, dbInstanceAttributes(inst));
|
|
19620
|
+
Object.assign(enriched, dbInstanceAttributes(inst, { settled: true }));
|
|
19461
19621
|
log.debug(`Enriched RDS DBInstance ${physicalId} with Endpoint/Port/Arn from DescribeDBInstances`);
|
|
19462
19622
|
}
|
|
19463
19623
|
} catch (error) {
|
|
@@ -21596,7 +21756,7 @@ async function publishToSns(topicArn, request) {
|
|
|
21596
21756
|
}
|
|
21597
21757
|
async function invokeLambda(serviceToken, request) {
|
|
21598
21758
|
if (localCustomResourceRuntimeActive()) {
|
|
21599
|
-
const { invokeCustomResourceFunctionLocally } = await import("./custom-resource-runtime-
|
|
21759
|
+
const { invokeCustomResourceFunctionLocally } = await import("./custom-resource-runtime-BkEa9HAa.js");
|
|
21600
21760
|
const local = await invokeCustomResourceFunctionLocally({
|
|
21601
21761
|
lambda: this.lambdaClient,
|
|
21602
21762
|
s3: this.s3Client
|
|
@@ -22534,6 +22694,7 @@ const NESTED_REQUIRED = /* @__PURE__ */ new Map([
|
|
|
22534
22694
|
]],
|
|
22535
22695
|
["PlacementConstraints", ["Type"]],
|
|
22536
22696
|
["ProxyConfiguration", ["ContainerName"]],
|
|
22697
|
+
["TrustedExecutionConfiguration", ["IsolationMode"]],
|
|
22537
22698
|
["Volumes.EFSVolumeConfiguration", ["FilesystemId"]],
|
|
22538
22699
|
["Volumes.FSxWindowsFileServerVolumeConfiguration", ["FileSystemId", "RootDirectory"]],
|
|
22539
22700
|
["Volumes.FSxWindowsFileServerVolumeConfiguration.AuthorizationConfig", ["CredentialsParameter", "Domain"]],
|
|
@@ -23634,7 +23795,7 @@ const PROPERTY_SHAPES = /* @__PURE__ */ new Map([
|
|
|
23634
23795
|
["AWS::ECR::Repository", "{\"EncryptionConfiguration\":\"object\",\"ImageScanningConfiguration\":\"object\",\"ImageTagMutabilityExclusionFilters\":\"array\",\"ImageTagMutabilityExclusionFilters[]\":\"object\",\"LifecyclePolicy\":\"object\",\"Tags\":\"array\",\"Tags[]\":\"object\"}"],
|
|
23635
23796
|
["AWS::ECS::Cluster", "{\"CapacityProviders\":\"array\",\"ClusterSettings\":\"array\",\"ClusterSettings[]\":\"object\",\"Configuration\":\"object\",\"Configuration.ExecuteCommandConfiguration\":\"object\",\"Configuration.ExecuteCommandConfiguration.LogConfiguration\":\"object\",\"Configuration.ManagedStorageConfiguration\":\"object\",\"DefaultCapacityProviderStrategy\":\"array\",\"DefaultCapacityProviderStrategy[]\":\"object\",\"ServiceConnectDefaults\":\"object\",\"Tags\":\"array\",\"Tags[]\":\"object\"}"],
|
|
23636
23797
|
["AWS::ECS::Service", "{\"CapacityProviderStrategy\":\"array\",\"CapacityProviderStrategy[]\":\"object\",\"DeploymentConfiguration\":\"object\",\"DeploymentConfiguration.Alarms\":\"object\",\"DeploymentConfiguration.Alarms.AlarmNames\":\"array\",\"DeploymentConfiguration.CanaryConfiguration\":\"object\",\"DeploymentConfiguration.DeploymentCircuitBreaker\":\"object\",\"DeploymentConfiguration.DeploymentCircuitBreaker.ThresholdConfiguration\":\"object\",\"DeploymentConfiguration.EarlySuccessCriteria\":\"object\",\"DeploymentConfiguration.LifecycleHooks\":\"array\",\"DeploymentConfiguration.LifecycleHooks[]\":\"object\",\"DeploymentConfiguration.LifecycleHooks[].LifecycleStages\":\"array\",\"DeploymentConfiguration.LifecycleHooks[].TimeoutConfiguration\":\"object\",\"DeploymentConfiguration.LinearConfiguration\":\"object\",\"DeploymentController\":\"object\",\"ForceNewDeployment\":\"object\",\"GatewayConnectors\":\"array\",\"GatewayConnectors[]\":\"object\",\"GatewayConnectors[].Filters\":\"object\",\"GatewayConnectors[].Filters.AccessTypes\":\"array\",\"GatewayConnectors[].HealthCheck\":\"object\",\"GatewayConnectors[].HealthCheck.Matcher\":\"object\",\"LoadBalancers\":\"array\",\"LoadBalancers[]\":\"object\",\"LoadBalancers[].AdvancedConfiguration\":\"object\",\"Monitoring\":\"object\",\"Monitoring.MetricConfigurations\":\"array\",\"Monitoring.MetricConfigurations[]\":\"object\",\"Monitoring.MetricConfigurations[].MetricNames\":\"array\",\"NetworkConfiguration\":\"object\",\"NetworkConfiguration.AwsvpcConfiguration\":\"object\",\"NetworkConfiguration.AwsvpcConfiguration.SecurityGroups\":\"array\",\"NetworkConfiguration.AwsvpcConfiguration.Subnets\":\"array\",\"PlacementConstraints\":\"array\",\"PlacementConstraints[]\":\"object\",\"PlacementStrategies\":\"array\",\"PlacementStrategies[]\":\"object\",\"ServiceConnectConfiguration\":\"object\",\"ServiceConnectConfiguration.AccessLogConfiguration\":\"object\",\"ServiceConnectConfiguration.ContainerConfigurations\":\"array\",\"ServiceConnectConfiguration.ContainerConfigurations[]\":\"object\",\"ServiceConnectConfiguration.LogConfiguration\":\"object\",\"ServiceConnectConfiguration.LogConfiguration.Options\":\"object\",\"ServiceConnectConfiguration.LogConfiguration.SecretOptions\":\"array\",\"ServiceConnectConfiguration.LogConfiguration.SecretOptions[]\":\"object\",\"ServiceConnectConfiguration.Services\":\"array\",\"ServiceConnectConfiguration.Services[]\":\"object\",\"ServiceConnectConfiguration.Services[].ClientAliases\":\"array\",\"ServiceConnectConfiguration.Services[].ClientAliases[]\":\"object\",\"ServiceConnectConfiguration.Services[].ClientAliases[].TestTrafficRules\":\"object\",\"ServiceConnectConfiguration.Services[].ClientAliases[].TestTrafficRules.Header\":\"object\",\"ServiceConnectConfiguration.Services[].ClientAliases[].TestTrafficRules.Header.Value\":\"object\",\"ServiceConnectConfiguration.Services[].Timeout\":\"object\",\"ServiceConnectConfiguration.Services[].Tls\":\"object\",\"ServiceConnectConfiguration.Services[].Tls.IssuerCertificateAuthority\":\"object\",\"ServiceRegistries\":\"array\",\"ServiceRegistries[]\":\"object\",\"Tags\":\"array\",\"Tags[]\":\"object\",\"VolumeConfigurations\":\"array\",\"VolumeConfigurations[]\":\"object\",\"VolumeConfigurations[].ManagedEBSVolume\":\"object\",\"VolumeConfigurations[].ManagedEBSVolume.TagSpecifications\":\"array\",\"VolumeConfigurations[].ManagedEBSVolume.TagSpecifications[]\":\"object\",\"VolumeConfigurations[].ManagedEBSVolume.TagSpecifications[].Tags\":\"array\",\"VolumeConfigurations[].ManagedEBSVolume.TagSpecifications[].Tags[]\":\"object\",\"VpcLatticeConfigurations\":\"array\",\"VpcLatticeConfigurations[]\":\"object\",\"VpcLatticeConfigurations[].AdvancedConfiguration\":\"object\"}"],
|
|
23637
|
-
["AWS::ECS::TaskDefinition", "{\"ContainerDefinitions\":\"array\",\"ContainerDefinitions[]\":\"object\",\"ContainerDefinitions[].Command\":\"array\",\"ContainerDefinitions[].CredentialSpecs\":\"array\",\"ContainerDefinitions[].DependsOn\":\"array\",\"ContainerDefinitions[].DependsOn[]\":\"object\",\"ContainerDefinitions[].DnsSearchDomains\":\"array\",\"ContainerDefinitions[].DnsServers\":\"array\",\"ContainerDefinitions[].DockerLabels\":\"object\",\"ContainerDefinitions[].DockerSecurityOptions\":\"array\",\"ContainerDefinitions[].EntryPoint\":\"array\",\"ContainerDefinitions[].Environment\":\"array\",\"ContainerDefinitions[].EnvironmentFiles\":\"array\",\"ContainerDefinitions[].EnvironmentFiles[]\":\"object\",\"ContainerDefinitions[].Environment[]\":\"object\",\"ContainerDefinitions[].ExtraHosts\":\"array\",\"ContainerDefinitions[].ExtraHosts[]\":\"object\",\"ContainerDefinitions[].FirelensConfiguration\":\"object\",\"ContainerDefinitions[].FirelensConfiguration.Options\":\"object\",\"ContainerDefinitions[].HealthCheck\":\"object\",\"ContainerDefinitions[].HealthCheck.Command\":\"array\",\"ContainerDefinitions[].Links\":\"array\",\"ContainerDefinitions[].LinuxParameters\":\"object\",\"ContainerDefinitions[].LinuxParameters.Capabilities\":\"object\",\"ContainerDefinitions[].LinuxParameters.Capabilities.Add\":\"array\",\"ContainerDefinitions[].LinuxParameters.Capabilities.Drop\":\"array\",\"ContainerDefinitions[].LinuxParameters.Devices\":\"array\",\"ContainerDefinitions[].LinuxParameters.Devices[]\":\"object\",\"ContainerDefinitions[].LinuxParameters.Devices[].Permissions\":\"array\",\"ContainerDefinitions[].LinuxParameters.Tmpfs\":\"array\",\"ContainerDefinitions[].LinuxParameters.Tmpfs[]\":\"object\",\"ContainerDefinitions[].LinuxParameters.Tmpfs[].MountOptions\":\"array\",\"ContainerDefinitions[].LogConfiguration\":\"object\",\"ContainerDefinitions[].LogConfiguration.Options\":\"object\",\"ContainerDefinitions[].LogConfiguration.SecretOptions\":\"array\",\"ContainerDefinitions[].LogConfiguration.SecretOptions[]\":\"object\",\"ContainerDefinitions[].MountPoints\":\"array\",\"ContainerDefinitions[].MountPoints[]\":\"object\",\"ContainerDefinitions[].PortMappings\":\"array\",\"ContainerDefinitions[].PortMappings[]\":\"object\",\"ContainerDefinitions[].RepositoryCredentials\":\"object\",\"ContainerDefinitions[].ResourceRequirements\":\"array\",\"ContainerDefinitions[].ResourceRequirements[]\":\"object\",\"ContainerDefinitions[].ResourceRequirements[].SharingStrategy\":\"object\",\"ContainerDefinitions[].ResourceRequirements[].SharingStrategy.NvidiaMps\":\"object\",\"ContainerDefinitions[].RestartPolicy\":\"object\",\"ContainerDefinitions[].RestartPolicy.IgnoredExitCodes\":\"array\",\"ContainerDefinitions[].Secrets\":\"array\",\"ContainerDefinitions[].Secrets[]\":\"object\",\"ContainerDefinitions[].SystemControls\":\"array\",\"ContainerDefinitions[].SystemControls[]\":\"object\",\"ContainerDefinitions[].Ulimits\":\"array\",\"ContainerDefinitions[].Ulimits[]\":\"object\",\"ContainerDefinitions[].VolumesFrom\":\"array\",\"ContainerDefinitions[].VolumesFrom[]\":\"object\",\"EphemeralStorage\":\"object\",\"InferenceAccelerators\":\"array\",\"InferenceAccelerators[]\":\"object\",\"PlacementConstraints\":\"array\",\"PlacementConstraints[]\":\"object\",\"ProxyConfiguration\":\"object\",\"ProxyConfiguration.ProxyConfigurationProperties\":\"array\",\"ProxyConfiguration.ProxyConfigurationProperties[]\":\"object\",\"RequiresCompatibilities\":\"array\",\"RuntimePlatform\":\"object\",\"Tags\":\"array\",\"Tags[]\":\"object\",\"Volumes\":\"array\",\"Volumes[]\":\"object\",\"Volumes[].DockerVolumeConfiguration\":\"object\",\"Volumes[].DockerVolumeConfiguration.DriverOpts\":\"object\",\"Volumes[].DockerVolumeConfiguration.Labels\":\"object\",\"Volumes[].EFSVolumeConfiguration\":\"object\",\"Volumes[].EFSVolumeConfiguration.AuthorizationConfig\":\"object\",\"Volumes[].FSxWindowsFileServerVolumeConfiguration\":\"object\",\"Volumes[].FSxWindowsFileServerVolumeConfiguration.AuthorizationConfig\":\"object\",\"Volumes[].Host\":\"object\",\"Volumes[].S3FilesVolumeConfiguration\":\"object\"}"],
|
|
23798
|
+
["AWS::ECS::TaskDefinition", "{\"ContainerDefinitions\":\"array\",\"ContainerDefinitions[]\":\"object\",\"ContainerDefinitions[].Command\":\"array\",\"ContainerDefinitions[].CredentialSpecs\":\"array\",\"ContainerDefinitions[].DependsOn\":\"array\",\"ContainerDefinitions[].DependsOn[]\":\"object\",\"ContainerDefinitions[].DnsSearchDomains\":\"array\",\"ContainerDefinitions[].DnsServers\":\"array\",\"ContainerDefinitions[].DockerLabels\":\"object\",\"ContainerDefinitions[].DockerSecurityOptions\":\"array\",\"ContainerDefinitions[].EntryPoint\":\"array\",\"ContainerDefinitions[].Environment\":\"array\",\"ContainerDefinitions[].EnvironmentFiles\":\"array\",\"ContainerDefinitions[].EnvironmentFiles[]\":\"object\",\"ContainerDefinitions[].Environment[]\":\"object\",\"ContainerDefinitions[].ExtraHosts\":\"array\",\"ContainerDefinitions[].ExtraHosts[]\":\"object\",\"ContainerDefinitions[].FirelensConfiguration\":\"object\",\"ContainerDefinitions[].FirelensConfiguration.Options\":\"object\",\"ContainerDefinitions[].HealthCheck\":\"object\",\"ContainerDefinitions[].HealthCheck.Command\":\"array\",\"ContainerDefinitions[].Links\":\"array\",\"ContainerDefinitions[].LinuxParameters\":\"object\",\"ContainerDefinitions[].LinuxParameters.Capabilities\":\"object\",\"ContainerDefinitions[].LinuxParameters.Capabilities.Add\":\"array\",\"ContainerDefinitions[].LinuxParameters.Capabilities.Drop\":\"array\",\"ContainerDefinitions[].LinuxParameters.Devices\":\"array\",\"ContainerDefinitions[].LinuxParameters.Devices[]\":\"object\",\"ContainerDefinitions[].LinuxParameters.Devices[].Permissions\":\"array\",\"ContainerDefinitions[].LinuxParameters.Tmpfs\":\"array\",\"ContainerDefinitions[].LinuxParameters.Tmpfs[]\":\"object\",\"ContainerDefinitions[].LinuxParameters.Tmpfs[].MountOptions\":\"array\",\"ContainerDefinitions[].LogConfiguration\":\"object\",\"ContainerDefinitions[].LogConfiguration.Options\":\"object\",\"ContainerDefinitions[].LogConfiguration.SecretOptions\":\"array\",\"ContainerDefinitions[].LogConfiguration.SecretOptions[]\":\"object\",\"ContainerDefinitions[].MountPoints\":\"array\",\"ContainerDefinitions[].MountPoints[]\":\"object\",\"ContainerDefinitions[].PortMappings\":\"array\",\"ContainerDefinitions[].PortMappings[]\":\"object\",\"ContainerDefinitions[].RepositoryCredentials\":\"object\",\"ContainerDefinitions[].ResourceRequirements\":\"array\",\"ContainerDefinitions[].ResourceRequirements[]\":\"object\",\"ContainerDefinitions[].ResourceRequirements[].SharingStrategy\":\"object\",\"ContainerDefinitions[].ResourceRequirements[].SharingStrategy.NvidiaMps\":\"object\",\"ContainerDefinitions[].RestartPolicy\":\"object\",\"ContainerDefinitions[].RestartPolicy.IgnoredExitCodes\":\"array\",\"ContainerDefinitions[].Secrets\":\"array\",\"ContainerDefinitions[].Secrets[]\":\"object\",\"ContainerDefinitions[].SystemControls\":\"array\",\"ContainerDefinitions[].SystemControls[]\":\"object\",\"ContainerDefinitions[].Ulimits\":\"array\",\"ContainerDefinitions[].Ulimits[]\":\"object\",\"ContainerDefinitions[].VolumesFrom\":\"array\",\"ContainerDefinitions[].VolumesFrom[]\":\"object\",\"EphemeralStorage\":\"object\",\"InferenceAccelerators\":\"array\",\"InferenceAccelerators[]\":\"object\",\"PlacementConstraints\":\"array\",\"PlacementConstraints[]\":\"object\",\"ProxyConfiguration\":\"object\",\"ProxyConfiguration.ProxyConfigurationProperties\":\"array\",\"ProxyConfiguration.ProxyConfigurationProperties[]\":\"object\",\"RequiresCompatibilities\":\"array\",\"RuntimePlatform\":\"object\",\"Tags\":\"array\",\"Tags[]\":\"object\",\"TrustedExecutionConfiguration\":\"object\",\"Volumes\":\"array\",\"Volumes[]\":\"object\",\"Volumes[].DockerVolumeConfiguration\":\"object\",\"Volumes[].DockerVolumeConfiguration.DriverOpts\":\"object\",\"Volumes[].DockerVolumeConfiguration.Labels\":\"object\",\"Volumes[].EFSVolumeConfiguration\":\"object\",\"Volumes[].EFSVolumeConfiguration.AuthorizationConfig\":\"object\",\"Volumes[].FSxWindowsFileServerVolumeConfiguration\":\"object\",\"Volumes[].FSxWindowsFileServerVolumeConfiguration.AuthorizationConfig\":\"object\",\"Volumes[].Host\":\"object\",\"Volumes[].S3FilesVolumeConfiguration\":\"object\"}"],
|
|
23638
23799
|
["AWS::EFS::AccessPoint", "{\"AccessPointTags\":\"array\",\"AccessPointTags[]\":\"object\",\"PosixUser\":\"object\",\"PosixUser.SecondaryGids\":\"array\",\"RootDirectory\":\"object\",\"RootDirectory.CreationInfo\":\"object\"}"],
|
|
23639
23800
|
["AWS::EFS::FileSystem", "{\"BackupPolicy\":\"object\",\"FileSystemPolicy\":\"object\",\"FileSystemProtection\":\"object\",\"FileSystemTags\":\"array\",\"FileSystemTags[]\":\"object\",\"LifecyclePolicies\":\"array\",\"LifecyclePolicies[]\":\"object\",\"ReplicationConfiguration\":\"object\",\"ReplicationConfiguration.Destinations\":\"array\",\"ReplicationConfiguration.Destinations[]\":\"object\"}"],
|
|
23640
23801
|
["AWS::EFS::MountTarget", "{\"SecurityGroups\":\"array\"}"],
|
|
@@ -24745,7 +24906,7 @@ async function ccRoutedInstanceTakesNoSnapshot(input) {
|
|
|
24745
24906
|
if (resourceType !== "AWS::RDS::DBInstance") return false;
|
|
24746
24907
|
if (region === void 0 || region === "") return false;
|
|
24747
24908
|
const mask = input.mask ?? ((text) => text);
|
|
24748
|
-
const { describeDBInstanceInRegion, isLiveReadReplica } = await import("./read-replica-
|
|
24909
|
+
const { describeDBInstanceInRegion, isLiveReadReplica } = await import("./read-replica-BQ5dRRmm.js").then((n) => n.l);
|
|
24749
24910
|
let reason;
|
|
24750
24911
|
try {
|
|
24751
24912
|
const live = await describeDBInstanceInRegion(physicalId, region);
|
|
@@ -29818,7 +29979,7 @@ function updatePartialMessage(reason) {
|
|
|
29818
29979
|
|
|
29819
29980
|
// src/deployment/rollback-executor/replay-noecho.ts
|
|
29820
29981
|
const NOECHO_REPLAY_READBACK_TIMEOUT_MS = 3e4;
|
|
29821
|
-
const NESTED_STACK_TYPE$
|
|
29982
|
+
const NESTED_STACK_TYPE$4 = "AWS::CloudFormation::Stack";
|
|
29822
29983
|
function coordinatePath(coordinate) {
|
|
29823
29984
|
let path = "";
|
|
29824
29985
|
for (const segment of coordinate) path += typeof segment === "number" ? `[${segment}]` : path === "" ? segment : `.${segment}`;
|
|
@@ -29904,7 +30065,7 @@ async function substituteMarkedNoEchoLeaves(input) {
|
|
|
29904
30065
|
if (desired === void 0) return identity;
|
|
29905
30066
|
const pending = (noEchoLeavesOf(baseline) ?? []).filter((coordinate) => carriesSecretMask(valueAtCoordinate(desired, coordinate)));
|
|
29906
30067
|
if (pending.length === 0) return identity;
|
|
29907
|
-
if (live.resourceType === NESTED_STACK_TYPE$
|
|
30068
|
+
if (live.resourceType === NESTED_STACK_TYPE$4 && baseline.resourceType === NESTED_STACK_TYPE$4 && live.provisionedBy !== "cc-api" && !routedVia.includes("cc-api")) return {
|
|
29908
30069
|
...identity,
|
|
29909
30070
|
inert: pending
|
|
29910
30071
|
};
|
|
@@ -30266,7 +30427,7 @@ function equalModuloMarkedMask(state, aws, mask, coordinate, isMarked, isWithinM
|
|
|
30266
30427
|
const b = jsonForm(aws);
|
|
30267
30428
|
if (isMarked(coordinate) && b !== void 0 && b !== null) {
|
|
30268
30429
|
if (a === mask) return true;
|
|
30269
|
-
if (isWithinMarked(coordinate) ? isWhollyMask$1(a, mask) : sameJson(a, wholeMaskOf(b, mask))) return holdsMask(a, mask);
|
|
30430
|
+
if (isWithinMarked(coordinate) ? isWhollyMask$1(a, mask) : sameJson(a, wholeMaskOf(b, mask))) return holdsMask$1(a, mask);
|
|
30270
30431
|
}
|
|
30271
30432
|
if (a === mask && (typeof b === "string" || typeof b === "number" || typeof b === "boolean")) return true;
|
|
30272
30433
|
if (a === b) return true;
|
|
@@ -30295,12 +30456,12 @@ function isWhollyMask$1(value, mask) {
|
|
|
30295
30456
|
if (isPlainObject$5(node)) return Object.values(node).every(walk);
|
|
30296
30457
|
return false;
|
|
30297
30458
|
};
|
|
30298
|
-
return walk(value) && holdsMask(value, mask);
|
|
30459
|
+
return walk(value) && holdsMask$1(value, mask);
|
|
30299
30460
|
}
|
|
30300
|
-
function holdsMask(value, mask) {
|
|
30461
|
+
function holdsMask$1(value, mask) {
|
|
30301
30462
|
if (value === mask) return true;
|
|
30302
|
-
if (Array.isArray(value)) return value.some((v) => holdsMask(v, mask));
|
|
30303
|
-
if (isPlainObject$5(value)) return Object.values(value).some((v) => holdsMask(v, mask));
|
|
30463
|
+
if (Array.isArray(value)) return value.some((v) => holdsMask$1(v, mask));
|
|
30464
|
+
if (isPlainObject$5(value)) return Object.values(value).some((v) => holdsMask$1(v, mask));
|
|
30304
30465
|
return false;
|
|
30305
30466
|
}
|
|
30306
30467
|
function sameJson(a, b) {
|
|
@@ -33875,6 +34036,7 @@ async function loadJournaledOrphans(stateBackend, stackName, region, rollbackOrp
|
|
|
33875
34036
|
unreadable: true
|
|
33876
34037
|
};
|
|
33877
34038
|
}
|
|
34039
|
+
options.onSegments?.(segments);
|
|
33878
34040
|
const physicalIdOnly = (ops) => ops.filter((op) => op.changeType !== "CREATE");
|
|
33879
34041
|
const evidence = segments.map((segment) => options.deployRunId !== void 0 && segment.reason === "nested-pending-parent" && segment.runId === options.deployRunId ? {
|
|
33880
34042
|
...segment,
|
|
@@ -34015,7 +34177,8 @@ async function settleJournaledOrphansOnSuccess(args) {
|
|
|
34015
34177
|
orphans = await loadJournaledOrphans(stateBackend, stackName, region, args.rollbackOrphans, logger, {
|
|
34016
34178
|
newerOperations,
|
|
34017
34179
|
...args.deployRunId !== void 0 && { deployRunId: args.deployRunId },
|
|
34018
|
-
unreadableOutcome: "the successful deploy removes the journal"
|
|
34180
|
+
unreadableOutcome: "the successful deploy removes the journal",
|
|
34181
|
+
...args.onSegments !== void 0 && { onSegments: args.onSegments }
|
|
34019
34182
|
});
|
|
34020
34183
|
} catch (err) {
|
|
34021
34184
|
logger.warn(safeMsg`Could not act on the rollback journal of stack ${stack}: ${errorDetail(err)}. It is kept.`);
|
|
@@ -34177,9 +34340,126 @@ async function collectNestedChildUnaddressed(fn) {
|
|
|
34177
34340
|
};
|
|
34178
34341
|
}
|
|
34179
34342
|
|
|
34343
|
+
// src/deployment/deploy-engine/record-shape.ts
|
|
34344
|
+
function auditResolvedAssetReferences(options, logicalId, resourceType, resolvedProps) {
|
|
34345
|
+
const redirect = options.assetRedirect;
|
|
34346
|
+
if (!redirect) return;
|
|
34347
|
+
const findings = findUnrewrittenAssetReferences(resolvedProps, redirect);
|
|
34348
|
+
if (findings.length === 0) return;
|
|
34349
|
+
const detail = findings.map((f) => safeMsg` - ${f.path}: still references '${f.source}'`).join("\n");
|
|
34350
|
+
throw new ProvisioningError(safeMsg`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${detail}\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);
|
|
34351
|
+
}
|
|
34352
|
+
function extractAllDependencies(template, logicalId) {
|
|
34353
|
+
const resource = template?.Resources?.[logicalId];
|
|
34354
|
+
if (!resource) return void 0;
|
|
34355
|
+
const parser = new TemplateParser();
|
|
34356
|
+
const parameterNames = new Set(Object.keys(template?.Parameters ?? {}));
|
|
34357
|
+
const deps = [...parser.extractDependencies(resource)].filter((dep) => !parameterNames.has(dep));
|
|
34358
|
+
return deps.length > 0 ? deps : void 0;
|
|
34359
|
+
}
|
|
34360
|
+
function withTemplateDependencies(resources, template, { removalsOnly = false } = {}) {
|
|
34361
|
+
let refreshed;
|
|
34362
|
+
for (const [logicalId, record] of Object.entries(resources)) {
|
|
34363
|
+
if (!Object.hasOwn(template.Resources ?? {}, logicalId)) continue;
|
|
34364
|
+
const derived = extractAllDependencies(template, logicalId) ?? [];
|
|
34365
|
+
const have = Array.isArray(record.dependencies) ? record.dependencies : [];
|
|
34366
|
+
const haveSet = new Set(have);
|
|
34367
|
+
const want = removalsOnly ? [...haveSet].filter((id) => derived.includes(id)) : derived;
|
|
34368
|
+
if (want.length === haveSet.size && want.every((id) => haveSet.has(id))) continue;
|
|
34369
|
+
refreshed ??= { ...resources };
|
|
34370
|
+
const { dependencies: _stale, ...rest } = record;
|
|
34371
|
+
refreshed[logicalId] = want.length > 0 ? {
|
|
34372
|
+
...rest,
|
|
34373
|
+
dependencies: want
|
|
34374
|
+
} : rest;
|
|
34375
|
+
}
|
|
34376
|
+
return refreshed;
|
|
34377
|
+
}
|
|
34378
|
+
function sameIds(a, b) {
|
|
34379
|
+
const set = new Set(a);
|
|
34380
|
+
return set.size === new Set(b).size && b.every((id) => set.has(id));
|
|
34381
|
+
}
|
|
34382
|
+
function dependenciesOf(record) {
|
|
34383
|
+
return Array.isArray(record?.dependencies) ? record.dependencies : [];
|
|
34384
|
+
}
|
|
34385
|
+
function nestedDependencySnapshot(previous, saved, template, touchedLogicalIds) {
|
|
34386
|
+
const final = withTemplateDependencies(saved, template, { removalsOnly: true }) ?? saved;
|
|
34387
|
+
const previousDependencies = {};
|
|
34388
|
+
const templateDependencies = {};
|
|
34389
|
+
for (const [logicalId, record] of Object.entries(final)) {
|
|
34390
|
+
if (!Object.hasOwn(template.Resources ?? {}, logicalId)) continue;
|
|
34391
|
+
const before = Object.hasOwn(previous, logicalId) ? previous[logicalId] : void 0;
|
|
34392
|
+
if (before !== void 0 && !touchedLogicalIds.has(logicalId)) {
|
|
34393
|
+
const had = dependenciesOf(before);
|
|
34394
|
+
if (!sameIds(had, dependenciesOf(record))) previousDependencies[logicalId] = [...had];
|
|
34395
|
+
}
|
|
34396
|
+
const derived = extractAllDependencies(template, logicalId) ?? [];
|
|
34397
|
+
if (!sameIds(derived, dependenciesOf(record))) templateDependencies[logicalId] = derived;
|
|
34398
|
+
}
|
|
34399
|
+
return {
|
|
34400
|
+
...Object.keys(previousDependencies).length > 0 && { previousDependencies },
|
|
34401
|
+
...Object.keys(templateDependencies).length > 0 && { templateDependencies }
|
|
34402
|
+
};
|
|
34403
|
+
}
|
|
34404
|
+
function withRecordedDependencies(resources, lists, onCycle) {
|
|
34405
|
+
let next;
|
|
34406
|
+
for (const [logicalId, list] of Object.entries(lists)) {
|
|
34407
|
+
const record = Object.hasOwn(resources, logicalId) ? resources[logicalId] : void 0;
|
|
34408
|
+
if (record === void 0 || sameIds(dependenciesOf(record), list)) continue;
|
|
34409
|
+
next ??= { ...resources };
|
|
34410
|
+
const { dependencies: _old, ...rest } = record;
|
|
34411
|
+
next[logicalId] = list.length > 0 ? {
|
|
34412
|
+
...rest,
|
|
34413
|
+
dependencies: [...list]
|
|
34414
|
+
} : rest;
|
|
34415
|
+
}
|
|
34416
|
+
if (next === void 0) return void 0;
|
|
34417
|
+
if (!hasDependencyCycle(next)) return next;
|
|
34418
|
+
onCycle?.();
|
|
34419
|
+
}
|
|
34420
|
+
function hasDependencyCycle(resources) {
|
|
34421
|
+
const state = /* @__PURE__ */ new Map();
|
|
34422
|
+
const visit = (id) => {
|
|
34423
|
+
const mark = state.get(id);
|
|
34424
|
+
if (mark === "done") return false;
|
|
34425
|
+
if (mark === "open") return true;
|
|
34426
|
+
state.set(id, "open");
|
|
34427
|
+
for (const dep of dependenciesOf(resources[id])) if (Object.hasOwn(resources, dep) && visit(dep)) return true;
|
|
34428
|
+
state.set(id, "done");
|
|
34429
|
+
return false;
|
|
34430
|
+
};
|
|
34431
|
+
return Object.keys(resources).some((id) => visit(id));
|
|
34432
|
+
}
|
|
34433
|
+
function withPropertiesMarksOf(original, rebuilt) {
|
|
34434
|
+
return carryRedactionMarks(original, rebuilt);
|
|
34435
|
+
}
|
|
34436
|
+
function propertiesToRecord(desiredProperties, result, resourceType, provisionedBy) {
|
|
34437
|
+
if (result.effectiveProperties) return markWrittenFromDeployedTemplate(markLeafCertifiedBag(provisionedBy === "sdk" ? withoutSdkUnwiredProperties(resourceType, result.effectiveProperties) : result.effectiveProperties));
|
|
34438
|
+
const written = provisionedBy === "sdk" ? withoutSdkUnwiredProperties(resourceType, desiredProperties) : desiredProperties;
|
|
34439
|
+
return markWrittenFromDeployedTemplate(markSameGenerationBag(written));
|
|
34440
|
+
}
|
|
34441
|
+
function extractTemplateAttributes(template, logicalId) {
|
|
34442
|
+
const resource = template?.Resources?.[logicalId];
|
|
34443
|
+
return {
|
|
34444
|
+
deletionPolicy: resource?.DeletionPolicy,
|
|
34445
|
+
updateReplacePolicy: resource?.UpdateReplacePolicy
|
|
34446
|
+
};
|
|
34447
|
+
}
|
|
34448
|
+
function acceptedCreateOnlyDropsField(recordedProperties, resourceType, provisionedBy, mode, previous) {
|
|
34449
|
+
const carried = mode === "in-place" ? acceptedCreateOnlyDropsOf(previous) : void 0;
|
|
34450
|
+
return { acceptedCreateOnlyDrops: acceptedCreateOnlyDropsEvidence(recordedProperties, resourceType, provisionedBy, carried) };
|
|
34451
|
+
}
|
|
34452
|
+
function secretNamedAttributesField(result, previous) {
|
|
34453
|
+
const reported = result.secretNamedAttributeNames;
|
|
34454
|
+
const source = reported !== void 0 ? reported : previous?.secretNamedAttributes;
|
|
34455
|
+
if (!Array.isArray(source)) return {};
|
|
34456
|
+
const names = source.filter((name) => typeof name === "string" && name !== "");
|
|
34457
|
+
return names.length > 0 ? { secretNamedAttributes: names } : {};
|
|
34458
|
+
}
|
|
34459
|
+
|
|
34180
34460
|
// src/deployment/nested-child-journal.ts
|
|
34181
34461
|
const NESTED_PENDING_PARENT_REASON = "nested-pending-parent";
|
|
34182
|
-
const NESTED_STACK_TYPE$
|
|
34462
|
+
const NESTED_STACK_TYPE$3 = "AWS::CloudFormation::Stack";
|
|
34183
34463
|
const MAX_NESTED_WALK_DEPTH = 32;
|
|
34184
34464
|
function nestedChildStackName(parentStackName, logicalId) {
|
|
34185
34465
|
return `${parentStackName}~${logicalId}`;
|
|
@@ -34242,7 +34522,7 @@ function recordDisplacedSkips(recordEvent, stackName, ops) {
|
|
|
34242
34522
|
});
|
|
34243
34523
|
}
|
|
34244
34524
|
function revertedNestedRowIds(ops) {
|
|
34245
|
-
return ops.filter((op) => op.resourceType === NESTED_STACK_TYPE$
|
|
34525
|
+
return ops.filter((op) => op.resourceType === NESTED_STACK_TYPE$3 && op.changeType === "UPDATE").map((op) => op.logicalId);
|
|
34246
34526
|
}
|
|
34247
34527
|
const revertRunStorage = new AsyncLocalStorage();
|
|
34248
34528
|
function withNestedRevertRun(runId, fn) {
|
|
@@ -34268,7 +34548,7 @@ async function dropNestedChildJournals(args) {
|
|
|
34268
34548
|
if (!isPlainRecord(resources)) return;
|
|
34269
34549
|
if (depthExceeded(depth, parentStackName, logger)) return;
|
|
34270
34550
|
for (const [logicalId, record] of Object.entries(resources)) {
|
|
34271
|
-
if (!isPlainRecord(record) || record["resourceType"] !== NESTED_STACK_TYPE$
|
|
34551
|
+
if (!isPlainRecord(record) || record["resourceType"] !== NESTED_STACK_TYPE$3) continue;
|
|
34272
34552
|
const child = nestedChildStackName(parentStackName, logicalId);
|
|
34273
34553
|
try {
|
|
34274
34554
|
const data = await stateBackend.getState(child, region);
|
|
@@ -34284,7 +34564,8 @@ async function dropNestedChildJournals(args) {
|
|
|
34284
34564
|
try {
|
|
34285
34565
|
if (await withChildLock(args.lockManager, child, region, logger, async () => {
|
|
34286
34566
|
if (args.beforeDelete) {
|
|
34287
|
-
|
|
34567
|
+
const own = await readOwnRecord(stateBackend, child, region);
|
|
34568
|
+
if (!await args.beforeDelete(child, own?.state, own?.etag)) return false;
|
|
34288
34569
|
}
|
|
34289
34570
|
let gone;
|
|
34290
34571
|
try {
|
|
@@ -34304,10 +34585,31 @@ async function dropNestedChildJournals(args) {
|
|
|
34304
34585
|
}
|
|
34305
34586
|
}
|
|
34306
34587
|
}
|
|
34588
|
+
async function recordChildTemplateDependencies(args) {
|
|
34589
|
+
const { child, state, runId, logger } = args;
|
|
34590
|
+
if (runId === void 0) return;
|
|
34591
|
+
const lists = args.segments.findLast((segment) => segment.runId === runId && segment.reason === "nested-pending-parent")?.templateDependencies;
|
|
34592
|
+
if (lists === void 0) return;
|
|
34593
|
+
const resources = withRecordedDependencies(state.resources, lists, () => logger.debug(safeMsg`Kept the recorded dependencies of nested stack ${displaySafe(child)}: the template's would form a cycle.`));
|
|
34594
|
+
if (resources === void 0) return;
|
|
34595
|
+
try {
|
|
34596
|
+
await args.stateBackend.saveState(child, args.region, {
|
|
34597
|
+
...state,
|
|
34598
|
+
...stackInstanceIdCarriedFrom(state),
|
|
34599
|
+
resources,
|
|
34600
|
+
lastModified: Date.now()
|
|
34601
|
+
}, { expectedEtag: args.etag });
|
|
34602
|
+
} catch (error) {
|
|
34603
|
+
logger.warn(safeMsg`Could not record the template's dependencies on nested stack ${displaySafe(child)}: ` + safeMsg`${errorText(error)}. A destroy may order its resources by an older template.`);
|
|
34604
|
+
}
|
|
34605
|
+
}
|
|
34307
34606
|
async function readOwnRecord(stateBackend, child, region) {
|
|
34308
34607
|
try {
|
|
34309
34608
|
const data = await stateBackend.getState(child, region);
|
|
34310
|
-
if (data && isPlainRecord(data.state) && isPlainRecord(data.state.resources) && (data.state.stackName === void 0 || data.state.stackName === child)) return
|
|
34609
|
+
if (data && isPlainRecord(data.state) && isPlainRecord(data.state.resources) && (data.state.stackName === void 0 || data.state.stackName === child)) return {
|
|
34610
|
+
state: data.state,
|
|
34611
|
+
etag: data.etag
|
|
34612
|
+
};
|
|
34311
34613
|
} catch {}
|
|
34312
34614
|
}
|
|
34313
34615
|
async function dropSettledNestedJournals(args) {
|
|
@@ -34483,6 +34785,18 @@ async function revertNestedChildFromJournal(args) {
|
|
|
34483
34785
|
for (const op of split.displaced) logger.warn(safeMsg`Nested stack ${childStackName}: ${op.logicalId} ` + safeMsg`${displacedOpClause(op, segment.importedResources ?? [], logger)}; ` + "not reverted, check that resource by hand");
|
|
34484
34786
|
}
|
|
34485
34787
|
restoring = failures === 0;
|
|
34788
|
+
if (restoring) {
|
|
34789
|
+
const lists = {};
|
|
34790
|
+
const decided = /* @__PURE__ */ new Set();
|
|
34791
|
+
for (const segment of segments) {
|
|
34792
|
+
for (const [id, list] of Object.entries(segment.previousDependencies ?? {})) {
|
|
34793
|
+
if (!decided.has(id)) lists[id] = list;
|
|
34794
|
+
decided.add(id);
|
|
34795
|
+
}
|
|
34796
|
+
for (const op of segment.operations) decided.add(op.logicalId);
|
|
34797
|
+
}
|
|
34798
|
+
Object.assign(stateResources, withRecordedDependencies(stateResources, lists, () => logger.debug(safeMsg`Kept the dependencies of nested stack ${shownChild} as the replay left them: the pre-run ones would form a cycle.`)));
|
|
34799
|
+
}
|
|
34486
34800
|
await save();
|
|
34487
34801
|
if (restoring && persisted && restoredOutputs && ctx.exportIndexStore) await ctx.exportIndexStore.updateForStack(childStackName, region, importableOutputs(nextState()));
|
|
34488
34802
|
if (warnings > 0) logger.warn(safeMsg`Nested stack ${shownChild}: ${warnings} operation(s) were skipped with a warning during ` + `its revert (see above); they may need attention by hand.`);
|
|
@@ -34967,7 +35281,9 @@ async function writeRollbackJournalSegment(deps, stackName, completedOperations,
|
|
|
34967
35281
|
...nestedPending.previousOutputs,
|
|
34968
35282
|
outputs: maskOutputsByPosition(deps.noEchoRun(), deps.noEchoDeps(), nestedPending.previousOutputs.outputs)
|
|
34969
35283
|
} },
|
|
34970
|
-
...nestedPending?.previousCrossStackReads && { previousCrossStackReads: nestedPending.previousCrossStackReads }
|
|
35284
|
+
...nestedPending?.previousCrossStackReads && { previousCrossStackReads: nestedPending.previousCrossStackReads },
|
|
35285
|
+
...nestedPending?.previousDependencies && { previousDependencies: nestedPending.previousDependencies },
|
|
35286
|
+
...nestedPending?.templateDependencies && { templateDependencies: nestedPending.templateDependencies }
|
|
34971
35287
|
};
|
|
34972
35288
|
await deps.stateBackend.appendRollbackJournalSegment(stackName, deps.stackRegion, segment);
|
|
34973
35289
|
deps.logger.debug(safeMsg`Rollback journal segment written (${reason})`);
|
|
@@ -35002,14 +35318,17 @@ function foreignHolderResolver(deps) {
|
|
|
35002
35318
|
return answer;
|
|
35003
35319
|
};
|
|
35004
35320
|
}
|
|
35005
|
-
async function settleJournalAfterSuccess(deps, stackName, completedOperations, previousState, finalResources, initialDeploy) {
|
|
35321
|
+
async function settleJournalAfterSuccess(deps, stackName, completedOperations, previousState, finalResources, initialDeploy, template) {
|
|
35006
35322
|
if (deps.options.parentStackInfo) {
|
|
35007
|
-
await writeRollbackJournalSegment(deps, stackName, completedOperations, [], NESTED_PENDING_PARENT_REASON, initialDeploy,
|
|
35008
|
-
|
|
35009
|
-
|
|
35010
|
-
|
|
35011
|
-
|
|
35012
|
-
|
|
35323
|
+
await writeRollbackJournalSegment(deps, stackName, completedOperations, [], NESTED_PENDING_PARENT_REASON, initialDeploy, {
|
|
35324
|
+
...template !== void 0 && nestedDependencySnapshot(previousState.resources, finalResources, template, new Set(completedOperations.map((op) => op.logicalId))),
|
|
35325
|
+
...nestedPendingSnapshot(previousState, (name) => {
|
|
35326
|
+
const verdict = deps.outputsRun().carriedExportAliasRefusal;
|
|
35327
|
+
const dropped = verdict === void 0 || verdict(name, name) !== void 0;
|
|
35328
|
+
if (dropped) deps.logger.warn(verdict === void 0 ? "An export alias the previous record published was not kept for a revert of this nested stack: no export-name verdict is available." : "An export alias the previous record published was not kept for a revert of this nested stack: its name contains a NoEcho value.");
|
|
35329
|
+
return dropped;
|
|
35330
|
+
})
|
|
35331
|
+
});
|
|
35013
35332
|
return 0;
|
|
35014
35333
|
}
|
|
35015
35334
|
let nestedLeft = 0;
|
|
@@ -35050,7 +35369,8 @@ async function settleJournalAfterSuccess(deps, stackName, completedOperations, p
|
|
|
35050
35369
|
region: deps.stackRegion,
|
|
35051
35370
|
resources: finalResources,
|
|
35052
35371
|
logger: deps.logger,
|
|
35053
|
-
beforeDelete: async (child, childRecord) => {
|
|
35372
|
+
beforeDelete: async (child, childRecord, childEtag) => {
|
|
35373
|
+
let childSegments = [];
|
|
35054
35374
|
const childState = childRecord !== void 0 && hasReadableOrphans(childRecord) ? childRecord : void 0;
|
|
35055
35375
|
const settled = await settleJournaledOrphansOnSuccess({
|
|
35056
35376
|
stateBackend: deps.stateBackend,
|
|
@@ -35072,6 +35392,19 @@ async function settleJournalAfterSuccess(deps, stackName, completedOperations, p
|
|
|
35072
35392
|
producerRegionsIncomplete: true,
|
|
35073
35393
|
nestedChildStack: child
|
|
35074
35394
|
},
|
|
35395
|
+
logger: deps.logger,
|
|
35396
|
+
onSegments: (segments) => {
|
|
35397
|
+
childSegments = segments;
|
|
35398
|
+
}
|
|
35399
|
+
});
|
|
35400
|
+
if (childState !== void 0 && childEtag !== void 0) await recordChildTemplateDependencies({
|
|
35401
|
+
stateBackend: deps.stateBackend,
|
|
35402
|
+
child,
|
|
35403
|
+
region: deps.stackRegion,
|
|
35404
|
+
state: childState,
|
|
35405
|
+
etag: childEtag,
|
|
35406
|
+
segments: childSegments,
|
|
35407
|
+
runId: deps.options.eventRecorder?.runId,
|
|
35075
35408
|
logger: deps.logger
|
|
35076
35409
|
});
|
|
35077
35410
|
nestedLeft += settled.unaddressed;
|
|
@@ -35859,50 +36192,6 @@ var GeneratedNameGuard = class GeneratedNameGuard {
|
|
|
35859
36192
|
}
|
|
35860
36193
|
};
|
|
35861
36194
|
|
|
35862
|
-
// src/deployment/deploy-engine/record-shape.ts
|
|
35863
|
-
function auditResolvedAssetReferences(options, logicalId, resourceType, resolvedProps) {
|
|
35864
|
-
const redirect = options.assetRedirect;
|
|
35865
|
-
if (!redirect) return;
|
|
35866
|
-
const findings = findUnrewrittenAssetReferences(resolvedProps, redirect);
|
|
35867
|
-
if (findings.length === 0) return;
|
|
35868
|
-
const detail = findings.map((f) => safeMsg` - ${f.path}: still references '${f.source}'`).join("\n");
|
|
35869
|
-
throw new ProvisioningError(safeMsg`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${detail}\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);
|
|
35870
|
-
}
|
|
35871
|
-
function extractAllDependencies(template, logicalId) {
|
|
35872
|
-
const resource = template?.Resources?.[logicalId];
|
|
35873
|
-
if (!resource) return void 0;
|
|
35874
|
-
const parser = new TemplateParser();
|
|
35875
|
-
const parameterNames = new Set(Object.keys(template?.Parameters ?? {}));
|
|
35876
|
-
const deps = [...parser.extractDependencies(resource)].filter((dep) => !parameterNames.has(dep));
|
|
35877
|
-
return deps.length > 0 ? deps : void 0;
|
|
35878
|
-
}
|
|
35879
|
-
function withPropertiesMarksOf(original, rebuilt) {
|
|
35880
|
-
return carryRedactionMarks(original, rebuilt);
|
|
35881
|
-
}
|
|
35882
|
-
function propertiesToRecord(desiredProperties, result, resourceType, provisionedBy) {
|
|
35883
|
-
if (result.effectiveProperties) return markWrittenFromDeployedTemplate(markLeafCertifiedBag(provisionedBy === "sdk" ? withoutSdkUnwiredProperties(resourceType, result.effectiveProperties) : result.effectiveProperties));
|
|
35884
|
-
const written = provisionedBy === "sdk" ? withoutSdkUnwiredProperties(resourceType, desiredProperties) : desiredProperties;
|
|
35885
|
-
return markWrittenFromDeployedTemplate(markSameGenerationBag(written));
|
|
35886
|
-
}
|
|
35887
|
-
function extractTemplateAttributes(template, logicalId) {
|
|
35888
|
-
const resource = template?.Resources?.[logicalId];
|
|
35889
|
-
return {
|
|
35890
|
-
deletionPolicy: resource?.DeletionPolicy,
|
|
35891
|
-
updateReplacePolicy: resource?.UpdateReplacePolicy
|
|
35892
|
-
};
|
|
35893
|
-
}
|
|
35894
|
-
function acceptedCreateOnlyDropsField(recordedProperties, resourceType, provisionedBy, mode, previous) {
|
|
35895
|
-
const carried = mode === "in-place" ? acceptedCreateOnlyDropsOf(previous) : void 0;
|
|
35896
|
-
return { acceptedCreateOnlyDrops: acceptedCreateOnlyDropsEvidence(recordedProperties, resourceType, provisionedBy, carried) };
|
|
35897
|
-
}
|
|
35898
|
-
function secretNamedAttributesField(result, previous) {
|
|
35899
|
-
const reported = result.secretNamedAttributeNames;
|
|
35900
|
-
const source = reported !== void 0 ? reported : previous?.secretNamedAttributes;
|
|
35901
|
-
if (!Array.isArray(source)) return {};
|
|
35902
|
-
const names = source.filter((name) => typeof name === "string" && name !== "");
|
|
35903
|
-
return names.length > 0 ? { secretNamedAttributes: names } : {};
|
|
35904
|
-
}
|
|
35905
|
-
|
|
35906
36195
|
// src/utils/resource-line.ts
|
|
35907
36196
|
function formatResourceLine(op, logicalId, resourceType, verbOverride) {
|
|
35908
36197
|
const body = `${bold(displaySafe(logicalId))} ${gray(`(${displaySafe(resourceType)})`)}`;
|
|
@@ -44302,14 +44591,14 @@ function logicalIdToPath(records, template) {
|
|
|
44302
44591
|
}
|
|
44303
44592
|
|
|
44304
44593
|
// src/deployment/deployment-approval.ts
|
|
44305
|
-
const NESTED_STACK_TYPE$
|
|
44594
|
+
const NESTED_STACK_TYPE$2 = "AWS::CloudFormation::Stack";
|
|
44306
44595
|
async function requireDeploymentApproval(args) {
|
|
44307
44596
|
const level = args.options.requireApproval ?? "never";
|
|
44308
44597
|
const approve = args.options.approveDeployment;
|
|
44309
44598
|
if (level === "never" || approve === void 0) return false;
|
|
44310
44599
|
const changes = [...args.changes].filter((c) => c.changeType !== "NO_CHANGE" && !isNoEchoPromotionOnly(c));
|
|
44311
44600
|
const destructiveChanges = findDestructiveChanges(args.stackName, changes, args.records, args.template, new Set(args.recreateTargetIds ?? []));
|
|
44312
|
-
const onlyNestedUpdates = changes.every((c) => c.changeType === "UPDATE" && c.resourceType === NESTED_STACK_TYPE$
|
|
44601
|
+
const onlyNestedUpdates = changes.every((c) => c.changeType === "UPDATE" && c.resourceType === NESTED_STACK_TYPE$2);
|
|
44313
44602
|
const security = level === "broadening" ? await diffSecurity({
|
|
44314
44603
|
stackName: args.stackName,
|
|
44315
44604
|
changes,
|
|
@@ -44352,7 +44641,7 @@ async function checkDestructivePlan(args) {
|
|
|
44352
44641
|
if (hook === void 0) return;
|
|
44353
44642
|
const changes = [...args.changes].filter((c) => c.changeType !== "NO_CHANGE" && !isNoEchoPromotionOnly(c));
|
|
44354
44643
|
const destroying = findDestructiveChanges(args.stackName, changes, args.records, args.template, new Set(args.recreateTargetIds ?? [])).filter((c) => c.impact !== "WILL_ORPHAN");
|
|
44355
|
-
const nestedRowChanges = changes.some((c) => c.resourceType === NESTED_STACK_TYPE$
|
|
44644
|
+
const nestedRowChanges = changes.some((c) => c.resourceType === NESTED_STACK_TYPE$2 && (c.changeType === "CREATE" || c.changeType === "UPDATE"));
|
|
44356
44645
|
if (destroying.length === 0 && !nestedRowChanges) return;
|
|
44357
44646
|
await hook(args.stackName, destroying);
|
|
44358
44647
|
}
|
|
@@ -44639,6 +44928,11 @@ async function compareWithRecord(engine, logicalId, change, stateResources, temp
|
|
|
44639
44928
|
}
|
|
44640
44929
|
}
|
|
44641
44930
|
}
|
|
44931
|
+
const literalRewrites = secretRerenderPairs(updateSecrets);
|
|
44932
|
+
if (literalRewrites.length > 0) for (const bag of new Set(repairable)) for (const key of Object.keys(bag)) {
|
|
44933
|
+
const repaired = repairEmbeddedPhysicalNamesTowards(bag[key], desiredForSkipCheck[key], literalRewrites);
|
|
44934
|
+
if (repaired !== bag[key]) bag[key] = repaired;
|
|
44935
|
+
}
|
|
44642
44936
|
const attributes = currentResource.attributes;
|
|
44643
44937
|
if (attributes !== void 0 && attributes !== null && embeddedRewrites.length > 0) for (const key of Object.keys(attributes)) {
|
|
44644
44938
|
const repaired = replaceEmbeddedPhysicalNameRewrites(attributes[key], embeddedRewrites);
|
|
@@ -45981,7 +46275,11 @@ async function provisionUpdate(engine, logicalId, change, stateResources, stackN
|
|
|
45981
46275
|
const lateReplacementDeclined = /* @__PURE__ */ new Set();
|
|
45982
46276
|
const differsWhy = (key) => !lateReplacementDeclined.has(key) ? "differs; the provider is not known to report this property exactly, so the difference may be its normalization" : lateCrossPrefixRefused ? "differs; the replacement was refused: see the state-prefix warning above" : `differs; the replacement was not approved (--require-approval=${engine.options.requireApproval ?? "never"})`;
|
|
45983
46277
|
if (witnessMigrates && !typeChanged && echoCandidates.length > 0 && hasAddressablePhysicalId(currentResource)) await readOnce();
|
|
45984
|
-
|
|
46278
|
+
const unchangedApartFromHeal = !typeChanged && lostChild === void 0 && recreateDirectionFor(engine.options, stackName, logicalId) === void 0 && recordMatchesDesired && unsettledNames.size === 0;
|
|
46279
|
+
const mayTakeNoChangeSkip = unchangedApartFromHeal && change.nestedChildHeal !== true;
|
|
46280
|
+
const healRowReadsRedacted = change.nestedChildHeal === true && unchangedApartFromHeal && !suppliesFreshMaskOnlyValue && (context.redactedAttributeReads?.length ?? 0) > 0;
|
|
46281
|
+
if (healRowReadsRedacted) engine.logger.warn(safeMsg`${logicalId}: the nested stack is not updated to re-spell its SSM parameter name (go-to-k/cdkd#6282): its Parameters read a value cdkd stores masked. It is re-spelled by the next deploy that changes this nested stack; until then each deploy checks it again and repeats this warning.`);
|
|
46282
|
+
if (mayTakeNoChangeSkip && !suppliesFreshMaskOnlyValue || healRowReadsRedacted) {
|
|
45985
46283
|
if (provenanceUnchanged.length > 0) stateResources[logicalId] = withRefreshedReadVersions(stateResources[logicalId] ?? currentResource, provenanceUnchanged);
|
|
45986
46284
|
if (change.attributeChanges && change.attributeChanges.length > 0) {
|
|
45987
46285
|
applyAttributeOnlyUpdate(change.attributeChanges);
|
|
@@ -46151,7 +46449,7 @@ async function provisionUpdate(engine, logicalId, change, stateResources, stackN
|
|
|
46151
46449
|
if (macReadsOther.size > 0) engine.logger.debug(safeMsg`${logicalId}: ${[...macReadsOther].sort().join(", ")} carry the NoEcho values they were last sent, but also read a value their MACs do not cover (a resource attribute, a plain parameter) with no equal, fully resolved input binding: compared as without a MAC`);
|
|
46152
46450
|
if (macChangedPaths.size > 0) engine.logger.info(safeMsg` ${logicalId}: sending ${[...macChangedPaths].sort().join(", ")}: a NoEcho parameter value it reads changed since the last deploy.`);
|
|
46153
46451
|
const confirmedPaths = /* @__PURE__ */ new Set([...noEchoHeldPaths, ...parameterSettledPaths]);
|
|
46154
|
-
if (confirmedPaths.size > 0 &&
|
|
46452
|
+
if (confirmedPaths.size > 0 && mayTakeNoChangeSkip && Object.keys(resolvedProps).every((key) => confirmedPaths.has(key) || otherFreshAt(key).length === 0 && !pendingParameterLeaves.has(key))) {
|
|
46155
46453
|
engine.logger.debug(safeMsg`Skipping ${logicalId}: AWS already holds every NoEcho value it carries, and nothing else changed`);
|
|
46156
46454
|
const staleHeld = staleCoordinates.filter((coordinate) => typeof coordinate[0] === "string" && parameterHeldKeys.has(coordinate[0]));
|
|
46157
46455
|
if (staleHeld.length > 0) {
|
|
@@ -47068,6 +47366,7 @@ async function executeDeployment(engine, template, currentState, changes, dag, e
|
|
|
47068
47366
|
await writeRollbackJournalSegment(engine.rollbackDeps(), stackName, completedOperations, failedOperations, "no-rollback-failure", currentEtag === void 0);
|
|
47069
47367
|
throw outputError;
|
|
47070
47368
|
}
|
|
47369
|
+
Object.assign(newResources, withTemplateDependencies(newResources, template, { removalsOnly: engine.options.parentStackInfo !== void 0 }));
|
|
47071
47370
|
return {
|
|
47072
47371
|
state: {
|
|
47073
47372
|
version: 17,
|
|
@@ -47230,7 +47529,7 @@ async function settleJournalAtStart(engine, { stackName, template, currentState,
|
|
|
47230
47529
|
}
|
|
47231
47530
|
|
|
47232
47531
|
// src/utils/nested-template-cycle.ts
|
|
47233
|
-
const NESTED_STACK_TYPE = "AWS::CloudFormation::Stack";
|
|
47532
|
+
const NESTED_STACK_TYPE$1 = "AWS::CloudFormation::Stack";
|
|
47234
47533
|
function isAbsoluteAssetPath(p) {
|
|
47235
47534
|
return path.isAbsolute(p) || p.startsWith("/");
|
|
47236
47535
|
}
|
|
@@ -47251,7 +47550,7 @@ function listNestedTemplateRows(template) {
|
|
|
47251
47550
|
const rows = [];
|
|
47252
47551
|
for (const [logicalId, resource] of Object.entries(resources)) {
|
|
47253
47552
|
const row = resource;
|
|
47254
|
-
if (row?.Type !== NESTED_STACK_TYPE) continue;
|
|
47553
|
+
if (row?.Type !== NESTED_STACK_TYPE$1) continue;
|
|
47255
47554
|
const assetPath = row.Metadata?.["aws:asset:path"];
|
|
47256
47555
|
if (typeof assetPath !== "string" || assetPath.length === 0) continue;
|
|
47257
47556
|
rows.push({
|
|
@@ -47821,7 +48120,7 @@ function inheritedProvenanceForChildDiff(args) {
|
|
|
47821
48120
|
}
|
|
47822
48121
|
|
|
47823
48122
|
// src/deployment/deploy-engine/deploy-flow/diff.ts
|
|
47824
|
-
async function calculateDeployDiff(engine, { stackName, currentState, effectiveTemplate, parameterValues, conditions, clock }) {
|
|
48123
|
+
async function calculateDeployDiff(engine, { stackName, currentState, effectiveTemplate, parameterValues, conditions, clock, forcedNestedChildRuns }) {
|
|
47825
48124
|
const diffResolverContext = buildResolverContext(engine.resolverContextDeps(), {
|
|
47826
48125
|
template: effectiveTemplate,
|
|
47827
48126
|
resources: currentState.resources,
|
|
@@ -47845,10 +48144,228 @@ async function calculateDeployDiff(engine, { stackName, currentState, effectiveT
|
|
|
47845
48144
|
changes: await engine.diffCalculator.calculateDiff(currentState, effectiveTemplate, diffResolveFn, makeCanonicalizePropertiesFn(engine.providerRegistry), engine.providerRegistry.getAllowedUnsupportedProperties?.(), freshNoEchoParametersWithDeclared(engine.noEchoRun.inheritedNoEchoParameters, effectiveTemplate), diffLogMasker(engine.secretsRun, engine.maskingDeps(), diffResolverContext.recordedSecretValues, effectiveTemplate, parameterValues, currentState.resources), recreateTargetIdsFor(engine.options.recreateTargets, stackName), maskedInputs, engine.options.refusalRecovery, noEchoDiffComparison(engine.noEchoRun, engine.noEchoDeps(), currentState.resources, effectiveTemplate, conditions, parameterValues, stackName), {
|
|
47846
48145
|
...engine.options.inheritedReferenceProvenance && { inherited: engine.options.inheritedReferenceProvenance },
|
|
47847
48146
|
crossStackOutputs: crossStackOutputProvenanceSource(crossStackReads, engine.recordedImports, engine.stateBackend)
|
|
47848
|
-
})
|
|
48147
|
+
}, forcedNestedChildRuns)
|
|
47849
48148
|
};
|
|
47850
48149
|
}
|
|
47851
48150
|
|
|
48151
|
+
// src/deployment/ssm-slashed-name-heal.ts
|
|
48152
|
+
const SSM_PARAMETER = "AWS::SSM::Parameter";
|
|
48153
|
+
function isObject$1(value) {
|
|
48154
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
48155
|
+
}
|
|
48156
|
+
function generatedNames(logicalId, stackName, stackInstanceId, record) {
|
|
48157
|
+
const names = [withStackScope({
|
|
48158
|
+
stackName,
|
|
48159
|
+
stackInstanceId: void 0,
|
|
48160
|
+
nameGenerations: void 0
|
|
48161
|
+
}, () => generatedNameFor(SSM_PARAMETER, logicalId))];
|
|
48162
|
+
if (stackInstanceId !== void 0) {
|
|
48163
|
+
const generation = nameGenerationOf(record, logicalId);
|
|
48164
|
+
names.push(withStackScope({
|
|
48165
|
+
stackName,
|
|
48166
|
+
stackInstanceId,
|
|
48167
|
+
nameGenerations: /* @__PURE__ */ new Map([[logicalId, generation]])
|
|
48168
|
+
}, () => generatedNameFor(SSM_PARAMETER, logicalId)));
|
|
48169
|
+
}
|
|
48170
|
+
return names;
|
|
48171
|
+
}
|
|
48172
|
+
function healedRecord(logicalId, record, template, stackName, stackInstanceId) {
|
|
48173
|
+
if (!isObject$1(record) || record["resourceType"] !== SSM_PARAMETER) return void 0;
|
|
48174
|
+
const physicalId = record["physicalId"];
|
|
48175
|
+
if (typeof physicalId !== "string" || !/^\/[^/]+$/.test(physicalId)) return void 0;
|
|
48176
|
+
const declared = template.Resources?.[logicalId];
|
|
48177
|
+
if (!isObject$1(declared) || declared["Type"] !== SSM_PARAMETER) return void 0;
|
|
48178
|
+
const properties = declared["Properties"] ?? {};
|
|
48179
|
+
if (!isObject$1(properties) || properties["Name"]) return void 0;
|
|
48180
|
+
const recordedProperties = record["properties"];
|
|
48181
|
+
if (isObject$1(recordedProperties) && recordedProperties["Name"]) return void 0;
|
|
48182
|
+
const state = record;
|
|
48183
|
+
const to = physicalId.slice(1);
|
|
48184
|
+
let names;
|
|
48185
|
+
try {
|
|
48186
|
+
names = generatedNames(logicalId, stackName, stackInstanceId, state);
|
|
48187
|
+
} catch {
|
|
48188
|
+
return;
|
|
48189
|
+
}
|
|
48190
|
+
if (!names.includes(to)) return void 0;
|
|
48191
|
+
const observed = state.observedProperties;
|
|
48192
|
+
return {
|
|
48193
|
+
record: {
|
|
48194
|
+
...state,
|
|
48195
|
+
physicalId: to,
|
|
48196
|
+
...isObject$1(observed) && observed["Name"] === physicalId && { observedProperties: {
|
|
48197
|
+
...observed,
|
|
48198
|
+
Name: to
|
|
48199
|
+
} }
|
|
48200
|
+
},
|
|
48201
|
+
heal: {
|
|
48202
|
+
logicalId,
|
|
48203
|
+
from: physicalId,
|
|
48204
|
+
to
|
|
48205
|
+
}
|
|
48206
|
+
};
|
|
48207
|
+
}
|
|
48208
|
+
function healSlashedSsmParameterNames(state, template, stackName) {
|
|
48209
|
+
const resources = state.resources ?? {};
|
|
48210
|
+
const heals = [];
|
|
48211
|
+
if (!isObject$1(resources)) return {
|
|
48212
|
+
resources,
|
|
48213
|
+
heals
|
|
48214
|
+
};
|
|
48215
|
+
let stackInstanceId;
|
|
48216
|
+
try {
|
|
48217
|
+
stackInstanceId = stackInstanceIdOf(state, stackName);
|
|
48218
|
+
} catch {
|
|
48219
|
+
return {
|
|
48220
|
+
resources,
|
|
48221
|
+
heals
|
|
48222
|
+
};
|
|
48223
|
+
}
|
|
48224
|
+
let healedResources;
|
|
48225
|
+
for (const [logicalId, record] of Object.entries(resources)) {
|
|
48226
|
+
const result = healedRecord(logicalId, record, template, stackName, stackInstanceId);
|
|
48227
|
+
if (result === void 0) continue;
|
|
48228
|
+
healedResources ??= { ...resources };
|
|
48229
|
+
healedResources[logicalId] = result.record;
|
|
48230
|
+
heals.push(result.heal);
|
|
48231
|
+
}
|
|
48232
|
+
return {
|
|
48233
|
+
resources: healedResources ?? resources,
|
|
48234
|
+
heals
|
|
48235
|
+
};
|
|
48236
|
+
}
|
|
48237
|
+
function slashedSsmNameHealNote(heal) {
|
|
48238
|
+
return safeMsg`SSM parameter ${heal.logicalId}: its recorded name ${heal.from} is ` + safeMsg`re-spelled ${heal.to} (the same parameter in SSM), so Ref and CDK's ` + "grantRead / grantWrite ARN name it; resources referencing it update to the new spelling (go-to-k/cdkd#6274)";
|
|
48239
|
+
}
|
|
48240
|
+
function slashedSsmNameHealPendingNote(heal, stackName) {
|
|
48241
|
+
return safeMsg`SSM parameter ${heal.logicalId} of nested stack ${stackName}: its recorded name ` + safeMsg`${heal.from} is re-spelled ${heal.to} on the next deploy that updates this nested ` + `stack, not on this one (go-to-k/cdkd#6274)`;
|
|
48242
|
+
}
|
|
48243
|
+
function slashedSsmNameHealAdoptedNote(heal) {
|
|
48244
|
+
return safeMsg`SSM parameter ${heal.logicalId} (adopted back): the deploy re-spells its recorded ` + safeMsg`name ${heal.from} as ${heal.to} and updates resources referencing it; this ` + `preview does not show those updates (go-to-k/cdkd#6274)`;
|
|
48245
|
+
}
|
|
48246
|
+
function readsRef(value, logicalId) {
|
|
48247
|
+
if (Array.isArray(value)) return value.some((item) => readsRef(item, logicalId));
|
|
48248
|
+
if (!isObject$1(value)) return false;
|
|
48249
|
+
if (value["Ref"] === logicalId) return true;
|
|
48250
|
+
const sub = value["Fn::Sub"];
|
|
48251
|
+
const subText = Array.isArray(sub) ? sub[0] : sub;
|
|
48252
|
+
if (typeof subText === "string" && subText.includes(`\${${logicalId}}`)) return true;
|
|
48253
|
+
return Object.values(value).some((child) => readsRef(child, logicalId));
|
|
48254
|
+
}
|
|
48255
|
+
function healsReadByExports(heals, template) {
|
|
48256
|
+
const exported = Object.values(template.Outputs ?? {}).filter((output) => isObject$1(output) && output["Export"] !== void 0);
|
|
48257
|
+
return heals.filter((heal) => exported.some((output) => readsRef(output.Value, heal.logicalId)));
|
|
48258
|
+
}
|
|
48259
|
+
|
|
48260
|
+
// src/deployment/nested-ssm-name-check.ts
|
|
48261
|
+
const NESTED_STACK_TYPE = "AWS::CloudFormation::Stack";
|
|
48262
|
+
function isObject(value) {
|
|
48263
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
48264
|
+
}
|
|
48265
|
+
function holdsMask(value, depth = 0) {
|
|
48266
|
+
if (depth > 64) return true;
|
|
48267
|
+
if (typeof value === "string") return value.includes("***");
|
|
48268
|
+
if (Array.isArray(value)) return value.some((item) => holdsMask(item, depth + 1));
|
|
48269
|
+
if (isObject(value)) return Object.values(value).some((item) => holdsMask(item, depth + 1));
|
|
48270
|
+
return false;
|
|
48271
|
+
}
|
|
48272
|
+
function recordedNestedRows(template, records) {
|
|
48273
|
+
const rows = [];
|
|
48274
|
+
let any = false;
|
|
48275
|
+
const resources = isObject(template.Resources) ? template.Resources : {};
|
|
48276
|
+
for (const [logicalId, resource] of Object.entries(resources)) {
|
|
48277
|
+
if (!isObject(resource) || resource["Type"] !== NESTED_STACK_TYPE) continue;
|
|
48278
|
+
any = true;
|
|
48279
|
+
const record = isObject(records) && Object.hasOwn(records, logicalId) ? records[logicalId] : void 0;
|
|
48280
|
+
if (isObject(record) && record["resourceType"] === NESTED_STACK_TYPE) rows.push(logicalId);
|
|
48281
|
+
}
|
|
48282
|
+
return {
|
|
48283
|
+
rows,
|
|
48284
|
+
any
|
|
48285
|
+
};
|
|
48286
|
+
}
|
|
48287
|
+
function hasNestedStackRows(template) {
|
|
48288
|
+
return recordedNestedRows(template, void 0).any;
|
|
48289
|
+
}
|
|
48290
|
+
async function checkLevel(stackName, region, template, records, loader, chain, readRecord) {
|
|
48291
|
+
const forcedRows = /* @__PURE__ */ new Set();
|
|
48292
|
+
const deferredRows = /* @__PURE__ */ new Set();
|
|
48293
|
+
let complete = true;
|
|
48294
|
+
const force = (logicalId) => {
|
|
48295
|
+
const properties = records?.[logicalId]?.properties;
|
|
48296
|
+
(holdsMask(properties) ? deferredRows : forcedRows).add(logicalId);
|
|
48297
|
+
};
|
|
48298
|
+
await Promise.all(recordedNestedRows(template, records).rows.map(async (logicalId) => {
|
|
48299
|
+
const child = loader(logicalId);
|
|
48300
|
+
if (child === void 0) return;
|
|
48301
|
+
if (chain.has(child.identity)) {
|
|
48302
|
+
complete = false;
|
|
48303
|
+
return;
|
|
48304
|
+
}
|
|
48305
|
+
const childStackName = `${stackName}~${logicalId}`;
|
|
48306
|
+
let state;
|
|
48307
|
+
let heals;
|
|
48308
|
+
try {
|
|
48309
|
+
state = await readRecord(childStackName, region);
|
|
48310
|
+
if (!isObject(state)) return;
|
|
48311
|
+
heals = healSlashedSsmParameterNames(state, child.template, childStackName).heals.length;
|
|
48312
|
+
} catch {
|
|
48313
|
+
complete = false;
|
|
48314
|
+
return;
|
|
48315
|
+
}
|
|
48316
|
+
if (heals > 0) {
|
|
48317
|
+
force(logicalId);
|
|
48318
|
+
return;
|
|
48319
|
+
}
|
|
48320
|
+
if (state.nestedSsmNamesChecked === true) return;
|
|
48321
|
+
const below = await checkLevel(childStackName, region, child.template, isObject(state.resources) ? state.resources : void 0, child.childTemplate, new Set(chain).add(child.identity), readRecord);
|
|
48322
|
+
if (below.forcedRows.size > 0) force(logicalId);
|
|
48323
|
+
else if (below.deferredRows.size > 0) deferredRows.add(logicalId);
|
|
48324
|
+
if (!below.complete) complete = false;
|
|
48325
|
+
}));
|
|
48326
|
+
return {
|
|
48327
|
+
forcedRows,
|
|
48328
|
+
deferredRows,
|
|
48329
|
+
complete
|
|
48330
|
+
};
|
|
48331
|
+
}
|
|
48332
|
+
async function checkNestedSsmNames(args) {
|
|
48333
|
+
const { state, template, stackName, region, nestedTemplates, readRecord } = args;
|
|
48334
|
+
if (state.nestedSsmNamesChecked === true || !hasNestedStackRows(template)) return void 0;
|
|
48335
|
+
const loader = childTemplateLoader(nestedTemplates);
|
|
48336
|
+
if (loader === void 0) return {
|
|
48337
|
+
forcedRows: /* @__PURE__ */ new Set(),
|
|
48338
|
+
deferredRows: /* @__PURE__ */ new Set(),
|
|
48339
|
+
complete: false
|
|
48340
|
+
};
|
|
48341
|
+
return checkLevel(stackName, region, template, isObject(state.resources) ? state.resources : void 0, loader, /* @__PURE__ */ new Set(), readRecord);
|
|
48342
|
+
}
|
|
48343
|
+
async function forcedChildrenChecked(args) {
|
|
48344
|
+
const { forcedRows, stackName, region, nestedTemplates, readRecord } = args;
|
|
48345
|
+
if (forcedRows.size === 0) return true;
|
|
48346
|
+
const loader = childTemplateLoader(nestedTemplates);
|
|
48347
|
+
if (loader === void 0) return false;
|
|
48348
|
+
return (await Promise.all([...forcedRows].map(async (logicalId) => {
|
|
48349
|
+
const child = loader(logicalId);
|
|
48350
|
+
if (child === void 0) return false;
|
|
48351
|
+
const childStackName = `${stackName}~${logicalId}`;
|
|
48352
|
+
try {
|
|
48353
|
+
const state = await readRecord(childStackName, region);
|
|
48354
|
+
if (!isObject(state)) return false;
|
|
48355
|
+
if (healSlashedSsmParameterNames(state, child.template, childStackName).heals.length > 0) return false;
|
|
48356
|
+
return !hasNestedStackRows(child.template) || state.nestedSsmNamesChecked === true;
|
|
48357
|
+
} catch {
|
|
48358
|
+
return false;
|
|
48359
|
+
}
|
|
48360
|
+
}))).every(Boolean);
|
|
48361
|
+
}
|
|
48362
|
+
function nestedSsmNameDeferredNote(logicalId) {
|
|
48363
|
+
return safeMsg`Nested stack ${logicalId}: a nested stack record below it holds an SSM parameter ` + "name cdkd generated before go-to-k/cdkd#6272, but the nested stack holding it reads a value cdkd stores masked, so it is not updated for that; the name is re-spelled by the next deploy that changes the nested stack whose Parameters read that value (go-to-k/cdkd#6282)";
|
|
48364
|
+
}
|
|
48365
|
+
function nestedSsmNameRowNote(logicalId) {
|
|
48366
|
+
return safeMsg`Nested stack ${logicalId}: a nested stack record below it holds an SSM parameter ` + "name cdkd generated before go-to-k/cdkd#6272, so this deploy updates the nested stack to re-spell it (go-to-k/cdkd#6282)";
|
|
48367
|
+
}
|
|
48368
|
+
|
|
47852
48369
|
// src/deployment/export-change-guard.ts
|
|
47853
48370
|
async function findAffectedExports({ template, conditions, changes, currentState, resolve, replaces }) {
|
|
47854
48371
|
const published = importableOutputKeys(currentState);
|
|
@@ -47954,115 +48471,6 @@ async function scanActiveConsumers(producerStack, producerRegion, ctx, onUnreada
|
|
|
47954
48471
|
}))).filter((r) => r !== null).flat();
|
|
47955
48472
|
}
|
|
47956
48473
|
|
|
47957
|
-
// src/deployment/ssm-slashed-name-heal.ts
|
|
47958
|
-
const SSM_PARAMETER = "AWS::SSM::Parameter";
|
|
47959
|
-
function isObject(value) {
|
|
47960
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
47961
|
-
}
|
|
47962
|
-
function generatedNames(logicalId, stackName, stackInstanceId, record) {
|
|
47963
|
-
const names = [withStackScope({
|
|
47964
|
-
stackName,
|
|
47965
|
-
stackInstanceId: void 0,
|
|
47966
|
-
nameGenerations: void 0
|
|
47967
|
-
}, () => generatedNameFor(SSM_PARAMETER, logicalId))];
|
|
47968
|
-
if (stackInstanceId !== void 0) {
|
|
47969
|
-
const generation = nameGenerationOf(record, logicalId);
|
|
47970
|
-
names.push(withStackScope({
|
|
47971
|
-
stackName,
|
|
47972
|
-
stackInstanceId,
|
|
47973
|
-
nameGenerations: /* @__PURE__ */ new Map([[logicalId, generation]])
|
|
47974
|
-
}, () => generatedNameFor(SSM_PARAMETER, logicalId)));
|
|
47975
|
-
}
|
|
47976
|
-
return names;
|
|
47977
|
-
}
|
|
47978
|
-
function healedRecord(logicalId, record, template, stackName, stackInstanceId) {
|
|
47979
|
-
if (!isObject(record) || record["resourceType"] !== SSM_PARAMETER) return void 0;
|
|
47980
|
-
const physicalId = record["physicalId"];
|
|
47981
|
-
if (typeof physicalId !== "string" || !/^\/[^/]+$/.test(physicalId)) return void 0;
|
|
47982
|
-
const declared = template.Resources?.[logicalId];
|
|
47983
|
-
if (!isObject(declared) || declared["Type"] !== SSM_PARAMETER) return void 0;
|
|
47984
|
-
const properties = declared["Properties"] ?? {};
|
|
47985
|
-
if (!isObject(properties) || properties["Name"]) return void 0;
|
|
47986
|
-
const recordedProperties = record["properties"];
|
|
47987
|
-
if (isObject(recordedProperties) && recordedProperties["Name"]) return void 0;
|
|
47988
|
-
const state = record;
|
|
47989
|
-
const to = physicalId.slice(1);
|
|
47990
|
-
let names;
|
|
47991
|
-
try {
|
|
47992
|
-
names = generatedNames(logicalId, stackName, stackInstanceId, state);
|
|
47993
|
-
} catch {
|
|
47994
|
-
return;
|
|
47995
|
-
}
|
|
47996
|
-
if (!names.includes(to)) return void 0;
|
|
47997
|
-
const observed = state.observedProperties;
|
|
47998
|
-
return {
|
|
47999
|
-
record: {
|
|
48000
|
-
...state,
|
|
48001
|
-
physicalId: to,
|
|
48002
|
-
...isObject(observed) && observed["Name"] === physicalId && { observedProperties: {
|
|
48003
|
-
...observed,
|
|
48004
|
-
Name: to
|
|
48005
|
-
} }
|
|
48006
|
-
},
|
|
48007
|
-
heal: {
|
|
48008
|
-
logicalId,
|
|
48009
|
-
from: physicalId,
|
|
48010
|
-
to
|
|
48011
|
-
}
|
|
48012
|
-
};
|
|
48013
|
-
}
|
|
48014
|
-
function healSlashedSsmParameterNames(state, template, stackName) {
|
|
48015
|
-
const resources = state.resources ?? {};
|
|
48016
|
-
const heals = [];
|
|
48017
|
-
if (!isObject(resources)) return {
|
|
48018
|
-
resources,
|
|
48019
|
-
heals
|
|
48020
|
-
};
|
|
48021
|
-
let stackInstanceId;
|
|
48022
|
-
try {
|
|
48023
|
-
stackInstanceId = stackInstanceIdOf(state, stackName);
|
|
48024
|
-
} catch {
|
|
48025
|
-
return {
|
|
48026
|
-
resources,
|
|
48027
|
-
heals
|
|
48028
|
-
};
|
|
48029
|
-
}
|
|
48030
|
-
let healedResources;
|
|
48031
|
-
for (const [logicalId, record] of Object.entries(resources)) {
|
|
48032
|
-
const result = healedRecord(logicalId, record, template, stackName, stackInstanceId);
|
|
48033
|
-
if (result === void 0) continue;
|
|
48034
|
-
healedResources ??= { ...resources };
|
|
48035
|
-
healedResources[logicalId] = result.record;
|
|
48036
|
-
heals.push(result.heal);
|
|
48037
|
-
}
|
|
48038
|
-
return {
|
|
48039
|
-
resources: healedResources ?? resources,
|
|
48040
|
-
heals
|
|
48041
|
-
};
|
|
48042
|
-
}
|
|
48043
|
-
function slashedSsmNameHealNote(heal) {
|
|
48044
|
-
return safeMsg`SSM parameter ${heal.logicalId}: its recorded name ${heal.from} is ` + safeMsg`re-spelled ${heal.to} (the same parameter in SSM), so Ref and CDK's ` + "grantRead / grantWrite ARN name it; resources referencing it update to the new spelling (go-to-k/cdkd#6274)";
|
|
48045
|
-
}
|
|
48046
|
-
function slashedSsmNameHealPendingNote(heal, stackName) {
|
|
48047
|
-
return safeMsg`SSM parameter ${heal.logicalId} of nested stack ${stackName}: its recorded name ` + safeMsg`${heal.from} is re-spelled ${heal.to} on the next deploy that updates this nested ` + `stack, not on this one (go-to-k/cdkd#6274)`;
|
|
48048
|
-
}
|
|
48049
|
-
function slashedSsmNameHealAdoptedNote(heal) {
|
|
48050
|
-
return safeMsg`SSM parameter ${heal.logicalId} (adopted back): the deploy re-spells its recorded ` + safeMsg`name ${heal.from} as ${heal.to} and updates resources referencing it; this ` + `preview does not show those updates (go-to-k/cdkd#6274)`;
|
|
48051
|
-
}
|
|
48052
|
-
function readsRef(value, logicalId) {
|
|
48053
|
-
if (Array.isArray(value)) return value.some((item) => readsRef(item, logicalId));
|
|
48054
|
-
if (!isObject(value)) return false;
|
|
48055
|
-
if (value["Ref"] === logicalId) return true;
|
|
48056
|
-
const sub = value["Fn::Sub"];
|
|
48057
|
-
const subText = Array.isArray(sub) ? sub[0] : sub;
|
|
48058
|
-
if (typeof subText === "string" && subText.includes(`\${${logicalId}}`)) return true;
|
|
48059
|
-
return Object.values(value).some((child) => readsRef(child, logicalId));
|
|
48060
|
-
}
|
|
48061
|
-
function healsReadByExports(heals, template) {
|
|
48062
|
-
const exported = Object.values(template.Outputs ?? {}).filter((output) => isObject(output) && output["Export"] !== void 0);
|
|
48063
|
-
return heals.filter((heal) => exported.some((output) => readsRef(output.Value, heal.logicalId)));
|
|
48064
|
-
}
|
|
48065
|
-
|
|
48066
48474
|
// src/deployment/deploy-engine/deploy-flow/plan-checks.ts
|
|
48067
48475
|
async function refuseUnsafePlan(engine, { stackName, ssmNameHeals = [], currentState, effectiveTemplate, parameterValues, conditions, changes, diffResolverContext }) {
|
|
48068
48476
|
const nestedStackTypeChanges = findNestedStackTypeChanges({
|
|
@@ -48220,7 +48628,7 @@ function keptWholeReasonText(reason) {
|
|
|
48220
48628
|
}
|
|
48221
48629
|
|
|
48222
48630
|
// src/deployment/deploy-engine/deploy-flow/no-change.ts
|
|
48223
|
-
async function deployWithoutChanges(engine, { stackName, template, currentState, currentEtag, effectiveTemplate, outputsDigestSource, parameterValues, conditions, conditionVerdicts, migrationPending, maskedFingerprintsBackfilled, orphansChanged, terminationProtectionChanged, ssmNamesHealed, resolveStackInstanceId, startProvenanceCapture, startTime, clock }) {
|
|
48631
|
+
async function deployWithoutChanges(engine, { stackName, template, currentState, currentEtag, effectiveTemplate, outputsDigestSource, parameterValues, conditions, conditionVerdicts, migrationPending, maskedFingerprintsBackfilled, orphansChanged, terminationProtectionChanged, ssmNamesHealed, nestedSsmNamesMarked, resolveStackInstanceId, startProvenanceCapture, startTime, clock }) {
|
|
48224
48632
|
engine.logger.info("No changes detected. Stack is up to date.");
|
|
48225
48633
|
startProvenanceCapture();
|
|
48226
48634
|
const supersededChanged = engine.options.dryRun ? false : await retryCarriedSupersededResources(engine, currentState, supersededResourcesOf(currentState), currentState.resources);
|
|
@@ -48262,14 +48670,15 @@ async function deployWithoutChanges(engine, { stackName, template, currentState,
|
|
|
48262
48670
|
stackName
|
|
48263
48671
|
});
|
|
48264
48672
|
const outputProvenanceBackfill = !outputsChanged && currentState.outputReferenceProvenance === void 0 && engine.provenanceBaseline?.tokenFree === false && engine.outputReferenceProvenanceFor(persistedOutputs, redactOutputs(engine.maskingDeps(), persistedOutputs)) !== void 0;
|
|
48265
|
-
|
|
48673
|
+
const refreshedResources = withTemplateDependencies(currentState.resources, effectiveTemplate, { removalsOnly: engine.options.parentStackInfo !== void 0 });
|
|
48674
|
+
if (observedRefresh || refreshedResources !== void 0 || outputProvenanceBackfill || maskedFingerprintsBackfilled || conditionVerdictsChanged || outputsChanged || exportSetChanged || skippedOutputsChanged || orphansChanged || supersededChanged || terminationProtectionChanged || ssmNamesHealed || nestedSsmNamesMarked || healedAttributesPending) {
|
|
48266
48675
|
await resolveStackInstanceId();
|
|
48267
48676
|
try {
|
|
48268
48677
|
const refreshedState = {
|
|
48269
48678
|
version: 17,
|
|
48270
48679
|
region: engine.stackRegion,
|
|
48271
48680
|
stackName: currentState.stackName,
|
|
48272
|
-
resources: currentState.resources,
|
|
48681
|
+
resources: refreshedResources ?? currentState.resources,
|
|
48273
48682
|
...orphansCarriedFrom(currentState),
|
|
48274
48683
|
...stackInstanceIdCarriedFrom(currentState),
|
|
48275
48684
|
outputs: outputsChanged ? outputsToPersist : persistedOutputs,
|
|
@@ -48292,6 +48701,7 @@ async function deployWithoutChanges(engine, { stackName, template, currentState,
|
|
|
48292
48701
|
outputs: redactOutputs(engine.maskingDeps(), refreshedState.outputs)
|
|
48293
48702
|
}));
|
|
48294
48703
|
} else if (observedRefresh) engine.logger.debug("Persisted refreshed observedProperties (no-change path)");
|
|
48704
|
+
else if (refreshedResources !== void 0) engine.logger.debug("Persisted dependencies refreshed from the template (no-change path)");
|
|
48295
48705
|
else if (healedAttributesPending) engine.logger.debug("Persisted attributes re-read from AWS for a stale record (no-change path)");
|
|
48296
48706
|
else engine.logger.debug("Persisted skipped-outputs record (no outputs-value diff, no-change path)");
|
|
48297
48707
|
} catch (saveError) {
|
|
@@ -48299,7 +48709,7 @@ async function deployWithoutChanges(engine, { stackName, template, currentState,
|
|
|
48299
48709
|
}
|
|
48300
48710
|
}
|
|
48301
48711
|
}
|
|
48302
|
-
const journaledOrphansLeft = engine.options.dryRun ? 0 : await settleJournalAfterSuccess(engine.rollbackDeps(), stackName, [], currentState, currentState.resources, currentEtag === void 0);
|
|
48712
|
+
const journaledOrphansLeft = engine.options.dryRun ? 0 : await settleJournalAfterSuccess(engine.rollbackDeps(), stackName, [], currentState, currentState.resources, currentEtag === void 0, effectiveTemplate);
|
|
48303
48713
|
clock.lap("no-change path");
|
|
48304
48714
|
return {
|
|
48305
48715
|
stackName,
|
|
@@ -48410,7 +48820,7 @@ async function settleSuccessfulDeploy(engine, { stackName, template, currentStat
|
|
|
48410
48820
|
}
|
|
48411
48821
|
})();
|
|
48412
48822
|
const [journaledOrphansLeft] = await Promise.all([
|
|
48413
|
-
settleJournalAfterSuccess(engine.rollbackDeps(), stackName, completedOperations, currentState, newState.resources, currentEtag === void 0),
|
|
48823
|
+
settleJournalAfterSuccess(engine.rollbackDeps(), stackName, completedOperations, currentState, newState.resources, currentEtag === void 0, template),
|
|
48414
48824
|
engine.exportIndexStore ? engine.exportIndexStore.updateForStack(stackName, engine.stackRegion, importableOutputs({
|
|
48415
48825
|
...newState,
|
|
48416
48826
|
outputs: redactOutputs(engine.maskingDeps(), newState.outputs)
|
|
@@ -48514,6 +48924,15 @@ async function doDeployWithPrefetch(engine, stackName, template, createOnlyPrefe
|
|
|
48514
48924
|
ssmNameHeals.push(...healed.heals);
|
|
48515
48925
|
};
|
|
48516
48926
|
healSsmNames();
|
|
48927
|
+
const nestedSsmCheck = checkNestedSsmNames({
|
|
48928
|
+
state: currentState,
|
|
48929
|
+
template,
|
|
48930
|
+
stackName,
|
|
48931
|
+
region: engine.stackRegion,
|
|
48932
|
+
nestedTemplates: getCurrentNestedStackContext()?.nestedTemplates,
|
|
48933
|
+
readRecord: async (name, region) => (await engine.stateBackend.getState(name, region))?.state
|
|
48934
|
+
});
|
|
48935
|
+
nestedSsmCheck.catch(() => void 0);
|
|
48517
48936
|
engine.rebaseline(currentState.resources ?? {});
|
|
48518
48937
|
engine.runProducerRegionEvidence = () => producerRegionEvidence(engine.rollbackDeps(), currentState);
|
|
48519
48938
|
const firstDeployIdentityRead = idArrivesLater && engine.stateBackend.peekStackInstanceSibling ? engine.options.dryRun ? Promise.resolve(null) : engine.stateBackend.peekStackInstanceSibling(stackName, engine.stackRegion) : void 0;
|
|
@@ -48604,13 +49023,18 @@ async function doDeployWithPrefetch(engine, stackName, template, createOnlyPrefe
|
|
|
48604
49023
|
currentState,
|
|
48605
49024
|
effectiveTemplate
|
|
48606
49025
|
});
|
|
49026
|
+
const nestedCheck = await nestedSsmCheck;
|
|
49027
|
+
for (const row of nestedCheck?.forcedRows ?? []) engine.logger.info(nestedSsmNameRowNote(row));
|
|
49028
|
+
for (const row of nestedCheck?.deferredRows ?? []) engine.logger.info(nestedSsmNameDeferredNote(row));
|
|
49029
|
+
const marksNestedCheck = nestedCheck?.complete === true && !Object.values(orphanPlan.adopted).some((r) => r.resourceType === "AWS::CloudFormation::Stack");
|
|
48607
49030
|
const { diffResolverContext, maskedInputs, changes } = await calculateDeployDiff(engine, {
|
|
48608
49031
|
stackName,
|
|
48609
49032
|
currentState,
|
|
48610
49033
|
effectiveTemplate,
|
|
48611
49034
|
parameterValues,
|
|
48612
49035
|
conditions,
|
|
48613
|
-
clock
|
|
49036
|
+
clock,
|
|
49037
|
+
forcedNestedChildRuns: nestedCheck?.forcedRows
|
|
48614
49038
|
});
|
|
48615
49039
|
clock.lap("diff");
|
|
48616
49040
|
createOnlyPrefetch.cancel();
|
|
@@ -48659,26 +49083,30 @@ async function doDeployWithPrefetch(engine, stackName, template, createOnlyPrefe
|
|
|
48659
49083
|
};
|
|
48660
49084
|
const hasChanges = engine.diffCalculator.hasChanges(changes);
|
|
48661
49085
|
clock.lap("post-diff checks");
|
|
48662
|
-
if (!hasChanges)
|
|
48663
|
-
|
|
48664
|
-
|
|
48665
|
-
|
|
48666
|
-
|
|
48667
|
-
|
|
48668
|
-
|
|
48669
|
-
|
|
48670
|
-
|
|
48671
|
-
|
|
48672
|
-
|
|
48673
|
-
|
|
48674
|
-
|
|
48675
|
-
|
|
48676
|
-
|
|
48677
|
-
|
|
48678
|
-
|
|
48679
|
-
|
|
48680
|
-
|
|
48681
|
-
|
|
49086
|
+
if (!hasChanges) {
|
|
49087
|
+
if (marksNestedCheck) currentState.nestedSsmNamesChecked = true;
|
|
49088
|
+
return await deployWithoutChanges(engine, {
|
|
49089
|
+
stackName,
|
|
49090
|
+
template,
|
|
49091
|
+
currentState,
|
|
49092
|
+
currentEtag,
|
|
49093
|
+
effectiveTemplate,
|
|
49094
|
+
outputsDigestSource,
|
|
49095
|
+
parameterValues,
|
|
49096
|
+
conditions,
|
|
49097
|
+
conditionVerdicts,
|
|
49098
|
+
migrationPending,
|
|
49099
|
+
maskedFingerprintsBackfilled,
|
|
49100
|
+
orphansChanged,
|
|
49101
|
+
terminationProtectionChanged,
|
|
49102
|
+
ssmNamesHealed: ssmNameHeals.length > 0,
|
|
49103
|
+
nestedSsmNamesMarked: marksNestedCheck,
|
|
49104
|
+
resolveStackInstanceId,
|
|
49105
|
+
startProvenanceCapture,
|
|
49106
|
+
startTime,
|
|
49107
|
+
clock
|
|
49108
|
+
});
|
|
49109
|
+
}
|
|
48682
49110
|
const createChanges = engine.diffCalculator.filterByType(changes, "CREATE");
|
|
48683
49111
|
const updateChanges = engine.diffCalculator.filterByType(changes, "UPDATE");
|
|
48684
49112
|
const deleteChanges = engine.diffCalculator.filterByType(changes, "DELETE");
|
|
@@ -48724,6 +49152,13 @@ async function doDeployWithPrefetch(engine, stackName, template, createOnlyPrefe
|
|
|
48724
49152
|
} catch {}
|
|
48725
49153
|
await engine.observedCapture.drainObservedCaptures(newState.resources);
|
|
48726
49154
|
clock.lap("observed-state drain");
|
|
49155
|
+
if (marksNestedCheck && await forcedChildrenChecked({
|
|
49156
|
+
forcedRows: nestedCheck?.forcedRows ?? /* @__PURE__ */ new Set(),
|
|
49157
|
+
stackName,
|
|
49158
|
+
region: engine.stackRegion,
|
|
49159
|
+
nestedTemplates: getCurrentNestedStackContext()?.nestedTemplates,
|
|
49160
|
+
readRecord: async (name, region) => (await engine.stateBackend.getState(name, region))?.state
|
|
49161
|
+
})) newState.nestedSsmNamesChecked = true;
|
|
48727
49162
|
const [newEtag] = await Promise.all([engine.stateBackend.saveState(stackName, engine.stackRegion, engine.withParentInfo(conditionVerdicts ? {
|
|
48728
49163
|
...newState,
|
|
48729
49164
|
conditionVerdicts
|
|
@@ -49009,5 +49444,5 @@ var DeployEngine = class {
|
|
|
49009
49444
|
}
|
|
49010
49445
|
};
|
|
49011
49446
|
|
|
49012
|
-
export { readTtlSpec as $, assertSendableRoleArn as $a, withStackInstanceIdWithheld as $c, isFinalSnapshotError as $i, recordAfterRollbackUpdate as $n, isStatefulRecreateTargetForReplace as $o, carriedExportAliasExposure as $r, malformedOrphansWarning as $s, resolvePendingCloudControlRequests as $t, serviceTokenBlockingReason as A, setResolvedResourceTimeouts as Aa, findActionableSdkUnwired as Ac, noEchoAttributeNamesOf as Ai, missingStateBucketRemedy as Al, noEchoValueMacsOf as An, outputReferenceProvenanceOf as Ao, redactedDeleteAddressSkip as Ar, malformedLocalResourcesWarning as As, ECR_AUTO_DELETE_IMAGES_TAG as At, STREAM_TAGS_KEY as B, isAlwaysLiveAttribute as Ba, S3StateBackend as Bc, orphanRecordsPrintingBag as Bi, hasOwnKey as Bl, changedReferencePath as Bn, carriesDynamicReference as Bo, withNameGenerationReached as Br, repairMalformedResourceEntriesForReadOnly as Bs, refuseRefactorMarker as Bt, templateIdentity as C, localCustomResourceRuntimeActive as Ca, accountArgs as Cc, withoutSuperseded as Ci, AssetManifestLoader as Cl, DeploymentEventsReader as Cn, refStateLookupFromResource as Co, computeImplicitDeleteEdges as Cr, refuseMalformedOrphanRecordsForDestroy as Cs, DELETE_INDEX_WAIT_PROCEED_NOTE as Ct, refusePendingMovesOut as D, CloudControlProvider as Da, displayLogicalId as Dc, green as Di, resolveFileAssetSourcePath as Dl, noEchoMacBinding as Dn, extractGetAttRefs as Do, REDACTED_DELETE_ADDRESS_SKIP_REASON as Dr, unreadableOrphanRecords as Ds, maskedLogger as Dt, pendingMovesRefusalMessage as E, waitForLambdaFunctionActive as Ea, UNREADABLE_RESOURCES_MAP_ROW as Ec, gray as Ei, parseAssetManifestBody as El, createNoEchoValueMacs as En, parseWebACLArn as Eo, findNestedStackTypeChanges as Er, unpreviewableOrphanRecords as Es, deleteTableWithIndexBusyRetry as Et, isProtectionValueActive as F, deleteSkipReason as Fa, withoutSdkUnwiredProperties as Fc, createReadOnlyAttributeHealerFactory as Fi, purgeNoncurrentKeyVersions as Fl, hintSidesOf as Fn, referenceTokensIn as Fo, nameGenerationHighWaterOf as Fr, refuseMalformedResourceEntriesForDeploy as Fs, recordRetainedForReadoption as Ft, streamDeclaresPolicy as G, maskedSecretSegment as Ga, rebuildClientForBucketRegion as Gc, stateSecretNameNeedles as Gi, assemblyPathEscape as Gl, mappingPairs as Gn, containsIntrinsic as Go, reachableDivergentParameters as Gr, refuseMalformedResourcePropertiesForDestroy as Gs, getPriorAttempts as Gt, declaredStreamTagsMember as H, stackIdTailOf as Ha, isKnownTokenFreeState as Hc, secretNamePrintingBags as Hi, nullPrototypeRecord as Hl, differingRemedy as Hn, withSharedDrainBudget as Ho, inheritProducerRegions as Hr, malformedDriftResourcePropertiesWarning as Hs, updateRefactorMarker as Ht, perType as I, withIndeterminateGuard as Ia, withoutUnwrittenSdkUnwiredProperties as Ic, completedReplayEntries as Ii, decodeListingKey as Il, movedToHint as In, getAccountInfo as Io, nameScopeOf as Ir, refuseMalformedResourceEntriesForDestroy as Is, readRefactorMarker as It, streamPolicyMatchesDeclared as J, resolveDynamicReferences as Ja, applyCrossPrefixScan as Jc, ATOMIC_FINAL_SNAPSHOT_TYPES as Ji, namesTheSameDirectory as Jl, proposeRenames as Jn, siblingsOf as Jo, displayTextOrWithheld as Jr, refuseMalformedResourcePropertiesForOrphan as Js, chunks as Jt, streamDeclaresTags as K, secretSegmentsOfState as Ka, CrossPrefixReadError as Kc, storedSecretNameNeedles as Ki, describeFileReadFailure as Kl, parseMappingFile as Kn, markNewValueKnownAfterDeploy as Ko, resourcesNamingDeclaredParameter as Kr, refuseMalformedResourcePropertiesForDrift as Ks, markRefusedBeforeApplying as Kt, readProtection as L, isWaitAbandonedError as La, NO_CC_HANDLERS_REASON as Lc, journaledOrphanPrintingBag as Li, rememberSynthesizedStacks as Ll, rollbackOrphanIds as Ln, isImpossibleEmptyStoredAttribute as Lo, retiredAfterRollback as Lr, refuseMalformedResourceEntriesForImport as Ls, readRefactorMarkerOnce as Lt, recordedProtectionEvidence as M, UNSPECIFIED_SKIP_REASON as Ma, findSdkUnwiredProperties as Mc, noEchoExactEchoLeavesOf as Mi, isListParameterType as Ml, findDestructiveChanges as Mn, recordedProvenanceOf as Mo, removeProtectionTypeList as Mr, malformedScrubResourceEntriesRefusalMessage as Ms, hasCdkAutoDeleteTag as Mt, recordedProtectionNote as N, deleteIndeterminateGuards as Na, unwrittenCreateOnlyReplacement as Nc, noEchoParameterNamesOf as Ni, ssmResolvedValueType as Nl, formatDestructiveChange as Nn, recordedReferenceRegions as No, orphanNeedsIdentity as Nr, refuseMalformedResourceAttributesForOrphan as Ns, isTruthyCfnBoolean as Nt, deferredServiceTokenWarning as O, waitForGoneAfterDelete as Oa, hasReadableOutputs as Oc, red as Oi, warnAbsoluteAssetPath as Ol, noEchoMacParametersOf as On, promoteInPlaceAttributeDependents as Oo, isRedactedRecordedValue as Or, isReadableResourceEntry as Os, relayedIndexBusyDelete as Ot, PROTECTION_PROPERTY_BY_TYPE as P, deleteLeftInPlace as Pa, withoutAcceptedSdkUnwiredProperties as Pc, withAttemptedItemsMasked as Pi, CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION as Pl, findRefactorHints as Pn, referenceProvenanceOf as Po, nameGenerationCarriedFrom as Pr, refuseMalformedResourceEntries as Ps, keptForRetainedRecord as Pt, planTimeToLive as Q, assertFlagRoleArn as Qa, stackInstanceIdOf as Qc, effectiveDeletionPolicy as Qi, resolveBucketRegion as Ql, DELETED_RESOURCE_REMEDY as Qn, MULTI_REGION_RECREATE_BLOCKED_TYPES as Qo, secretSafeKeyDisplay as Qr, malformedOrphansRefusalMessage as Qs, pendingRequestCount as Qt, DynamoDBGlobalTableProvider as R, IntrinsicFunctionResolver as Ra, hasNoCloudControlHandlers as Rc, maskEventTextWithBoundBags as Ri, synthesizedStacks as Rl, withMovedTo as Rn, carriesFetchableDynamicReference as Ro, retiredNameGenerationsAfter as Rr, refuseMalformedResourceEntriesForImportSave as Rs, refactorMarkerMovesOf as Rt, renderNestedTemplateTreeDefect as S, localCustomResourceCommand as Sa, JSON_LISTING_HOLE_VALUE as Sc, supersededResourcesOf as Si, BOOTSTRAP_MARKER_PREFIX as Sl, planOrphanAdoption as Sn, isStalePlaceholderArnAttribute as So, IMPLICIT_DELETE_DEPENDENCIES as Sr, refuseMalformedOrphanRecords as Ss, resolveDynamoDbDeleteBudgetMs as St, pendingMovesOutOf as T, withCustomResourceStack as Ta, STATE_RESOURCES_MALFORMED as Tc, cyan as Ti, isCfnTemplateAssetPath as Tl, NOECHO_MAC_KEY_ALIAS as Tn, lacksRecordedTableArn as To, withPreviousPolicies as Tr, repairMalformedOrphanRecordsForReadOnly as Ts, TABLE_INDEX_NOUN as Tt, planStreamMemberOps as U, isSettledInstanceState as Ua, hasReasonlessBaselineRefusal as Uc, secretNamedAttributeNamesOf as Ui, ownValue as Ul, isPairableType as Un, namesRecreatedParent as Uo, computeParameterTaint as Ur, malformedResourcePropertiesWarning as Us, macWriteOnlyKeys as Ut, declaredStreamPolicyMember as V, poisonRenderedSpellingsCollidingIn as Va, splitImportedOps as Vc, secretNamePrintingBag as Vi, hasPlainPrototype as Vl, changedReferenceReason as Vn, keepsSecretReferenceToken as Vo, getCurrentProducerRegions as Vr, unreadableResourceEntries as Vs, sameMove as Vt, reverseMapStreamPolicy as W, APPSYNC_APIKEY_ARN_RESOURCE_PATH as Wa, hasUnverifiableParameterRefusal as Wc, secretNamedRecordNeedles as Wi, absoluteAssemblyPathEscape as Wl, looselyEqual as Wn, INTRINSIC_KEYS as Wo, namesAnyDeclaredParameter as Wr, refuseMalformedResourceProperties as Ws, readsOnlyNoEchoParameters as Wt, isTtlAlreadyDisabled as X, refuseUnreadableCdkCrossAccountRefs as Xa, isAccessDenied$1 as Xc, ccRoutedFinalSnapshotError as Xi, resolveAssemblyPath as Xl, replayFailedOperations as Xn, isPlainReferenceTo as Xo, secretBearing as Xr, UNREADABLE_ORPHANS_CONTAINER_ROW as Xs, lookupEachName as Xt, streamTagsMatchDeclared as Y, producerLookupOver as Ya, crossPrefixDeniedWarning as Yc, PRE_DELETE_SNAPSHOT_TYPES as Yi, renderAssemblyPathEscape as Yl, referencedLogicalIds as Yn, findReplacedReadersOfRecreateTargets as Yo, exportAliasCollisionScrubWarning as Yr, repairMalformedResourcePropertiesForReadOnly as Ys, isAccessDeniedError as Yt, isTtlRateLimited as Z, applyRoleArnIfSet as Za, isNotImplemented as Zc, ccRoutedInstanceTakesNoSnapshot as Zi, clearBucketRegionCache as Zl, replayRollback as Zn, shownType as Zo, secretBearingStateKeyWarning as Zr, hasReadableOrphans as Zs, withApiLimit as Zt, readRecordedConditionVerdicts as _, withPrintingSecrets as _a, refuseMalformedResourcesForDeploy as _c, holdsSupersededResources as _i, getBootstrapMarkerKey as _l, journaledOrphanLines as _n, coerceParameterTypedValue as _o, isReplacementOrphan as _r, isReadableOrphanRecord as _s, DYNAMODB_DELETE_POLL_COST_MS as _t, healSlashedSsmParameterNames as a, ProviderRegistry as aa, malformedLocalOutputsWarning as ac, collectPublishedOutputNames as ai, flattenAssetPlaceholders as al, nestedChildStackName as an, applyCallerIdentityCredentials as ao, undeclaredEmptyObservedKeys as ar, toCfnInteger as as, vectorIndexesShapeDetail as at, isAbsoluteAssetPath as b, customResourcesFailedWithoutApp as ba, refuseMalformedState as bc, supersededHeldByOtherTypeWarning as bi, validateAssetBucketName as bl, makeForeignHolderScan as bn, AWS_NO_VALUE as bo, recordUnderIdIsNotOwn as br, malformedOrphanRowsKeptWarning as bs, deleteBudgetKey as bt, slashedSsmNameHealPendingNote as c, wouldReturnToSdkProvider as ca, refuseMalformedNestedChildOutputs as cc, DEFAULT_RESOURCE_TIMEOUT_MS as ci, loadPublishableAssetManifest as cl, revertedNestedRowIds as cn, classifyRecordedSecretRegion as co, earliestDefined as cr, inputFingerprinter as cs, indexDeclaresContributorInsights as ct, crossStackOutputProvenanceSource as d, customResourceResponseExpirationWarning as da, repairMalformedOutputsForReadOnly as dc, awaitInFlightSibling as di, rewriteTemplateAssetReferences as dl, getCurrentNestedStackContext as dn, regionLessSecretName as do, withCreateTokenLedger as dr, parameterInputsFor as ds, readContributorInsightsSpec as dt, refusesFinalSnapshot as ea, refuseMalformedOrphans as ec, exportNameNoEchoParameters as ei, isSecretValuedAttribute as el, NESTED_PENDING_PARENT_REASON as en, explicitRoleArnOrThrow as eo, settleUnsettledPrevious as er, isStatefulRecreateTargetSync as es, sendTtlWaitingOutRateLimit as et, inheritedProvenanceForChildDiff as f, responsePresignClient as fa, STATE_REGION_DIVERGED as fc, destroyStackRecordsView as fi, AssetModeResolver as fl, withNestedStackContext as fn, s3BucketArn as fo, acquireIdempotencyToken as fr, maskedInputProof as fs, reverseMapIndexContributorInsights as ft, parentSuppliedValues as g, getCurrentResourceSecrets as ga, malformedStateRefusalMessage as gc, deleteSupersededEntry as gi, isCrossRegionRedirect as gl, isHandledOrphan as gn, s3BucketWebsiteUrl as go, isJournaledOrphan as gr, deployRefusesOrphanRowsReason as gs, DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS as gt, conditionInputsFrom as h, isCustomResourceType as ha, malformedResourcesWarning as hc, replacedDeleteFailureVerdict as hi, assertAssetBucketRegion as hl, dropFailedHint as hn, s3BucketRegionalDomainName as ho, demoteSupersededOrphans as hr, maskedPropertyFingerprint as hs, DYNAMODB_DELETE_DEADLINE_MARGIN_MS as ht, mergeNoChangeOutputs as i, CC_BROKEN_REASON as ia, malformedExportSourceWarning as ic, collectDeclaredOutputNames as ii, createAssetRedirectResolver as il, getNestedRevertRun as in, AWS_CREDENTIAL_ENV_KEYS as io, equalModuloMask as ir, isWarmThroughputDecrease as is, vectorIndexesSettled as it, diffSecurity as j, RollbackInlinePolicyWriters as ja, findHandledUnwrittenCreateOnly as jc, noEchoComparisonForTemplate as ji, SSM_PARAMETER_VALUE_PREFIX as jl, constructPathOf as jn, recordedOutputReferenceRegions as jo, segmentCleanupOptions as jr, malformedResourceEntriesWarning as js, S3_AUTO_DELETE_OBJECTS_TAG as jt, findServiceTokenRefusals as k, resolvedResourceTimeoutMs as ka, hasReadableResources as kc, yellow as ki, warnWholeAssemblyAsSource as kl, noEchoMacVerdict as kn, keepHeldTokenProvenance as ko, redactedDeleteAddressFields as kr, malformedLocalResourceEntriesWarning as ks, waitForIndexesSettled as kt, scanActiveConsumers as l, CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID as la, refuseMalformedOutputs as lc, DEFAULT_RESOURCE_WARN_AFTER_MS as li, redirectDockerAsset as ll, withNestedRevertRun as ln, classifyReplaySecretRegion as lo, ledgerForStack as lr, maskedPropertyFingerprintsOf as ls, planContributorInsightsOp as lt, conditionFingerprint as m, readsNoEchoDeleteValues as ma, malformedRenderedContainersWarning as mc, withStackRecords as mi, buildDenyExternalAccessPolicy as ml, dropFailedCommands as mn, s3BucketDualStackDomainName as mo, seedsDeleteFirstGuard as mr, declaresNoEcho as ms, stripIndexContributorInsights as mt, isSecretBearingReferenceString as n, createPreDeleteFinalSnapshot as na, repairMalformedOrphansForReadOnly as nc, isWholeDynamicReferenceValue as ni, stringifyValue as nl, displacedPhysicalIdShown as nn, parseIamRoleArn as no, calculateResourceDrift as nr, WARM_THROUGHPUT_MEMBERS as ns, readbackVectorIndexes as nt, slashedSsmNameHealAdoptedNote as o, ccBrokenReason as oa, malformedOutputsRefusalMessage as oc, isExportAliasCollision as oi, isDefaultBootstrapBucketName as ol, recordDisplacedSkips as on, callerEnvCredentials as oo, updatePartialMessage as or, toFiniteNumber as os, CONTRIBUTOR_INSIGHTS_KEY as ot, makeCanonicalizePropertiesFn as p, TemplateNoEchoReresolver as pa, refuseDivergentRecordRegionForDestroy as pc, getStackRecords as pi, ensureAssetStorage as pl, deleteJournaledOrphans as pn, s3BucketDomainName as po, planRollback as pr, passedParameterClassesOf as ps, reverseMapTableContributorInsights as pt, streamMemberRefusals as q, withSecretPhysicalIdsMaskedInState as qa, CrossPrefixScanCache as qc, extractDeploymentEventError as qi, displayAssemblyPath as ql, propertiesChangedReason as qn, replacementSidesForLog as qo, WITHHELD_NAME_DISPLAY as qr, refuseMalformedResourcePropertiesForExport as qs, formatResourceLine as qt, keptWholeReasonText as r, buildFinalSnapshotIdentifier as ra, malformedExportNamesWarning as rc, noEchoParameterValueSeed as ri, buildAssetRedirectMap as rl, dropSettledNestedJournals as rn, sendableAssumeRoleCommand as ro, equalModuloMarkedMask as rr, coerceWarmThroughput as rs, vectorIndexesForCreate as rt, slashedSsmNameHealNote as s, isCustomResource as sa, malformedOutputsWarning as sc, bindingSkippedOutputs as si, isDefaultBootstrapRepoName as sl, revertNestedChildFromJournal as sn, envCredentialsAreAssumedRole as so, updatePartialReason as sr, tryGetTopLevelWriteOnlyProperties as ss, contributorInsightsRefusals as st, DeployEngine as t, unsupportedFinalSnapshotError as ta, refuseMalformedOrphansForDestroy as tc, exportNameSecretExposure as ti, isSensitiveAttributeName as tl, displacedOpClause as tn, isIamRoleArn as to, withUnprovenUnsettled as tr, renderStatefulReason as ts, planVectorIndexUpdates as tt, inRunStackKey as u, applyCustomResourceResponseExpiration as ua, refuseMalformedOutputsForDestroy as uc, maskingRetryLogger as ui, redirectFileAsset as ul, collectNestedChildUnaddressed as un, producerRegionsFromState as uo, reserveStackCreateToken as ur, movedMaskedProperties as us, planIndexContributorInsightsOps as ut, childTemplateLoader as v, NO_LOCAL_CUSTOM_RESOURCES_FLAG as va, refuseMalformedResourcesForDestroy as vc, isSupersededResourceRecord as vi, parseBootstrapMarker as vl, loadJournaledOrphans as vn, isUnboundTemplateParameter as vo, planFailedOps as vr, malformedOrphanRecordsRefusalMessage as vs, beginDeleteWait as vt, hasPendingMovesOut as w, setLocalCustomResourceRuntimeEnabled as wa, withheldAccountClause as wc, bold as wi, getDockerImageBySourceHash as wl, DeploymentEventsStore as wn, lacksRecordedRefArn as wo, resolveReplacementOldType as wr, refuseMalformedOrphansForOrphan as ws, INDEX_SETTLE_POLL_INTERVAL_MS as wt, listNestedTemplateRows as x, customResourcesRunWithoutApp as xa, repairMalformedResourcesForReadOnly as xc, supersededHolderOf as xi, validateContainerRepoName as xl, makeSiblingClaimReader as xn, cfnRefValueFromPhysicalId as xo, replacementNeverSwapped as xr, previewableOrphanRecords as xs, resolveDynamoDbDeleteBudgetClock as xt, findNestedTemplateTreeDefect as y, customResourceStackName as ya, refuseMalformedResourcesForExport as yc, supersededAfterRollback as yi, readBootstrapMarkerBody as yl, sameJournaledOrphans as yn, parameterTypeMayLoseSecretIdentity as yo, recheckFailedPlan as yr, malformedOrphanRecordsWarning as ys, compensateRemovedDeletionProtection as yt, STREAM_POLICY_KEY as z, isSelectOutOfBounds as za, TemplateParser as zc, namingSecretsWithRecordedNoEcho as zi, defineOwnKey as zl, changedReferenceInDiff as zn, isNamelessDynamicReferenceError as zo, retiredNameGenerationsLeaving as zr, refuseMalformedResourceEntriesForOrphan as zs, refactorMarkerRefusalMessage as zt };
|
|
49013
|
-
//# sourceMappingURL=deploy-engine-
|
|
49447
|
+
export { isTtlAlreadyDisabled as $, refuseUnreadableCdkCrossAccountRefs as $a, isAccessDenied$1 as $c, ccRoutedFinalSnapshotError as $i, resolveAssemblyPath as $l, replayFailedOperations as $n, isPlainReferenceTo as $o, secretBearing as $r, UNREADABLE_ORPHANS_CONTAINER_ROW as $s, lookupEachName as $t, refusePendingMovesOut as A, CloudControlProvider as Aa, displayLogicalId as Ac, green as Ai, resolveFileAssetSourcePath as Al, noEchoMacBinding as An, extractGetAttRefs as Ao, REDACTED_DELETE_ADDRESS_SKIP_REASON as Ar, unreadableOrphanRecords as As, maskedLogger as At, readProtection as B, isWaitAbandonedError as Ba, NO_CC_HANDLERS_REASON as Bc, journaledOrphanPrintingBag as Bi, rememberSynthesizedStacks as Bl, rollbackOrphanIds as Bn, isImpossibleEmptyStoredAttribute as Bo, retiredAfterRollback as Br, refuseMalformedResourceEntriesForImport as Bs, readRefactorMarkerOnce as Bt, isAbsoluteAssetPath as C, customResourcesFailedWithoutApp as Ca, refuseMalformedState as Cc, supersededHeldByOtherTypeWarning as Ci, validateAssetBucketName as Cl, makeForeignHolderScan as Cn, AWS_NO_VALUE as Co, recordUnderIdIsNotOwn as Cr, malformedOrphanRowsKeptWarning as Cs, deleteBudgetKey as Ct, hasPendingMovesOut as D, setLocalCustomResourceRuntimeEnabled as Da, withheldAccountClause as Dc, bold as Di, getDockerImageBySourceHash as Dl, DeploymentEventsStore as Dn, lacksRecordedRefArn as Do, resolveReplacementOldType as Dr, refuseMalformedOrphansForOrphan as Ds, INDEX_SETTLE_POLL_INTERVAL_MS as Dt, templateIdentity as E, localCustomResourceRuntimeActive as Ea, accountArgs as Ec, withoutSuperseded as Ei, AssetManifestLoader as El, DeploymentEventsReader as En, refStateLookupFromResource as Eo, computeImplicitDeleteEdges as Er, refuseMalformedOrphanRecordsForDestroy as Es, DELETE_INDEX_WAIT_PROCEED_NOTE as Et, recordedProtectionEvidence as F, UNSPECIFIED_SKIP_REASON as Fa, findSdkUnwiredProperties as Fc, noEchoExactEchoLeavesOf as Fi, isListParameterType as Fl, findDestructiveChanges as Fn, recordedProvenanceOf as Fo, removeProtectionTypeList as Fr, malformedScrubResourceEntriesRefusalMessage as Fs, hasCdkAutoDeleteTag as Ft, declaredStreamTagsMember as G, stackIdTailOf as Ga, isKnownTokenFreeState as Gc, secretNamePrintingBags as Gi, nullPrototypeRecord as Gl, differingRemedy as Gn, withSharedDrainBudget as Go, inheritProducerRegions as Gr, malformedDriftResourcePropertiesWarning as Gs, updateRefactorMarker as Gt, STREAM_POLICY_KEY as H, isSelectOutOfBounds as Ha, TemplateParser as Hc, namingSecretsWithRecordedNoEcho as Hi, defineOwnKey as Hl, changedReferenceInDiff as Hn, isNamelessDynamicReferenceError as Ho, retiredNameGenerationsLeaving as Hr, refuseMalformedResourceEntriesForOrphan as Hs, refactorMarkerRefusalMessage as Ht, recordedProtectionNote as I, deleteIndeterminateGuards as Ia, unwrittenCreateOnlyReplacement as Ic, noEchoParameterNamesOf as Ii, ssmResolvedValueType as Il, formatDestructiveChange as In, recordedReferenceRegions as Io, orphanNeedsIdentity as Ir, refuseMalformedResourceAttributesForOrphan as Is, isTruthyCfnBoolean as It, streamDeclaresPolicy as J, maskedSecretSegment as Ja, rebuildClientForBucketRegion as Jc, stateSecretNameNeedles as Ji, assemblyPathEscape as Jl, mappingPairs as Jn, containsIntrinsic as Jo, reachableDivergentParameters as Jr, refuseMalformedResourcePropertiesForDestroy as Js, getPriorAttempts as Jt, planStreamMemberOps as K, isSettledInstanceState as Ka, hasReasonlessBaselineRefusal as Kc, secretNamedAttributeNamesOf as Ki, ownValue as Kl, isPairableType as Kn, namesRecreatedParent as Ko, computeParameterTaint as Kr, malformedResourcePropertiesWarning as Ks, macWriteOnlyKeys as Kt, PROTECTION_PROPERTY_BY_TYPE as L, deleteLeftInPlace as La, withoutAcceptedSdkUnwiredProperties as Lc, withAttemptedItemsMasked as Li, CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION as Ll, findRefactorHints as Ln, referenceProvenanceOf as Lo, nameGenerationCarriedFrom as Lr, refuseMalformedResourceEntries as Ls, keptForRetainedRecord as Lt, findServiceTokenRefusals as M, resolvedResourceTimeoutMs as Ma, hasReadableResources as Mc, yellow as Mi, warnWholeAssemblyAsSource as Ml, noEchoMacVerdict as Mn, keepHeldTokenProvenance as Mo, redactedDeleteAddressFields as Mr, malformedLocalResourceEntriesWarning as Ms, waitForIndexesSettled as Mt, serviceTokenBlockingReason as N, setResolvedResourceTimeouts as Na, findActionableSdkUnwired as Nc, noEchoAttributeNamesOf as Ni, missingStateBucketRemedy as Nl, noEchoValueMacsOf as Nn, outputReferenceProvenanceOf as No, redactedDeleteAddressSkip as Nr, malformedLocalResourcesWarning as Ns, ECR_AUTO_DELETE_IMAGES_TAG as Nt, pendingMovesOutOf as O, withCustomResourceStack as Oa, STATE_RESOURCES_MALFORMED as Oc, cyan as Oi, isCfnTemplateAssetPath as Ol, NOECHO_MAC_KEY_ALIAS as On, lacksRecordedTableArn as Oo, withPreviousPolicies as Or, repairMalformedOrphanRecordsForReadOnly as Os, TABLE_INDEX_NOUN as Ot, diffSecurity as P, RollbackInlinePolicyWriters as Pa, findHandledUnwrittenCreateOnly as Pc, noEchoComparisonForTemplate as Pi, SSM_PARAMETER_VALUE_PREFIX as Pl, constructPathOf as Pn, recordedOutputReferenceRegions as Po, segmentCleanupOptions as Pr, malformedResourceEntriesWarning as Ps, S3_AUTO_DELETE_OBJECTS_TAG as Pt, streamTagsMatchDeclared as Q, producerLookupOver as Qa, crossPrefixDeniedWarning as Qc, PRE_DELETE_SNAPSHOT_TYPES as Qi, renderAssemblyPathEscape as Ql, referencedLogicalIds as Qn, findReplacedReadersOfRecreateTargets as Qo, exportAliasCollisionScrubWarning as Qr, repairMalformedResourcePropertiesForReadOnly as Qs, isAccessDeniedError as Qt, isProtectionValueActive as R, deleteSkipReason as Ra, withoutSdkUnwiredProperties as Rc, createReadOnlyAttributeHealerFactory as Ri, purgeNoncurrentKeyVersions as Rl, hintSidesOf as Rn, referenceTokensIn as Ro, nameGenerationHighWaterOf as Rr, refuseMalformedResourceEntriesForDeploy as Rs, recordRetainedForReadoption as Rt, findNestedTemplateTreeDefect as S, customResourceStackName as Sa, refuseMalformedResourcesForExport as Sc, supersededAfterRollback as Si, readBootstrapMarkerBody as Sl, sameJournaledOrphans as Sn, parameterTypeMayLoseSecretIdentity as So, recheckFailedPlan as Sr, malformedOrphanRecordsWarning as Ss, compensateRemovedDeletionProtection as St, renderNestedTemplateTreeDefect as T, localCustomResourceCommand as Ta, JSON_LISTING_HOLE_VALUE as Tc, supersededResourcesOf as Ti, BOOTSTRAP_MARKER_PREFIX as Tl, planOrphanAdoption as Tn, isStalePlaceholderArnAttribute as To, IMPLICIT_DELETE_DEPENDENCIES as Tr, refuseMalformedOrphanRecords as Ts, resolveDynamoDbDeleteBudgetMs as Tt, STREAM_TAGS_KEY as U, isAlwaysLiveAttribute as Ua, S3StateBackend as Uc, orphanRecordsPrintingBag as Ui, hasOwnKey as Ul, changedReferencePath as Un, carriesDynamicReference as Uo, withNameGenerationReached as Ur, repairMalformedResourceEntriesForReadOnly as Us, refuseRefactorMarker as Ut, DynamoDBGlobalTableProvider as V, IntrinsicFunctionResolver as Va, hasNoCloudControlHandlers as Vc, maskEventTextWithBoundBags as Vi, synthesizedStacks as Vl, withMovedTo as Vn, carriesFetchableDynamicReference as Vo, retiredNameGenerationsAfter as Vr, refuseMalformedResourceEntriesForImportSave as Vs, refactorMarkerMovesOf as Vt, declaredStreamPolicyMember as W, poisonRenderedSpellingsCollidingIn as Wa, splitImportedOps as Wc, secretNamePrintingBag as Wi, hasPlainPrototype as Wl, changedReferenceReason as Wn, keepsSecretReferenceToken as Wo, getCurrentProducerRegions as Wr, unreadableResourceEntries as Ws, sameMove as Wt, streamMemberRefusals as X, withSecretPhysicalIdsMaskedInState as Xa, CrossPrefixScanCache as Xc, extractDeploymentEventError as Xi, displayAssemblyPath as Xl, propertiesChangedReason as Xn, replacementSidesForLog as Xo, WITHHELD_NAME_DISPLAY as Xr, refuseMalformedResourcePropertiesForExport as Xs, formatResourceLine as Xt, streamDeclaresTags as Y, secretSegmentsOfState as Ya, CrossPrefixReadError as Yc, storedSecretNameNeedles as Yi, describeFileReadFailure as Yl, parseMappingFile as Yn, markNewValueKnownAfterDeploy as Yo, resourcesNamingDeclaredParameter as Yr, refuseMalformedResourcePropertiesForDrift as Ys, markRefusedBeforeApplying as Yt, streamPolicyMatchesDeclared as Z, resolveDynamicReferences as Za, applyCrossPrefixScan as Zc, ATOMIC_FINAL_SNAPSHOT_TYPES as Zi, namesTheSameDirectory as Zl, proposeRenames as Zn, siblingsOf as Zo, displayTextOrWithheld as Zr, refuseMalformedResourcePropertiesForOrphan as Zs, chunks as Zt, conditionFingerprint as _, readsNoEchoDeleteValues as _a, malformedRenderedContainersWarning as _c, withStackRecords as _i, buildDenyExternalAccessPolicy as _l, dropFailedCommands as _n, s3BucketDualStackDomainName as _o, seedsDeleteFirstGuard as _r, declaresNoEcho as _s, stripIndexContributorInsights as _t, scanActiveConsumers as a, createPreDeleteFinalSnapshot as aa, repairMalformedOrphansForReadOnly as ac, isWholeDynamicReferenceValue as ai, stringifyValue as al, displacedPhysicalIdShown as an, parseIamRoleArn as ao, calculateResourceDrift as ar, WARM_THROUGHPUT_MEMBERS as as, readbackVectorIndexes as at, readRecordedConditionVerdicts as b, withPrintingSecrets as ba, refuseMalformedResourcesForDeploy as bc, holdsSupersededResources as bi, getBootstrapMarkerKey as bl, journaledOrphanLines as bn, coerceParameterTypedValue as bo, isReplacementOrphan as br, isReadableOrphanRecord as bs, DYNAMODB_DELETE_POLL_COST_MS as bt, nestedSsmNameDeferredNote as c, ProviderRegistry as ca, malformedLocalOutputsWarning as cc, collectPublishedOutputNames as ci, flattenAssetPlaceholders as cl, nestedChildStackName as cn, applyCallerIdentityCredentials as co, undeclaredEmptyObservedKeys as cr, toCfnInteger as cs, vectorIndexesShapeDetail as ct, slashedSsmNameHealAdoptedNote as d, wouldReturnToSdkProvider as da, refuseMalformedNestedChildOutputs as dc, DEFAULT_RESOURCE_TIMEOUT_MS as di, loadPublishableAssetManifest as dl, revertedNestedRowIds as dn, classifyRecordedSecretRegion as do, earliestDefined as dr, inputFingerprinter as ds, indexDeclaresContributorInsights as dt, ccRoutedInstanceTakesNoSnapshot as ea, hasReadableOrphans as ec, secretBearingStateKeyWarning as ei, isNotImplemented as el, withApiLimit as en, applyRoleArnIfSet as eo, replayRollback as er, shownType as es, isTtlRateLimited as et, clearBucketRegionCache as eu, slashedSsmNameHealNote as f, CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID as fa, refuseMalformedOutputs as fc, DEFAULT_RESOURCE_WARN_AFTER_MS as fi, redirectDockerAsset as fl, withNestedRevertRun as fn, classifyReplaySecretRegion as fo, ledgerForStack as fr, maskedPropertyFingerprintsOf as fs, planContributorInsightsOp as ft, makeCanonicalizePropertiesFn as g, TemplateNoEchoReresolver as ga, refuseDivergentRecordRegionForDestroy as gc, getStackRecords as gi, ensureAssetStorage as gl, deleteJournaledOrphans as gn, s3BucketDomainName as go, planRollback as gr, passedParameterClassesOf as gs, reverseMapTableContributorInsights as gt, inheritedProvenanceForChildDiff as h, responsePresignClient as ha, STATE_REGION_DIVERGED as hc, destroyStackRecordsView as hi, AssetModeResolver as hl, withNestedStackContext as hn, s3BucketArn as ho, acquireIdempotencyToken as hr, maskedInputProof as hs, reverseMapIndexContributorInsights as ht, mergeNoChangeOutputs as i, unsupportedFinalSnapshotError as ia, refuseMalformedOrphansForDestroy as ic, exportNameSecretExposure as ii, isSensitiveAttributeName as il, displacedOpClause as in, isIamRoleArn as io, withUnprovenUnsettled as ir, renderStatefulReason as is, planVectorIndexUpdates as it, deferredServiceTokenWarning as j, waitForGoneAfterDelete as ja, hasReadableOutputs as jc, red as ji, warnAbsoluteAssetPath as jl, noEchoMacParametersOf as jn, promoteInPlaceAttributeDependents as jo, isRedactedRecordedValue as jr, isReadableResourceEntry as js, relayedIndexBusyDelete as jt, pendingMovesRefusalMessage as k, waitForLambdaFunctionActive as ka, UNREADABLE_RESOURCES_MAP_ROW as kc, gray as ki, parseAssetManifestBody as kl, createNoEchoValueMacs as kn, parseWebACLArn as ko, findNestedStackTypeChanges as kr, unpreviewableOrphanRecords as ks, deleteTableWithIndexBusyRetry as kt, nestedSsmNameRowNote as l, ccBrokenReason as la, malformedOutputsRefusalMessage as lc, isExportAliasCollision as li, isDefaultBootstrapBucketName as ll, recordDisplacedSkips as ln, callerEnvCredentials as lo, updatePartialMessage as lr, toFiniteNumber as ls, CONTRIBUTOR_INSIGHTS_KEY as lt, crossStackOutputProvenanceSource as m, customResourceResponseExpirationWarning as ma, repairMalformedOutputsForReadOnly as mc, awaitInFlightSibling as mi, rewriteTemplateAssetReferences as ml, getCurrentNestedStackContext as mn, regionLessSecretName as mo, withCreateTokenLedger as mr, parameterInputsFor as ms, readContributorInsightsSpec as mt, isSecretBearingReferenceString as n, isFinalSnapshotError as na, malformedOrphansWarning as nc, carriedExportAliasExposure as ni, withStackInstanceIdWithheld as nl, resolvePendingCloudControlRequests as nn, assertSendableRoleArn as no, recordAfterRollbackUpdate as nr, isStatefulRecreateTargetForReplace as ns, readTtlSpec as nt, inRunStackKey as o, buildFinalSnapshotIdentifier as oa, malformedExportNamesWarning as oc, noEchoParameterValueSeed as oi, buildAssetRedirectMap as ol, dropSettledNestedJournals as on, sendableAssumeRoleCommand as oo, equalModuloMarkedMask as or, coerceWarmThroughput as os, vectorIndexesForCreate as ot, slashedSsmNameHealPendingNote as p, applyCustomResourceResponseExpiration as pa, refuseMalformedOutputsForDestroy as pc, maskingRetryLogger as pi, redirectFileAsset as pl, collectNestedChildUnaddressed as pn, producerRegionsFromState as po, reserveStackCreateToken as pr, movedMaskedProperties as ps, planIndexContributorInsightsOps as pt, reverseMapStreamPolicy as q, APPSYNC_APIKEY_ARN_RESOURCE_PATH as qa, hasUnverifiableParameterRefusal as qc, secretNamedRecordNeedles as qi, absoluteAssemblyPathEscape as ql, looselyEqual as qn, INTRINSIC_KEYS as qo, namesAnyDeclaredParameter as qr, refuseMalformedResourceProperties as qs, readsOnlyNoEchoParameters as qt, keptWholeReasonText as r, refusesFinalSnapshot as ra, refuseMalformedOrphans as rc, exportNameNoEchoParameters as ri, isSecretValuedAttribute as rl, NESTED_PENDING_PARENT_REASON as rn, explicitRoleArnOrThrow as ro, settleUnsettledPrevious as rr, isStatefulRecreateTargetSync as rs, sendTtlWaitingOutRateLimit as rt, checkNestedSsmNames as s, CC_BROKEN_REASON as sa, malformedExportSourceWarning as sc, collectDeclaredOutputNames as si, createAssetRedirectResolver as sl, getNestedRevertRun as sn, AWS_CREDENTIAL_ENV_KEYS as so, equalModuloMask as sr, isWarmThroughputDecrease as ss, vectorIndexesSettled as st, DeployEngine as t, effectiveDeletionPolicy as ta, malformedOrphansRefusalMessage as tc, secretSafeKeyDisplay as ti, stackInstanceIdOf as tl, pendingRequestCount as tn, assertFlagRoleArn as to, DELETED_RESOURCE_REMEDY as tr, MULTI_REGION_RECREATE_BLOCKED_TYPES as ts, planTimeToLive as tt, resolveBucketRegion as tu, healSlashedSsmParameterNames as u, isCustomResource as ua, malformedOutputsWarning as uc, bindingSkippedOutputs as ui, isDefaultBootstrapRepoName as ul, revertNestedChildFromJournal as un, envCredentialsAreAssumedRole as uo, updatePartialReason as ur, tryGetTopLevelWriteOnlyProperties as us, contributorInsightsRefusals as ut, conditionInputsFrom as v, isCustomResourceType as va, malformedResourcesWarning as vc, replacedDeleteFailureVerdict as vi, assertAssetBucketRegion as vl, dropFailedHint as vn, s3BucketRegionalDomainName as vo, demoteSupersededOrphans as vr, maskedPropertyFingerprint as vs, DYNAMODB_DELETE_DEADLINE_MARGIN_MS as vt, listNestedTemplateRows as w, customResourcesRunWithoutApp as wa, repairMalformedResourcesForReadOnly as wc, supersededHolderOf as wi, validateContainerRepoName as wl, makeSiblingClaimReader as wn, cfnRefValueFromPhysicalId as wo, replacementNeverSwapped as wr, previewableOrphanRecords as ws, resolveDynamoDbDeleteBudgetClock as wt, childTemplateLoader as x, NO_LOCAL_CUSTOM_RESOURCES_FLAG as xa, refuseMalformedResourcesForDestroy as xc, isSupersededResourceRecord as xi, parseBootstrapMarker as xl, loadJournaledOrphans as xn, isUnboundTemplateParameter as xo, planFailedOps as xr, malformedOrphanRecordsRefusalMessage as xs, beginDeleteWait as xt, parentSuppliedValues as y, getCurrentResourceSecrets as ya, malformedStateRefusalMessage as yc, deleteSupersededEntry as yi, isCrossRegionRedirect as yl, isHandledOrphan as yn, s3BucketWebsiteUrl as yo, isJournaledOrphan as yr, deployRefusesOrphanRowsReason as ys, DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS as yt, perType as z, withIndeterminateGuard as za, withoutUnwrittenSdkUnwiredProperties as zc, completedReplayEntries as zi, decodeListingKey as zl, movedToHint as zn, getAccountInfo as zo, nameScopeOf as zr, refuseMalformedResourceEntriesForDestroy as zs, readRefactorMarker as zt };
|
|
49448
|
+
//# sourceMappingURL=deploy-engine-BZNCiQ-B.js.map
|