@cdkd/cli 0.350.3 → 0.350.4
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-CepgBr_y.js} +3 -3
- package/dist/{ambient-client-defaults-CqrM5nDS.js.map → ambient-client-defaults-CepgBr_y.js.map} +1 -1
- package/dist/{asg-provider-hZ4nyheM.js → asg-provider-26AfIhcd.js} +6 -6
- package/dist/{asg-provider-hZ4nyheM.js.map → asg-provider-26AfIhcd.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{custom-resource-runtime-CcClWTa-.js → custom-resource-runtime-2Kfh-v8P.js} +6 -6
- package/dist/{custom-resource-runtime-CcClWTa-.js.map → custom-resource-runtime-2Kfh-v8P.js.map} +1 -1
- package/dist/{db-instance-modify-retry-CsIlFgIJ.js → db-instance-modify-retry-BoKzNMfz.js} +4 -4
- package/dist/{db-instance-modify-retry-CsIlFgIJ.js.map → db-instance-modify-retry-BoKzNMfz.js.map} +1 -1
- package/dist/{delete-started-C0g7PYI-.js → delete-started-Bq_G9e4j.js} +4 -3
- package/dist/delete-started-Bq_G9e4j.js.map +1 -0
- package/dist/{deploy-engine-Sw2eta-t.js → deploy-engine-DLmPF7r5.js} +477 -240
- package/dist/deploy-engine-DLmPF7r5.js.map +1 -0
- package/dist/{diff-calculator-BvN5rnLe.js → diff-calculator-DYUmMeew.js} +24 -15
- package/dist/{diff-calculator-BvN5rnLe.js.map → diff-calculator-DYUmMeew.js.map} +1 -1
- package/dist/{ec2-termination-protection-BIIHrzUa.js → ec2-termination-protection-Di3eM8PN.js} +6 -6
- package/dist/{ec2-termination-protection-BIIHrzUa.js.map → ec2-termination-protection-Di3eM8PN.js.map} +1 -1
- package/dist/{ecr-uri-CQ_BCOjX.js → ecr-uri-6HdJfJPR.js} +2 -2
- package/dist/{ecr-uri-CQ_BCOjX.js.map → ecr-uri-6HdJfJPR.js.map} +1 -1
- package/dist/{expected-bucket-owner-DR9qK772.js → expected-bucket-owner-Drp-CSQY.js} +2 -2
- package/dist/{expected-bucket-owner-DR9qK772.js.map → expected-bucket-owner-Drp-CSQY.js.map} +1 -1
- package/dist/{iam-role-provider-i52A7e_4.js → iam-role-provider-B5c4V2kT.js} +7 -7
- package/dist/{iam-role-provider-i52A7e_4.js.map → iam-role-provider-B5c4V2kT.js.map} +1 -1
- package/dist/{image-plan-DOnhBOIa.js → image-plan-CYouJkYM.js} +8 -8
- package/dist/{image-plan-DOnhBOIa.js.map → image-plan-CYouJkYM.js.map} +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-Ce9kvuBB.js → logger-6lyGJVGE.js} +2 -2
- package/dist/{logger-Ce9kvuBB.js.map → logger-6lyGJVGE.js.map} +1 -1
- package/dist/{neptune-provider-Bir1AdqM.js → neptune-provider-Dhody0jz.js} +7 -7
- package/dist/{neptune-provider-Bir1AdqM.js.map → neptune-provider-Dhody0jz.js.map} +1 -1
- package/dist/{program-DAAu8qUr.js → program-BMBei2v9.js} +74 -44
- package/dist/program-BMBei2v9.js.map +1 -0
- package/dist/{provider-classes-CM8Txuvb.js → provider-classes-B3qqzXp-.js} +134 -18
- package/dist/provider-classes-B3qqzXp-.js.map +1 -0
- package/dist/{rds-provider-DmVAU_Mv.js → rds-provider-CXjWWFKT.js} +10 -10
- package/dist/{rds-provider-DmVAU_Mv.js.map → rds-provider-CXjWWFKT.js.map} +1 -1
- package/dist/{read-replica-Bmq3NTlC.js → read-replica-iA8yd-HO.js} +3 -3
- package/dist/{read-replica-Bmq3NTlC.js.map → read-replica-iA8yd-HO.js.map} +1 -1
- package/dist/{replacement-rules-lOM1aGPr.js → replacement-rules-B4fLD_Ru.js} +3 -3
- package/dist/{replacement-rules-lOM1aGPr.js.map → replacement-rules-B4fLD_Ru.js.map} +1 -1
- package/dist/{resource-deadline-1VcUPyH4.js → resource-deadline-BcEyGRdL.js} +4 -4
- package/dist/{resource-deadline-1VcUPyH4.js.map → resource-deadline-BcEyGRdL.js.map} +1 -1
- package/dist/{run-cli-BlVizMfM.js → run-cli-Dp938GHN.js} +2 -2
- package/dist/{run-cli-BlVizMfM.js.map → run-cli-Dp938GHN.js.map} +1 -1
- package/dist/{update-removal-BOue-bJm.js → update-removal-1ZPAMzvz.js} +5 -5
- package/dist/{update-removal-BOue-bJm.js.map → update-removal-1ZPAMzvz.js.map} +1 -1
- package/dist/{version-DINEmsQH.js → version-D_7vFUjp.js} +2 -2
- package/dist/{version-DINEmsQH.js.map → version-D_7vFUjp.js.map} +1 -1
- package/package.json +2 -2
- 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
|
@@ -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-D_7vFUjp.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-6lyGJVGE.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-CepgBr_y.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-Di3eM8PN.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 { _ as stackInstanceIdCarriedFrom, a as slowCcOperationTimeoutMs, c as exportNamesCarriedFrom, d as importableOutputs, f as isReadableBag, g as skippedOutputsCarriedFrom, h as shouldRetainResource, i as dbInstanceAttributes, m as orphansCarriedFrom, n as isRefusedByName, o as acceptedCreateOnlyDropsOf, p as orphansAfterRollback, r as markDeleteStarted, s as describeRegionValueKind, t as isDeleteStarted, u as importableOutputKeys } from "./delete-started-
|
|
11
|
-
import { $t as withdrawRenderedParameterSpelling, A as witnessNormalize, An as recordProvenPublicExpression, At as withoutPhysicalNameCopies, B as redactionClaimOf, Bt as splitOutsideDynamicReferences, Ct as withLegacyOverlapScan, D as recordedNoEchoValuesOf, Dt as replaceEmbeddedPhysicalNameRewrites, E as recordPassedNoEchoParameters, Et as repairPhysicalNameCopyLeaves, F as markLeafCertifiedBag, Fn as isSingleDynamicReferenceToken, G as foldRecording, Gt as recordInheritedPseudoParameters, H as mixedLiteralAnswered, Ht as recordDroppedArrayElements, I as markSameGenerationBag, In as maskMatchSpans, J as hasPassProvenance, Jt as inheritedParameterExpression, K as openRecordingScope, Kt as templateRereadsAccountId, L as mergeResolvedPairs, Lt as arrayPairsWhateverDrops, M as carryRedactionMarks, Mn as withoutNoEchoParameterEntries, Mt as DYNAMIC_REFERENCE_TOKEN_SCAN, N as intrinsicLeafResolutionOf, Nt as dynamicReferenceTokens, O as replaceAtCoordinates, On as recordNoEchoAttributeValues, Ot as scrubResourceRecord, P as isSameGenerationBag, Pn as isDynamicReferenceString, Q as recordReferenceResolution, Qt as redactInheritedParameterValue, R as recordIntrinsicLeafResolution, S as noEchoParametersReadBy, Sn as pinScopedSecretVerdict, St as replaceWholeLeaves, Tn as recordFreshNoEchoValuesIn, Tt as repairEmbeddedPhysicalNamesTowards, U as withLegacyMixedScan, Ut as recordTakenIfBranch, V as resolvedPlaintextOf, Vt as standsForInheritedSecret, W as redactForState, Wt as inheritedPseudoValue, X as passReadVersionsFor, Xt as recordInheritedParameterRead, Y as passProvenanceFor, Yt as inheritedRenderedToken, Z as recordReferenceProvenanceEntry, Zt as recordInheritedParameterValue, _ as noEchoComparison, _n as isNoEchoParameterPlaintext, _t as maskSecretsInText, an as physicalNameCopiesOf, at as literalSplitDelimitersOf, bn as markNoEchoParameterClass, bt as legacyReferenceLeavesOnly, c as parseLambdaFunctionAddress, cn as recordNestedStackParameterExpressions, ct as recordLogOnlyParameterValue, d as canonicalJson$5, dn as splitGetAttStringForm, dt as shareLogOnlyValues, en as carriesFreshNoEchoValue, et as carryLogOnlyValues, f as isMarkedCoordinate, fn as carriesSecretMask, ft as unionOfSecretBags, g as maskedLeafCoordinatesOf, gn as isMaskOnlyPlaintext, gt as maskSecretsInError, h as maskWholeValue, hn as freshNoEchoValuesOf, ht as maskRecordedSecretsInText, in as recoverMaskedOutput, it as hasMaskableValues, jn as wholeStringLeavesOf, jt as spanNamesResolvableService, k as valueAtCoordinate, kn as recordNoEchoParameterFreshValue, kt as withPhysicalNameCopies, ln as crossStackSourceKey, lt as recordLogOnlySplitFragments, m as maskReadbackAtCoordinates, mn as contradictProvenPublicExpression, mt as errorCauseChain, nn as freshNoEchoLeafPositions, nt as createUnionSecretMasker, p as maskAtCoordinates, pn as carryFreshNoEchoMark, pt as createSecretMasker, q as recordSecretResolution, qt as inheritNestedStackParameterAssociations, rn as recordRecoverableMaskedOutput, rt as hasLogOnlyValues, sn as recordPhysicalNameCopy, st as printingCorpusOf, t as ReplacementRulesRegistry, tn as embedsFreshNoEchoValue, tt as carryLogOnlyValuesCarriedBy, u as canonicalCoordinates, un as recordCrossStackExpression, ut as recordLogOnlyValue, v as noEchoCoordinatesOf, vn as isScopedSecretVerdict, vt as differingStringLeaves, w as readbackPathFor, wn as recordDerivedMaskOnlyValue, wt as embeddedPhysicalNameRewrites, x as noEchoParameterNodesAt, xn as noEchoParameterPlaintextsOf, xt as overlapRuleAnswered, y as noEchoLeavesOf, yn as isSecretExpressionByVerdictOrSpelling, yt as legacyLeavesWithoutMask, z as recordIntrinsicLeafResolutionAs, zt as rereadParameterExpression } from "./replacement-rules-
|
|
12
|
-
import { C as unsettledItemsTopKey, D as withoutUnsettledProperties, E as withUnsettledProperties, S as unsettledItemsOf, T as withUnsettledItems, _ as definedAttributes, b as unsettledContextOf, c as refuseRestoreFromItself, f as planTagDiff, g as tagPlanWarning, i as withResourceDeadline, m as refuseMalformedDesiredTags, n as enclosingDeadlineRemainingMs, p as readTagList, r as whileEnclosingDeadlinesPaused, t as enclosingDeadlineExpired, w as unsettledPropertiesOf, x as unsettledItemsField, y as isUsableAttemptedName } from "./resource-deadline-
|
|
8
|
+
import { t as expectedOwnerParam } from "./expected-bucket-owner-Drp-CSQY.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-1ZPAMzvz.js";
|
|
10
|
+
import { _ as stackInstanceIdCarriedFrom, a as slowCcOperationTimeoutMs, c as exportNamesCarriedFrom, d as importableOutputs, f as isReadableBag, g as skippedOutputsCarriedFrom, h as shouldRetainResource, i as dbInstanceAttributes, m as orphansCarriedFrom, n as isRefusedByName, o as acceptedCreateOnlyDropsOf, p as orphansAfterRollback, r as markDeleteStarted, s as describeRegionValueKind, t as isDeleteStarted, u as importableOutputKeys } from "./delete-started-Bq_G9e4j.js";
|
|
11
|
+
import { $t as withdrawRenderedParameterSpelling, A as witnessNormalize, An as recordProvenPublicExpression, At as withoutPhysicalNameCopies, B as redactionClaimOf, Bt as splitOutsideDynamicReferences, Ct as withLegacyOverlapScan, D as recordedNoEchoValuesOf, Dt as replaceEmbeddedPhysicalNameRewrites, E as recordPassedNoEchoParameters, Et as repairPhysicalNameCopyLeaves, F as markLeafCertifiedBag, Fn as isSingleDynamicReferenceToken, G as foldRecording, Gt as recordInheritedPseudoParameters, H as mixedLiteralAnswered, Ht as recordDroppedArrayElements, I as markSameGenerationBag, In as maskMatchSpans, J as hasPassProvenance, Jt as inheritedParameterExpression, K as openRecordingScope, Kt as templateRereadsAccountId, L as mergeResolvedPairs, Lt as arrayPairsWhateverDrops, M as carryRedactionMarks, Mn as withoutNoEchoParameterEntries, Mt as DYNAMIC_REFERENCE_TOKEN_SCAN, N as intrinsicLeafResolutionOf, Nt as dynamicReferenceTokens, O as replaceAtCoordinates, On as recordNoEchoAttributeValues, Ot as scrubResourceRecord, P as isSameGenerationBag, Pn as isDynamicReferenceString, Q as recordReferenceResolution, Qt as redactInheritedParameterValue, R as recordIntrinsicLeafResolution, S as noEchoParametersReadBy, Sn as pinScopedSecretVerdict, St as replaceWholeLeaves, Tn as recordFreshNoEchoValuesIn, Tt as repairEmbeddedPhysicalNamesTowards, U as withLegacyMixedScan, Ut as recordTakenIfBranch, V as resolvedPlaintextOf, Vt as standsForInheritedSecret, W as redactForState, Wt as inheritedPseudoValue, X as passReadVersionsFor, Xt as recordInheritedParameterRead, Y as passProvenanceFor, Yt as inheritedRenderedToken, Z as recordReferenceProvenanceEntry, Zt as recordInheritedParameterValue, _ as noEchoComparison, _n as isNoEchoParameterPlaintext, _t as maskSecretsInText, an as physicalNameCopiesOf, at as literalSplitDelimitersOf, bn as markNoEchoParameterClass, bt as legacyReferenceLeavesOnly, c as parseLambdaFunctionAddress, cn as recordNestedStackParameterExpressions, ct as recordLogOnlyParameterValue, d as canonicalJson$5, dn as splitGetAttStringForm, dt as shareLogOnlyValues, en as carriesFreshNoEchoValue, et as carryLogOnlyValues, f as isMarkedCoordinate, fn as carriesSecretMask, ft as unionOfSecretBags, g as maskedLeafCoordinatesOf, gn as isMaskOnlyPlaintext, gt as maskSecretsInError, h as maskWholeValue, hn as freshNoEchoValuesOf, ht as maskRecordedSecretsInText, in as recoverMaskedOutput, it as hasMaskableValues, jn as wholeStringLeavesOf, jt as spanNamesResolvableService, k as valueAtCoordinate, kn as recordNoEchoParameterFreshValue, kt as withPhysicalNameCopies, ln as crossStackSourceKey, lt as recordLogOnlySplitFragments, m as maskReadbackAtCoordinates, mn as contradictProvenPublicExpression, mt as errorCauseChain, nn as freshNoEchoLeafPositions, nt as createUnionSecretMasker, p as maskAtCoordinates, pn as carryFreshNoEchoMark, pt as createSecretMasker, q as recordSecretResolution, qt as inheritNestedStackParameterAssociations, rn as recordRecoverableMaskedOutput, rt as hasLogOnlyValues, sn as recordPhysicalNameCopy, st as printingCorpusOf, t as ReplacementRulesRegistry, tn as embedsFreshNoEchoValue, tt as carryLogOnlyValuesCarriedBy, u as canonicalCoordinates, un as recordCrossStackExpression, ut as recordLogOnlyValue, v as noEchoCoordinatesOf, vn as isScopedSecretVerdict, vt as differingStringLeaves, w as readbackPathFor, wn as recordDerivedMaskOnlyValue, wt as embeddedPhysicalNameRewrites, x as noEchoParameterNodesAt, xn as noEchoParameterPlaintextsOf, xt as overlapRuleAnswered, y as noEchoLeavesOf, yn as isSecretExpressionByVerdictOrSpelling, yt as legacyLeavesWithoutMask, z as recordIntrinsicLeafResolutionAs, zt as rereadParameterExpression } from "./replacement-rules-B4fLD_Ru.js";
|
|
12
|
+
import { C as unsettledItemsTopKey, D as withoutUnsettledProperties, E as withUnsettledProperties, S as unsettledItemsOf, T as withUnsettledItems, _ as definedAttributes, b as unsettledContextOf, c as refuseRestoreFromItself, f as planTagDiff, g as tagPlanWarning, i as withResourceDeadline, m as refuseMalformedDesiredTags, n as enclosingDeadlineRemainingMs, p as readTagList, r as whileEnclosingDeadlinesPaused, t as enclosingDeadlineExpired, w as unsettledPropertiesOf, x as unsettledItemsField, y as isUsableAttemptedName } from "./resource-deadline-BcEyGRdL.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-Drp-CSQY.js").then((n) => n.n);
|
|
86
86
|
return (await client.send(new GetBucketLocationCommand({
|
|
87
87
|
Bucket: bucketName,
|
|
88
88
|
...await expectedOwnerParam(client)
|
|
@@ -5508,7 +5508,7 @@ const PROPERTY_COVERAGE_BY_TYPE = /* @__PURE__ */ new Map([
|
|
|
5508
5508
|
"TaskRoleArn",
|
|
5509
5509
|
"Volumes"
|
|
5510
5510
|
]),
|
|
5511
|
-
sdkUnwired: /* @__PURE__ */ new Map([["InferenceAccelerators", "AWS Elastic Inference end-of-life 2024-04; use AWS Inferentia / Trainium accelerator instance families instead"]]),
|
|
5511
|
+
sdkUnwired: /* @__PURE__ */ new Map([["InferenceAccelerators", "AWS Elastic Inference end-of-life 2024-04; use AWS Inferentia / Trainium accelerator instance families instead"], ["TrustedExecutionConfiguration", "not yet implemented by cdkd"]]),
|
|
5512
5512
|
createOnlyDrops: /* @__PURE__ */ new Set(["InferenceAccelerators"]),
|
|
5513
5513
|
readOnly: /* @__PURE__ */ new Set(["TaskDefinitionArn"]),
|
|
5514
5514
|
primaryIdentifier: /* @__PURE__ */ new Set(["TaskDefinitionArn"]),
|
|
@@ -8682,34 +8682,34 @@ function passedKey(passed) {
|
|
|
8682
8682
|
function isNestedStackRow(logicalId, walk) {
|
|
8683
8683
|
if (!Object.hasOwn(walk.resources, logicalId)) return false;
|
|
8684
8684
|
const definition = walk.resources[logicalId];
|
|
8685
|
-
return isPlainObject$
|
|
8685
|
+
return isPlainObject$8(definition) && definition["Type"] === "AWS::CloudFormation::Stack";
|
|
8686
8686
|
}
|
|
8687
8687
|
function getAttAttribute(operand, target) {
|
|
8688
8688
|
if (Array.isArray(operand)) return operand.length === 2 && typeof operand[1] === "string" ? operand[1] : void 0;
|
|
8689
8689
|
return typeof operand === "string" ? operand.slice(target.length + 1) : void 0;
|
|
8690
8690
|
}
|
|
8691
8691
|
function rowParameters(definition) {
|
|
8692
|
-
const properties = isPlainObject$
|
|
8692
|
+
const properties = isPlainObject$8(definition) ? definition["Properties"] : void 0;
|
|
8693
8693
|
if (properties === void 0) return {};
|
|
8694
|
-
if (!isPlainObject$
|
|
8694
|
+
if (!isPlainObject$8(properties)) return "unknown";
|
|
8695
8695
|
const parameters = properties["Parameters"];
|
|
8696
8696
|
if (parameters === void 0) return {};
|
|
8697
|
-
if (!isPlainObject$
|
|
8697
|
+
if (!isPlainObject$8(parameters) || intrinsicKey(parameters) !== void 0) return "unknown";
|
|
8698
8698
|
return parameters;
|
|
8699
8699
|
}
|
|
8700
8700
|
function childParameterInputs(template, passed) {
|
|
8701
|
-
const declared = isPlainObject$
|
|
8701
|
+
const declared = isPlainObject$8(template.Parameters) ? template.Parameters : {};
|
|
8702
8702
|
const inputs = /* @__PURE__ */ new Map();
|
|
8703
8703
|
for (const name of Object.keys(declared)) {
|
|
8704
8704
|
const definition = declared[name];
|
|
8705
|
-
if (isPlainObject$
|
|
8705
|
+
if (isPlainObject$8(definition) && declaresNoEcho(definition)) inputs.set(name, { kind: "secret" });
|
|
8706
8706
|
else if (passed.has(name)) {
|
|
8707
8707
|
const passedClass = passed.get(name);
|
|
8708
8708
|
inputs.set(name, passedClass === "clean" ? {
|
|
8709
8709
|
kind: "value",
|
|
8710
8710
|
value: void 0
|
|
8711
8711
|
} : passedClass === "unknown" ? { kind: "unknown" } : { kind: "secret" });
|
|
8712
|
-
} else if (isPlainObject$
|
|
8712
|
+
} else if (isPlainObject$8(definition) && Object.hasOwn(definition, "Default") && !carriesSecretValue(definition["Default"], [])) inputs.set(name, {
|
|
8713
8713
|
kind: "value",
|
|
8714
8714
|
value: definition["Default"]
|
|
8715
8715
|
});
|
|
@@ -8726,7 +8726,7 @@ function closureClass(closure) {
|
|
|
8726
8726
|
return closure.unread ? "unread" : "clean";
|
|
8727
8727
|
}
|
|
8728
8728
|
async function childOutputClass(loaded, outputName, passed, chain, shared) {
|
|
8729
|
-
if (loaded === void 0 || !isPlainObject$
|
|
8729
|
+
if (loaded === void 0 || !isPlainObject$8(loaded.template)) return "unknown";
|
|
8730
8730
|
const scopeKey = JSON.stringify([loaded.identity, passedKey(passed)]);
|
|
8731
8731
|
const memoKey = JSON.stringify([scopeKey, outputName]);
|
|
8732
8732
|
const memo = shared.outputs.get(memoKey);
|
|
@@ -8739,8 +8739,8 @@ async function classifyChildOutput(loaded, outputName, passed, chain, shared, sc
|
|
|
8739
8739
|
if (++shared.steps > MAX_NESTED_OUTPUT_STEPS) return "unknown";
|
|
8740
8740
|
if (chain.includes(loaded.identity) || chain.length >= MAX_NESTED_OUTPUT_DEPTH) return "unknown";
|
|
8741
8741
|
const template = loaded.template;
|
|
8742
|
-
const output = (isPlainObject$
|
|
8743
|
-
if (!isPlainObject$
|
|
8742
|
+
const output = (isPlainObject$8(template.Outputs) ? template.Outputs : {})[outputName];
|
|
8743
|
+
if (!isPlainObject$8(output) || !Object.hasOwn(output, "Value")) return "unknown";
|
|
8744
8744
|
const scope = {
|
|
8745
8745
|
walk: newWalk({
|
|
8746
8746
|
template,
|
|
@@ -8812,7 +8812,7 @@ async function expressionClass(value, scope) {
|
|
|
8812
8812
|
return result;
|
|
8813
8813
|
};
|
|
8814
8814
|
if (Array.isArray(value)) return all(value);
|
|
8815
|
-
if (!isPlainObject$
|
|
8815
|
+
if (!isPlainObject$8(value)) return "clean";
|
|
8816
8816
|
const key = intrinsicKey(value);
|
|
8817
8817
|
if (key === void 0) return all(Object.values(value));
|
|
8818
8818
|
const operand = value[key];
|
|
@@ -8827,7 +8827,7 @@ async function expressionClass(value, scope) {
|
|
|
8827
8827
|
case "Fn::Sub": {
|
|
8828
8828
|
const text = Array.isArray(operand) ? operand[0] : operand;
|
|
8829
8829
|
if (typeof text !== "string") return worseOf("unknown", await expressionClass(operand, scope));
|
|
8830
|
-
const vars = Array.isArray(operand) && isPlainObject$
|
|
8830
|
+
const vars = Array.isArray(operand) && isPlainObject$8(operand[1]) ? operand[1] : {};
|
|
8831
8831
|
let result = text.includes("{{resolve:") ? "secret" : "clean";
|
|
8832
8832
|
result = worseOf(result, await all(Object.values(vars)));
|
|
8833
8833
|
for (const name of subPlaceholders(text)) {
|
|
@@ -8919,7 +8919,7 @@ async function classifyPassedParameters(parameters, sources) {
|
|
|
8919
8919
|
}
|
|
8920
8920
|
async function classifyPassed(parameters, sources, nested) {
|
|
8921
8921
|
const classes = /* @__PURE__ */ new Map();
|
|
8922
|
-
if (!isPlainObject$
|
|
8922
|
+
if (!isPlainObject$8(parameters)) return classes;
|
|
8923
8923
|
for (const [name, expression] of Object.entries(parameters)) {
|
|
8924
8924
|
let passedClass;
|
|
8925
8925
|
try {
|
|
@@ -8941,11 +8941,11 @@ function passedParameterClassesOf(bag) {
|
|
|
8941
8941
|
|
|
8942
8942
|
// src/deployment/masked-property-fingerprints/input-walk.ts
|
|
8943
8943
|
var UnknownInput = class extends Error {};
|
|
8944
|
-
function isPlainObject$
|
|
8944
|
+
function isPlainObject$8(value) {
|
|
8945
8945
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
8946
8946
|
}
|
|
8947
8947
|
const DYNAMIC_REFERENCE_OPEN = "{{resolve:";
|
|
8948
|
-
const NESTED_STACK_TYPE$
|
|
8948
|
+
const NESTED_STACK_TYPE$5 = "AWS::CloudFormation::Stack";
|
|
8949
8949
|
const NESTED_OUTPUT_PREFIX = "Outputs.";
|
|
8950
8950
|
function carriesSecretValue(value, corpora) {
|
|
8951
8951
|
if (carriesSecretMask(value)) return true;
|
|
@@ -8961,7 +8961,7 @@ function carriesSecretValue(value, corpora) {
|
|
|
8961
8961
|
return false;
|
|
8962
8962
|
}
|
|
8963
8963
|
function parameterInputsFor(args) {
|
|
8964
|
-
const declared = isPlainObject$
|
|
8964
|
+
const declared = isPlainObject$8(args.template.Parameters) ? args.template.Parameters : {};
|
|
8965
8965
|
const values = args.values ?? {};
|
|
8966
8966
|
const inputs = /* @__PURE__ */ new Map();
|
|
8967
8967
|
const bound = {};
|
|
@@ -8972,7 +8972,7 @@ function parameterInputsFor(args) {
|
|
|
8972
8972
|
continue;
|
|
8973
8973
|
}
|
|
8974
8974
|
const value = values[name];
|
|
8975
|
-
let secret = isPlainObject$
|
|
8975
|
+
let secret = isPlainObject$8(definition) && declaresNoEcho(definition) || carriesSecretValue(value, []);
|
|
8976
8976
|
if (!secret && args.nestedChild === true && args.supplied !== void 0) {
|
|
8977
8977
|
if (Object.hasOwn(args.supplied, name)) {
|
|
8978
8978
|
const passed = args.passedClasses?.get(name);
|
|
@@ -9029,10 +9029,10 @@ function intrinsicKey(value) {
|
|
|
9029
9029
|
const key = keys[0];
|
|
9030
9030
|
return key === "Ref" || key.startsWith("Fn::") ? key : void 0;
|
|
9031
9031
|
}
|
|
9032
|
-
const OPAQUE_ATTRIBUTE_TYPES = /* @__PURE__ */ new Set(["AWS::CloudFormation::CustomResource", NESTED_STACK_TYPE$
|
|
9032
|
+
const OPAQUE_ATTRIBUTE_TYPES = /* @__PURE__ */ new Set(["AWS::CloudFormation::CustomResource", NESTED_STACK_TYPE$5]);
|
|
9033
9033
|
function hasOpaqueAttributes(logicalId, walk) {
|
|
9034
9034
|
const definition = walk.resources[logicalId];
|
|
9035
|
-
const type = isPlainObject$
|
|
9035
|
+
const type = isPlainObject$8(definition) ? definition["Type"] : void 0;
|
|
9036
9036
|
return typeof type === "string" && (type.startsWith("Custom::") || OPAQUE_ATTRIBUTE_TYPES.has(type));
|
|
9037
9037
|
}
|
|
9038
9038
|
function getAttTarget(operand) {
|
|
@@ -9057,7 +9057,7 @@ function taintOf(logicalId, walk) {
|
|
|
9057
9057
|
const visit = (value) => {
|
|
9058
9058
|
if (typeof value === "string") return value.includes(DYNAMIC_REFERENCE_OPEN);
|
|
9059
9059
|
if (Array.isArray(value)) return value.some(visit);
|
|
9060
|
-
if (!isPlainObject$
|
|
9060
|
+
if (!isPlainObject$8(value)) return false;
|
|
9061
9061
|
const key = intrinsicKey(value);
|
|
9062
9062
|
const operand = key === void 0 ? void 0 : value[key];
|
|
9063
9063
|
let verdict = "clean";
|
|
@@ -9069,7 +9069,7 @@ function taintOf(logicalId, walk) {
|
|
|
9069
9069
|
else if (key === "Fn::FindInMap" && mapReadClass(operand, walk.sources.template) !== "clean") verdict = "tainted";
|
|
9070
9070
|
else if (key === "Fn::Sub") {
|
|
9071
9071
|
const text = Array.isArray(operand) ? operand[0] : operand;
|
|
9072
|
-
const vars = Array.isArray(operand) && isPlainObject$
|
|
9072
|
+
const vars = Array.isArray(operand) && isPlainObject$8(operand[1]) ? operand[1] : {};
|
|
9073
9073
|
if (typeof text === "string") for (const name of subPlaceholders(text)) {
|
|
9074
9074
|
if (Object.hasOwn(vars, name)) continue;
|
|
9075
9075
|
const owner = name.includes(".") ? name.split(".")[0] : name;
|
|
@@ -9083,7 +9083,7 @@ function taintOf(logicalId, walk) {
|
|
|
9083
9083
|
return Object.values(value).some(visit);
|
|
9084
9084
|
};
|
|
9085
9085
|
const definition = walk.resources[logicalId];
|
|
9086
|
-
const result = visit(isPlainObject$
|
|
9086
|
+
const result = visit(isPlainObject$8(definition) ? definition["Properties"] : void 0) ? "tainted" : unknown ? "unknown" : "clean";
|
|
9087
9087
|
walk.inProgress.delete(logicalId);
|
|
9088
9088
|
walk.taint.set(logicalId, result);
|
|
9089
9089
|
return result;
|
|
@@ -9099,7 +9099,7 @@ function conditionInput(name, walk) {
|
|
|
9099
9099
|
return typeof verdict === "boolean" ? verdict : "unknown";
|
|
9100
9100
|
}
|
|
9101
9101
|
function conditionClosure(name, walk) {
|
|
9102
|
-
const definitions = isPlainObject$
|
|
9102
|
+
const definitions = isPlainObject$8(walk.sources.template.Conditions) ? walk.sources.template.Conditions : {};
|
|
9103
9103
|
let secret = false;
|
|
9104
9104
|
let unknown = false;
|
|
9105
9105
|
let unread = false;
|
|
@@ -9114,7 +9114,7 @@ function conditionClosure(name, walk) {
|
|
|
9114
9114
|
value.forEach(visit);
|
|
9115
9115
|
return;
|
|
9116
9116
|
}
|
|
9117
|
-
if (!isPlainObject$
|
|
9117
|
+
if (!isPlainObject$8(value)) return;
|
|
9118
9118
|
const keys = Object.keys(value);
|
|
9119
9119
|
if (keys.length === 1 && keys[0] === "Condition" && typeof value["Condition"] === "string") {
|
|
9120
9120
|
pending.push(value["Condition"]);
|
|
@@ -9147,7 +9147,7 @@ function conditionClosure(name, walk) {
|
|
|
9147
9147
|
if (key === "Fn::Sub") {
|
|
9148
9148
|
const operand = value["Fn::Sub"];
|
|
9149
9149
|
const text = Array.isArray(operand) ? operand[0] : operand;
|
|
9150
|
-
const vars = Array.isArray(operand) && isPlainObject$
|
|
9150
|
+
const vars = Array.isArray(operand) && isPlainObject$8(operand[1]) ? operand[1] : {};
|
|
9151
9151
|
if (typeof text === "string") for (const name of subPlaceholders(text)) {
|
|
9152
9152
|
if (Object.hasOwn(vars, name)) continue;
|
|
9153
9153
|
if (name.includes(".") && !name.startsWith("AWS::")) secret = true;
|
|
@@ -9176,8 +9176,8 @@ function mapReadClass(operand, template) {
|
|
|
9176
9176
|
const mapName = Array.isArray(operand) ? operand[0] : void 0;
|
|
9177
9177
|
if (typeof mapName !== "string") return "unknown";
|
|
9178
9178
|
const mappings = template.Mappings;
|
|
9179
|
-
const map = isPlainObject$
|
|
9180
|
-
if (!isPlainObject$
|
|
9179
|
+
const map = isPlainObject$8(mappings) && Object.hasOwn(mappings, mapName) ? mappings[mapName] : void 0;
|
|
9180
|
+
if (!isPlainObject$8(map)) return "unknown";
|
|
9181
9181
|
return carriesSecretValue(map, []) ? "secret" : "clean";
|
|
9182
9182
|
}
|
|
9183
9183
|
async function resolvedInput(node, walk) {
|
|
@@ -9255,7 +9255,7 @@ async function inputForm(value, walk) {
|
|
|
9255
9255
|
...proof(walk, () => parts.every(isProven))
|
|
9256
9256
|
};
|
|
9257
9257
|
}
|
|
9258
|
-
if (!isPlainObject$
|
|
9258
|
+
if (!isPlainObject$8(value)) return {
|
|
9259
9259
|
form: value,
|
|
9260
9260
|
concrete: true
|
|
9261
9261
|
};
|
|
@@ -9319,7 +9319,7 @@ async function inputForm(value, walk) {
|
|
|
9319
9319
|
concrete: false
|
|
9320
9320
|
};
|
|
9321
9321
|
}
|
|
9322
|
-
const explicit = Array.isArray(operand) && isPlainObject$
|
|
9322
|
+
const explicit = Array.isArray(operand) && isPlainObject$8(operand[1]) ? operand[1] : {};
|
|
9323
9323
|
const vars = await inputForm(explicit, walk);
|
|
9324
9324
|
const placeholders = [];
|
|
9325
9325
|
let concrete = vars.concrete && !text.includes("{{resolve:");
|
|
@@ -9377,8 +9377,8 @@ function newWalk(sources, nested = {
|
|
|
9377
9377
|
return {
|
|
9378
9378
|
...covered !== void 0 && { covered },
|
|
9379
9379
|
sources,
|
|
9380
|
-
resources: isPlainObject$
|
|
9381
|
-
parameters: isPlainObject$
|
|
9380
|
+
resources: isPlainObject$8(sources.template.Resources) ? sources.template.Resources : {},
|
|
9381
|
+
parameters: isPlainObject$8(sources.template.Parameters) ? sources.template.Parameters : {},
|
|
9382
9382
|
taint: /* @__PURE__ */ new Map(),
|
|
9383
9383
|
inProgress: /* @__PURE__ */ new Set(),
|
|
9384
9384
|
stackChain: nested.stackChain,
|
|
@@ -9414,7 +9414,7 @@ function possiblyMaskedKeys(resolvedProps, corpora) {
|
|
|
9414
9414
|
const wholeShortLeaf = (value) => {
|
|
9415
9415
|
if (typeof value === "string") return short.includes(value);
|
|
9416
9416
|
if (Array.isArray(value)) return value.some(wholeShortLeaf);
|
|
9417
|
-
if (isPlainObject$
|
|
9417
|
+
if (isPlainObject$8(value)) return Object.values(value).some(wholeShortLeaf);
|
|
9418
9418
|
return false;
|
|
9419
9419
|
};
|
|
9420
9420
|
return Object.keys(resolvedProps).filter((key) => {
|
|
@@ -9445,7 +9445,7 @@ function maskedPropertyFingerprintsOf(record) {
|
|
|
9445
9445
|
const read = /* @__PURE__ */ new Map();
|
|
9446
9446
|
if (record === null || typeof record !== "object") return read;
|
|
9447
9447
|
const field = record.maskedPropertyFingerprints;
|
|
9448
|
-
if (!isPlainObject$
|
|
9448
|
+
if (!isPlainObject$8(field)) return read;
|
|
9449
9449
|
for (const [key, value] of Object.entries(field)) if (typeof value === "string" && value.startsWith("sha256:")) read.set(key, value);
|
|
9450
9450
|
return read;
|
|
9451
9451
|
}
|
|
@@ -9453,7 +9453,7 @@ function maskedPropertyInputFingerprintsOf(record) {
|
|
|
9453
9453
|
const read = /* @__PURE__ */ new Map();
|
|
9454
9454
|
if (record === null || typeof record !== "object") return read;
|
|
9455
9455
|
const field = record.maskedPropertyInputFingerprints;
|
|
9456
|
-
if (!isPlainObject$
|
|
9456
|
+
if (!isPlainObject$8(field)) return read;
|
|
9457
9457
|
const text = maskedPropertyFingerprintsOf(record);
|
|
9458
9458
|
for (const [key, value] of Object.entries(field)) {
|
|
9459
9459
|
if (typeof value !== "string" || !value.startsWith("inputs-sha256:")) continue;
|
|
@@ -9500,7 +9500,7 @@ async function movedMaskedProperties(record, templateProps, fingerprinter, onReb
|
|
|
9500
9500
|
function withRebaselinedFingerprints(record, fingerprints) {
|
|
9501
9501
|
const text = maskedPropertyFingerprintsOf(record);
|
|
9502
9502
|
const field = record.maskedPropertyInputFingerprints;
|
|
9503
|
-
const next = isPlainObject$
|
|
9503
|
+
const next = isPlainObject$8(field) ? Object.entries(field) : [];
|
|
9504
9504
|
let changed = false;
|
|
9505
9505
|
for (const [key, value] of Object.entries(fingerprints)) {
|
|
9506
9506
|
if (text.get(key) !== splitInputFingerprint(value).text) continue;
|
|
@@ -9533,10 +9533,10 @@ function withMaskedPropertyFingerprints(scrubbed, writtenBag, templateProps, sec
|
|
|
9533
9533
|
fingerprints = maskedPropertyFingerprintsFor(scrubbed.properties, templateProps);
|
|
9534
9534
|
inputs = boundInputFingerprints(fingerprints, inputFingerprints);
|
|
9535
9535
|
} else {
|
|
9536
|
-
if (!isPlainObject$
|
|
9536
|
+
if (!isPlainObject$8(previous)) return scrubbed;
|
|
9537
9537
|
if (corpora.length === 0) return scrubbed;
|
|
9538
9538
|
fingerprints = { ...previous };
|
|
9539
|
-
inputs = isPlainObject$
|
|
9539
|
+
inputs = isPlainObject$8(previousInputs) ? { ...previousInputs } : void 0;
|
|
9540
9540
|
}
|
|
9541
9541
|
if (fingerprints !== void 0 && corpora.length > 0) {
|
|
9542
9542
|
const refused = Object.keys(fingerprints).filter((key) => Object.hasOwn(templateProps, key) && corpora.some((corpus) => templateCarriesNeedle(templateProps[key], corpus)));
|
|
@@ -9896,7 +9896,7 @@ function nameKeyFor(resourceType) {
|
|
|
9896
9896
|
const property = explicitNamePropertyFor(resourceType);
|
|
9897
9897
|
return typeof property === "string" ? flat(property) : void 0;
|
|
9898
9898
|
}
|
|
9899
|
-
function valueAt(bag, path) {
|
|
9899
|
+
function valueAt$1(bag, path) {
|
|
9900
9900
|
let node = bag;
|
|
9901
9901
|
for (const segment of path.slice(0, -1)) {
|
|
9902
9902
|
if (node === null || typeof node !== "object" || Array.isArray(node)) return void 0;
|
|
@@ -9913,14 +9913,14 @@ function unreadableAt(bag, path) {
|
|
|
9913
9913
|
if (node === null || typeof node !== "object" || Array.isArray(node)) return false;
|
|
9914
9914
|
node = node[segment];
|
|
9915
9915
|
}
|
|
9916
|
-
return node !== void 0 && node !== null && valueAt(bag, path) === void 0;
|
|
9916
|
+
return node !== void 0 && node !== null && valueAt$1(bag, path) === void 0;
|
|
9917
9917
|
}
|
|
9918
9918
|
function heldAt(recorded, observed, path) {
|
|
9919
9919
|
if (unreadableAt(recorded, path)) return {
|
|
9920
9920
|
value: void 0,
|
|
9921
9921
|
unreadable: true
|
|
9922
9922
|
};
|
|
9923
|
-
const value = valueAt(recorded, path) ?? valueAt(observed, path);
|
|
9923
|
+
const value = valueAt$1(recorded, path) ?? valueAt$1(observed, path);
|
|
9924
9924
|
return {
|
|
9925
9925
|
value,
|
|
9926
9926
|
unreadable: value === void 0 && unreadableAt(observed, path)
|
|
@@ -9978,9 +9978,9 @@ const DEPLOY_VOICE = {
|
|
|
9978
9978
|
};
|
|
9979
9979
|
function sentIdentifierIs(requested, recorded, observed, physicalId) {
|
|
9980
9980
|
const isNameKey = (key) => /(Name|Identifier)$/.test(key);
|
|
9981
|
-
if (!Object.keys(requested).some((key) => isNameKey(key) && valueAt(requested, [key]) === physicalId)) return false;
|
|
9981
|
+
if (!Object.keys(requested).some((key) => isNameKey(key) && valueAt$1(requested, [key]) === physicalId)) return false;
|
|
9982
9982
|
return [...new Set([...Object.keys(requested), ...Object.keys(recorded ?? {})].filter(isNameKey))].every((key) => {
|
|
9983
|
-
const sent = valueAt(requested, [key]);
|
|
9983
|
+
const sent = valueAt$1(requested, [key]);
|
|
9984
9984
|
return sent !== void 0 && heldAt(recorded, observed, [key]).value === sent;
|
|
9985
9985
|
});
|
|
9986
9986
|
}
|
|
@@ -10009,7 +10009,7 @@ function replayPrefixChoice(input) {
|
|
|
10009
10009
|
if (raw === void 0 || raw === "") return { kind: "not-applicable" };
|
|
10010
10010
|
const recorded = getCurrentSkipPrefix();
|
|
10011
10011
|
const property = rewrite.property;
|
|
10012
|
-
const declared = valueAt(input.properties, [property]);
|
|
10012
|
+
const declared = valueAt$1(input.properties, [property]);
|
|
10013
10013
|
if (declared === void 0 || typeof input.logicalId !== "string" || typeof input.physicalId !== "string" || input.physicalId === "") return {
|
|
10014
10014
|
kind: "unreproduced",
|
|
10015
10015
|
skipPrefix: recorded,
|
|
@@ -10157,22 +10157,22 @@ function reverseReplacementTrustsGeneratedName(resourceType) {
|
|
|
10157
10157
|
// src/deployment/replacement-name-holder/holder.ts
|
|
10158
10158
|
function recordSetHolds(requested, recorded, observed, newPhysicalId, r, v) {
|
|
10159
10159
|
const newRecord = `${v.holderRecord} (${r.shown(newPhysicalId)})`;
|
|
10160
|
-
const wantName = valueAt(requested, ["Name"]);
|
|
10161
|
-
const wantType = valueAt(requested, ["Type"]);
|
|
10160
|
+
const wantName = valueAt$1(requested, ["Name"]);
|
|
10161
|
+
const wantType = valueAt$1(requested, ["Type"]);
|
|
10162
10162
|
const haveName = heldAt(recorded, observed, ["Name"]).value;
|
|
10163
10163
|
const haveType = heldAt(recorded, observed, ["Type"]).value;
|
|
10164
10164
|
if (wantName === void 0 || wantType === void 0) return unproven(`cdkd cannot read the Name and Type ${v.createdRecord} asked for`);
|
|
10165
10165
|
const wanted = `${v.create} asked for Name ${r.quoted(wantName)}`;
|
|
10166
10166
|
if (haveName === void 0 || haveType === void 0) return unproven(`${wanted}, and cdkd cannot read the name ${newRecord} holds`);
|
|
10167
10167
|
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"]);
|
|
10168
|
+
const wantZoneId = valueAt$1(requested, ["HostedZoneId"]);
|
|
10169
10169
|
const haveZoneId = heldAt(recorded, observed, ["HostedZoneId"]).value;
|
|
10170
|
-
const wantZoneName = valueAt(requested, ["HostedZoneName"]);
|
|
10170
|
+
const wantZoneName = valueAt$1(requested, ["HostedZoneName"]);
|
|
10171
10171
|
const haveZoneName = heldAt(recorded, observed, ["HostedZoneName"]).value;
|
|
10172
10172
|
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
10173
|
if (sameZone === false) return elsewhere(`${wanted}, while ${newRecord} is in another hosted zone`);
|
|
10174
10174
|
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"]);
|
|
10175
|
+
const wantSet = valueAt$1(requested, ["SetIdentifier"]);
|
|
10176
10176
|
const haveSet = heldAt(recorded, observed, ["SetIdentifier"]).value;
|
|
10177
10177
|
if (wantType.toUpperCase() === "CNAME" !== (haveType.toUpperCase() === "CNAME")) return HOLDS;
|
|
10178
10178
|
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 +10188,7 @@ function pathValue(bag, path) {
|
|
|
10188
10188
|
return node;
|
|
10189
10189
|
}
|
|
10190
10190
|
function rewrittenNameHolds(input, rewrite, viaCloudControl, labels, newResource, r, v) {
|
|
10191
|
-
const declared = valueAt(input.requested, [rewrite.property]);
|
|
10191
|
+
const declared = valueAt$1(input.requested, [rewrite.property]);
|
|
10192
10192
|
const logicalId = typeof input.logicalId === "string" && input.logicalId !== "" ? input.logicalId : void 0;
|
|
10193
10193
|
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
10194
|
const sent = viaCloudControl ? declared : generateResourceNameWithFallback(declared, logicalId ?? "", { maxLength: rewrite.maxLength });
|
|
@@ -10222,11 +10222,11 @@ function holderVerdict(input, v) {
|
|
|
10222
10222
|
const rewrite = ownEntry$1(SENT_NAME_REWRITTEN, oldResourceType);
|
|
10223
10223
|
if (rewrite !== void 0) return rewrittenNameHolds(input, rewrite, input.createdVia === "cc-api", labels, newResource, r, v);
|
|
10224
10224
|
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);
|
|
10225
|
+
let namePath = oldKey.name.find((path) => valueAt$1(requested, path) !== void 0);
|
|
10226
|
+
let wantName = namePath === void 0 ? void 0 : valueAt$1(requested, namePath);
|
|
10227
10227
|
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);
|
|
10228
|
+
namePath = oldKey.name.find((path) => valueAt$1(input.generated, path) !== void 0);
|
|
10229
|
+
wantName = namePath === void 0 ? void 0 : valueAt$1(input.generated, namePath);
|
|
10230
10230
|
generatedName = wantName !== void 0;
|
|
10231
10231
|
}
|
|
10232
10232
|
const derived = ownEntry$1(DERIVED_GENERATED_NAMES, oldResourceType);
|
|
@@ -10245,14 +10245,14 @@ function holderVerdict(input, v) {
|
|
|
10245
10245
|
const h = heldAt(recorded, observed, path);
|
|
10246
10246
|
return h.value !== void 0 || h.unreadable;
|
|
10247
10247
|
});
|
|
10248
|
-
const recordedName = namePathHeld && valueAt(recorded, namePathHeld);
|
|
10249
|
-
const observedName = namePathHeld && valueAt(observed, namePathHeld);
|
|
10248
|
+
const recordedName = namePathHeld && valueAt$1(recorded, namePathHeld);
|
|
10249
|
+
const observedName = namePathHeld && valueAt$1(observed, namePathHeld);
|
|
10250
10250
|
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
10251
|
const haveName = namePathHeld === void 0 ? void 0 : heldAt(recorded, observed, namePathHeld).value;
|
|
10252
10252
|
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
10253
|
for (const [i, path] of (oldKey.scope ?? []).entries()) {
|
|
10254
10254
|
const label = r.shown(path.join("."));
|
|
10255
|
-
const wantRaw = valueAt(requested, path);
|
|
10255
|
+
const wantRaw = valueAt$1(requested, path);
|
|
10256
10256
|
const have = heldAt(recorded, observed, path);
|
|
10257
10257
|
if (wantRaw === void 0 && unreadableAt(requested, path) || have.unreadable) return unproven(`${wanted}, and cdkd cannot read the ${label} that places it`);
|
|
10258
10258
|
const fallback = oldKey.scopeDefaults?.[i];
|
|
@@ -11624,11 +11624,11 @@ function validReferenceRegion(region) {
|
|
|
11624
11624
|
if (typeof region !== "string") return void 0;
|
|
11625
11625
|
return canonicalizeRegion(region) === region && isClientSafeRegion(region) ? region : void 0;
|
|
11626
11626
|
}
|
|
11627
|
-
function isPlainObject$
|
|
11627
|
+
function isPlainObject$7(value) {
|
|
11628
11628
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
11629
11629
|
}
|
|
11630
11630
|
function validateReferenceProvenance(token, raw) {
|
|
11631
|
-
if (!isSingleDynamicReferenceToken(token) || !isPlainObject$
|
|
11631
|
+
if (!isSingleDynamicReferenceToken(token) || !isPlainObject$7(raw)) return void 0;
|
|
11632
11632
|
const versionsRaw = Object.hasOwn(raw, "versions") ? raw["versions"] : void 0;
|
|
11633
11633
|
const readRaw = Object.hasOwn(raw, "readVersions") ? raw["readVersions"] : void 0;
|
|
11634
11634
|
if (readRaw !== void 0) {
|
|
@@ -11646,11 +11646,11 @@ function validateReferenceProvenance(token, raw) {
|
|
|
11646
11646
|
return out;
|
|
11647
11647
|
}
|
|
11648
11648
|
function referenceProvenanceOf(record) {
|
|
11649
|
-
if (!isPlainObject$
|
|
11649
|
+
if (!isPlainObject$7(record) || !Object.hasOwn(record, "referenceProvenance")) return void 0;
|
|
11650
11650
|
return validatedBag(record["referenceProvenance"]);
|
|
11651
11651
|
}
|
|
11652
11652
|
function validatedBag(field) {
|
|
11653
|
-
if (!isPlainObject$
|
|
11653
|
+
if (!isPlainObject$7(field)) return void 0;
|
|
11654
11654
|
const out = Object.create(null);
|
|
11655
11655
|
for (const [token, raw] of Object.entries(field)) {
|
|
11656
11656
|
const entry = validateReferenceProvenance(token, raw);
|
|
@@ -11659,9 +11659,9 @@ function validatedBag(field) {
|
|
|
11659
11659
|
return { ...out };
|
|
11660
11660
|
}
|
|
11661
11661
|
function recordedProvenanceOf(record, token) {
|
|
11662
|
-
if (!isPlainObject$
|
|
11662
|
+
if (!isPlainObject$7(record) || !Object.hasOwn(record, "referenceProvenance")) return void 0;
|
|
11663
11663
|
const field = record["referenceProvenance"];
|
|
11664
|
-
if (!isPlainObject$
|
|
11664
|
+
if (!isPlainObject$7(field) || !Object.hasOwn(field, token)) return void 0;
|
|
11665
11665
|
return validateReferenceProvenance(token, field[token]);
|
|
11666
11666
|
}
|
|
11667
11667
|
function recordedReferenceRegions(record) {
|
|
@@ -11683,7 +11683,7 @@ function regionsOf(field) {
|
|
|
11683
11683
|
function keepHeldTokenProvenance(record) {
|
|
11684
11684
|
if (!hasReferenceProvenanceField(record)) return record;
|
|
11685
11685
|
const field = record.referenceProvenance;
|
|
11686
|
-
if (!isPlainObject$
|
|
11686
|
+
if (!isPlainObject$7(field)) return record;
|
|
11687
11687
|
const held = recordReferenceTokens(record);
|
|
11688
11688
|
const keys = Object.keys(field);
|
|
11689
11689
|
if (keys.every((token) => held.has(token))) return record;
|
|
@@ -11695,12 +11695,12 @@ function keepHeldTokenProvenance(record) {
|
|
|
11695
11695
|
};
|
|
11696
11696
|
}
|
|
11697
11697
|
function hasReferenceProvenanceField(record) {
|
|
11698
|
-
return isPlainObject$
|
|
11698
|
+
return isPlainObject$7(record) && Object.hasOwn(record, "referenceProvenance") && record["referenceProvenance"] !== void 0;
|
|
11699
11699
|
}
|
|
11700
11700
|
function outputReferenceProvenanceOf(state, outputKey) {
|
|
11701
|
-
if (!isPlainObject$
|
|
11701
|
+
if (!isPlainObject$7(state) || !Object.hasOwn(state, "outputReferenceProvenance")) return;
|
|
11702
11702
|
const field = state["outputReferenceProvenance"];
|
|
11703
|
-
if (!isPlainObject$
|
|
11703
|
+
if (!isPlainObject$7(field) || !Object.hasOwn(field, outputKey)) return void 0;
|
|
11704
11704
|
return validatedBag(field[outputKey]);
|
|
11705
11705
|
}
|
|
11706
11706
|
function persistable(token, entry) {
|
|
@@ -11718,7 +11718,7 @@ function tokensUnderPaths(properties, paths) {
|
|
|
11718
11718
|
for (const item of value) descend(item, path, next);
|
|
11719
11719
|
return;
|
|
11720
11720
|
}
|
|
11721
|
-
if (isPlainObject$
|
|
11721
|
+
if (isPlainObject$7(value) && Object.hasOwn(value, path[at])) descend(value[path[at]], path, at + 1);
|
|
11722
11722
|
};
|
|
11723
11723
|
for (const path of paths) descend(properties, path, 0);
|
|
11724
11724
|
return out;
|
|
@@ -11761,7 +11761,7 @@ function unionWithPrevious(pass, before) {
|
|
|
11761
11761
|
}
|
|
11762
11762
|
function outputProvenanceForPersist(args) {
|
|
11763
11763
|
const { outputs, resolvedThisRun, carriedFrom, sinkOf } = args;
|
|
11764
|
-
if (!resolvedThisRun) return carriedFrom !== void 0 && isPlainObject$
|
|
11764
|
+
if (!resolvedThisRun) return carriedFrom !== void 0 && isPlainObject$7(carriedFrom.outputReferenceProvenance) ? carriedFrom.outputReferenceProvenance : void 0;
|
|
11765
11765
|
let out;
|
|
11766
11766
|
for (const [outputKey, value] of Object.entries(outputs)) {
|
|
11767
11767
|
const sink = sinkOf(outputKey);
|
|
@@ -12014,7 +12014,10 @@ const REF_RETURNS_SEGMENT_AFTER_PIPE = /* @__PURE__ */ new Set([
|
|
|
12014
12014
|
"AWS::AppConfig::Environment",
|
|
12015
12015
|
"AWS::AppConfig::ConfigurationProfile",
|
|
12016
12016
|
"AWS::AppConfig::HostedConfigurationVersion",
|
|
12017
|
-
"AWS::AppConfig::Deployment"
|
|
12017
|
+
"AWS::AppConfig::Deployment",
|
|
12018
|
+
"AWS::SSM::MaintenanceWindowTarget",
|
|
12019
|
+
"AWS::SSM::MaintenanceWindowTask",
|
|
12020
|
+
"AWS::CodeDeploy::DeploymentGroup"
|
|
12018
12021
|
]);
|
|
12019
12022
|
const REF_RETURNS_SEGMENT_BEFORE_FIRST_PIPE = /* @__PURE__ */ new Set([
|
|
12020
12023
|
"AWS::EC2::EIP",
|
|
@@ -12110,6 +12113,14 @@ function cfnRefValueFromPhysicalId(resourceType, physicalId, stateLookup) {
|
|
|
12110
12113
|
const tableName = glueTableRefFromPhysicalId(physicalId, stateLookup);
|
|
12111
12114
|
if (tableName !== void 0) return tableName;
|
|
12112
12115
|
}
|
|
12116
|
+
if (resourceType === "AWS::Logs::LogStream") {
|
|
12117
|
+
const i = physicalId.indexOf("|");
|
|
12118
|
+
if (i >= 0) return physicalId.substring(i + 1);
|
|
12119
|
+
}
|
|
12120
|
+
if (resourceType === "AWS::Logs::SubscriptionFilter") {
|
|
12121
|
+
const i = physicalId.lastIndexOf("|");
|
|
12122
|
+
if (i >= 0) return physicalId.substring(0, i);
|
|
12123
|
+
}
|
|
12113
12124
|
if (resourceType === "AWS::Backup::BackupSelection" && stateLookup) {
|
|
12114
12125
|
const selectionId = stateLookup(["SelectionId"]);
|
|
12115
12126
|
if (selectionId) return selectionId;
|
|
@@ -12691,7 +12702,18 @@ function isOwnArnAttribute(resourceType, attributeName) {
|
|
|
12691
12702
|
const lower = attributeName.toLowerCase();
|
|
12692
12703
|
return lower === "arn" || lower === `${typeName.toLowerCase()}arn`;
|
|
12693
12704
|
}
|
|
12694
|
-
const CFN_REJECTED_GETATT_ATTRIBUTES = /* @__PURE__ */ new Set([
|
|
12705
|
+
const CFN_REJECTED_GETATT_ATTRIBUTES = /* @__PURE__ */ new Set([
|
|
12706
|
+
"AWS::CloudFormation::WaitConditionHandle.Id",
|
|
12707
|
+
"AWS::IAM::UserToGroupAddition.Id",
|
|
12708
|
+
"AWS::CloudFormation::Stack.ChangeSetId",
|
|
12709
|
+
"AWS::CloudFormation::Stack.CreationTime",
|
|
12710
|
+
"AWS::CloudFormation::Stack.LastUpdateTime",
|
|
12711
|
+
"AWS::CloudFormation::Stack.Outputs",
|
|
12712
|
+
"AWS::CloudFormation::Stack.ParentId",
|
|
12713
|
+
"AWS::CloudFormation::Stack.RootId",
|
|
12714
|
+
"AWS::CloudFormation::Stack.StackId",
|
|
12715
|
+
"AWS::CloudFormation::Stack.StackStatus"
|
|
12716
|
+
]);
|
|
12695
12717
|
const PHYSICAL_ID_ATTRIBUTES = /* @__PURE__ */ new Set([
|
|
12696
12718
|
"AWS::ApiGateway::Account.Id",
|
|
12697
12719
|
"AWS::Budgets::Budget.Id",
|
|
@@ -12699,6 +12721,7 @@ const PHYSICAL_ID_ATTRIBUTES = /* @__PURE__ */ new Set([
|
|
|
12699
12721
|
"AWS::SQS::QueuePolicy.Id"
|
|
12700
12722
|
]);
|
|
12701
12723
|
function guardedPhysicalIdFallback(resolver, logicalId, attributeName, resourceType, physicalId, context) {
|
|
12724
|
+
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
12725
|
if (context?.staleAttributeHeal?.phase === "probe") throw new StaleAttributeMissSignal();
|
|
12703
12726
|
const healOutcome = context?.staleAttributeHeal?.phase === "settled" ? context.staleAttributeHeal.outcome : void 0;
|
|
12704
12727
|
const recordMayBeStale = healOutcome?.kind === "failed" || healOutcome?.kind === "not-found";
|
|
@@ -12714,7 +12737,7 @@ function guardedPhysicalIdFallback(resolver, logicalId, attributeName, resourceT
|
|
|
12714
12737
|
const resources = context?.resources;
|
|
12715
12738
|
const record = resources !== void 0 && Object.hasOwn(resources, logicalId) ? resources[logicalId] : void 0;
|
|
12716
12739
|
const coverage = getPropertyCoverage(resourceType);
|
|
12717
|
-
if (
|
|
12740
|
+
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
12741
|
resolver.physicalIdFallbackCount++;
|
|
12719
12742
|
if (recordMayBeStale) {
|
|
12720
12743
|
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));
|
|
@@ -17622,6 +17645,74 @@ function apiGatewayV2DefinitionObject(location) {
|
|
|
17622
17645
|
};
|
|
17623
17646
|
}
|
|
17624
17647
|
|
|
17648
|
+
// src/provisioning/cc-nested-create-only-patch.ts
|
|
17649
|
+
function isPlainObject$6(value) {
|
|
17650
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
17651
|
+
}
|
|
17652
|
+
function topLevelKeyOf(op) {
|
|
17653
|
+
if (op.op !== "add" && op.op !== "replace") return void 0;
|
|
17654
|
+
const pointer = op.path.slice(1);
|
|
17655
|
+
if (!op.path.startsWith("/") || pointer.includes("/")) return void 0;
|
|
17656
|
+
return pointer.replace(/~1/g, "/").replace(/~0/g, "~");
|
|
17657
|
+
}
|
|
17658
|
+
function writesTopLevelObject(patch) {
|
|
17659
|
+
return patch.some((op) => topLevelKeyOf(op) !== void 0 && isPlainObject$6(op.value));
|
|
17660
|
+
}
|
|
17661
|
+
function omitsThroughObjects(root, path) {
|
|
17662
|
+
let node = root;
|
|
17663
|
+
for (const segment of path) {
|
|
17664
|
+
if (!Object.hasOwn(node, segment)) return true;
|
|
17665
|
+
const next = node[segment];
|
|
17666
|
+
if (!isPlainObject$6(next)) return false;
|
|
17667
|
+
node = next;
|
|
17668
|
+
}
|
|
17669
|
+
return false;
|
|
17670
|
+
}
|
|
17671
|
+
function valueAt(root, path) {
|
|
17672
|
+
let node = root;
|
|
17673
|
+
for (const segment of path) {
|
|
17674
|
+
if (!isPlainObject$6(node) || !Object.hasOwn(node, segment)) return void 0;
|
|
17675
|
+
node = node[segment];
|
|
17676
|
+
}
|
|
17677
|
+
return node;
|
|
17678
|
+
}
|
|
17679
|
+
function nestedCreateOnlyGaps(patch, createOnlyPaths) {
|
|
17680
|
+
const gaps = [];
|
|
17681
|
+
for (const op of patch) {
|
|
17682
|
+
const key = topLevelKeyOf(op);
|
|
17683
|
+
if (key === void 0 || !isPlainObject$6(op.value)) continue;
|
|
17684
|
+
for (const path of createOnlyPaths) {
|
|
17685
|
+
if (path.length < 2 || path[0] !== key) continue;
|
|
17686
|
+
if (omitsThroughObjects(op.value, path.slice(1))) gaps.push([...path]);
|
|
17687
|
+
}
|
|
17688
|
+
}
|
|
17689
|
+
return gaps;
|
|
17690
|
+
}
|
|
17691
|
+
function withCarriedCreateOnlyMembers(patch, gaps, liveModel) {
|
|
17692
|
+
return patch.map((op) => {
|
|
17693
|
+
const key = topLevelKeyOf(op);
|
|
17694
|
+
if (key === void 0 || !isPlainObject$6(op.value)) return op;
|
|
17695
|
+
let value;
|
|
17696
|
+
for (const path of gaps) {
|
|
17697
|
+
if (path[0] !== key) continue;
|
|
17698
|
+
const live = valueAt(liveModel, path);
|
|
17699
|
+
if (live === void 0) continue;
|
|
17700
|
+
value ??= structuredClone(op.value);
|
|
17701
|
+
const rest = path.slice(1);
|
|
17702
|
+
let parent = value;
|
|
17703
|
+
for (const segment of rest.slice(0, -1)) {
|
|
17704
|
+
if (!isPlainObject$6(parent[segment])) parent[segment] = {};
|
|
17705
|
+
parent = parent[segment];
|
|
17706
|
+
}
|
|
17707
|
+
parent[rest[rest.length - 1]] = live;
|
|
17708
|
+
}
|
|
17709
|
+
return value === void 0 ? op : {
|
|
17710
|
+
...op,
|
|
17711
|
+
value
|
|
17712
|
+
};
|
|
17713
|
+
});
|
|
17714
|
+
}
|
|
17715
|
+
|
|
17625
17716
|
// src/provisioning/cloud-control/update.ts
|
|
17626
17717
|
async function update$2(logicalId, physicalId, resourceType, properties, previousProperties, context) {
|
|
17627
17718
|
const mask = maskerOrIdentity(context?.maskSecrets);
|
|
@@ -17677,6 +17768,13 @@ async function updateInIdLogScope(logicalId, physicalId, resourceType, propertie
|
|
|
17677
17768
|
}
|
|
17678
17769
|
}
|
|
17679
17770
|
patch = withGuardDutyDetectorReadBackOps(resourceType, patch, cleanProperties, context?.desiredFromAwsReadback === true ? { previous: cleanPreviousProperties } : void 0);
|
|
17771
|
+
if (writesTopLevelObject(patch)) {
|
|
17772
|
+
const gaps = nestedCreateOnlyGaps(patch, await getCreateOnlyPropertyPaths(resourceType));
|
|
17773
|
+
if (gaps.length > 0) {
|
|
17774
|
+
const liveModel = await this.readCcResourceModel(resourceType, physicalId, idLog);
|
|
17775
|
+
if (liveModel !== void 0) patch = withCarriedCreateOnlyMembers(patch, gaps, liveModel);
|
|
17776
|
+
}
|
|
17777
|
+
}
|
|
17680
17778
|
let reimported = false;
|
|
17681
17779
|
if (isApiGatewayV2Import(resourceType, cleanProperties)) {
|
|
17682
17780
|
const split = splitApiGatewayV2ImportPatch(patch, cleanPreviousProperties, cleanProperties);
|
|
@@ -18770,7 +18868,7 @@ async function deleteInIdLogScope(logicalId, physicalId, resourceType, propertie
|
|
|
18770
18868
|
const indeterminateGuard = await this.confirmDeleteTargetIdentity(logicalId, resourceType, physicalId, context);
|
|
18771
18869
|
if (context?.removeProtection === true && resourceType === "AWS::AutoScaling::AutoScalingGroup") {
|
|
18772
18870
|
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-
|
|
18871
|
+
const { ASGProvider } = await import("./asg-provider-26AfIhcd.js");
|
|
18774
18872
|
const delegateRegion = ambientRegion();
|
|
18775
18873
|
let asgProvider = this.asgDeleteDelegates.get(delegateRegion);
|
|
18776
18874
|
if (asgProvider === void 0) {
|
|
@@ -18924,7 +19022,7 @@ async function sdkDeleteDelegateInCcRegion(resourceType, logicalId, physicalId)
|
|
|
18924
19022
|
const family = SDK_DELETE_FAMILIES.get(resourceType);
|
|
18925
19023
|
const cached = this.sdkDeleteDelegates.get(family);
|
|
18926
19024
|
if (cached !== void 0 && cached.region === ccRegion) return cached.provider;
|
|
18927
|
-
const provider = family === "rds" ? new (await (import("./rds-provider-
|
|
19025
|
+
const provider = family === "rds" ? new (await (import("./rds-provider-CXjWWFKT.js"))).RDSProvider({ region: ccRegion }) : new (await (import("./neptune-provider-Dhody0jz.js"))).NeptuneProvider({ region: ccRegion });
|
|
18928
19026
|
this.sdkDeleteDelegates.set(family, {
|
|
18929
19027
|
region: ccRegion,
|
|
18930
19028
|
provider
|
|
@@ -21596,7 +21694,7 @@ async function publishToSns(topicArn, request) {
|
|
|
21596
21694
|
}
|
|
21597
21695
|
async function invokeLambda(serviceToken, request) {
|
|
21598
21696
|
if (localCustomResourceRuntimeActive()) {
|
|
21599
|
-
const { invokeCustomResourceFunctionLocally } = await import("./custom-resource-runtime-
|
|
21697
|
+
const { invokeCustomResourceFunctionLocally } = await import("./custom-resource-runtime-2Kfh-v8P.js");
|
|
21600
21698
|
const local = await invokeCustomResourceFunctionLocally({
|
|
21601
21699
|
lambda: this.lambdaClient,
|
|
21602
21700
|
s3: this.s3Client
|
|
@@ -22534,6 +22632,7 @@ const NESTED_REQUIRED = /* @__PURE__ */ new Map([
|
|
|
22534
22632
|
]],
|
|
22535
22633
|
["PlacementConstraints", ["Type"]],
|
|
22536
22634
|
["ProxyConfiguration", ["ContainerName"]],
|
|
22635
|
+
["TrustedExecutionConfiguration", ["IsolationMode"]],
|
|
22537
22636
|
["Volumes.EFSVolumeConfiguration", ["FilesystemId"]],
|
|
22538
22637
|
["Volumes.FSxWindowsFileServerVolumeConfiguration", ["FileSystemId", "RootDirectory"]],
|
|
22539
22638
|
["Volumes.FSxWindowsFileServerVolumeConfiguration.AuthorizationConfig", ["CredentialsParameter", "Domain"]],
|
|
@@ -23634,7 +23733,7 @@ const PROPERTY_SHAPES = /* @__PURE__ */ new Map([
|
|
|
23634
23733
|
["AWS::ECR::Repository", "{\"EncryptionConfiguration\":\"object\",\"ImageScanningConfiguration\":\"object\",\"ImageTagMutabilityExclusionFilters\":\"array\",\"ImageTagMutabilityExclusionFilters[]\":\"object\",\"LifecyclePolicy\":\"object\",\"Tags\":\"array\",\"Tags[]\":\"object\"}"],
|
|
23635
23734
|
["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
23735
|
["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\"}"],
|
|
23736
|
+
["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
23737
|
["AWS::EFS::AccessPoint", "{\"AccessPointTags\":\"array\",\"AccessPointTags[]\":\"object\",\"PosixUser\":\"object\",\"PosixUser.SecondaryGids\":\"array\",\"RootDirectory\":\"object\",\"RootDirectory.CreationInfo\":\"object\"}"],
|
|
23639
23738
|
["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
23739
|
["AWS::EFS::MountTarget", "{\"SecurityGroups\":\"array\"}"],
|
|
@@ -24745,7 +24844,7 @@ async function ccRoutedInstanceTakesNoSnapshot(input) {
|
|
|
24745
24844
|
if (resourceType !== "AWS::RDS::DBInstance") return false;
|
|
24746
24845
|
if (region === void 0 || region === "") return false;
|
|
24747
24846
|
const mask = input.mask ?? ((text) => text);
|
|
24748
|
-
const { describeDBInstanceInRegion, isLiveReadReplica } = await import("./read-replica-
|
|
24847
|
+
const { describeDBInstanceInRegion, isLiveReadReplica } = await import("./read-replica-iA8yd-HO.js").then((n) => n.l);
|
|
24749
24848
|
let reason;
|
|
24750
24849
|
try {
|
|
24751
24850
|
const live = await describeDBInstanceInRegion(physicalId, region);
|
|
@@ -29818,7 +29917,7 @@ function updatePartialMessage(reason) {
|
|
|
29818
29917
|
|
|
29819
29918
|
// src/deployment/rollback-executor/replay-noecho.ts
|
|
29820
29919
|
const NOECHO_REPLAY_READBACK_TIMEOUT_MS = 3e4;
|
|
29821
|
-
const NESTED_STACK_TYPE$
|
|
29920
|
+
const NESTED_STACK_TYPE$4 = "AWS::CloudFormation::Stack";
|
|
29822
29921
|
function coordinatePath(coordinate) {
|
|
29823
29922
|
let path = "";
|
|
29824
29923
|
for (const segment of coordinate) path += typeof segment === "number" ? `[${segment}]` : path === "" ? segment : `.${segment}`;
|
|
@@ -29904,7 +30003,7 @@ async function substituteMarkedNoEchoLeaves(input) {
|
|
|
29904
30003
|
if (desired === void 0) return identity;
|
|
29905
30004
|
const pending = (noEchoLeavesOf(baseline) ?? []).filter((coordinate) => carriesSecretMask(valueAtCoordinate(desired, coordinate)));
|
|
29906
30005
|
if (pending.length === 0) return identity;
|
|
29907
|
-
if (live.resourceType === NESTED_STACK_TYPE$
|
|
30006
|
+
if (live.resourceType === NESTED_STACK_TYPE$4 && baseline.resourceType === NESTED_STACK_TYPE$4 && live.provisionedBy !== "cc-api" && !routedVia.includes("cc-api")) return {
|
|
29908
30007
|
...identity,
|
|
29909
30008
|
inert: pending
|
|
29910
30009
|
};
|
|
@@ -30266,7 +30365,7 @@ function equalModuloMarkedMask(state, aws, mask, coordinate, isMarked, isWithinM
|
|
|
30266
30365
|
const b = jsonForm(aws);
|
|
30267
30366
|
if (isMarked(coordinate) && b !== void 0 && b !== null) {
|
|
30268
30367
|
if (a === mask) return true;
|
|
30269
|
-
if (isWithinMarked(coordinate) ? isWhollyMask$1(a, mask) : sameJson(a, wholeMaskOf(b, mask))) return holdsMask(a, mask);
|
|
30368
|
+
if (isWithinMarked(coordinate) ? isWhollyMask$1(a, mask) : sameJson(a, wholeMaskOf(b, mask))) return holdsMask$1(a, mask);
|
|
30270
30369
|
}
|
|
30271
30370
|
if (a === mask && (typeof b === "string" || typeof b === "number" || typeof b === "boolean")) return true;
|
|
30272
30371
|
if (a === b) return true;
|
|
@@ -30295,12 +30394,12 @@ function isWhollyMask$1(value, mask) {
|
|
|
30295
30394
|
if (isPlainObject$5(node)) return Object.values(node).every(walk);
|
|
30296
30395
|
return false;
|
|
30297
30396
|
};
|
|
30298
|
-
return walk(value) && holdsMask(value, mask);
|
|
30397
|
+
return walk(value) && holdsMask$1(value, mask);
|
|
30299
30398
|
}
|
|
30300
|
-
function holdsMask(value, mask) {
|
|
30399
|
+
function holdsMask$1(value, mask) {
|
|
30301
30400
|
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));
|
|
30401
|
+
if (Array.isArray(value)) return value.some((v) => holdsMask$1(v, mask));
|
|
30402
|
+
if (isPlainObject$5(value)) return Object.values(value).some((v) => holdsMask$1(v, mask));
|
|
30304
30403
|
return false;
|
|
30305
30404
|
}
|
|
30306
30405
|
function sameJson(a, b) {
|
|
@@ -34179,7 +34278,7 @@ async function collectNestedChildUnaddressed(fn) {
|
|
|
34179
34278
|
|
|
34180
34279
|
// src/deployment/nested-child-journal.ts
|
|
34181
34280
|
const NESTED_PENDING_PARENT_REASON = "nested-pending-parent";
|
|
34182
|
-
const NESTED_STACK_TYPE$
|
|
34281
|
+
const NESTED_STACK_TYPE$3 = "AWS::CloudFormation::Stack";
|
|
34183
34282
|
const MAX_NESTED_WALK_DEPTH = 32;
|
|
34184
34283
|
function nestedChildStackName(parentStackName, logicalId) {
|
|
34185
34284
|
return `${parentStackName}~${logicalId}`;
|
|
@@ -34242,7 +34341,7 @@ function recordDisplacedSkips(recordEvent, stackName, ops) {
|
|
|
34242
34341
|
});
|
|
34243
34342
|
}
|
|
34244
34343
|
function revertedNestedRowIds(ops) {
|
|
34245
|
-
return ops.filter((op) => op.resourceType === NESTED_STACK_TYPE$
|
|
34344
|
+
return ops.filter((op) => op.resourceType === NESTED_STACK_TYPE$3 && op.changeType === "UPDATE").map((op) => op.logicalId);
|
|
34246
34345
|
}
|
|
34247
34346
|
const revertRunStorage = new AsyncLocalStorage();
|
|
34248
34347
|
function withNestedRevertRun(runId, fn) {
|
|
@@ -34268,7 +34367,7 @@ async function dropNestedChildJournals(args) {
|
|
|
34268
34367
|
if (!isPlainRecord(resources)) return;
|
|
34269
34368
|
if (depthExceeded(depth, parentStackName, logger)) return;
|
|
34270
34369
|
for (const [logicalId, record] of Object.entries(resources)) {
|
|
34271
|
-
if (!isPlainRecord(record) || record["resourceType"] !== NESTED_STACK_TYPE$
|
|
34370
|
+
if (!isPlainRecord(record) || record["resourceType"] !== NESTED_STACK_TYPE$3) continue;
|
|
34272
34371
|
const child = nestedChildStackName(parentStackName, logicalId);
|
|
34273
34372
|
try {
|
|
34274
34373
|
const data = await stateBackend.getState(child, region);
|
|
@@ -44302,14 +44401,14 @@ function logicalIdToPath(records, template) {
|
|
|
44302
44401
|
}
|
|
44303
44402
|
|
|
44304
44403
|
// src/deployment/deployment-approval.ts
|
|
44305
|
-
const NESTED_STACK_TYPE$
|
|
44404
|
+
const NESTED_STACK_TYPE$2 = "AWS::CloudFormation::Stack";
|
|
44306
44405
|
async function requireDeploymentApproval(args) {
|
|
44307
44406
|
const level = args.options.requireApproval ?? "never";
|
|
44308
44407
|
const approve = args.options.approveDeployment;
|
|
44309
44408
|
if (level === "never" || approve === void 0) return false;
|
|
44310
44409
|
const changes = [...args.changes].filter((c) => c.changeType !== "NO_CHANGE" && !isNoEchoPromotionOnly(c));
|
|
44311
44410
|
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$
|
|
44411
|
+
const onlyNestedUpdates = changes.every((c) => c.changeType === "UPDATE" && c.resourceType === NESTED_STACK_TYPE$2);
|
|
44313
44412
|
const security = level === "broadening" ? await diffSecurity({
|
|
44314
44413
|
stackName: args.stackName,
|
|
44315
44414
|
changes,
|
|
@@ -44352,7 +44451,7 @@ async function checkDestructivePlan(args) {
|
|
|
44352
44451
|
if (hook === void 0) return;
|
|
44353
44452
|
const changes = [...args.changes].filter((c) => c.changeType !== "NO_CHANGE" && !isNoEchoPromotionOnly(c));
|
|
44354
44453
|
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$
|
|
44454
|
+
const nestedRowChanges = changes.some((c) => c.resourceType === NESTED_STACK_TYPE$2 && (c.changeType === "CREATE" || c.changeType === "UPDATE"));
|
|
44356
44455
|
if (destroying.length === 0 && !nestedRowChanges) return;
|
|
44357
44456
|
await hook(args.stackName, destroying);
|
|
44358
44457
|
}
|
|
@@ -45981,7 +46080,11 @@ async function provisionUpdate(engine, logicalId, change, stateResources, stackN
|
|
|
45981
46080
|
const lateReplacementDeclined = /* @__PURE__ */ new Set();
|
|
45982
46081
|
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
46082
|
if (witnessMigrates && !typeChanged && echoCandidates.length > 0 && hasAddressablePhysicalId(currentResource)) await readOnce();
|
|
45984
|
-
|
|
46083
|
+
const unchangedApartFromHeal = !typeChanged && lostChild === void 0 && recreateDirectionFor(engine.options, stackName, logicalId) === void 0 && recordMatchesDesired && unsettledNames.size === 0;
|
|
46084
|
+
const mayTakeNoChangeSkip = unchangedApartFromHeal && change.nestedChildHeal !== true;
|
|
46085
|
+
const healRowReadsRedacted = change.nestedChildHeal === true && unchangedApartFromHeal && !suppliesFreshMaskOnlyValue && (context.redactedAttributeReads?.length ?? 0) > 0;
|
|
46086
|
+
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.`);
|
|
46087
|
+
if (mayTakeNoChangeSkip && !suppliesFreshMaskOnlyValue || healRowReadsRedacted) {
|
|
45985
46088
|
if (provenanceUnchanged.length > 0) stateResources[logicalId] = withRefreshedReadVersions(stateResources[logicalId] ?? currentResource, provenanceUnchanged);
|
|
45986
46089
|
if (change.attributeChanges && change.attributeChanges.length > 0) {
|
|
45987
46090
|
applyAttributeOnlyUpdate(change.attributeChanges);
|
|
@@ -46151,7 +46254,7 @@ async function provisionUpdate(engine, logicalId, change, stateResources, stackN
|
|
|
46151
46254
|
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
46255
|
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
46256
|
const confirmedPaths = /* @__PURE__ */ new Set([...noEchoHeldPaths, ...parameterSettledPaths]);
|
|
46154
|
-
if (confirmedPaths.size > 0 &&
|
|
46257
|
+
if (confirmedPaths.size > 0 && mayTakeNoChangeSkip && Object.keys(resolvedProps).every((key) => confirmedPaths.has(key) || otherFreshAt(key).length === 0 && !pendingParameterLeaves.has(key))) {
|
|
46155
46258
|
engine.logger.debug(safeMsg`Skipping ${logicalId}: AWS already holds every NoEcho value it carries, and nothing else changed`);
|
|
46156
46259
|
const staleHeld = staleCoordinates.filter((coordinate) => typeof coordinate[0] === "string" && parameterHeldKeys.has(coordinate[0]));
|
|
46157
46260
|
if (staleHeld.length > 0) {
|
|
@@ -47230,7 +47333,7 @@ async function settleJournalAtStart(engine, { stackName, template, currentState,
|
|
|
47230
47333
|
}
|
|
47231
47334
|
|
|
47232
47335
|
// src/utils/nested-template-cycle.ts
|
|
47233
|
-
const NESTED_STACK_TYPE = "AWS::CloudFormation::Stack";
|
|
47336
|
+
const NESTED_STACK_TYPE$1 = "AWS::CloudFormation::Stack";
|
|
47234
47337
|
function isAbsoluteAssetPath(p) {
|
|
47235
47338
|
return path.isAbsolute(p) || p.startsWith("/");
|
|
47236
47339
|
}
|
|
@@ -47251,7 +47354,7 @@ function listNestedTemplateRows(template) {
|
|
|
47251
47354
|
const rows = [];
|
|
47252
47355
|
for (const [logicalId, resource] of Object.entries(resources)) {
|
|
47253
47356
|
const row = resource;
|
|
47254
|
-
if (row?.Type !== NESTED_STACK_TYPE) continue;
|
|
47357
|
+
if (row?.Type !== NESTED_STACK_TYPE$1) continue;
|
|
47255
47358
|
const assetPath = row.Metadata?.["aws:asset:path"];
|
|
47256
47359
|
if (typeof assetPath !== "string" || assetPath.length === 0) continue;
|
|
47257
47360
|
rows.push({
|
|
@@ -47821,7 +47924,7 @@ function inheritedProvenanceForChildDiff(args) {
|
|
|
47821
47924
|
}
|
|
47822
47925
|
|
|
47823
47926
|
// src/deployment/deploy-engine/deploy-flow/diff.ts
|
|
47824
|
-
async function calculateDeployDiff(engine, { stackName, currentState, effectiveTemplate, parameterValues, conditions, clock }) {
|
|
47927
|
+
async function calculateDeployDiff(engine, { stackName, currentState, effectiveTemplate, parameterValues, conditions, clock, forcedNestedChildRuns }) {
|
|
47825
47928
|
const diffResolverContext = buildResolverContext(engine.resolverContextDeps(), {
|
|
47826
47929
|
template: effectiveTemplate,
|
|
47827
47930
|
resources: currentState.resources,
|
|
@@ -47845,9 +47948,227 @@ async function calculateDeployDiff(engine, { stackName, currentState, effectiveT
|
|
|
47845
47948
|
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
47949
|
...engine.options.inheritedReferenceProvenance && { inherited: engine.options.inheritedReferenceProvenance },
|
|
47847
47950
|
crossStackOutputs: crossStackOutputProvenanceSource(crossStackReads, engine.recordedImports, engine.stateBackend)
|
|
47848
|
-
})
|
|
47951
|
+
}, forcedNestedChildRuns)
|
|
47952
|
+
};
|
|
47953
|
+
}
|
|
47954
|
+
|
|
47955
|
+
// src/deployment/ssm-slashed-name-heal.ts
|
|
47956
|
+
const SSM_PARAMETER = "AWS::SSM::Parameter";
|
|
47957
|
+
function isObject$1(value) {
|
|
47958
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
47959
|
+
}
|
|
47960
|
+
function generatedNames(logicalId, stackName, stackInstanceId, record) {
|
|
47961
|
+
const names = [withStackScope({
|
|
47962
|
+
stackName,
|
|
47963
|
+
stackInstanceId: void 0,
|
|
47964
|
+
nameGenerations: void 0
|
|
47965
|
+
}, () => generatedNameFor(SSM_PARAMETER, logicalId))];
|
|
47966
|
+
if (stackInstanceId !== void 0) {
|
|
47967
|
+
const generation = nameGenerationOf(record, logicalId);
|
|
47968
|
+
names.push(withStackScope({
|
|
47969
|
+
stackName,
|
|
47970
|
+
stackInstanceId,
|
|
47971
|
+
nameGenerations: /* @__PURE__ */ new Map([[logicalId, generation]])
|
|
47972
|
+
}, () => generatedNameFor(SSM_PARAMETER, logicalId)));
|
|
47973
|
+
}
|
|
47974
|
+
return names;
|
|
47975
|
+
}
|
|
47976
|
+
function healedRecord(logicalId, record, template, stackName, stackInstanceId) {
|
|
47977
|
+
if (!isObject$1(record) || record["resourceType"] !== SSM_PARAMETER) return void 0;
|
|
47978
|
+
const physicalId = record["physicalId"];
|
|
47979
|
+
if (typeof physicalId !== "string" || !/^\/[^/]+$/.test(physicalId)) return void 0;
|
|
47980
|
+
const declared = template.Resources?.[logicalId];
|
|
47981
|
+
if (!isObject$1(declared) || declared["Type"] !== SSM_PARAMETER) return void 0;
|
|
47982
|
+
const properties = declared["Properties"] ?? {};
|
|
47983
|
+
if (!isObject$1(properties) || properties["Name"]) return void 0;
|
|
47984
|
+
const recordedProperties = record["properties"];
|
|
47985
|
+
if (isObject$1(recordedProperties) && recordedProperties["Name"]) return void 0;
|
|
47986
|
+
const state = record;
|
|
47987
|
+
const to = physicalId.slice(1);
|
|
47988
|
+
let names;
|
|
47989
|
+
try {
|
|
47990
|
+
names = generatedNames(logicalId, stackName, stackInstanceId, state);
|
|
47991
|
+
} catch {
|
|
47992
|
+
return;
|
|
47993
|
+
}
|
|
47994
|
+
if (!names.includes(to)) return void 0;
|
|
47995
|
+
const observed = state.observedProperties;
|
|
47996
|
+
return {
|
|
47997
|
+
record: {
|
|
47998
|
+
...state,
|
|
47999
|
+
physicalId: to,
|
|
48000
|
+
...isObject$1(observed) && observed["Name"] === physicalId && { observedProperties: {
|
|
48001
|
+
...observed,
|
|
48002
|
+
Name: to
|
|
48003
|
+
} }
|
|
48004
|
+
},
|
|
48005
|
+
heal: {
|
|
48006
|
+
logicalId,
|
|
48007
|
+
from: physicalId,
|
|
48008
|
+
to
|
|
48009
|
+
}
|
|
48010
|
+
};
|
|
48011
|
+
}
|
|
48012
|
+
function healSlashedSsmParameterNames(state, template, stackName) {
|
|
48013
|
+
const resources = state.resources ?? {};
|
|
48014
|
+
const heals = [];
|
|
48015
|
+
if (!isObject$1(resources)) return {
|
|
48016
|
+
resources,
|
|
48017
|
+
heals
|
|
48018
|
+
};
|
|
48019
|
+
let stackInstanceId;
|
|
48020
|
+
try {
|
|
48021
|
+
stackInstanceId = stackInstanceIdOf(state, stackName);
|
|
48022
|
+
} catch {
|
|
48023
|
+
return {
|
|
48024
|
+
resources,
|
|
48025
|
+
heals
|
|
48026
|
+
};
|
|
48027
|
+
}
|
|
48028
|
+
let healedResources;
|
|
48029
|
+
for (const [logicalId, record] of Object.entries(resources)) {
|
|
48030
|
+
const result = healedRecord(logicalId, record, template, stackName, stackInstanceId);
|
|
48031
|
+
if (result === void 0) continue;
|
|
48032
|
+
healedResources ??= { ...resources };
|
|
48033
|
+
healedResources[logicalId] = result.record;
|
|
48034
|
+
heals.push(result.heal);
|
|
48035
|
+
}
|
|
48036
|
+
return {
|
|
48037
|
+
resources: healedResources ?? resources,
|
|
48038
|
+
heals
|
|
48039
|
+
};
|
|
48040
|
+
}
|
|
48041
|
+
function slashedSsmNameHealNote(heal) {
|
|
48042
|
+
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)";
|
|
48043
|
+
}
|
|
48044
|
+
function slashedSsmNameHealPendingNote(heal, stackName) {
|
|
48045
|
+
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)`;
|
|
48046
|
+
}
|
|
48047
|
+
function slashedSsmNameHealAdoptedNote(heal) {
|
|
48048
|
+
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)`;
|
|
48049
|
+
}
|
|
48050
|
+
function readsRef(value, logicalId) {
|
|
48051
|
+
if (Array.isArray(value)) return value.some((item) => readsRef(item, logicalId));
|
|
48052
|
+
if (!isObject$1(value)) return false;
|
|
48053
|
+
if (value["Ref"] === logicalId) return true;
|
|
48054
|
+
const sub = value["Fn::Sub"];
|
|
48055
|
+
const subText = Array.isArray(sub) ? sub[0] : sub;
|
|
48056
|
+
if (typeof subText === "string" && subText.includes(`\${${logicalId}}`)) return true;
|
|
48057
|
+
return Object.values(value).some((child) => readsRef(child, logicalId));
|
|
48058
|
+
}
|
|
48059
|
+
function healsReadByExports(heals, template) {
|
|
48060
|
+
const exported = Object.values(template.Outputs ?? {}).filter((output) => isObject$1(output) && output["Export"] !== void 0);
|
|
48061
|
+
return heals.filter((heal) => exported.some((output) => readsRef(output.Value, heal.logicalId)));
|
|
48062
|
+
}
|
|
48063
|
+
|
|
48064
|
+
// src/deployment/nested-ssm-name-check.ts
|
|
48065
|
+
const NESTED_STACK_TYPE = "AWS::CloudFormation::Stack";
|
|
48066
|
+
function isObject(value) {
|
|
48067
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
48068
|
+
}
|
|
48069
|
+
function holdsMask(value, depth = 0) {
|
|
48070
|
+
if (depth > 64) return true;
|
|
48071
|
+
if (typeof value === "string") return value.includes("***");
|
|
48072
|
+
if (Array.isArray(value)) return value.some((item) => holdsMask(item, depth + 1));
|
|
48073
|
+
if (isObject(value)) return Object.values(value).some((item) => holdsMask(item, depth + 1));
|
|
48074
|
+
return false;
|
|
48075
|
+
}
|
|
48076
|
+
function recordedNestedRows(template, records) {
|
|
48077
|
+
const rows = [];
|
|
48078
|
+
let any = false;
|
|
48079
|
+
const resources = isObject(template.Resources) ? template.Resources : {};
|
|
48080
|
+
for (const [logicalId, resource] of Object.entries(resources)) {
|
|
48081
|
+
if (!isObject(resource) || resource["Type"] !== NESTED_STACK_TYPE) continue;
|
|
48082
|
+
any = true;
|
|
48083
|
+
const record = isObject(records) && Object.hasOwn(records, logicalId) ? records[logicalId] : void 0;
|
|
48084
|
+
if (isObject(record) && record["resourceType"] === NESTED_STACK_TYPE) rows.push(logicalId);
|
|
48085
|
+
}
|
|
48086
|
+
return {
|
|
48087
|
+
rows,
|
|
48088
|
+
any
|
|
47849
48089
|
};
|
|
47850
48090
|
}
|
|
48091
|
+
function hasNestedStackRows(template) {
|
|
48092
|
+
return recordedNestedRows(template, void 0).any;
|
|
48093
|
+
}
|
|
48094
|
+
async function checkLevel(stackName, region, template, records, loader, chain, readRecord) {
|
|
48095
|
+
const forcedRows = /* @__PURE__ */ new Set();
|
|
48096
|
+
const deferredRows = /* @__PURE__ */ new Set();
|
|
48097
|
+
let complete = true;
|
|
48098
|
+
const force = (logicalId) => {
|
|
48099
|
+
const properties = records?.[logicalId]?.properties;
|
|
48100
|
+
(holdsMask(properties) ? deferredRows : forcedRows).add(logicalId);
|
|
48101
|
+
};
|
|
48102
|
+
await Promise.all(recordedNestedRows(template, records).rows.map(async (logicalId) => {
|
|
48103
|
+
const child = loader(logicalId);
|
|
48104
|
+
if (child === void 0) return;
|
|
48105
|
+
if (chain.has(child.identity)) {
|
|
48106
|
+
complete = false;
|
|
48107
|
+
return;
|
|
48108
|
+
}
|
|
48109
|
+
const childStackName = `${stackName}~${logicalId}`;
|
|
48110
|
+
let state;
|
|
48111
|
+
let heals;
|
|
48112
|
+
try {
|
|
48113
|
+
state = await readRecord(childStackName, region);
|
|
48114
|
+
if (!isObject(state)) return;
|
|
48115
|
+
heals = healSlashedSsmParameterNames(state, child.template, childStackName).heals.length;
|
|
48116
|
+
} catch {
|
|
48117
|
+
complete = false;
|
|
48118
|
+
return;
|
|
48119
|
+
}
|
|
48120
|
+
if (heals > 0) {
|
|
48121
|
+
force(logicalId);
|
|
48122
|
+
return;
|
|
48123
|
+
}
|
|
48124
|
+
if (state.nestedSsmNamesChecked === true) return;
|
|
48125
|
+
const below = await checkLevel(childStackName, region, child.template, isObject(state.resources) ? state.resources : void 0, child.childTemplate, new Set(chain).add(child.identity), readRecord);
|
|
48126
|
+
if (below.forcedRows.size > 0) force(logicalId);
|
|
48127
|
+
else if (below.deferredRows.size > 0) deferredRows.add(logicalId);
|
|
48128
|
+
if (!below.complete) complete = false;
|
|
48129
|
+
}));
|
|
48130
|
+
return {
|
|
48131
|
+
forcedRows,
|
|
48132
|
+
deferredRows,
|
|
48133
|
+
complete
|
|
48134
|
+
};
|
|
48135
|
+
}
|
|
48136
|
+
async function checkNestedSsmNames(args) {
|
|
48137
|
+
const { state, template, stackName, region, nestedTemplates, readRecord } = args;
|
|
48138
|
+
if (state.nestedSsmNamesChecked === true || !hasNestedStackRows(template)) return void 0;
|
|
48139
|
+
const loader = childTemplateLoader(nestedTemplates);
|
|
48140
|
+
if (loader === void 0) return {
|
|
48141
|
+
forcedRows: /* @__PURE__ */ new Set(),
|
|
48142
|
+
deferredRows: /* @__PURE__ */ new Set(),
|
|
48143
|
+
complete: false
|
|
48144
|
+
};
|
|
48145
|
+
return checkLevel(stackName, region, template, isObject(state.resources) ? state.resources : void 0, loader, /* @__PURE__ */ new Set(), readRecord);
|
|
48146
|
+
}
|
|
48147
|
+
async function forcedChildrenChecked(args) {
|
|
48148
|
+
const { forcedRows, stackName, region, nestedTemplates, readRecord } = args;
|
|
48149
|
+
if (forcedRows.size === 0) return true;
|
|
48150
|
+
const loader = childTemplateLoader(nestedTemplates);
|
|
48151
|
+
if (loader === void 0) return false;
|
|
48152
|
+
return (await Promise.all([...forcedRows].map(async (logicalId) => {
|
|
48153
|
+
const child = loader(logicalId);
|
|
48154
|
+
if (child === void 0) return false;
|
|
48155
|
+
const childStackName = `${stackName}~${logicalId}`;
|
|
48156
|
+
try {
|
|
48157
|
+
const state = await readRecord(childStackName, region);
|
|
48158
|
+
if (!isObject(state)) return false;
|
|
48159
|
+
if (healSlashedSsmParameterNames(state, child.template, childStackName).heals.length > 0) return false;
|
|
48160
|
+
return !hasNestedStackRows(child.template) || state.nestedSsmNamesChecked === true;
|
|
48161
|
+
} catch {
|
|
48162
|
+
return false;
|
|
48163
|
+
}
|
|
48164
|
+
}))).every(Boolean);
|
|
48165
|
+
}
|
|
48166
|
+
function nestedSsmNameDeferredNote(logicalId) {
|
|
48167
|
+
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)";
|
|
48168
|
+
}
|
|
48169
|
+
function nestedSsmNameRowNote(logicalId) {
|
|
48170
|
+
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)";
|
|
48171
|
+
}
|
|
47851
48172
|
|
|
47852
48173
|
// src/deployment/export-change-guard.ts
|
|
47853
48174
|
async function findAffectedExports({ template, conditions, changes, currentState, resolve, replaces }) {
|
|
@@ -47954,115 +48275,6 @@ async function scanActiveConsumers(producerStack, producerRegion, ctx, onUnreada
|
|
|
47954
48275
|
}))).filter((r) => r !== null).flat();
|
|
47955
48276
|
}
|
|
47956
48277
|
|
|
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
48278
|
// src/deployment/deploy-engine/deploy-flow/plan-checks.ts
|
|
48067
48279
|
async function refuseUnsafePlan(engine, { stackName, ssmNameHeals = [], currentState, effectiveTemplate, parameterValues, conditions, changes, diffResolverContext }) {
|
|
48068
48280
|
const nestedStackTypeChanges = findNestedStackTypeChanges({
|
|
@@ -48220,7 +48432,7 @@ function keptWholeReasonText(reason) {
|
|
|
48220
48432
|
}
|
|
48221
48433
|
|
|
48222
48434
|
// 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 }) {
|
|
48435
|
+
async function deployWithoutChanges(engine, { stackName, template, currentState, currentEtag, effectiveTemplate, outputsDigestSource, parameterValues, conditions, conditionVerdicts, migrationPending, maskedFingerprintsBackfilled, orphansChanged, terminationProtectionChanged, ssmNamesHealed, nestedSsmNamesMarked, resolveStackInstanceId, startProvenanceCapture, startTime, clock }) {
|
|
48224
48436
|
engine.logger.info("No changes detected. Stack is up to date.");
|
|
48225
48437
|
startProvenanceCapture();
|
|
48226
48438
|
const supersededChanged = engine.options.dryRun ? false : await retryCarriedSupersededResources(engine, currentState, supersededResourcesOf(currentState), currentState.resources);
|
|
@@ -48262,7 +48474,7 @@ async function deployWithoutChanges(engine, { stackName, template, currentState,
|
|
|
48262
48474
|
stackName
|
|
48263
48475
|
});
|
|
48264
48476
|
const outputProvenanceBackfill = !outputsChanged && currentState.outputReferenceProvenance === void 0 && engine.provenanceBaseline?.tokenFree === false && engine.outputReferenceProvenanceFor(persistedOutputs, redactOutputs(engine.maskingDeps(), persistedOutputs)) !== void 0;
|
|
48265
|
-
if (observedRefresh || outputProvenanceBackfill || maskedFingerprintsBackfilled || conditionVerdictsChanged || outputsChanged || exportSetChanged || skippedOutputsChanged || orphansChanged || supersededChanged || terminationProtectionChanged || ssmNamesHealed || healedAttributesPending) {
|
|
48477
|
+
if (observedRefresh || outputProvenanceBackfill || maskedFingerprintsBackfilled || conditionVerdictsChanged || outputsChanged || exportSetChanged || skippedOutputsChanged || orphansChanged || supersededChanged || terminationProtectionChanged || ssmNamesHealed || nestedSsmNamesMarked || healedAttributesPending) {
|
|
48266
48478
|
await resolveStackInstanceId();
|
|
48267
48479
|
try {
|
|
48268
48480
|
const refreshedState = {
|
|
@@ -48514,6 +48726,15 @@ async function doDeployWithPrefetch(engine, stackName, template, createOnlyPrefe
|
|
|
48514
48726
|
ssmNameHeals.push(...healed.heals);
|
|
48515
48727
|
};
|
|
48516
48728
|
healSsmNames();
|
|
48729
|
+
const nestedSsmCheck = checkNestedSsmNames({
|
|
48730
|
+
state: currentState,
|
|
48731
|
+
template,
|
|
48732
|
+
stackName,
|
|
48733
|
+
region: engine.stackRegion,
|
|
48734
|
+
nestedTemplates: getCurrentNestedStackContext()?.nestedTemplates,
|
|
48735
|
+
readRecord: async (name, region) => (await engine.stateBackend.getState(name, region))?.state
|
|
48736
|
+
});
|
|
48737
|
+
nestedSsmCheck.catch(() => void 0);
|
|
48517
48738
|
engine.rebaseline(currentState.resources ?? {});
|
|
48518
48739
|
engine.runProducerRegionEvidence = () => producerRegionEvidence(engine.rollbackDeps(), currentState);
|
|
48519
48740
|
const firstDeployIdentityRead = idArrivesLater && engine.stateBackend.peekStackInstanceSibling ? engine.options.dryRun ? Promise.resolve(null) : engine.stateBackend.peekStackInstanceSibling(stackName, engine.stackRegion) : void 0;
|
|
@@ -48604,13 +48825,18 @@ async function doDeployWithPrefetch(engine, stackName, template, createOnlyPrefe
|
|
|
48604
48825
|
currentState,
|
|
48605
48826
|
effectiveTemplate
|
|
48606
48827
|
});
|
|
48828
|
+
const nestedCheck = await nestedSsmCheck;
|
|
48829
|
+
for (const row of nestedCheck?.forcedRows ?? []) engine.logger.info(nestedSsmNameRowNote(row));
|
|
48830
|
+
for (const row of nestedCheck?.deferredRows ?? []) engine.logger.info(nestedSsmNameDeferredNote(row));
|
|
48831
|
+
const marksNestedCheck = nestedCheck?.complete === true && !Object.values(orphanPlan.adopted).some((r) => r.resourceType === "AWS::CloudFormation::Stack");
|
|
48607
48832
|
const { diffResolverContext, maskedInputs, changes } = await calculateDeployDiff(engine, {
|
|
48608
48833
|
stackName,
|
|
48609
48834
|
currentState,
|
|
48610
48835
|
effectiveTemplate,
|
|
48611
48836
|
parameterValues,
|
|
48612
48837
|
conditions,
|
|
48613
|
-
clock
|
|
48838
|
+
clock,
|
|
48839
|
+
forcedNestedChildRuns: nestedCheck?.forcedRows
|
|
48614
48840
|
});
|
|
48615
48841
|
clock.lap("diff");
|
|
48616
48842
|
createOnlyPrefetch.cancel();
|
|
@@ -48659,26 +48885,30 @@ async function doDeployWithPrefetch(engine, stackName, template, createOnlyPrefe
|
|
|
48659
48885
|
};
|
|
48660
48886
|
const hasChanges = engine.diffCalculator.hasChanges(changes);
|
|
48661
48887
|
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
|
-
|
|
48888
|
+
if (!hasChanges) {
|
|
48889
|
+
if (marksNestedCheck) currentState.nestedSsmNamesChecked = true;
|
|
48890
|
+
return await deployWithoutChanges(engine, {
|
|
48891
|
+
stackName,
|
|
48892
|
+
template,
|
|
48893
|
+
currentState,
|
|
48894
|
+
currentEtag,
|
|
48895
|
+
effectiveTemplate,
|
|
48896
|
+
outputsDigestSource,
|
|
48897
|
+
parameterValues,
|
|
48898
|
+
conditions,
|
|
48899
|
+
conditionVerdicts,
|
|
48900
|
+
migrationPending,
|
|
48901
|
+
maskedFingerprintsBackfilled,
|
|
48902
|
+
orphansChanged,
|
|
48903
|
+
terminationProtectionChanged,
|
|
48904
|
+
ssmNamesHealed: ssmNameHeals.length > 0,
|
|
48905
|
+
nestedSsmNamesMarked: marksNestedCheck,
|
|
48906
|
+
resolveStackInstanceId,
|
|
48907
|
+
startProvenanceCapture,
|
|
48908
|
+
startTime,
|
|
48909
|
+
clock
|
|
48910
|
+
});
|
|
48911
|
+
}
|
|
48682
48912
|
const createChanges = engine.diffCalculator.filterByType(changes, "CREATE");
|
|
48683
48913
|
const updateChanges = engine.diffCalculator.filterByType(changes, "UPDATE");
|
|
48684
48914
|
const deleteChanges = engine.diffCalculator.filterByType(changes, "DELETE");
|
|
@@ -48724,6 +48954,13 @@ async function doDeployWithPrefetch(engine, stackName, template, createOnlyPrefe
|
|
|
48724
48954
|
} catch {}
|
|
48725
48955
|
await engine.observedCapture.drainObservedCaptures(newState.resources);
|
|
48726
48956
|
clock.lap("observed-state drain");
|
|
48957
|
+
if (marksNestedCheck && await forcedChildrenChecked({
|
|
48958
|
+
forcedRows: nestedCheck?.forcedRows ?? /* @__PURE__ */ new Set(),
|
|
48959
|
+
stackName,
|
|
48960
|
+
region: engine.stackRegion,
|
|
48961
|
+
nestedTemplates: getCurrentNestedStackContext()?.nestedTemplates,
|
|
48962
|
+
readRecord: async (name, region) => (await engine.stateBackend.getState(name, region))?.state
|
|
48963
|
+
})) newState.nestedSsmNamesChecked = true;
|
|
48727
48964
|
const [newEtag] = await Promise.all([engine.stateBackend.saveState(stackName, engine.stackRegion, engine.withParentInfo(conditionVerdicts ? {
|
|
48728
48965
|
...newState,
|
|
48729
48966
|
conditionVerdicts
|
|
@@ -49009,5 +49246,5 @@ var DeployEngine = class {
|
|
|
49009
49246
|
}
|
|
49010
49247
|
};
|
|
49011
49248
|
|
|
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-
|
|
49249
|
+
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 };
|
|
49250
|
+
//# sourceMappingURL=deploy-engine-DLmPF7r5.js.map
|