@cdkd/cli 0.371.1 → 0.372.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ambient-client-defaults-Cq58skpK.js → ambient-client-defaults-B9_o60dB.js} +3 -3
- package/dist/{ambient-client-defaults-Cq58skpK.js.map → ambient-client-defaults-B9_o60dB.js.map} +1 -1
- package/dist/{asg-provider-B3ngG-X4.js → asg-provider-D6gQPSZu.js} +8 -8
- package/dist/{asg-provider-B3ngG-X4.js.map → asg-provider-D6gQPSZu.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{created-resource-sink-Bzk9hJNq.js → created-resource-sink-CxezDoaQ.js} +4 -4
- package/dist/{created-resource-sink-Bzk9hJNq.js.map → created-resource-sink-CxezDoaQ.js.map} +1 -1
- package/dist/{custom-resource-runtime-CLHhYoEe.js → custom-resource-runtime-BiP0vn3W.js} +6 -6
- package/dist/{custom-resource-runtime-CLHhYoEe.js.map → custom-resource-runtime-BiP0vn3W.js.map} +1 -1
- package/dist/{db-associated-roles-CYA2C3yZ.js → db-associated-roles-BfvrD9UK.js} +2 -2
- package/dist/{db-associated-roles-CYA2C3yZ.js.map → db-associated-roles-BfvrD9UK.js.map} +1 -1
- package/dist/{delete-started-D9FEXTba.js → delete-started-BtXSEHsh.js} +4 -4
- package/dist/{delete-started-D9FEXTba.js.map → delete-started-BtXSEHsh.js.map} +1 -1
- package/dist/{deploy-engine-DvPDae31.js → deploy-engine-D6iEbD4R.js} +1166 -192
- package/dist/deploy-engine-D6iEbD4R.js.map +1 -0
- package/dist/{ec2-termination-protection-C19A5IH9.js → ec2-termination-protection-DXZyU3Q0.js} +3 -3
- package/dist/{ec2-termination-protection-C19A5IH9.js.map → ec2-termination-protection-DXZyU3Q0.js.map} +1 -1
- package/dist/{ecr-uri-BW6V_9R5.js → ecr-uri-C0JbYdmm.js} +2 -2
- package/dist/{ecr-uri-BW6V_9R5.js.map → ecr-uri-C0JbYdmm.js.map} +1 -1
- package/dist/{emr-cluster-provider-DVljF3YH.js → emr-cluster-provider-BCu1qq9J.js} +10 -10
- package/dist/{emr-cluster-provider-DVljF3YH.js.map → emr-cluster-provider-BCu1qq9J.js.map} +1 -1
- package/dist/{expected-bucket-owner-DMq5H0Zm.js → expected-bucket-owner-C2OXO5oD.js} +2 -2
- package/dist/{expected-bucket-owner-DMq5H0Zm.js.map → expected-bucket-owner-C2OXO5oD.js.map} +1 -1
- package/dist/{iam-role-provider-B8c2g5fS.js → iam-role-provider-DFBJRsvA.js} +12 -12
- package/dist/{iam-role-provider-B8c2g5fS.js.map → iam-role-provider-DFBJRsvA.js.map} +1 -1
- package/dist/{identity-read-denied-Cl8km1o3.js → identity-read-denied-C17mECu-.js} +5 -5
- package/dist/{identity-read-denied-Cl8km1o3.js.map → identity-read-denied-C17mECu-.js.map} +1 -1
- package/dist/{image-plan-Cg5bLNvP.js → image-plan-sEIpoR31.js} +18 -11
- package/dist/image-plan-sEIpoR31.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-BUi1Imxa.js → logger-BoDS8cs5.js} +2 -2
- package/dist/{logger-BUi1Imxa.js.map → logger-BoDS8cs5.js.map} +1 -1
- package/dist/{neptune-provider-Ddse7yYJ.js → neptune-provider-CL5WtULJ.js} +9 -9
- package/dist/{neptune-provider-Ddse7yYJ.js.map → neptune-provider-CL5WtULJ.js.map} +1 -1
- package/dist/{program-bUaiwzJ2.js → program-BBXUa34K.js} +484 -36
- package/dist/program-BBXUa34K.js.map +1 -0
- package/dist/{provider-classes-AI1PLFRf.js → provider-classes-BiWcIBLc.js} +22 -22
- package/dist/{provider-classes-AI1PLFRf.js.map → provider-classes-BiWcIBLc.js.map} +1 -1
- package/dist/{rds-provider-6Cj8pik8.js → rds-provider--XBD_TS8.js} +13 -13
- package/dist/{rds-provider-6Cj8pik8.js.map → rds-provider--XBD_TS8.js.map} +1 -1
- package/dist/{read-replica-DWbYq3Fh.js → read-replica-apcXpKN9.js} +3 -3
- package/dist/{read-replica-DWbYq3Fh.js.map → read-replica-apcXpKN9.js.map} +1 -1
- package/dist/{redacted-delete-address-C1M-bYXm.js → redacted-delete-address-S_A40Diz.js} +4 -4
- package/dist/{redacted-delete-address-C1M-bYXm.js.map → redacted-delete-address-S_A40Diz.js.map} +1 -1
- package/dist/{replacement-rules-BimJi0H1.js → replacement-rules-BArdRPgU.js} +3 -3
- package/dist/{replacement-rules-BimJi0H1.js.map → replacement-rules-BArdRPgU.js.map} +1 -1
- package/dist/{resource-deadline-Cj-4PzvY.js → resource-deadline-DWvjidOS.js} +2 -2
- package/dist/{resource-deadline-Cj-4PzvY.js.map → resource-deadline-DWvjidOS.js.map} +1 -1
- package/dist/{restore-source-guard-CP2cxnnh.js → restore-source-guard-k9BQAviV.js} +4 -4
- package/dist/{restore-source-guard-CP2cxnnh.js.map → restore-source-guard-k9BQAviV.js.map} +1 -1
- package/dist/{run-cli-C0ZXPvze.js → run-cli-DEVVmR3v.js} +2 -2
- package/dist/{run-cli-C0ZXPvze.js.map → run-cli-DEVVmR3v.js.map} +1 -1
- package/dist/{secret-reference-immutable-BLsAuIkM.js → secret-reference-immutable-0mb2D0J5.js} +20 -11
- package/dist/secret-reference-immutable-0mb2D0J5.js.map +1 -0
- package/dist/{settle-own-write-members-BJ1rf1Yt.js → settle-own-write-members-DPTK_vVK.js} +13 -684
- package/dist/settle-own-write-members-DPTK_vVK.js.map +1 -0
- package/dist/{tag-list-CSQWFQbX.js → tag-list-B19O4m3W.js} +4 -4
- package/dist/{tag-list-CSQWFQbX.js.map → tag-list-B19O4m3W.js.map} +1 -1
- package/dist/{version-CQenoJzP.js → version-Byf_RTiH.js} +2 -2
- package/dist/{version-CQenoJzP.js.map → version-Byf_RTiH.js.map} +1 -1
- package/package.json +1 -1
- package/dist/deploy-engine-DvPDae31.js.map +0 -1
- package/dist/image-plan-Cg5bLNvP.js.map +0 -1
- package/dist/program-bUaiwzJ2.js.map +0 -1
- package/dist/secret-reference-immutable-BLsAuIkM.js.map +0 -1
- package/dist/settle-own-write-members-BJ1rf1Yt.js.map +0 -1
|
@@ -1,20 +1,20 @@
|
|
|
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, R as isRetryableTransientError, 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-Byf_RTiH.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-BoDS8cs5.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, R as isRetryableTransientError, 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-B9_o60dB.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 { C as timePhase, D as parseFailureDebugDetail, E as jsonParseFailureStandIn, O as parseJsonNamingNoBody, T as describeJsonParseFailure, _ as CREATE_ONLY_PATHS_SNAPSHOT, a as getCreateOnlyPropertyPaths, b as phaseTimingsEnabled, c as templateResourceTypes, d as hasNoRegistrySchema, f as isAwsEmulatorRegistryMiss, g as withRetry, h as IAM_PROPAGATION_MAX_DELAY_MS, k as utf8ByteLength, l as parseCreateOnlyPropertyPointers, m as scheduleDescribeType, n as unchangedBehindSecretReference, o as isIntrinsicShaped, p as reportAwsEmulatorRegistryMiss, r as cachedCreateOnlyPropertyPaths, s as prefetchCreateOnlyPropertyPaths, t as onlySecretReferencesDiffer, u as describeTypeWithThrottleRetry, v as PhaseClock, w as timePhaseSync, x as recordPhase, y as phaseScopeForStack } from "./secret-reference-immutable-
|
|
6
|
+
import { C as timePhase, D as parseFailureDebugDetail, E as jsonParseFailureStandIn, O as parseJsonNamingNoBody, T as describeJsonParseFailure, _ as CREATE_ONLY_PATHS_SNAPSHOT, a as getCreateOnlyPropertyPaths, b as phaseTimingsEnabled, c as templateResourceTypes, d as hasNoRegistrySchema, f as isAwsEmulatorRegistryMiss, g as withRetry, h as IAM_PROPAGATION_MAX_DELAY_MS, i as createOnlyChangeRequiresReplacement, k as utf8ByteLength, l as parseCreateOnlyPropertyPointers, m as scheduleDescribeType, n as unchangedBehindSecretReference, o as isIntrinsicShaped, p as reportAwsEmulatorRegistryMiss, r as cachedCreateOnlyPropertyPaths, s as prefetchCreateOnlyPropertyPaths, t as onlySecretReferencesDiffer, u as describeTypeWithThrottleRetry, v as PhaseClock, w as timePhaseSync, x as recordPhase, y as phaseScopeForStack } from "./secret-reference-immutable-0mb2D0J5.js";
|
|
7
7
|
import { i as sameRegion, n as canonicalizeRegion, r as derivePartitionAndUrlSuffix } from "./aws-partition-DA0r2sr-.js";
|
|
8
|
-
import { $ as ElapsedBudget, At as resourceTypeShown, Ct as startInterruptWatch, D as isQuotableImportValue, Et as compositeIdSeparatorRefusal, F as markNotGone, Ft as isSecretDerivedValue, Gt as isAuxiliaryFailure, Ht as createdBeforeFailure, I as compensateProtectionFlip, It as maskDeep, Jt as markCreatedBeforeFailure, Kt as isAuxiliaryMarkOf, L as deleteWithProtectionCompensation, Lt as maskerOrIdentity, Mt as stateOrphanRecordRemedy, N as resolveExplicitPhysicalId, Nt as createMaskedLogSinks, O as normalizeAwsTagsToCfn, Ot as logicalIdShown, P as isMarkedNotGone, Pt as createMaskedRetryLogger, Q as runDeleteAttempt, Rt as withDerivedNameMasks, St as isInterruptedWaitError, Ut as createdResourceIdentityBeforeFailure, X as isTerminalDeleteFailure, Y as ProtectionFlipRegistry, Z as protectionFlipKey, _ as withoutServerErrorRetries, an as sanitizeRecoveryValue, b as assertRegionMatch, cn as WAIT_CONDITION_SIGNAL_PREFIX, dn as withPasteableAwsProfile, et as ElapsedBudgetRegistry, fn as injectiveKey, hn as producerRecordKey, i as reportCreatedResource, in as recoveryCommandFlags, j as refusalTypeShown, jt as segmentAfterAnchor, k as quotedRemedyLogicalId, n as clearCreatedReport, nt as DELETION_PROTECTION_DOC_POINTER, o as retractCreatedResource, on as CUSTOM_RESOURCE_RESPONSE_PREFIX, ot as pasteableAwsCommand, qt as markAuxiliaryFailure, r as collectCreatedResources, sn as DEFAULT_STATE_PREFIX, st as protectedReplacementAdvice, t as CreatedResourceSink, tt as monotonicNowMs, vt as withUnchangedSecretPrincipalLists, wt as canonicalizeRoute53QueryName, y as RESOURCE_NOT_FOUND, z as observeThenDisableProtection, zt as RETRY_AUXILIARY_OWNER } from "./created-resource-sink-
|
|
9
|
-
import { t as expectedOwnerParam } from "./expected-bucket-owner-
|
|
10
|
-
import { Ct as isReadableBag, Dt as skippedOutputsCarriedFrom, Et as shouldRetainResource, Ot as stackInstanceIdCarriedFrom, St as importableOutputs, Tt as orphansCarriedFrom, _t as acceptedCreateOnlyDropsOf, gt as slowCcOperationTimeoutMs, ht as dbInstanceAttributes, i as dbClusterAttributes, n as isRefusedByName, r as markDeleteStarted, t as isDeleteStarted, vt as describeRegionValueKind, wt as orphansAfterRollback, xt as importableOutputKeys, yt as exportNamesCarriedFrom } from "./delete-started-
|
|
11
|
-
import { $ as recordSecretResolution, $t as recordDroppedArrayElements, A as readbackPathFor, An as isScopedSecretVerdict, At as withLegacyOverlapScan, B as isSameGenerationBag, Bn as recordNoEchoAttributeValues, Bt as staticTemplateText, C as noEchoComparison, Cn as splitGetAttStringForm, Ct as maskSecretsInError, D as noEchoParameterNodesAt, Dn as freshNoEchoValuesOf, Dt as legacyReferenceLeavesOnly, En as contradictProvenPublicExpression, Et as legacyLeavesWithoutMask, F as valueAtCoordinate, Ft as scrubResourceRecord, G as recordIntrinsicLeafResolutionAs, Gt as secretRerenderPairs, H as markSameGenerationBag, Hn as recordProvenPublicExpression, Ht as dynamicReferenceSpans, I as witnessNormalize, In as recordDerivedMaskOnlyValue, It as withPhysicalNameCopies, J as mixedLiteralAnswered, Jn as maskMatchSpans, Jt as arrayPairsWhateverDrops, K as redactionClaimOf, Kn as isDynamicReferenceString, Ln as recordFreshNoEchoValuesIn, Lt as withoutPhysicalNameCopies, M as recordPassedNoEchoParameters, Mn as markNoEchoParameterClass, Mt as repairEmbeddedPhysicalNamesTowards, N as recordedNoEchoValuesOf, Nn as noEchoParameterPlaintextsOf, Nt as repairPhysicalNameCopyLeaves, O as noEchoParametersReadBy, On as isMaskOnlyPlaintext, Ot as overlapRuleAnswered, P as replaceAtCoordinates, Pn as pinScopedSecretVerdict, Pt as replaceEmbeddedPhysicalNameRewrites, Q as openRecordingScope, Qt as standsForInheritedSecret, R as carryRedactionMarks, Rt as spanNamesResolvableService, S as maskedLeafCoordinatesOf, Sn as recordCrossStackExpression, St as maskRecordedSecretsInText, T as noEchoLeavesOf, Tn as carryFreshNoEchoMark, Tt as differingStringLeaves, U as mergeResolvedPairs, Un as wholeStringLeavesOf, Ut as dynamicReferenceTokens, V as markLeafCertifiedBag, Vn as recordNoEchoParameterFreshValue, Vt as DYNAMIC_REFERENCE_TOKEN_SCAN, W as recordIntrinsicLeafResolution, Wn as withoutNoEchoParameterEntries, X as redactForState, Xt as rereadParameterExpression, Y as withLegacyMixedScan, Z as foldRecording, Zt as splitOutsideDynamicReferences, _ as canonicalJson$7, _t as recordLogOnlyValue, a as liveHoldsFreshLeaves, an as inheritedParameterExpression, b as maskReadbackAtCoordinates, bn as nestedStackRowTagSpellingOf, bt as createSecretMasker, cn as recordInheritedParameterValue, ct as createUnionSecretMasker, dn as carriesFreshNoEchoValue, dt as literalSplitDelimitersOf, en as recordTakenIfBranch, et as hasPassProvenance, fn as embedsFreshNoEchoValue, ft as logOnlyValueCount, g as canonicalCoordinates, gn as physicalNameCopiesOf, gt as recordLogOnlySplitFragments, hn as recoverMaskedOutput, ht as recordLogOnlyParameterValue, i as keyOrderFreeJson, in as inheritNestedStackParameterAssociations, it as recordReferenceResolution, jn as isSecretExpressionByVerdictOrSpelling, jt as embeddedPhysicalNameRewrites, kn as isNoEchoParameterPlaintext, kt as replaceWholeLeaves, ln as redactInheritedParameterValue, lt as hasLogOnlyValues, m as parseLambdaFunctionAddress, mn as recordRecoverableMaskedOutput, mt as printingCorpusOf, n as grantSentence, nn as recordInheritedPseudoParameters, nt as passReadVersionsFor, o as outputMapsEqual, on as inheritedRenderedToken, ot as carryLogOnlyValues, pn as freshNoEchoLeafPositions, pt as logOnlyValuesOf, q as resolvedPlaintextOf, qn as isSingleDynamicReferenceToken, r as isReplacementCeiling, rn as templateRereadsAccountId, rt as recordReferenceProvenanceEntry, s as readDenialOf, sn as recordInheritedParameterRead, st as carryLogOnlyValuesCarriedBy, t as ReplacementRulesRegistry, tn as inheritedPseudoValue, tt as passProvenanceFor, un as withdrawRenderedParameterSpelling, ut as hasMaskableValues, v as isMarkedCoordinate, vn as recordPhysicalNameCopy, vt as shareLogOnlyValues, w as noEchoCoordinatesOf, wn as carriesSecretMask, wt as maskSecretsInText, x as maskWholeValue, xn as crossStackSourceKey, xt as errorCauseChain, y as maskAtCoordinates, yn as recordNestedStackParameterExpressions, yt as unionOfSecretBags, z as intrinsicLeafResolutionOf } from "./replacement-rules-
|
|
12
|
-
import { S as willReplaceGroup, _ as INSTANCE_REFRESH_TRIGGER_PROPERTIES, a as reDisableInstanceApiTermination, b as ignoresUnmodifiedGroupSize, c as resolvedResourceTimeoutMs, d as isRefusedBeforeApplying, f as markRefusedBeforeApplying, g as withPriorAttempts, h as provenOrphanIdsInJournal, i as observeThenDisableInstanceApiTermination, m as priorAttemptsInJournal, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, p as priorAttemptLookup, r as isTerminationProtectionPropagationError, v as REPLACEMENT_TRIGGER_PROPERTIES, x as rollingUpdatePolicy } from "./ec2-termination-protection-
|
|
13
|
-
import { C as withUnsettledItems, S as unsettledPropertiesOf, T as withoutUnsettledProperties, _ as isUsableAttemptedName, b as unsettledItemsOf, c as definedAttributes, d as awaitDeferredResource, f as awaitUpstreamReadiness, g as withDeferredReadinessScope, i as refuseRestoreFromItself, p as currentDeferredReadinessScope, v as unsettledContextOf, w as withUnsettledProperties, x as unsettledItemsTopKey, y as unsettledItemsField } from "./restore-source-guard-
|
|
14
|
-
import { S as isoTimestampAttribute, _ as isRecordedIdentityAttribute, a as lookupEachName, b as newCopyDeleteAttributes, d as identityWarner, h as attributesAfterUpdate, i as isAccessDeniedError, l as assertRecordedIdentity, m as SURVIVOR_IDENTITY_ATTRIBUTES, p as recordedIdentityId, t as deniedIdentityReadRefusal, u as differingIdentityWarning, v as isUsableIdentityValue, x as replaceDeadIdentity, y as keepRecordedIdentity } from "./identity-read-denied-
|
|
15
|
-
import { a as refuseMalformedDesiredTags, i as readTagList, r as planTagDiff, s as tagPlanWarning } from "./tag-list-
|
|
16
|
-
import { a as withResourceDeadline, c as removalWarning, d as withoutInjectedRemovals, i as whileEnclosingDeadlinesPaused, n as enclosingDeadlineRemainingMs, r as outsideEnclosingDeadlines, s as prepareRemovalForUpdate, t as enclosingDeadlineExpired } from "./resource-deadline-
|
|
17
|
-
import { n as isRedactedRecordedValue } from "./redacted-delete-address-
|
|
8
|
+
import { $ as ElapsedBudget, At as resourceTypeShown, Ct as startInterruptWatch, D as isQuotableImportValue, Et as compositeIdSeparatorRefusal, F as markNotGone, Ft as isSecretDerivedValue, Gt as isAuxiliaryFailure, Ht as createdBeforeFailure, I as compensateProtectionFlip, It as maskDeep, Jt as markCreatedBeforeFailure, Kt as isAuxiliaryMarkOf, L as deleteWithProtectionCompensation, Lt as maskerOrIdentity, Mt as stateOrphanRecordRemedy, N as resolveExplicitPhysicalId, Nt as createMaskedLogSinks, O as normalizeAwsTagsToCfn, Ot as logicalIdShown, P as isMarkedNotGone, Pt as createMaskedRetryLogger, Q as runDeleteAttempt, Rt as withDerivedNameMasks, St as isInterruptedWaitError, Ut as createdResourceIdentityBeforeFailure, X as isTerminalDeleteFailure, Y as ProtectionFlipRegistry, Z as protectionFlipKey, _ as withoutServerErrorRetries, an as sanitizeRecoveryValue, b as assertRegionMatch, cn as WAIT_CONDITION_SIGNAL_PREFIX, dn as withPasteableAwsProfile, et as ElapsedBudgetRegistry, fn as injectiveKey, hn as producerRecordKey, i as reportCreatedResource, in as recoveryCommandFlags, j as refusalTypeShown, jt as segmentAfterAnchor, k as quotedRemedyLogicalId, n as clearCreatedReport, nt as DELETION_PROTECTION_DOC_POINTER, o as retractCreatedResource, on as CUSTOM_RESOURCE_RESPONSE_PREFIX, ot as pasteableAwsCommand, qt as markAuxiliaryFailure, r as collectCreatedResources, sn as DEFAULT_STATE_PREFIX, st as protectedReplacementAdvice, t as CreatedResourceSink, tt as monotonicNowMs, vt as withUnchangedSecretPrincipalLists, wt as canonicalizeRoute53QueryName, y as RESOURCE_NOT_FOUND, z as observeThenDisableProtection, zt as RETRY_AUXILIARY_OWNER } from "./created-resource-sink-CxezDoaQ.js";
|
|
9
|
+
import { t as expectedOwnerParam } from "./expected-bucket-owner-C2OXO5oD.js";
|
|
10
|
+
import { Ct as isReadableBag, Dt as skippedOutputsCarriedFrom, Et as shouldRetainResource, Ot as stackInstanceIdCarriedFrom, St as importableOutputs, Tt as orphansCarriedFrom, _t as acceptedCreateOnlyDropsOf, gt as slowCcOperationTimeoutMs, ht as dbInstanceAttributes, i as dbClusterAttributes, n as isRefusedByName, r as markDeleteStarted, t as isDeleteStarted, vt as describeRegionValueKind, wt as orphansAfterRollback, xt as importableOutputKeys, yt as exportNamesCarriedFrom } from "./delete-started-BtXSEHsh.js";
|
|
11
|
+
import { $ as recordSecretResolution, $t as recordDroppedArrayElements, A as readbackPathFor, An as isScopedSecretVerdict, At as withLegacyOverlapScan, B as isSameGenerationBag, Bn as recordNoEchoAttributeValues, Bt as staticTemplateText, C as noEchoComparison, Cn as splitGetAttStringForm, Ct as maskSecretsInError, D as noEchoParameterNodesAt, Dn as freshNoEchoValuesOf, Dt as legacyReferenceLeavesOnly, En as contradictProvenPublicExpression, Et as legacyLeavesWithoutMask, F as valueAtCoordinate, Ft as scrubResourceRecord, G as recordIntrinsicLeafResolutionAs, Gt as secretRerenderPairs, H as markSameGenerationBag, Hn as recordProvenPublicExpression, Ht as dynamicReferenceSpans, I as witnessNormalize, In as recordDerivedMaskOnlyValue, It as withPhysicalNameCopies, J as mixedLiteralAnswered, Jn as maskMatchSpans, Jt as arrayPairsWhateverDrops, K as redactionClaimOf, Kn as isDynamicReferenceString, Ln as recordFreshNoEchoValuesIn, Lt as withoutPhysicalNameCopies, M as recordPassedNoEchoParameters, Mn as markNoEchoParameterClass, Mt as repairEmbeddedPhysicalNamesTowards, N as recordedNoEchoValuesOf, Nn as noEchoParameterPlaintextsOf, Nt as repairPhysicalNameCopyLeaves, O as noEchoParametersReadBy, On as isMaskOnlyPlaintext, Ot as overlapRuleAnswered, P as replaceAtCoordinates, Pn as pinScopedSecretVerdict, Pt as replaceEmbeddedPhysicalNameRewrites, Q as openRecordingScope, Qt as standsForInheritedSecret, R as carryRedactionMarks, Rt as spanNamesResolvableService, S as maskedLeafCoordinatesOf, Sn as recordCrossStackExpression, St as maskRecordedSecretsInText, T as noEchoLeavesOf, Tn as carryFreshNoEchoMark, Tt as differingStringLeaves, U as mergeResolvedPairs, Un as wholeStringLeavesOf, Ut as dynamicReferenceTokens, V as markLeafCertifiedBag, Vn as recordNoEchoParameterFreshValue, Vt as DYNAMIC_REFERENCE_TOKEN_SCAN, W as recordIntrinsicLeafResolution, Wn as withoutNoEchoParameterEntries, X as redactForState, Xt as rereadParameterExpression, Y as withLegacyMixedScan, Z as foldRecording, Zt as splitOutsideDynamicReferences, _ as canonicalJson$7, _t as recordLogOnlyValue, a as liveHoldsFreshLeaves, an as inheritedParameterExpression, b as maskReadbackAtCoordinates, bn as nestedStackRowTagSpellingOf, bt as createSecretMasker, cn as recordInheritedParameterValue, ct as createUnionSecretMasker, dn as carriesFreshNoEchoValue, dt as literalSplitDelimitersOf, en as recordTakenIfBranch, et as hasPassProvenance, fn as embedsFreshNoEchoValue, ft as logOnlyValueCount, g as canonicalCoordinates, gn as physicalNameCopiesOf, gt as recordLogOnlySplitFragments, hn as recoverMaskedOutput, ht as recordLogOnlyParameterValue, i as keyOrderFreeJson, in as inheritNestedStackParameterAssociations, it as recordReferenceResolution, jn as isSecretExpressionByVerdictOrSpelling, jt as embeddedPhysicalNameRewrites, kn as isNoEchoParameterPlaintext, kt as replaceWholeLeaves, ln as redactInheritedParameterValue, lt as hasLogOnlyValues, m as parseLambdaFunctionAddress, mn as recordRecoverableMaskedOutput, mt as printingCorpusOf, n as grantSentence, nn as recordInheritedPseudoParameters, nt as passReadVersionsFor, o as outputMapsEqual, on as inheritedRenderedToken, ot as carryLogOnlyValues, pn as freshNoEchoLeafPositions, pt as logOnlyValuesOf, q as resolvedPlaintextOf, qn as isSingleDynamicReferenceToken, r as isReplacementCeiling, rn as templateRereadsAccountId, rt as recordReferenceProvenanceEntry, s as readDenialOf, sn as recordInheritedParameterRead, st as carryLogOnlyValuesCarriedBy, t as ReplacementRulesRegistry, tn as inheritedPseudoValue, tt as passProvenanceFor, un as withdrawRenderedParameterSpelling, ut as hasMaskableValues, v as isMarkedCoordinate, vn as recordPhysicalNameCopy, vt as shareLogOnlyValues, w as noEchoCoordinatesOf, wn as carriesSecretMask, wt as maskSecretsInText, x as maskWholeValue, xn as crossStackSourceKey, xt as errorCauseChain, y as maskAtCoordinates, yn as recordNestedStackParameterExpressions, yt as unionOfSecretBags, z as intrinsicLeafResolutionOf } from "./replacement-rules-BArdRPgU.js";
|
|
12
|
+
import { S as willReplaceGroup, _ as INSTANCE_REFRESH_TRIGGER_PROPERTIES, a as reDisableInstanceApiTermination, b as ignoresUnmodifiedGroupSize, c as resolvedResourceTimeoutMs, d as isRefusedBeforeApplying, f as markRefusedBeforeApplying, g as withPriorAttempts, h as provenOrphanIdsInJournal, i as observeThenDisableInstanceApiTermination, m as priorAttemptsInJournal, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, p as priorAttemptLookup, r as isTerminationProtectionPropagationError, v as REPLACEMENT_TRIGGER_PROPERTIES, x as rollingUpdatePolicy, y as changedTriggers } from "./ec2-termination-protection-DXZyU3Q0.js";
|
|
13
|
+
import { C as withUnsettledItems, S as unsettledPropertiesOf, T as withoutUnsettledProperties, _ as isUsableAttemptedName, b as unsettledItemsOf, c as definedAttributes, d as awaitDeferredResource, f as awaitUpstreamReadiness, g as withDeferredReadinessScope, i as refuseRestoreFromItself, p as currentDeferredReadinessScope, v as unsettledContextOf, w as withUnsettledProperties, x as unsettledItemsTopKey, y as unsettledItemsField } from "./restore-source-guard-k9BQAviV.js";
|
|
14
|
+
import { S as isoTimestampAttribute, _ as isRecordedIdentityAttribute, a as lookupEachName, b as newCopyDeleteAttributes, d as identityWarner, h as attributesAfterUpdate, i as isAccessDeniedError, l as assertRecordedIdentity, m as SURVIVOR_IDENTITY_ATTRIBUTES, p as recordedIdentityId, t as deniedIdentityReadRefusal, u as differingIdentityWarning, v as isUsableIdentityValue, x as replaceDeadIdentity, y as keepRecordedIdentity } from "./identity-read-denied-C17mECu-.js";
|
|
15
|
+
import { a as refuseMalformedDesiredTags, i as readTagList, r as planTagDiff, s as tagPlanWarning } from "./tag-list-B19O4m3W.js";
|
|
16
|
+
import { a as withResourceDeadline, c as removalWarning, d as withoutInjectedRemovals, i as whileEnclosingDeadlinesPaused, n as enclosingDeadlineRemainingMs, r as outsideEnclosingDeadlines, s as prepareRemovalForUpdate, t as enclosingDeadlineExpired } from "./resource-deadline-DWvjidOS.js";
|
|
17
|
+
import { n as isRedactedRecordedValue } from "./redacted-delete-address-S_A40Diz.js";
|
|
18
18
|
import { createHash, randomUUID, timingSafeEqual } from "node:crypto";
|
|
19
19
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
20
20
|
import { CreateBucketCommand, DeleteObjectCommand, DeleteObjectsCommand, GetBucketLifecycleConfigurationCommand, GetBucketLocationCommand, GetBucketReplicationCommand, GetBucketTaggingCommand, GetObjectCommand, HeadBucketCommand, HeadObjectCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchKey, PutBucketEncryptionCommand, PutBucketLifecycleConfigurationCommand, PutBucketPolicyCommand, PutObjectCommand, PutPublicAccessBlockCommand, S3Client } from "@aws-sdk/client-s3";
|
|
@@ -88,7 +88,7 @@ async function resolveBucketRegion(bucketName, opts = {}) {
|
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
90
|
try {
|
|
91
|
-
const { expectedOwnerParam } = await import("./expected-bucket-owner-
|
|
91
|
+
const { expectedOwnerParam } = await import("./expected-bucket-owner-C2OXO5oD.js").then((n) => n.n);
|
|
92
92
|
return (await client.send(new GetBucketLocationCommand({
|
|
93
93
|
Bucket: bucketName,
|
|
94
94
|
...await expectedOwnerParam(client)
|
|
@@ -4393,6 +4393,25 @@ var TemplateParser = class {
|
|
|
4393
4393
|
}
|
|
4394
4394
|
};
|
|
4395
4395
|
|
|
4396
|
+
// src/analyzer/diff-calculator/update-policy-replacement.ts
|
|
4397
|
+
function markUpdatePolicyReplacements(changes, desiredTemplate) {
|
|
4398
|
+
for (const [logicalId, change] of changes) {
|
|
4399
|
+
if (change.changeType !== "UPDATE") continue;
|
|
4400
|
+
if (change.resourceType !== "AWS::AutoScaling::AutoScalingGroup") continue;
|
|
4401
|
+
const updatePolicy = desiredTemplate.Resources[logicalId]?.UpdatePolicy;
|
|
4402
|
+
if (typeof updatePolicy !== "object" || updatePolicy === null) continue;
|
|
4403
|
+
if (!willReplaceGroup(updatePolicy)) continue;
|
|
4404
|
+
for (const pc of change.propertyChanges ?? []) {
|
|
4405
|
+
if (pc.noEchoPromoted === true) continue;
|
|
4406
|
+
const top = pc.path.split(/[.[]/)[0] ?? pc.path;
|
|
4407
|
+
if (!REPLACEMENT_TRIGGER_PROPERTIES.includes(top)) continue;
|
|
4408
|
+
if (pc.inPlacePropagated !== true && pc.replacementPropagated !== true && changedTriggers([top], change.desiredProperties ?? {}, change.currentProperties ?? {}).length === 0) continue;
|
|
4409
|
+
pc.requiresReplacement = true;
|
|
4410
|
+
pc.updatePolicyReplacement = true;
|
|
4411
|
+
}
|
|
4412
|
+
}
|
|
4413
|
+
}
|
|
4414
|
+
|
|
4396
4415
|
// src/provisioning/providers/sns-subscription/attribute-plan.ts
|
|
4397
4416
|
const MUTABLE_ATTRIBUTES = [
|
|
4398
4417
|
"RawMessageDelivery",
|
|
@@ -9218,34 +9237,34 @@ function passedKey(passed) {
|
|
|
9218
9237
|
function isNestedStackRow(logicalId, walk) {
|
|
9219
9238
|
if (!Object.hasOwn(walk.resources, logicalId)) return false;
|
|
9220
9239
|
const definition = walk.resources[logicalId];
|
|
9221
|
-
return isPlainObject$
|
|
9240
|
+
return isPlainObject$11(definition) && definition["Type"] === "AWS::CloudFormation::Stack";
|
|
9222
9241
|
}
|
|
9223
9242
|
function getAttAttribute(operand, target) {
|
|
9224
9243
|
if (Array.isArray(operand)) return operand.length === 2 && typeof operand[1] === "string" ? operand[1] : void 0;
|
|
9225
9244
|
return typeof operand === "string" ? operand.slice(target.length + 1) : void 0;
|
|
9226
9245
|
}
|
|
9227
9246
|
function rowParameters(definition) {
|
|
9228
|
-
const properties = isPlainObject$
|
|
9247
|
+
const properties = isPlainObject$11(definition) ? definition["Properties"] : void 0;
|
|
9229
9248
|
if (properties === void 0) return {};
|
|
9230
|
-
if (!isPlainObject$
|
|
9249
|
+
if (!isPlainObject$11(properties)) return "unknown";
|
|
9231
9250
|
const parameters = properties["Parameters"];
|
|
9232
9251
|
if (parameters === void 0) return {};
|
|
9233
|
-
if (!isPlainObject$
|
|
9252
|
+
if (!isPlainObject$11(parameters) || intrinsicKey(parameters) !== void 0) return "unknown";
|
|
9234
9253
|
return parameters;
|
|
9235
9254
|
}
|
|
9236
9255
|
function childParameterInputs(template, passed) {
|
|
9237
|
-
const declared = isPlainObject$
|
|
9256
|
+
const declared = isPlainObject$11(template.Parameters) ? template.Parameters : {};
|
|
9238
9257
|
const inputs = /* @__PURE__ */ new Map();
|
|
9239
9258
|
for (const name of Object.keys(declared)) {
|
|
9240
9259
|
const definition = declared[name];
|
|
9241
|
-
if (isPlainObject$
|
|
9260
|
+
if (isPlainObject$11(definition) && declaresNoEcho(definition)) inputs.set(name, { kind: "secret" });
|
|
9242
9261
|
else if (passed.has(name)) {
|
|
9243
9262
|
const passedClass = passed.get(name);
|
|
9244
9263
|
inputs.set(name, passedClass === "clean" ? {
|
|
9245
9264
|
kind: "value",
|
|
9246
9265
|
value: void 0
|
|
9247
9266
|
} : passedClass === "unknown" ? { kind: "unknown" } : { kind: "secret" });
|
|
9248
|
-
} else if (isPlainObject$
|
|
9267
|
+
} else if (isPlainObject$11(definition) && Object.hasOwn(definition, "Default") && !carriesSecretValue(definition["Default"], [])) inputs.set(name, {
|
|
9249
9268
|
kind: "value",
|
|
9250
9269
|
value: definition["Default"]
|
|
9251
9270
|
});
|
|
@@ -9262,7 +9281,7 @@ function closureClass(closure) {
|
|
|
9262
9281
|
return closure.unread ? "unread" : "clean";
|
|
9263
9282
|
}
|
|
9264
9283
|
async function childOutputClass(loaded, outputName, passed, chain, shared) {
|
|
9265
|
-
if (loaded === void 0 || !isPlainObject$
|
|
9284
|
+
if (loaded === void 0 || !isPlainObject$11(loaded.template)) return "unknown";
|
|
9266
9285
|
const scopeKey = JSON.stringify([loaded.identity, passedKey(passed)]);
|
|
9267
9286
|
const memoKey = JSON.stringify([scopeKey, outputName]);
|
|
9268
9287
|
const memo = shared.outputs.get(memoKey);
|
|
@@ -9275,8 +9294,8 @@ async function classifyChildOutput(loaded, outputName, passed, chain, shared, sc
|
|
|
9275
9294
|
if (++shared.steps > MAX_NESTED_OUTPUT_STEPS) return "unknown";
|
|
9276
9295
|
if (chain.includes(loaded.identity) || chain.length >= MAX_NESTED_OUTPUT_DEPTH) return "unknown";
|
|
9277
9296
|
const template = loaded.template;
|
|
9278
|
-
const output = (isPlainObject$
|
|
9279
|
-
if (!isPlainObject$
|
|
9297
|
+
const output = (isPlainObject$11(template.Outputs) ? template.Outputs : {})[outputName];
|
|
9298
|
+
if (!isPlainObject$11(output) || !Object.hasOwn(output, "Value")) return "unknown";
|
|
9280
9299
|
const scope = {
|
|
9281
9300
|
walk: newWalk({
|
|
9282
9301
|
template,
|
|
@@ -9348,7 +9367,7 @@ async function expressionClass(value, scope) {
|
|
|
9348
9367
|
return result;
|
|
9349
9368
|
};
|
|
9350
9369
|
if (Array.isArray(value)) return all(value);
|
|
9351
|
-
if (!isPlainObject$
|
|
9370
|
+
if (!isPlainObject$11(value)) return "clean";
|
|
9352
9371
|
const key = intrinsicKey(value);
|
|
9353
9372
|
if (key === void 0) return all(Object.values(value));
|
|
9354
9373
|
const operand = value[key];
|
|
@@ -9363,7 +9382,7 @@ async function expressionClass(value, scope) {
|
|
|
9363
9382
|
case "Fn::Sub": {
|
|
9364
9383
|
const text = Array.isArray(operand) ? operand[0] : operand;
|
|
9365
9384
|
if (typeof text !== "string") return worseOf("unknown", await expressionClass(operand, scope));
|
|
9366
|
-
const vars = Array.isArray(operand) && isPlainObject$
|
|
9385
|
+
const vars = Array.isArray(operand) && isPlainObject$11(operand[1]) ? operand[1] : {};
|
|
9367
9386
|
let result = text.includes("{{resolve:") ? "secret" : "clean";
|
|
9368
9387
|
result = worseOf(result, await all(Object.values(vars)));
|
|
9369
9388
|
for (const name of subPlaceholders(text)) {
|
|
@@ -9455,7 +9474,7 @@ async function classifyPassedParameters(parameters, sources) {
|
|
|
9455
9474
|
}
|
|
9456
9475
|
async function classifyPassed(parameters, sources, nested) {
|
|
9457
9476
|
const classes = /* @__PURE__ */ new Map();
|
|
9458
|
-
if (!isPlainObject$
|
|
9477
|
+
if (!isPlainObject$11(parameters)) return classes;
|
|
9459
9478
|
for (const [name, expression] of Object.entries(parameters)) {
|
|
9460
9479
|
let passedClass;
|
|
9461
9480
|
try {
|
|
@@ -9477,7 +9496,7 @@ function passedParameterClassesOf(bag) {
|
|
|
9477
9496
|
|
|
9478
9497
|
// src/deployment/masked-property-fingerprints/input-walk.ts
|
|
9479
9498
|
var UnknownInput = class extends Error {};
|
|
9480
|
-
function isPlainObject$
|
|
9499
|
+
function isPlainObject$11(value) {
|
|
9481
9500
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
9482
9501
|
}
|
|
9483
9502
|
const DYNAMIC_REFERENCE_OPEN = "{{resolve:";
|
|
@@ -9497,7 +9516,7 @@ function carriesSecretValue(value, corpora) {
|
|
|
9497
9516
|
return false;
|
|
9498
9517
|
}
|
|
9499
9518
|
function parameterInputsFor(args) {
|
|
9500
|
-
const declared = isPlainObject$
|
|
9519
|
+
const declared = isPlainObject$11(args.template.Parameters) ? args.template.Parameters : {};
|
|
9501
9520
|
const values = args.values ?? {};
|
|
9502
9521
|
const inputs = /* @__PURE__ */ new Map();
|
|
9503
9522
|
const bound = {};
|
|
@@ -9508,7 +9527,7 @@ function parameterInputsFor(args) {
|
|
|
9508
9527
|
continue;
|
|
9509
9528
|
}
|
|
9510
9529
|
const value = values[name];
|
|
9511
|
-
let secret = isPlainObject$
|
|
9530
|
+
let secret = isPlainObject$11(definition) && declaresNoEcho(definition) || carriesSecretValue(value, []);
|
|
9512
9531
|
if (!secret && args.nestedChild === true && args.supplied !== void 0) {
|
|
9513
9532
|
if (Object.hasOwn(args.supplied, name)) {
|
|
9514
9533
|
const passed = args.passedClasses?.get(name);
|
|
@@ -9568,7 +9587,7 @@ function intrinsicKey(value) {
|
|
|
9568
9587
|
const OPAQUE_ATTRIBUTE_TYPES = /* @__PURE__ */ new Set(["AWS::CloudFormation::CustomResource", NESTED_STACK_TYPE$4]);
|
|
9569
9588
|
function hasOpaqueAttributes(logicalId, walk) {
|
|
9570
9589
|
const definition = walk.resources[logicalId];
|
|
9571
|
-
const type = isPlainObject$
|
|
9590
|
+
const type = isPlainObject$11(definition) ? definition["Type"] : void 0;
|
|
9572
9591
|
return typeof type === "string" && (type.startsWith("Custom::") || OPAQUE_ATTRIBUTE_TYPES.has(type));
|
|
9573
9592
|
}
|
|
9574
9593
|
function getAttTarget$1(operand) {
|
|
@@ -9593,7 +9612,7 @@ function taintOf(logicalId, walk) {
|
|
|
9593
9612
|
const visit = (value) => {
|
|
9594
9613
|
if (typeof value === "string") return value.includes(DYNAMIC_REFERENCE_OPEN);
|
|
9595
9614
|
if (Array.isArray(value)) return value.some(visit);
|
|
9596
|
-
if (!isPlainObject$
|
|
9615
|
+
if (!isPlainObject$11(value)) return false;
|
|
9597
9616
|
const key = intrinsicKey(value);
|
|
9598
9617
|
const operand = key === void 0 ? void 0 : value[key];
|
|
9599
9618
|
let verdict = "clean";
|
|
@@ -9605,7 +9624,7 @@ function taintOf(logicalId, walk) {
|
|
|
9605
9624
|
else if (key === "Fn::FindInMap" && mapReadClass(operand, walk.sources.template) !== "clean") verdict = "tainted";
|
|
9606
9625
|
else if (key === "Fn::Sub") {
|
|
9607
9626
|
const text = Array.isArray(operand) ? operand[0] : operand;
|
|
9608
|
-
const vars = Array.isArray(operand) && isPlainObject$
|
|
9627
|
+
const vars = Array.isArray(operand) && isPlainObject$11(operand[1]) ? operand[1] : {};
|
|
9609
9628
|
if (typeof text === "string") for (const name of subPlaceholders(text)) {
|
|
9610
9629
|
if (Object.hasOwn(vars, name)) continue;
|
|
9611
9630
|
const owner = name.includes(".") ? name.split(".")[0] : name;
|
|
@@ -9619,7 +9638,7 @@ function taintOf(logicalId, walk) {
|
|
|
9619
9638
|
return Object.values(value).some(visit);
|
|
9620
9639
|
};
|
|
9621
9640
|
const definition = walk.resources[logicalId];
|
|
9622
|
-
const result = visit(isPlainObject$
|
|
9641
|
+
const result = visit(isPlainObject$11(definition) ? definition["Properties"] : void 0) ? "tainted" : unknown ? "unknown" : "clean";
|
|
9623
9642
|
walk.inProgress.delete(logicalId);
|
|
9624
9643
|
walk.taint.set(logicalId, result);
|
|
9625
9644
|
return result;
|
|
@@ -9635,7 +9654,7 @@ function conditionInput(name, walk) {
|
|
|
9635
9654
|
return typeof verdict === "boolean" ? verdict : "unknown";
|
|
9636
9655
|
}
|
|
9637
9656
|
function conditionClosure(name, walk) {
|
|
9638
|
-
const definitions = isPlainObject$
|
|
9657
|
+
const definitions = isPlainObject$11(walk.sources.template.Conditions) ? walk.sources.template.Conditions : {};
|
|
9639
9658
|
let secret = false;
|
|
9640
9659
|
let unknown = false;
|
|
9641
9660
|
let unread = false;
|
|
@@ -9650,7 +9669,7 @@ function conditionClosure(name, walk) {
|
|
|
9650
9669
|
value.forEach(visit);
|
|
9651
9670
|
return;
|
|
9652
9671
|
}
|
|
9653
|
-
if (!isPlainObject$
|
|
9672
|
+
if (!isPlainObject$11(value)) return;
|
|
9654
9673
|
const keys = Object.keys(value);
|
|
9655
9674
|
if (keys.length === 1 && keys[0] === "Condition" && typeof value["Condition"] === "string") {
|
|
9656
9675
|
pending.push(value["Condition"]);
|
|
@@ -9683,7 +9702,7 @@ function conditionClosure(name, walk) {
|
|
|
9683
9702
|
if (key === "Fn::Sub") {
|
|
9684
9703
|
const operand = value["Fn::Sub"];
|
|
9685
9704
|
const text = Array.isArray(operand) ? operand[0] : operand;
|
|
9686
|
-
const vars = Array.isArray(operand) && isPlainObject$
|
|
9705
|
+
const vars = Array.isArray(operand) && isPlainObject$11(operand[1]) ? operand[1] : {};
|
|
9687
9706
|
if (typeof text === "string") for (const name of subPlaceholders(text)) {
|
|
9688
9707
|
if (Object.hasOwn(vars, name)) continue;
|
|
9689
9708
|
if (name.includes(".") && !name.startsWith("AWS::")) secret = true;
|
|
@@ -9712,8 +9731,8 @@ function mapReadClass(operand, template) {
|
|
|
9712
9731
|
const mapName = Array.isArray(operand) ? operand[0] : void 0;
|
|
9713
9732
|
if (typeof mapName !== "string") return "unknown";
|
|
9714
9733
|
const mappings = template.Mappings;
|
|
9715
|
-
const map = isPlainObject$
|
|
9716
|
-
if (!isPlainObject$
|
|
9734
|
+
const map = isPlainObject$11(mappings) && Object.hasOwn(mappings, mapName) ? mappings[mapName] : void 0;
|
|
9735
|
+
if (!isPlainObject$11(map)) return "unknown";
|
|
9717
9736
|
return carriesSecretValue(map, []) ? "secret" : "clean";
|
|
9718
9737
|
}
|
|
9719
9738
|
async function resolvedInput(node, walk) {
|
|
@@ -9791,7 +9810,7 @@ async function inputForm(value, walk) {
|
|
|
9791
9810
|
...proof(walk, () => parts.every(isProven))
|
|
9792
9811
|
};
|
|
9793
9812
|
}
|
|
9794
|
-
if (!isPlainObject$
|
|
9813
|
+
if (!isPlainObject$11(value)) return {
|
|
9795
9814
|
form: value,
|
|
9796
9815
|
concrete: true
|
|
9797
9816
|
};
|
|
@@ -9855,7 +9874,7 @@ async function inputForm(value, walk) {
|
|
|
9855
9874
|
concrete: false
|
|
9856
9875
|
};
|
|
9857
9876
|
}
|
|
9858
|
-
const explicit = Array.isArray(operand) && isPlainObject$
|
|
9877
|
+
const explicit = Array.isArray(operand) && isPlainObject$11(operand[1]) ? operand[1] : {};
|
|
9859
9878
|
const vars = await inputForm(explicit, walk);
|
|
9860
9879
|
const placeholders = [];
|
|
9861
9880
|
let concrete = vars.concrete && !text.includes("{{resolve:");
|
|
@@ -9913,8 +9932,8 @@ function newWalk(sources, nested = {
|
|
|
9913
9932
|
return {
|
|
9914
9933
|
...covered !== void 0 && { covered },
|
|
9915
9934
|
sources,
|
|
9916
|
-
resources: isPlainObject$
|
|
9917
|
-
parameters: isPlainObject$
|
|
9935
|
+
resources: isPlainObject$11(sources.template.Resources) ? sources.template.Resources : {},
|
|
9936
|
+
parameters: isPlainObject$11(sources.template.Parameters) ? sources.template.Parameters : {},
|
|
9918
9937
|
taint: /* @__PURE__ */ new Map(),
|
|
9919
9938
|
inProgress: /* @__PURE__ */ new Set(),
|
|
9920
9939
|
stackChain: nested.stackChain,
|
|
@@ -9950,7 +9969,7 @@ function possiblyMaskedKeys(resolvedProps, corpora) {
|
|
|
9950
9969
|
const wholeShortLeaf = (value) => {
|
|
9951
9970
|
if (typeof value === "string") return short.includes(value);
|
|
9952
9971
|
if (Array.isArray(value)) return value.some(wholeShortLeaf);
|
|
9953
|
-
if (isPlainObject$
|
|
9972
|
+
if (isPlainObject$11(value)) return Object.values(value).some(wholeShortLeaf);
|
|
9954
9973
|
return false;
|
|
9955
9974
|
};
|
|
9956
9975
|
return Object.keys(resolvedProps).filter((key) => {
|
|
@@ -9981,7 +10000,7 @@ function maskedPropertyFingerprintsOf(record) {
|
|
|
9981
10000
|
const read = /* @__PURE__ */ new Map();
|
|
9982
10001
|
if (record === null || typeof record !== "object") return read;
|
|
9983
10002
|
const field = record.maskedPropertyFingerprints;
|
|
9984
|
-
if (!isPlainObject$
|
|
10003
|
+
if (!isPlainObject$11(field)) return read;
|
|
9985
10004
|
for (const [key, value] of Object.entries(field)) if (typeof value === "string" && value.startsWith("sha256:")) read.set(key, value);
|
|
9986
10005
|
return read;
|
|
9987
10006
|
}
|
|
@@ -9989,7 +10008,7 @@ function maskedPropertyInputFingerprintsOf(record) {
|
|
|
9989
10008
|
const read = /* @__PURE__ */ new Map();
|
|
9990
10009
|
if (record === null || typeof record !== "object") return read;
|
|
9991
10010
|
const field = record.maskedPropertyInputFingerprints;
|
|
9992
|
-
if (!isPlainObject$
|
|
10011
|
+
if (!isPlainObject$11(field)) return read;
|
|
9993
10012
|
const text = maskedPropertyFingerprintsOf(record);
|
|
9994
10013
|
for (const [key, value] of Object.entries(field)) {
|
|
9995
10014
|
if (typeof value !== "string" || !value.startsWith("inputs-sha256:")) continue;
|
|
@@ -10036,7 +10055,7 @@ async function movedMaskedProperties(record, templateProps, fingerprinter, onReb
|
|
|
10036
10055
|
function withRebaselinedFingerprints(record, fingerprints) {
|
|
10037
10056
|
const text = maskedPropertyFingerprintsOf(record);
|
|
10038
10057
|
const field = record.maskedPropertyInputFingerprints;
|
|
10039
|
-
const next = isPlainObject$
|
|
10058
|
+
const next = isPlainObject$11(field) ? Object.entries(field) : [];
|
|
10040
10059
|
let changed = false;
|
|
10041
10060
|
for (const [key, value] of Object.entries(fingerprints)) {
|
|
10042
10061
|
if (text.get(key) !== splitInputFingerprint(value).text) continue;
|
|
@@ -10069,10 +10088,10 @@ function withMaskedPropertyFingerprints(scrubbed, writtenBag, templateProps, sec
|
|
|
10069
10088
|
fingerprints = maskedPropertyFingerprintsFor(scrubbed.properties, templateProps);
|
|
10070
10089
|
inputs = boundInputFingerprints(fingerprints, inputFingerprints);
|
|
10071
10090
|
} else {
|
|
10072
|
-
if (!isPlainObject$
|
|
10091
|
+
if (!isPlainObject$11(previous)) return scrubbed;
|
|
10073
10092
|
if (corpora.length === 0) return scrubbed;
|
|
10074
10093
|
fingerprints = { ...previous };
|
|
10075
|
-
inputs = isPlainObject$
|
|
10094
|
+
inputs = isPlainObject$11(previousInputs) ? { ...previousInputs } : void 0;
|
|
10076
10095
|
}
|
|
10077
10096
|
if (fingerprints !== void 0 && corpora.length > 0) {
|
|
10078
10097
|
const refused = Object.keys(fingerprints).filter((key) => Object.hasOwn(templateProps, key) && corpora.some((corpus) => templateCarriesNeedle(templateProps[key], corpus)));
|
|
@@ -11536,14 +11555,15 @@ async function findReplacedReadersOfRecreateTargets(input) {
|
|
|
11536
11555
|
}
|
|
11537
11556
|
return found;
|
|
11538
11557
|
}
|
|
11539
|
-
function renderStatefulReplacedReadersRefusal(readers, forceStatefulRecreation) {
|
|
11558
|
+
function renderStatefulReplacedReadersRefusal(readers, forceStatefulRecreation, targetFlag = "--recreate-via-*") {
|
|
11540
11559
|
if (forceStatefulRecreation) return void 0;
|
|
11541
11560
|
const blocked = readers.filter((r) => r.statefulReason !== null);
|
|
11542
11561
|
if (blocked.length === 0) return void 0;
|
|
11562
|
+
const recreate = targetFlag === "--recreate-via-*";
|
|
11543
11563
|
return [
|
|
11544
|
-
|
|
11564
|
+
`A ${targetFlag} target is read through a create-only property of a stateful resource, which is replaced when the ${recreate ? "recreate" : "replacement"} gives the target a new physical id:`,
|
|
11545
11565
|
...blocked.map((r) => safeMsg` - ${r.logicalId} (${shownType(r.resourceType)}) reads ${r.reads} via ${r.properties.join(", ")}`),
|
|
11546
|
-
|
|
11566
|
+
`Re-run with --force-stateful-recreation to confirm the data loss, or drop the ${recreate ? "recreate flag" : "flag"}. Nothing was changed.`
|
|
11547
11567
|
].join("\n");
|
|
11548
11568
|
}
|
|
11549
11569
|
function shownType(resourceType) {
|
|
@@ -11551,7 +11571,7 @@ function shownType(resourceType) {
|
|
|
11551
11571
|
}
|
|
11552
11572
|
async function refuseStatefulReplacedReaders(input) {
|
|
11553
11573
|
if (input.forceStatefulRecreation || input.targetIds.length === 0) return;
|
|
11554
|
-
const refusal = renderStatefulReplacedReadersRefusal(await findReplacedReadersOfRecreateTargets(input), false);
|
|
11574
|
+
const refusal = renderStatefulReplacedReadersRefusal(await findReplacedReadersOfRecreateTargets(input), false, input.targetFlag);
|
|
11555
11575
|
if (refusal !== void 0) throw markNonRetryable(new CdkdError(refusal, "STATEFUL_REPLACE_BLOCKED"));
|
|
11556
11576
|
}
|
|
11557
11577
|
function takenFnIfArms(value, conditions) {
|
|
@@ -11640,6 +11660,30 @@ function isLegacyHandleId(physicalId) {
|
|
|
11640
11660
|
return typeof physicalId === "string" && physicalId.startsWith("cdkd-wait-condition-handle-");
|
|
11641
11661
|
}
|
|
11642
11662
|
|
|
11663
|
+
// src/analyzer/diff-calculator/legacy-handle-heal.ts
|
|
11664
|
+
const LEGACY_HANDLE_HEAL_REASON = "issues a signal URL in place of the placeholder id an earlier cdkd recorded";
|
|
11665
|
+
function markLegacyHandleHeals(changes, currentResources, desiredTemplate, extractReferences) {
|
|
11666
|
+
const legacy = /* @__PURE__ */ new Set();
|
|
11667
|
+
for (const [logicalId, record] of Object.entries(currentResources)) if (record.resourceType === "AWS::CloudFormation::WaitConditionHandle" && isLegacyHandleId(record.physicalId) && desiredTemplate.Resources[logicalId]?.Type === "AWS::CloudFormation::WaitConditionHandle") legacy.add(logicalId);
|
|
11668
|
+
if (legacy.size === 0) return [];
|
|
11669
|
+
const waitedOn = /* @__PURE__ */ new Set();
|
|
11670
|
+
for (const resource of Object.values(desiredTemplate.Resources)) {
|
|
11671
|
+
if (resource.Type !== "AWS::CloudFormation::WaitCondition") continue;
|
|
11672
|
+
for (const ref of extractReferences(resource.Properties?.["Handle"])) if (legacy.has(ref)) waitedOn.add(ref);
|
|
11673
|
+
}
|
|
11674
|
+
const healed = [];
|
|
11675
|
+
for (const handleId of waitedOn) {
|
|
11676
|
+
const change = changes.get(handleId);
|
|
11677
|
+
if (change === void 0) continue;
|
|
11678
|
+
if (change.changeType !== "NO_CHANGE" && change.changeType !== "UPDATE") continue;
|
|
11679
|
+
change.changeType = "UPDATE";
|
|
11680
|
+
change.propertyChanges ??= [];
|
|
11681
|
+
change.providerReplacement = LEGACY_HANDLE_HEAL_REASON;
|
|
11682
|
+
healed.push(handleId);
|
|
11683
|
+
}
|
|
11684
|
+
return healed;
|
|
11685
|
+
}
|
|
11686
|
+
|
|
11643
11687
|
// src/analyzer/diff-calculator/in-place-cc-derived-attrs.generated.ts
|
|
11644
11688
|
const CC_IN_PLACE_UPDATE_DERIVED_ATTRS = {
|
|
11645
11689
|
"AWS::AIOps::InvestigationGroup": ["LastModifiedAt", "LastModifiedBy"],
|
|
@@ -11879,7 +11923,13 @@ const CC_IN_PLACE_UPDATE_DERIVED_ATTRS = {
|
|
|
11879
11923
|
"AWS::GuardDuty::TrustedEntitySet": ["UpdatedAt"],
|
|
11880
11924
|
"AWS::HealthImaging::Datastore": ["UpdatedAt"],
|
|
11881
11925
|
"AWS::IdentityStore::User": ["UpdatedAt", "UpdatedBy"],
|
|
11882
|
-
"AWS::ImageBuilder::Image": [
|
|
11926
|
+
"AWS::ImageBuilder::Image": [
|
|
11927
|
+
"LatestVersion",
|
|
11928
|
+
"LatestVersion.Arn",
|
|
11929
|
+
"LatestVersion.Major",
|
|
11930
|
+
"LatestVersion.Minor",
|
|
11931
|
+
"LatestVersion.Patch"
|
|
11932
|
+
],
|
|
11883
11933
|
"AWS::InspectorV2::CodeSecurityIntegration": ["LastUpdatedAt"],
|
|
11884
11934
|
"AWS::InspectorV2::Connector": ["LastUpdatedAt"],
|
|
11885
11935
|
"AWS::InternetMonitor::Monitor": ["ModifiedAt"],
|
|
@@ -11955,6 +12005,7 @@ const CC_IN_PLACE_UPDATE_DERIVED_ATTRS = {
|
|
|
11955
12005
|
"AWS::NetworkSecurityManager::Rule": ["UpdatedAt", "Version"],
|
|
11956
12006
|
"AWS::NetworkSecurityManager::Scope": ["UpdatedAt", "Version"],
|
|
11957
12007
|
"AWS::NetworkSecurityManager::Template": ["UpdatedAt", "Version"],
|
|
12008
|
+
"AWS::NotificationsContacts::EmailContact": ["EmailContact.UpdateTime"],
|
|
11958
12009
|
"AWS::ObservabilityAdmin::DatasetIntegration": ["UpdatedAt"],
|
|
11959
12010
|
"AWS::Omics::AnnotationStore": ["UpdateTime"],
|
|
11960
12011
|
"AWS::Omics::SequenceStore": ["UpdateTime"],
|
|
@@ -11982,7 +12033,20 @@ const CC_IN_PLACE_UPDATE_DERIVED_ATTRS = {
|
|
|
11982
12033
|
"VersionStatus"
|
|
11983
12034
|
],
|
|
11984
12035
|
"AWS::QuickSight::DLPSetting": ["UpdatedAt"],
|
|
11985
|
-
"AWS::QuickSight::Dashboard": [
|
|
12036
|
+
"AWS::QuickSight::Dashboard": [
|
|
12037
|
+
"LastUpdatedTime",
|
|
12038
|
+
"Version",
|
|
12039
|
+
"Version.Arn",
|
|
12040
|
+
"Version.CreatedTime",
|
|
12041
|
+
"Version.DataSetArns",
|
|
12042
|
+
"Version.Description",
|
|
12043
|
+
"Version.Errors",
|
|
12044
|
+
"Version.Sheets",
|
|
12045
|
+
"Version.SourceEntityArn",
|
|
12046
|
+
"Version.Status",
|
|
12047
|
+
"Version.ThemeArn",
|
|
12048
|
+
"Version.VersionNumber"
|
|
12049
|
+
],
|
|
11986
12050
|
"AWS::QuickSight::DataSet": ["LastUpdatedTime"],
|
|
11987
12051
|
"AWS::QuickSight::DataSource": ["LastUpdatedTime"],
|
|
11988
12052
|
"AWS::QuickSight::Flow": ["LastUpdatedTime"],
|
|
@@ -11991,8 +12055,35 @@ const CC_IN_PLACE_UPDATE_DERIVED_ATTRS = {
|
|
|
11991
12055
|
"AWS::QuickSight::LimitsProfile": ["UpdatedAt"],
|
|
11992
12056
|
"AWS::QuickSight::OAuthClientApplication": ["LastUpdatedTime"],
|
|
11993
12057
|
"AWS::QuickSight::Space": ["UpdatedAt"],
|
|
11994
|
-
"AWS::QuickSight::Template": [
|
|
11995
|
-
|
|
12058
|
+
"AWS::QuickSight::Template": [
|
|
12059
|
+
"LastUpdatedTime",
|
|
12060
|
+
"Version",
|
|
12061
|
+
"Version.CreatedTime",
|
|
12062
|
+
"Version.DataSetConfigurations",
|
|
12063
|
+
"Version.Description",
|
|
12064
|
+
"Version.Errors",
|
|
12065
|
+
"Version.Sheets",
|
|
12066
|
+
"Version.SourceEntityArn",
|
|
12067
|
+
"Version.Status",
|
|
12068
|
+
"Version.ThemeArn",
|
|
12069
|
+
"Version.VersionNumber"
|
|
12070
|
+
],
|
|
12071
|
+
"AWS::QuickSight::Theme": [
|
|
12072
|
+
"LastUpdatedTime",
|
|
12073
|
+
"Version",
|
|
12074
|
+
"Version.Arn",
|
|
12075
|
+
"Version.BaseThemeId",
|
|
12076
|
+
"Version.Configuration",
|
|
12077
|
+
"Version.Configuration.DataColorPalette",
|
|
12078
|
+
"Version.Configuration.Sheet",
|
|
12079
|
+
"Version.Configuration.Typography",
|
|
12080
|
+
"Version.Configuration.UIColorPalette",
|
|
12081
|
+
"Version.CreatedTime",
|
|
12082
|
+
"Version.Description",
|
|
12083
|
+
"Version.Errors",
|
|
12084
|
+
"Version.Status",
|
|
12085
|
+
"Version.VersionNumber"
|
|
12086
|
+
],
|
|
11996
12087
|
"AWS::QuickSight::VPCConnection": ["LastUpdatedTime"],
|
|
11997
12088
|
"AWS::RAM::PermissionAssociation": ["LastUpdatedTime", "PermissionVersion"],
|
|
11998
12089
|
"AWS::RAM::PrincipalAssociation": ["LastUpdatedTime"],
|
|
@@ -12162,6 +12253,18 @@ const IN_PLACE_UPDATE_ATTRS_MOVED_BY = Object.freeze({
|
|
|
12162
12253
|
RepositoryName: /* @__PURE__ */ new Set(["RepositoryLinkId"]),
|
|
12163
12254
|
ProviderType: /* @__PURE__ */ new Set(["RepositoryLinkId"])
|
|
12164
12255
|
}),
|
|
12256
|
+
"AWS::DataSync::LocationFSxWindows": Object.freeze({ LocationUri: /* @__PURE__ */ new Set(["Subdirectory"]) }),
|
|
12257
|
+
"AWS::DataSync::LocationS3": Object.freeze({ LocationUri: /* @__PURE__ */ new Set(["Subdirectory"]) }),
|
|
12258
|
+
"AWS::DataSync::LocationEFS": Object.freeze({ LocationUri: /* @__PURE__ */ new Set(["Subdirectory"]) }),
|
|
12259
|
+
"AWS::DataSync::LocationFSxLustre": Object.freeze({ LocationUri: /* @__PURE__ */ new Set(["Subdirectory"]) }),
|
|
12260
|
+
"AWS::DataSync::LocationFSxOpenZFS": Object.freeze({ LocationUri: /* @__PURE__ */ new Set(["Subdirectory"]) }),
|
|
12261
|
+
"AWS::DataSync::LocationFSxONTAP": Object.freeze({ LocationUri: /* @__PURE__ */ new Set(["Subdirectory", "Protocol"]) }),
|
|
12262
|
+
"AWS::DataSync::LocationNFS": Object.freeze({ LocationUri: /* @__PURE__ */ new Set(["Subdirectory", "ServerHostname"]) }),
|
|
12263
|
+
"AWS::DataSync::LocationSMB": Object.freeze({ LocationUri: /* @__PURE__ */ new Set(["Subdirectory", "ServerHostname"]) }),
|
|
12264
|
+
"AWS::DataSync::LocationHDFS": Object.freeze({ LocationUri: /* @__PURE__ */ new Set(["Subdirectory", "NameNodes"]) }),
|
|
12265
|
+
"AWS::DataSync::LocationObjectStorage": Object.freeze({ LocationUri: /* @__PURE__ */ new Set(["Subdirectory", "ServerHostname"]) }),
|
|
12266
|
+
"AWS::DataSync::LocationAzureBlob": Object.freeze({ LocationUri: /* @__PURE__ */ new Set(["Subdirectory"]) }),
|
|
12267
|
+
"AWS::Deadline::Monitor": Object.freeze({ Url: /* @__PURE__ */ new Set(["Subdomain"]) }),
|
|
12165
12268
|
"AWS::EC2::GatewayRouteTableAssociation": Object.freeze({ AssociationId: /* @__PURE__ */ new Set(["RouteTableId"]) }),
|
|
12166
12269
|
"AWS::EC2::VPCEndpoint": Object.freeze({
|
|
12167
12270
|
NetworkInterfaceIds: /* @__PURE__ */ new Set(["SubnetIds"]),
|
|
@@ -12372,6 +12475,180 @@ function markNewValueKnownAfterDeploy(change, path) {
|
|
|
12372
12475
|
}
|
|
12373
12476
|
}
|
|
12374
12477
|
|
|
12478
|
+
// src/analyzer/diff-calculator/calculate-diff.ts
|
|
12479
|
+
async function calculateDiff(currentState, desiredTemplate, resolveFn, canonicalizeProperties, allowedUnsupportedProperties, freshParameters, maskForLog, recreateTargets, maskedInputs, refusalRecovery, noEchoCompare, readProvenance, forcedNestedChildRuns, updatePolicy) {
|
|
12480
|
+
const changes = /* @__PURE__ */ new Map();
|
|
12481
|
+
refuseMalformedResourceEntriesForDeploy(currentState, void 0, void 0, refusalRecovery);
|
|
12482
|
+
refuseMalformedResourceProperties(currentState, void 0, void 0, refusalRecovery);
|
|
12483
|
+
const currentResources = currentState.resources;
|
|
12484
|
+
const desiredResources = desiredTemplate.Resources;
|
|
12485
|
+
this.logger.debug("Calculating diff...");
|
|
12486
|
+
this.logger.debug(`Current resources: ${Object.keys(currentResources).length}`);
|
|
12487
|
+
this.logger.debug(`Desired resources: ${Object.keys(desiredResources).length}`);
|
|
12488
|
+
const processedLogicalIds = /* @__PURE__ */ new Set();
|
|
12489
|
+
const rawGetAttRefs = /* @__PURE__ */ new Map();
|
|
12490
|
+
for (const [logicalId, desiredResource] of Object.entries(desiredResources)) {
|
|
12491
|
+
if (desiredResource.Type === "AWS::CDK::Metadata") continue;
|
|
12492
|
+
const perProp = /* @__PURE__ */ new Map();
|
|
12493
|
+
for (const [propKey, propValue] of Object.entries(desiredResource.Properties ?? {})) {
|
|
12494
|
+
const refs = DiffCalculator.extractGetAttRefs(propValue);
|
|
12495
|
+
if (refs.size > 0) perProp.set(propKey, refs);
|
|
12496
|
+
}
|
|
12497
|
+
if (perProp.size > 0) rawGetAttRefs.set(logicalId, perProp);
|
|
12498
|
+
}
|
|
12499
|
+
for (const [logicalId, desiredResource] of Object.entries(desiredResources)) {
|
|
12500
|
+
if (desiredResource.Type === "AWS::CDK::Metadata") {
|
|
12501
|
+
this.logger.debug(`Skipping metadata resource: ${logicalId}`);
|
|
12502
|
+
processedLogicalIds.add(logicalId);
|
|
12503
|
+
continue;
|
|
12504
|
+
}
|
|
12505
|
+
processedLogicalIds.add(logicalId);
|
|
12506
|
+
const currentResource = currentResources[logicalId];
|
|
12507
|
+
if (!currentResource) {
|
|
12508
|
+
changes.set(logicalId, {
|
|
12509
|
+
logicalId,
|
|
12510
|
+
changeType: "CREATE",
|
|
12511
|
+
resourceType: desiredResource.Type,
|
|
12512
|
+
desiredProperties: desiredResource.Properties || {}
|
|
12513
|
+
});
|
|
12514
|
+
this.logger.debug(`CREATE: ${logicalId} (${desiredResource.Type})`);
|
|
12515
|
+
} else if (currentResource.resourceType !== desiredResource.Type) {
|
|
12516
|
+
const propertyChanges = [{
|
|
12517
|
+
path: "Type",
|
|
12518
|
+
oldValue: currentResource.resourceType,
|
|
12519
|
+
newValue: desiredResource.Type,
|
|
12520
|
+
requiresReplacement: true
|
|
12521
|
+
}];
|
|
12522
|
+
changes.set(logicalId, {
|
|
12523
|
+
logicalId,
|
|
12524
|
+
changeType: "UPDATE",
|
|
12525
|
+
resourceType: desiredResource.Type,
|
|
12526
|
+
currentProperties: currentResource.properties,
|
|
12527
|
+
desiredProperties: desiredResource.Properties || {},
|
|
12528
|
+
propertyChanges
|
|
12529
|
+
});
|
|
12530
|
+
this.logger.debug(`UPDATE (Type change): ${logicalId} (from ${currentResource.resourceType} to ${desiredResource.Type})`);
|
|
12531
|
+
} else {
|
|
12532
|
+
const rawDesiredProps = desiredResource.Properties || {};
|
|
12533
|
+
const resolvedDesiredProps = resolveFn ? await this.resolveBestEffort(rawDesiredProps, resolveFn) : rawDesiredProps;
|
|
12534
|
+
const sdkRouted = currentResource.provisionedBy !== "cc-api";
|
|
12535
|
+
const desiredAfterDrops = sdkRouted && allowedUnsupportedProperties ? withoutAcceptedSdkUnwiredProperties(desiredResource.Type, resolvedDesiredProps, allowedUnsupportedProperties, currentResource.properties) : resolvedDesiredProps;
|
|
12536
|
+
const currentAfterDrops = sdkRouted ? withoutUnwrittenSdkUnwiredProperties(desiredResource.Type, currentResource.properties, resolvedDesiredProps, allowedUnsupportedProperties ?? /* @__PURE__ */ new Set(), acceptedCreateOnlyDropsOf(currentResource)) : currentResource.properties;
|
|
12537
|
+
const desiredPropsForCompare = canonicalizeProperties ? canonicalizeProperties(desiredResource.Type, desiredAfterDrops) : desiredAfterDrops;
|
|
12538
|
+
const currentPropsForCompare = canonicalizeProperties && sdkRouted ? canonicalizeProperties(desiredResource.Type, currentAfterDrops) : currentAfterDrops;
|
|
12539
|
+
const droppedKeys = canonicalizeProperties ? Object.keys(desiredAfterDrops).filter((key) => !Object.hasOwn(desiredPropsForCompare, key)) : [];
|
|
12540
|
+
if (droppedKeys.length > 0) this.logger.warn(`${logicalId} (${desiredResource.Type}): part of the declared properties cannot be sent as declared and is ignored when comparing against deployed state — the provider narrows them (${droppedKeys.join(", ")}). Fix the template to declare only what the resource supports; until then changes to the ignored keys have no effect.`);
|
|
12541
|
+
else if (canonicalizeProperties && !this.valuesEqual(desiredPropsForCompare, desiredAfterDrops)) this.logger.debug(`${logicalId} (${desiredResource.Type}): the provider normalizes part of the declared properties before sending them; the comparison uses the normalized form. Nothing is dropped.`);
|
|
12542
|
+
const noEchoCompared = noEchoCompare?.({
|
|
12543
|
+
logicalId,
|
|
12544
|
+
resourceType: desiredResource.Type,
|
|
12545
|
+
templateProperties: rawDesiredProps,
|
|
12546
|
+
desired: desiredPropsForCompare,
|
|
12547
|
+
current: currentPropsForCompare
|
|
12548
|
+
});
|
|
12549
|
+
const desiredCompared = noEchoCompared?.desired ?? desiredPropsForCompare;
|
|
12550
|
+
const currentCompared = noEchoCompared?.current ?? currentPropsForCompare;
|
|
12551
|
+
const propertyChanges = await this.compareProperties(desiredResource.Type, currentCompared, desiredCompared, maskForLog);
|
|
12552
|
+
const reported = new Set(propertyChanges.map((pc) => pc.path));
|
|
12553
|
+
const rebaselined = [];
|
|
12554
|
+
const moved = await movedMaskedProperties(currentResource, rawDesiredProps, maskedInputs && inputFingerprinter(rawDesiredProps, maskedInputs.sources), maskedInputs?.rebaselined && ((key, fingerprint) => rebaselined.push([key, fingerprint])));
|
|
12555
|
+
if (rebaselined.length > 0) maskedInputs.rebaselined.set(logicalId, Object.fromEntries(rebaselined));
|
|
12556
|
+
for (const key of moved) {
|
|
12557
|
+
if (reported.has(key)) continue;
|
|
12558
|
+
if (!Object.hasOwn(currentCompared, key)) continue;
|
|
12559
|
+
if (!Object.hasOwn(desiredCompared, key)) continue;
|
|
12560
|
+
const oldValue = currentCompared[key];
|
|
12561
|
+
const newValue = desiredCompared[key];
|
|
12562
|
+
propertyChanges.push({
|
|
12563
|
+
path: key,
|
|
12564
|
+
oldValue,
|
|
12565
|
+
newValue,
|
|
12566
|
+
requiresReplacement: await this.maskedEditRequiresReplacement(desiredResource.Type, key, oldValue, newValue, {
|
|
12567
|
+
oldProperties: currentCompared,
|
|
12568
|
+
newProperties: desiredCompared
|
|
12569
|
+
}),
|
|
12570
|
+
maskedExpressionChanged: true
|
|
12571
|
+
});
|
|
12572
|
+
this.logger.debug(safeMsg`${logicalId}: ${key} is recorded masked and its template expression or a resolved input changed`);
|
|
12573
|
+
}
|
|
12574
|
+
const listed = new Set(propertyChanges.map((pc) => pc.path));
|
|
12575
|
+
for (const key of unsettledPropertiesOf(currentResource)) {
|
|
12576
|
+
if (listed.has(key)) continue;
|
|
12577
|
+
propertyChanges.push({
|
|
12578
|
+
path: key,
|
|
12579
|
+
oldValue: currentCompared[key],
|
|
12580
|
+
newValue: desiredCompared[key],
|
|
12581
|
+
requiresReplacement: false,
|
|
12582
|
+
unsettled: true
|
|
12583
|
+
});
|
|
12584
|
+
this.logger.debug(safeMsg`${logicalId}: ${key} is unsettled after a failed update and is sent again`);
|
|
12585
|
+
}
|
|
12586
|
+
const attributeChanges = this.compareAttributes(currentResource, desiredResource);
|
|
12587
|
+
if (propertyChanges.length > 0 || attributeChanges.length > 0) {
|
|
12588
|
+
const providerReplacement = propertyChanges.length > 0 ? providerReplacementReason(desiredResource.Type, currentResource, resolvedDesiredProps) : void 0;
|
|
12589
|
+
changes.set(logicalId, {
|
|
12590
|
+
logicalId,
|
|
12591
|
+
changeType: "UPDATE",
|
|
12592
|
+
resourceType: desiredResource.Type,
|
|
12593
|
+
currentProperties: currentResource.properties,
|
|
12594
|
+
desiredProperties: rawDesiredProps,
|
|
12595
|
+
propertyChanges,
|
|
12596
|
+
...attributeChanges.length > 0 && { attributeChanges },
|
|
12597
|
+
...providerReplacement !== void 0 && { providerReplacement }
|
|
12598
|
+
});
|
|
12599
|
+
this.logger.debug(`UPDATE: ${logicalId} (${propertyChanges.length} property changes, ${attributeChanges.length} attribute changes)`);
|
|
12600
|
+
} else {
|
|
12601
|
+
changes.set(logicalId, {
|
|
12602
|
+
logicalId,
|
|
12603
|
+
changeType: "NO_CHANGE",
|
|
12604
|
+
resourceType: desiredResource.Type,
|
|
12605
|
+
currentProperties: currentResource.properties,
|
|
12606
|
+
desiredProperties: rawDesiredProps
|
|
12607
|
+
});
|
|
12608
|
+
this.logger.debug(`NO_CHANGE: ${logicalId}`);
|
|
12609
|
+
}
|
|
12610
|
+
}
|
|
12611
|
+
}
|
|
12612
|
+
for (const [logicalId, currentResource] of Object.entries(currentResources)) if (!processedLogicalIds.has(logicalId)) {
|
|
12613
|
+
changes.set(logicalId, {
|
|
12614
|
+
logicalId,
|
|
12615
|
+
changeType: "DELETE",
|
|
12616
|
+
resourceType: currentResource.resourceType,
|
|
12617
|
+
currentProperties: currentResource.properties
|
|
12618
|
+
});
|
|
12619
|
+
this.logger.debug(`DELETE: ${logicalId} (${currentResource.resourceType})`);
|
|
12620
|
+
}
|
|
12621
|
+
for (const logicalId of forcedNestedChildRuns ?? []) {
|
|
12622
|
+
const change = changes.get(logicalId);
|
|
12623
|
+
if (change?.resourceType !== "AWS::CloudFormation::Stack") continue;
|
|
12624
|
+
if (change.changeType === "NO_CHANGE") {
|
|
12625
|
+
change.changeType = "UPDATE";
|
|
12626
|
+
change.propertyChanges = [];
|
|
12627
|
+
}
|
|
12628
|
+
if (change.changeType === "UPDATE") change.nestedChildHeal = true;
|
|
12629
|
+
}
|
|
12630
|
+
const forcedReplacements = /* @__PURE__ */ new Set();
|
|
12631
|
+
for (const logicalId of recreateTargets ?? []) {
|
|
12632
|
+
const changeType = changes.get(logicalId)?.changeType;
|
|
12633
|
+
if (changeType === "NO_CHANGE" || changeType === "UPDATE") forcedReplacements.add(logicalId);
|
|
12634
|
+
}
|
|
12635
|
+
for (const logicalId of markLegacyHandleHeals(changes, currentResources, desiredTemplate, (v) => this.parser.extractReferences(v))) forcedReplacements.add(logicalId);
|
|
12636
|
+
const provenanceChanges = await this.promoteReadProvenanceDependents(changes, currentState, desiredTemplate, readProvenance);
|
|
12637
|
+
const syntheticCreateOnlyPaths = await this.loadSyntheticCreateOnlyPaths(changes, desiredTemplate, rawGetAttRefs, freshParameters, forcedReplacements);
|
|
12638
|
+
for (const { change, pc, upstreams } of provenanceChanges) {
|
|
12639
|
+
const templateValue = desiredTemplate.Resources[change.logicalId]?.Properties?.[pc.path];
|
|
12640
|
+
pc.requiresReplacement = this.syntheticRequiresReplacement(change.resourceType, pc.path, syntheticCreateOnlyPaths, upstreams.some((id) => isPlainReferenceTo(templateValue, id, desiredTemplate.Resources[id]?.Type)), siblingsOf(change));
|
|
12641
|
+
}
|
|
12642
|
+
do {
|
|
12643
|
+
if (updatePolicy === true) markUpdatePolicyReplacements(changes, desiredTemplate);
|
|
12644
|
+
this.promoteReplacementDependents(changes, desiredTemplate, syntheticCreateOnlyPaths, forcedReplacements);
|
|
12645
|
+
} while (this.promoteInPlaceAttributeDependents(changes, desiredTemplate, rawGetAttRefs, syntheticCreateOnlyPaths, freshParameters));
|
|
12646
|
+
dropSupersededProviderReplacements(changes);
|
|
12647
|
+
const summary = this.getSummary(changes);
|
|
12648
|
+
this.logger.debug(`Diff calculated: ${summary.create} CREATE, ${summary.update} UPDATE, ${summary.delete} DELETE, ${summary.noChange} NO_CHANGE`);
|
|
12649
|
+
return changes;
|
|
12650
|
+
}
|
|
12651
|
+
|
|
12375
12652
|
// src/deployment/child-of-recreated-parent.ts
|
|
12376
12653
|
const LAMBDA_FUNCTION = "AWS::Lambda::Function";
|
|
12377
12654
|
const IAM_ROLE = "AWS::IAM::Role";
|
|
@@ -13078,11 +13355,11 @@ function validReferenceRegion(region) {
|
|
|
13078
13355
|
if (typeof region !== "string") return void 0;
|
|
13079
13356
|
return canonicalizeRegion(region) === region && isClientSafeRegion(region) ? region : void 0;
|
|
13080
13357
|
}
|
|
13081
|
-
function isPlainObject$
|
|
13358
|
+
function isPlainObject$10(value) {
|
|
13082
13359
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
13083
13360
|
}
|
|
13084
13361
|
function validateReferenceProvenance(token, raw) {
|
|
13085
|
-
if (!isSingleDynamicReferenceToken(token) || !isPlainObject$
|
|
13362
|
+
if (!isSingleDynamicReferenceToken(token) || !isPlainObject$10(raw)) return void 0;
|
|
13086
13363
|
const versionsRaw = Object.hasOwn(raw, "versions") ? raw["versions"] : void 0;
|
|
13087
13364
|
const readRaw = Object.hasOwn(raw, "readVersions") ? raw["readVersions"] : void 0;
|
|
13088
13365
|
if (readRaw !== void 0) {
|
|
@@ -13113,10 +13390,10 @@ function withTokenVersionsDropped(record, tokens) {
|
|
|
13113
13390
|
}
|
|
13114
13391
|
function withoutVersionAttestation(record) {
|
|
13115
13392
|
const field = record.referenceProvenance;
|
|
13116
|
-
if (!isPlainObject$
|
|
13117
|
-
if (!Object.values(field).some((entry) => isPlainObject$
|
|
13393
|
+
if (!isPlainObject$10(field)) return record;
|
|
13394
|
+
if (!Object.values(field).some((entry) => isPlainObject$10(entry) && Object.hasOwn(entry, "versionsSent"))) return record;
|
|
13118
13395
|
const out = {};
|
|
13119
|
-
for (const [token, entry] of Object.entries(field)) if (isPlainObject$
|
|
13396
|
+
for (const [token, entry] of Object.entries(field)) if (isPlainObject$10(entry) && Object.hasOwn(entry, "versionsSent")) {
|
|
13120
13397
|
const { versionsSent: _dropped, ...rest } = entry;
|
|
13121
13398
|
out[token] = rest;
|
|
13122
13399
|
} else out[token] = entry;
|
|
@@ -13126,11 +13403,11 @@ function withoutVersionAttestation(record) {
|
|
|
13126
13403
|
};
|
|
13127
13404
|
}
|
|
13128
13405
|
function referenceProvenanceOf(record) {
|
|
13129
|
-
if (!isPlainObject$
|
|
13406
|
+
if (!isPlainObject$10(record) || !Object.hasOwn(record, "referenceProvenance")) return void 0;
|
|
13130
13407
|
return validatedBag(record["referenceProvenance"]);
|
|
13131
13408
|
}
|
|
13132
13409
|
function validatedBag(field) {
|
|
13133
|
-
if (!isPlainObject$
|
|
13410
|
+
if (!isPlainObject$10(field)) return void 0;
|
|
13134
13411
|
const out = Object.create(null);
|
|
13135
13412
|
for (const [token, raw] of Object.entries(field)) {
|
|
13136
13413
|
const entry = validateReferenceProvenance(token, raw);
|
|
@@ -13139,9 +13416,9 @@ function validatedBag(field) {
|
|
|
13139
13416
|
return { ...out };
|
|
13140
13417
|
}
|
|
13141
13418
|
function recordedProvenanceOf(record, token) {
|
|
13142
|
-
if (!isPlainObject$
|
|
13419
|
+
if (!isPlainObject$10(record) || !Object.hasOwn(record, "referenceProvenance")) return void 0;
|
|
13143
13420
|
const field = record["referenceProvenance"];
|
|
13144
|
-
if (!isPlainObject$
|
|
13421
|
+
if (!isPlainObject$10(field) || !Object.hasOwn(field, token)) return void 0;
|
|
13145
13422
|
return validateReferenceProvenance(token, field[token]);
|
|
13146
13423
|
}
|
|
13147
13424
|
function recordedReferenceRegions(record) {
|
|
@@ -13163,7 +13440,7 @@ function regionsOf(field) {
|
|
|
13163
13440
|
function keepHeldTokenProvenance(record) {
|
|
13164
13441
|
if (!hasReferenceProvenanceField(record)) return record;
|
|
13165
13442
|
const field = record.referenceProvenance;
|
|
13166
|
-
if (!isPlainObject$
|
|
13443
|
+
if (!isPlainObject$10(field)) return record;
|
|
13167
13444
|
const held = recordReferenceTokens(record);
|
|
13168
13445
|
const keys = Object.keys(field);
|
|
13169
13446
|
if (keys.every((token) => held.has(token))) return record;
|
|
@@ -13175,12 +13452,12 @@ function keepHeldTokenProvenance(record) {
|
|
|
13175
13452
|
};
|
|
13176
13453
|
}
|
|
13177
13454
|
function hasReferenceProvenanceField(record) {
|
|
13178
|
-
return isPlainObject$
|
|
13455
|
+
return isPlainObject$10(record) && Object.hasOwn(record, "referenceProvenance") && record["referenceProvenance"] !== void 0;
|
|
13179
13456
|
}
|
|
13180
13457
|
function outputReferenceProvenanceOf(state, outputKey) {
|
|
13181
|
-
if (!isPlainObject$
|
|
13458
|
+
if (!isPlainObject$10(state) || !Object.hasOwn(state, "outputReferenceProvenance")) return;
|
|
13182
13459
|
const field = state["outputReferenceProvenance"];
|
|
13183
|
-
if (!isPlainObject$
|
|
13460
|
+
if (!isPlainObject$10(field) || !Object.hasOwn(field, outputKey)) return void 0;
|
|
13184
13461
|
return validatedBag(field[outputKey]);
|
|
13185
13462
|
}
|
|
13186
13463
|
function persistable(token, entry) {
|
|
@@ -13198,7 +13475,7 @@ function tokensUnderPaths(properties, paths) {
|
|
|
13198
13475
|
for (const item of value) descend(item, path, next);
|
|
13199
13476
|
return;
|
|
13200
13477
|
}
|
|
13201
|
-
if (isPlainObject$
|
|
13478
|
+
if (isPlainObject$10(value) && Object.hasOwn(value, path[at])) descend(value[path[at]], path, at + 1);
|
|
13202
13479
|
};
|
|
13203
13480
|
for (const path of paths) descend(properties, path, 0);
|
|
13204
13481
|
return out;
|
|
@@ -13244,7 +13521,7 @@ function unionWithPrevious(pass, before) {
|
|
|
13244
13521
|
}
|
|
13245
13522
|
function outputProvenanceForPersist(args) {
|
|
13246
13523
|
const { outputs, resolvedThisRun, carriedFrom, sinkOf } = args;
|
|
13247
|
-
if (!resolvedThisRun) return carriedFrom !== void 0 && isPlainObject$
|
|
13524
|
+
if (!resolvedThisRun) return carriedFrom !== void 0 && isPlainObject$10(carriedFrom.outputReferenceProvenance) ? carriedFrom.outputReferenceProvenance : void 0;
|
|
13248
13525
|
let out;
|
|
13249
13526
|
for (const [outputKey, value] of Object.entries(outputs)) {
|
|
13250
13527
|
const sink = sinkOf(outputKey);
|
|
@@ -13269,6 +13546,283 @@ function withReferenceProvenance(record, field) {
|
|
|
13269
13546
|
};
|
|
13270
13547
|
}
|
|
13271
13548
|
|
|
13549
|
+
// src/analyzer/read-provenance-promotion.ts
|
|
13550
|
+
function isPlainObject$9(value) {
|
|
13551
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
13552
|
+
}
|
|
13553
|
+
function readsAcrossStacks(value) {
|
|
13554
|
+
if (Array.isArray(value)) return value.some(readsAcrossStacks);
|
|
13555
|
+
if (!isPlainObject$9(value)) return false;
|
|
13556
|
+
if (Object.hasOwn(value, "Fn::ImportValue") || Object.hasOwn(value, "Fn::GetStackOutput")) return true;
|
|
13557
|
+
return Object.values(value).some(readsAcrossStacks);
|
|
13558
|
+
}
|
|
13559
|
+
function recordedReadVersions(record) {
|
|
13560
|
+
if (!isPlainObject$9(record) || !Object.hasOwn(record, "referenceProvenance")) return void 0;
|
|
13561
|
+
const field = referenceProvenanceOf(record);
|
|
13562
|
+
if (field === void 0) return void 0;
|
|
13563
|
+
let out;
|
|
13564
|
+
for (const [token, entry] of Object.entries(field)) if (entry.readVersions !== void 0 && entry.readVersions.length > 0) (out ??= /* @__PURE__ */ new Map()).set(token, entry.readVersions);
|
|
13565
|
+
return out;
|
|
13566
|
+
}
|
|
13567
|
+
async function readProvenancePromotions(args) {
|
|
13568
|
+
const { currentState, desiredTemplate, sources } = args;
|
|
13569
|
+
const parser = args.parser ?? new TemplateParser();
|
|
13570
|
+
const records = currentState.resources;
|
|
13571
|
+
const parameters = isPlainObject$9(desiredTemplate.Parameters) ? desiredTemplate.Parameters : void 0;
|
|
13572
|
+
const out = [];
|
|
13573
|
+
for (const { logicalId, changeType } of args.rows) {
|
|
13574
|
+
if (changeType !== "NO_CHANGE" && changeType !== "UPDATE") continue;
|
|
13575
|
+
const record = Object.hasOwn(records, logicalId) ? records[logicalId] : void 0;
|
|
13576
|
+
const readVersions = recordedReadVersions(record);
|
|
13577
|
+
if (readVersions === void 0) continue;
|
|
13578
|
+
const resource = Object.hasOwn(desiredTemplate.Resources, logicalId) ? desiredTemplate.Resources[logicalId] : void 0;
|
|
13579
|
+
const properties = isPlainObject$9(resource?.Properties) ? resource.Properties : {};
|
|
13580
|
+
const reads = [];
|
|
13581
|
+
for (const [key, value] of Object.entries(properties)) {
|
|
13582
|
+
const referenced = [...parser.extractReferences(value)].filter((id) => id !== logicalId);
|
|
13583
|
+
const resourceIds = referenced.filter((id) => Object.hasOwn(desiredTemplate.Resources, id));
|
|
13584
|
+
const readsParameter = parameters !== void 0 && referenced.some((id) => Object.hasOwn(parameters, id));
|
|
13585
|
+
const crossStack = readsAcrossStacks(value);
|
|
13586
|
+
if (resourceIds.length === 0 && !readsParameter && !crossStack) continue;
|
|
13587
|
+
reads.push({
|
|
13588
|
+
key,
|
|
13589
|
+
value,
|
|
13590
|
+
resources: resourceIds,
|
|
13591
|
+
parameters: readsParameter,
|
|
13592
|
+
crossStack
|
|
13593
|
+
});
|
|
13594
|
+
}
|
|
13595
|
+
if (reads.length === 0) continue;
|
|
13596
|
+
let crossStackBags = [];
|
|
13597
|
+
if (sources?.crossStackOutputs !== void 0) {
|
|
13598
|
+
const crossValues = reads.filter((r) => r.crossStack).map((r) => r.value);
|
|
13599
|
+
if (crossValues.length > 0) crossStackBags = await sources.crossStackOutputs(crossValues);
|
|
13600
|
+
}
|
|
13601
|
+
const upstreamIds = new Set(reads.flatMap((r) => r.resources));
|
|
13602
|
+
const readsAnyParameter = reads.some((r) => r.parameters);
|
|
13603
|
+
const moved = [];
|
|
13604
|
+
for (const [token, recorded] of readVersions) {
|
|
13605
|
+
const domain = /* @__PURE__ */ new Set();
|
|
13606
|
+
let member = false;
|
|
13607
|
+
const join = (versions) => {
|
|
13608
|
+
if (versions === void 0 || versions.length === 0) return;
|
|
13609
|
+
member = true;
|
|
13610
|
+
for (const version of versions) domain.add(version);
|
|
13611
|
+
};
|
|
13612
|
+
for (const id of upstreamIds) {
|
|
13613
|
+
const upstream = Object.hasOwn(records, id) ? records[id] : void 0;
|
|
13614
|
+
join(recordedProvenanceOf(upstream, token)?.versions);
|
|
13615
|
+
}
|
|
13616
|
+
if (readsAnyParameter && sources?.inherited !== void 0) join(sources.inherited.get(token)?.versions);
|
|
13617
|
+
for (const bag of crossStackBags) if (Object.hasOwn(bag, token)) join(bag[token]?.versions);
|
|
13618
|
+
if (!member) continue;
|
|
13619
|
+
if (recorded.some((version) => !domain.has(version))) moved.push(token);
|
|
13620
|
+
}
|
|
13621
|
+
if (moved.length === 0) continue;
|
|
13622
|
+
const recordProperties = isPlainObject$9(record?.properties) ? record.properties : {};
|
|
13623
|
+
const keys = [];
|
|
13624
|
+
for (const r of reads) {
|
|
13625
|
+
if (!Object.hasOwn(recordProperties, r.key)) continue;
|
|
13626
|
+
const held = referenceTokensIn(recordProperties[r.key]);
|
|
13627
|
+
if (!moved.some((token) => held.has(token))) continue;
|
|
13628
|
+
keys.push({
|
|
13629
|
+
key: r.key,
|
|
13630
|
+
upstreams: r.resources
|
|
13631
|
+
});
|
|
13632
|
+
}
|
|
13633
|
+
if (keys.length === 0) continue;
|
|
13634
|
+
out.push({
|
|
13635
|
+
logicalId,
|
|
13636
|
+
keys,
|
|
13637
|
+
tokens: moved
|
|
13638
|
+
});
|
|
13639
|
+
}
|
|
13640
|
+
return out;
|
|
13641
|
+
}
|
|
13642
|
+
|
|
13643
|
+
// src/analyzer/diff-calculator/promotion.ts
|
|
13644
|
+
async function promoteReadProvenanceDependents(changes, currentState, desiredTemplate, sources) {
|
|
13645
|
+
if (isKnownTokenFreeState(currentState)) return [];
|
|
13646
|
+
const promotions = await readProvenancePromotions({
|
|
13647
|
+
rows: changes.values(),
|
|
13648
|
+
currentState,
|
|
13649
|
+
desiredTemplate,
|
|
13650
|
+
sources,
|
|
13651
|
+
parser: this.parser
|
|
13652
|
+
});
|
|
13653
|
+
const out = [];
|
|
13654
|
+
for (const promotion of promotions) {
|
|
13655
|
+
const change = changes.get(promotion.logicalId);
|
|
13656
|
+
if (change === void 0) continue;
|
|
13657
|
+
const existingPaths = new Set((change.propertyChanges ?? []).map((pc) => pc.path));
|
|
13658
|
+
const synthetic = [];
|
|
13659
|
+
for (const { key, upstreams } of promotion.keys) {
|
|
13660
|
+
if (existingPaths.has(key)) continue;
|
|
13661
|
+
const pc = {
|
|
13662
|
+
path: key,
|
|
13663
|
+
oldValue: change.currentProperties?.[key],
|
|
13664
|
+
newValue: change.desiredProperties?.[key],
|
|
13665
|
+
requiresReplacement: false,
|
|
13666
|
+
inPlacePropagated: true,
|
|
13667
|
+
readProvenancePromoted: true
|
|
13668
|
+
};
|
|
13669
|
+
synthetic.push(pc);
|
|
13670
|
+
out.push({
|
|
13671
|
+
change,
|
|
13672
|
+
pc,
|
|
13673
|
+
upstreams
|
|
13674
|
+
});
|
|
13675
|
+
}
|
|
13676
|
+
if (synthetic.length === 0) continue;
|
|
13677
|
+
if (change.changeType === "NO_CHANGE") {
|
|
13678
|
+
change.changeType = "UPDATE";
|
|
13679
|
+
change.propertyChanges = synthetic;
|
|
13680
|
+
} else change.propertyChanges = [...change.propertyChanges ?? [], ...synthetic];
|
|
13681
|
+
this.logger.debug(safeMsg`UPDATE (promoted): ${promotion.logicalId} holds a secret reference read at a version its upstream no longer records (${synthetic.map((pc) => pc.path).join(", ")})`);
|
|
13682
|
+
}
|
|
13683
|
+
return out;
|
|
13684
|
+
}
|
|
13685
|
+
async function loadSyntheticCreateOnlyPaths(changes, desiredTemplate, rawGetAttRefs, freshParameters, forcedReplacements) {
|
|
13686
|
+
const loaded = /* @__PURE__ */ new Map();
|
|
13687
|
+
const queue = [...freshParameters ?? []];
|
|
13688
|
+
for (const [logicalId, change] of changes) if (change.changeType === "UPDATE" || forcedReplacements.has(logicalId)) queue.push(logicalId);
|
|
13689
|
+
if (queue.length === 0) return loaded;
|
|
13690
|
+
const readersOf = /* @__PURE__ */ new Map();
|
|
13691
|
+
const addEdge = (referencedId, readerId) => {
|
|
13692
|
+
if (referencedId === readerId) return;
|
|
13693
|
+
let readers = readersOf.get(referencedId);
|
|
13694
|
+
if (!readers) {
|
|
13695
|
+
readers = /* @__PURE__ */ new Set();
|
|
13696
|
+
readersOf.set(referencedId, readers);
|
|
13697
|
+
}
|
|
13698
|
+
readers.add(readerId);
|
|
13699
|
+
};
|
|
13700
|
+
for (const [logicalId, resource] of Object.entries(desiredTemplate.Resources)) {
|
|
13701
|
+
if (resource.Type === "AWS::CDK::Metadata") continue;
|
|
13702
|
+
for (const value of Object.values(resource.Properties ?? {})) for (const referencedId of this.parser.extractReferences(value)) addEdge(referencedId, logicalId);
|
|
13703
|
+
for (const perUpstream of rawGetAttRefs.get(logicalId)?.values() ?? []) for (const referencedId of perUpstream.keys()) addEdge(referencedId, logicalId);
|
|
13704
|
+
}
|
|
13705
|
+
const reached = new Set(queue);
|
|
13706
|
+
while (queue.length > 0) for (const readerId of readersOf.get(queue.shift()) ?? []) {
|
|
13707
|
+
if (reached.has(readerId)) continue;
|
|
13708
|
+
reached.add(readerId);
|
|
13709
|
+
queue.push(readerId);
|
|
13710
|
+
}
|
|
13711
|
+
const candidateKeys = /* @__PURE__ */ new Map();
|
|
13712
|
+
for (const logicalId of reached) {
|
|
13713
|
+
const change = changes.get(logicalId);
|
|
13714
|
+
if (!change) continue;
|
|
13715
|
+
if (change.changeType !== "NO_CHANGE" && change.changeType !== "UPDATE") continue;
|
|
13716
|
+
for (const [key, value] of Object.entries(change.desiredProperties ?? {})) {
|
|
13717
|
+
if (this.replacementRules.isClassified(change.resourceType, key)) continue;
|
|
13718
|
+
if (!containsIntrinsic(value)) continue;
|
|
13719
|
+
let keys = candidateKeys.get(change.resourceType);
|
|
13720
|
+
if (!keys) {
|
|
13721
|
+
keys = /* @__PURE__ */ new Set();
|
|
13722
|
+
candidateKeys.set(change.resourceType, keys);
|
|
13723
|
+
}
|
|
13724
|
+
keys.add(key);
|
|
13725
|
+
}
|
|
13726
|
+
}
|
|
13727
|
+
const types = candidateKeys.keys();
|
|
13728
|
+
await Promise.all([...types].map(async (type) => {
|
|
13729
|
+
const whole = new Set((await getCreateOnlyPropertyPaths(type)).filter((path) => path.length === 1).map((path) => path[0]));
|
|
13730
|
+
if (![...candidateKeys.get(type)].some((key) => whole.has(key))) {
|
|
13731
|
+
loaded.set(type, {
|
|
13732
|
+
whole,
|
|
13733
|
+
unconfirmable: /* @__PURE__ */ new Set()
|
|
13734
|
+
});
|
|
13735
|
+
return;
|
|
13736
|
+
}
|
|
13737
|
+
const writeOnly = await tryGetTopLevelWriteOnlyProperties(type);
|
|
13738
|
+
if (writeOnly === void 0) {
|
|
13739
|
+
this.logger.debug(safeMsg`Write-only properties of ${type} unknown: no create-only replacement ceiling for its promoted readers but a plain reference to a replaced resource`);
|
|
13740
|
+
loaded.set(type, {
|
|
13741
|
+
whole,
|
|
13742
|
+
unconfirmable: "all"
|
|
13743
|
+
});
|
|
13744
|
+
return;
|
|
13745
|
+
}
|
|
13746
|
+
loaded.set(type, {
|
|
13747
|
+
whole,
|
|
13748
|
+
unconfirmable: new Set([...whole].filter((key) => writeOnly.has(key)))
|
|
13749
|
+
});
|
|
13750
|
+
}));
|
|
13751
|
+
return loaded;
|
|
13752
|
+
}
|
|
13753
|
+
function syntheticRequiresReplacement(resourceType, propKey, syntheticCreateOnlyPaths, plainReference, siblings) {
|
|
13754
|
+
if (this.replacementRules.requiresReplacement(resourceType, propKey, void 0, void 0, siblings)) return true;
|
|
13755
|
+
if (this.replacementRules.isClassified(resourceType, propKey)) return false;
|
|
13756
|
+
const createOnly = syntheticCreateOnlyPaths.get(resourceType);
|
|
13757
|
+
if (createOnly === void 0 || !createOnly.whole.has(propKey)) return false;
|
|
13758
|
+
if (plainReference) return true;
|
|
13759
|
+
return createOnly.unconfirmable !== "all" && !createOnly.unconfirmable.has(propKey);
|
|
13760
|
+
}
|
|
13761
|
+
function promoteReplacementDependents(changes, desiredTemplate, syntheticCreateOnlyPaths, forcedReplacements) {
|
|
13762
|
+
const queue = [];
|
|
13763
|
+
for (const [logicalId, change] of changes) if (forcedReplacements.has(logicalId) || change.changeType === "UPDATE" && change.propertyChanges?.some((pc) => pc.requiresReplacement && pc.noEchoPromoted !== true)) queue.push(logicalId);
|
|
13764
|
+
if (queue.length === 0) return;
|
|
13765
|
+
const dependentsOf = /* @__PURE__ */ new Map();
|
|
13766
|
+
for (const [logicalId, resource] of Object.entries(desiredTemplate.Resources)) {
|
|
13767
|
+
if (resource.Type === "AWS::CDK::Metadata") continue;
|
|
13768
|
+
for (const [propKey, propValue] of Object.entries(resource.Properties ?? {})) for (const referencedId of this.parser.extractReferences(propValue)) {
|
|
13769
|
+
if (referencedId === logicalId) continue;
|
|
13770
|
+
let dependents = dependentsOf.get(referencedId);
|
|
13771
|
+
if (!dependents) {
|
|
13772
|
+
dependents = /* @__PURE__ */ new Map();
|
|
13773
|
+
dependentsOf.set(referencedId, dependents);
|
|
13774
|
+
}
|
|
13775
|
+
let propKeys = dependents.get(logicalId);
|
|
13776
|
+
if (!propKeys) {
|
|
13777
|
+
propKeys = /* @__PURE__ */ new Set();
|
|
13778
|
+
dependents.set(logicalId, propKeys);
|
|
13779
|
+
}
|
|
13780
|
+
propKeys.add(propKey);
|
|
13781
|
+
}
|
|
13782
|
+
}
|
|
13783
|
+
const enqueued = new Set(queue);
|
|
13784
|
+
while (queue.length > 0) {
|
|
13785
|
+
const replacedId = queue.shift();
|
|
13786
|
+
const dependents = dependentsOf.get(replacedId);
|
|
13787
|
+
if (!dependents) continue;
|
|
13788
|
+
for (const [dependentId, refPropKeys] of dependents) {
|
|
13789
|
+
const change = changes.get(dependentId);
|
|
13790
|
+
if (!change) continue;
|
|
13791
|
+
if (change.changeType !== "NO_CHANGE" && change.changeType !== "UPDATE") continue;
|
|
13792
|
+
const existingPaths = new Set((change.propertyChanges ?? []).map((pc) => pc.path));
|
|
13793
|
+
const syntheticChanges = [];
|
|
13794
|
+
for (const propKey of refPropKeys) {
|
|
13795
|
+
if (existingPaths.has(propKey)) {
|
|
13796
|
+
markNewValueKnownAfterDeploy(change, propKey);
|
|
13797
|
+
continue;
|
|
13798
|
+
}
|
|
13799
|
+
const oldValue = change.currentProperties?.[propKey];
|
|
13800
|
+
const newValue = change.desiredProperties?.[propKey];
|
|
13801
|
+
syntheticChanges.push({
|
|
13802
|
+
path: propKey,
|
|
13803
|
+
oldValue,
|
|
13804
|
+
newValue,
|
|
13805
|
+
replacementPropagated: true,
|
|
13806
|
+
requiresReplacement: this.syntheticRequiresReplacement(change.resourceType, propKey, syntheticCreateOnlyPaths, isPlainReferenceTo(desiredTemplate.Resources[dependentId]?.Properties?.[propKey], replacedId, desiredTemplate.Resources[replacedId]?.Type), siblingsOf(change)) || namesRecreatedParent(change.resourceType, propKey, changes.get(replacedId)?.resourceType)
|
|
13807
|
+
});
|
|
13808
|
+
}
|
|
13809
|
+
if (syntheticChanges.length === 0) continue;
|
|
13810
|
+
if (change.changeType === "NO_CHANGE") {
|
|
13811
|
+
change.changeType = "UPDATE";
|
|
13812
|
+
change.propertyChanges = syntheticChanges;
|
|
13813
|
+
this.logger.debug(`UPDATE (promoted): ${dependentId} references replaced resource ${replacedId} via ${[...refPropKeys].join(", ")}`);
|
|
13814
|
+
} else {
|
|
13815
|
+
change.propertyChanges = [...change.propertyChanges ?? [], ...syntheticChanges];
|
|
13816
|
+
this.logger.debug(`UPDATE (augmented): ${dependentId} references replaced resource ${replacedId} via ${[...refPropKeys].join(", ")}`);
|
|
13817
|
+
}
|
|
13818
|
+
if (!enqueued.has(dependentId) && change.propertyChanges.some((pc) => pc.requiresReplacement)) {
|
|
13819
|
+
enqueued.add(dependentId);
|
|
13820
|
+
queue.push(dependentId);
|
|
13821
|
+
}
|
|
13822
|
+
}
|
|
13823
|
+
}
|
|
13824
|
+
}
|
|
13825
|
+
|
|
13272
13826
|
// src/analyzer/diff-calculator/in-place-promotion.ts
|
|
13273
13827
|
function promoteInPlaceAttributeDependents(changes, desiredTemplate, rawGetAttRefs, syntheticCreateOnlyPaths, freshParameters) {
|
|
13274
13828
|
const changedPropsByUpstream = /* @__PURE__ */ new Map();
|
|
@@ -19004,6 +19558,180 @@ var IntrinsicFunctionResolver = class IntrinsicFunctionResolver {
|
|
|
19004
19558
|
}
|
|
19005
19559
|
};
|
|
19006
19560
|
|
|
19561
|
+
// src/analyzer/diff-calculator/compare.ts
|
|
19562
|
+
async function resolveBestEffort(properties, resolveFn) {
|
|
19563
|
+
const resolved = {};
|
|
19564
|
+
for (const [key, value] of Object.entries(properties)) try {
|
|
19565
|
+
const resolvedValue = await resolveFn(structuredClone(value));
|
|
19566
|
+
if (resolvedValue === AWS_NO_VALUE) continue;
|
|
19567
|
+
resolved[key] = resolvedValue;
|
|
19568
|
+
} catch {
|
|
19569
|
+
resolved[key] = value;
|
|
19570
|
+
}
|
|
19571
|
+
return resolved;
|
|
19572
|
+
}
|
|
19573
|
+
function compareAttributes(currentResource, desiredResource) {
|
|
19574
|
+
const changes = [];
|
|
19575
|
+
if (currentResource.deletionPolicy !== desiredResource.DeletionPolicy) changes.push({
|
|
19576
|
+
attribute: "DeletionPolicy",
|
|
19577
|
+
oldValue: currentResource.deletionPolicy,
|
|
19578
|
+
newValue: desiredResource.DeletionPolicy
|
|
19579
|
+
});
|
|
19580
|
+
if (currentResource.updateReplacePolicy !== desiredResource.UpdateReplacePolicy) changes.push({
|
|
19581
|
+
attribute: "UpdateReplacePolicy",
|
|
19582
|
+
oldValue: currentResource.updateReplacePolicy,
|
|
19583
|
+
newValue: desiredResource.UpdateReplacePolicy
|
|
19584
|
+
});
|
|
19585
|
+
return changes;
|
|
19586
|
+
}
|
|
19587
|
+
async function compareProperties(resourceType, currentProperties, desiredProperties, maskForLog) {
|
|
19588
|
+
const changes = [];
|
|
19589
|
+
const allKeys = /* @__PURE__ */ new Set([...Object.keys(currentProperties), ...Object.keys(desiredProperties)]);
|
|
19590
|
+
let createOnlyPaths;
|
|
19591
|
+
for (const key of allKeys) {
|
|
19592
|
+
const oldValue = currentProperties[key];
|
|
19593
|
+
const newValue = desiredProperties[key];
|
|
19594
|
+
if (!this.valuesEqual(oldValue, newValue)) {
|
|
19595
|
+
let requiresReplacement = this.replacementRules.requiresReplacement(resourceType, key, oldValue, newValue, {
|
|
19596
|
+
oldProperties: currentProperties,
|
|
19597
|
+
newProperties: desiredProperties
|
|
19598
|
+
});
|
|
19599
|
+
if (!requiresReplacement && !this.replacementRules.isClassified(resourceType, key)) {
|
|
19600
|
+
if (createOnlyPaths === void 0) createOnlyPaths = await getCreateOnlyPropertyPaths(resourceType);
|
|
19601
|
+
if (createOnlyChangeRequiresReplacement(createOnlyPaths, key, oldValue, newValue, (a, b) => this.valuesEqual(a, b))) {
|
|
19602
|
+
requiresReplacement = true;
|
|
19603
|
+
this.logger.debug(`Property ${key} of ${resourceType} changed a createOnly path per the CFn schema — requires replacement`);
|
|
19604
|
+
}
|
|
19605
|
+
}
|
|
19606
|
+
changes.push({
|
|
19607
|
+
path: key,
|
|
19608
|
+
oldValue,
|
|
19609
|
+
newValue,
|
|
19610
|
+
requiresReplacement
|
|
19611
|
+
});
|
|
19612
|
+
if (requiresReplacement) {
|
|
19613
|
+
const mask = maskerOrIdentity(maskForLog);
|
|
19614
|
+
const [oldText, newText] = replacementSidesForLog(oldValue, newValue, mask);
|
|
19615
|
+
this.logger.debug(mask(safeMsg`Property ${mask(key)} of ${mask(resourceType)} requires replacement (from ${oldText} to ${newText})`));
|
|
19616
|
+
}
|
|
19617
|
+
}
|
|
19618
|
+
}
|
|
19619
|
+
return changes;
|
|
19620
|
+
}
|
|
19621
|
+
async function maskedEditRequiresReplacement(resourceType, key, oldValue, newValue, siblings) {
|
|
19622
|
+
if (this.replacementRules.requiresReplacement(resourceType, key, oldValue, newValue, siblings)) return true;
|
|
19623
|
+
if (this.replacementRules.isClassified(resourceType, key) && this.replacementRules.conditionalReplacementVerdict(resourceType, key, oldValue, newValue, siblings) === void 0) return false;
|
|
19624
|
+
return (await getCreateOnlyPropertyPaths(resourceType)).some((path) => path.length === 1 && path[0] === key);
|
|
19625
|
+
}
|
|
19626
|
+
function isIntrinsic$2(value) {
|
|
19627
|
+
if (value === null || value === void 0 || typeof value !== "object" || Array.isArray(value)) return false;
|
|
19628
|
+
const keys = Object.keys(value);
|
|
19629
|
+
return keys.length === 1 && DiffCalculator.INTRINSIC_KEYS.has(keys[0]);
|
|
19630
|
+
}
|
|
19631
|
+
function valuesEqual(a, b) {
|
|
19632
|
+
if (a === b) return true;
|
|
19633
|
+
if (a == null || b == null) return a === b;
|
|
19634
|
+
if (DiffCalculator.isIntrinsic(a) !== DiffCalculator.isIntrinsic(b)) return false;
|
|
19635
|
+
if (Array.isArray(a) && Array.isArray(b)) {
|
|
19636
|
+
if (a.length !== b.length) return false;
|
|
19637
|
+
return a.every((val, index) => this.valuesEqual(val, b[index]));
|
|
19638
|
+
}
|
|
19639
|
+
if (typeof a === "object" && typeof b === "object") {
|
|
19640
|
+
const aObj = a;
|
|
19641
|
+
const bObj = b;
|
|
19642
|
+
const aKeys = Object.keys(aObj);
|
|
19643
|
+
const bKeys = Object.keys(bObj);
|
|
19644
|
+
if (aKeys.length !== bKeys.length) return false;
|
|
19645
|
+
for (const key of bKeys) {
|
|
19646
|
+
if (!Object.hasOwn(aObj, key)) return false;
|
|
19647
|
+
if (!this.valuesEqual(aObj[key], bObj[key])) return false;
|
|
19648
|
+
}
|
|
19649
|
+
return true;
|
|
19650
|
+
}
|
|
19651
|
+
return false;
|
|
19652
|
+
}
|
|
19653
|
+
|
|
19654
|
+
// src/analyzer/diff-calculator.ts
|
|
19655
|
+
var DiffCalculator = class {
|
|
19656
|
+
logger = getLogger().child("DiffCalculator");
|
|
19657
|
+
replacementRules = new ReplacementRulesRegistry();
|
|
19658
|
+
parser = new TemplateParser();
|
|
19659
|
+
conditionalReplacementVerdict(resourceType, propertyPath, oldValue, newValue, siblings) {
|
|
19660
|
+
return this.replacementRules.conditionalReplacementVerdict(resourceType, propertyPath, oldValue, newValue, siblings);
|
|
19661
|
+
}
|
|
19662
|
+
calculateDiff(currentState, desiredTemplate, resolveFn, canonicalizeProperties, allowedUnsupportedProperties, freshParameters, maskForLog, recreateTargets, maskedInputs, refusalRecovery, noEchoCompare, readProvenance, forcedNestedChildRuns, updatePolicy) {
|
|
19663
|
+
return calculateDiff.call(this, currentState, desiredTemplate, resolveFn, canonicalizeProperties, allowedUnsupportedProperties, freshParameters, maskForLog, recreateTargets, maskedInputs, refusalRecovery, noEchoCompare, readProvenance, forcedNestedChildRuns, updatePolicy);
|
|
19664
|
+
}
|
|
19665
|
+
promoteReadProvenanceDependents(changes, currentState, desiredTemplate, sources) {
|
|
19666
|
+
return promoteReadProvenanceDependents.call(this, changes, currentState, desiredTemplate, sources);
|
|
19667
|
+
}
|
|
19668
|
+
loadSyntheticCreateOnlyPaths(changes, desiredTemplate, rawGetAttRefs, freshParameters, forcedReplacements) {
|
|
19669
|
+
return loadSyntheticCreateOnlyPaths.call(this, changes, desiredTemplate, rawGetAttRefs, freshParameters, forcedReplacements);
|
|
19670
|
+
}
|
|
19671
|
+
syntheticRequiresReplacement(resourceType, propKey, syntheticCreateOnlyPaths, plainReference, siblings) {
|
|
19672
|
+
return syntheticRequiresReplacement.call(this, resourceType, propKey, syntheticCreateOnlyPaths, plainReference, siblings);
|
|
19673
|
+
}
|
|
19674
|
+
promoteReplacementDependents(changes, desiredTemplate, syntheticCreateOnlyPaths, forcedReplacements) {
|
|
19675
|
+
return promoteReplacementDependents.call(this, changes, desiredTemplate, syntheticCreateOnlyPaths, forcedReplacements);
|
|
19676
|
+
}
|
|
19677
|
+
promoteInPlaceAttributeDependents(changes, desiredTemplate, rawGetAttRefs, syntheticCreateOnlyPaths, freshParameters) {
|
|
19678
|
+
return promoteInPlaceAttributeDependents.call(this, changes, desiredTemplate, rawGetAttRefs, syntheticCreateOnlyPaths, freshParameters);
|
|
19679
|
+
}
|
|
19680
|
+
static extractGetAttRefs(value) {
|
|
19681
|
+
return extractGetAttRefs(value);
|
|
19682
|
+
}
|
|
19683
|
+
resolveBestEffort(properties, resolveFn) {
|
|
19684
|
+
return resolveBestEffort.call(this, properties, resolveFn);
|
|
19685
|
+
}
|
|
19686
|
+
compareAttributes(currentResource, desiredResource) {
|
|
19687
|
+
return compareAttributes.call(this, currentResource, desiredResource);
|
|
19688
|
+
}
|
|
19689
|
+
compareProperties(resourceType, currentProperties, desiredProperties, maskForLog) {
|
|
19690
|
+
return compareProperties.call(this, resourceType, currentProperties, desiredProperties, maskForLog);
|
|
19691
|
+
}
|
|
19692
|
+
maskedEditRequiresReplacement(resourceType, key, oldValue, newValue, siblings) {
|
|
19693
|
+
return maskedEditRequiresReplacement.call(this, resourceType, key, oldValue, newValue, siblings);
|
|
19694
|
+
}
|
|
19695
|
+
static INTRINSIC_KEYS = INTRINSIC_KEYS;
|
|
19696
|
+
static isIntrinsic(value) {
|
|
19697
|
+
return isIntrinsic$2(value);
|
|
19698
|
+
}
|
|
19699
|
+
valuesEqual(a, b) {
|
|
19700
|
+
return valuesEqual.call(this, a, b);
|
|
19701
|
+
}
|
|
19702
|
+
getSummary(changes) {
|
|
19703
|
+
const summary = {
|
|
19704
|
+
create: 0,
|
|
19705
|
+
update: 0,
|
|
19706
|
+
delete: 0,
|
|
19707
|
+
noChange: 0,
|
|
19708
|
+
total: changes.size
|
|
19709
|
+
};
|
|
19710
|
+
for (const change of changes.values()) switch (change.changeType) {
|
|
19711
|
+
case "CREATE":
|
|
19712
|
+
summary.create++;
|
|
19713
|
+
break;
|
|
19714
|
+
case "UPDATE":
|
|
19715
|
+
summary.update++;
|
|
19716
|
+
break;
|
|
19717
|
+
case "DELETE":
|
|
19718
|
+
summary.delete++;
|
|
19719
|
+
break;
|
|
19720
|
+
case "NO_CHANGE": summary.noChange++;
|
|
19721
|
+
}
|
|
19722
|
+
return summary;
|
|
19723
|
+
}
|
|
19724
|
+
filterByType(changes, type) {
|
|
19725
|
+
return Array.from(changes.values()).filter((change) => change.changeType === type);
|
|
19726
|
+
}
|
|
19727
|
+
hasChanges(changes) {
|
|
19728
|
+
return Array.from(changes.values()).some((change) => change.changeType !== "NO_CHANGE");
|
|
19729
|
+
}
|
|
19730
|
+
getReplacementChanges(changes) {
|
|
19731
|
+
return Array.from(changes.values()).filter((change) => change.changeType === "UPDATE" && change.propertyChanges?.some((pc) => pc.requiresReplacement));
|
|
19732
|
+
}
|
|
19733
|
+
};
|
|
19734
|
+
|
|
19007
19735
|
// src/provisioning/json-patch-generator.ts
|
|
19008
19736
|
var JsonPatchGenerator = class {
|
|
19009
19737
|
logger = getLogger().child("JsonPatchGenerator");
|
|
@@ -21722,7 +22450,7 @@ async function deleteInIdLogScope(logicalId, physicalId, resourceType, propertie
|
|
|
21722
22450
|
const indeterminateGuard = await this.confirmDeleteTargetIdentity(logicalId, resourceType, physicalId, context);
|
|
21723
22451
|
if (context?.removeProtection === true && resourceType === "AWS::AutoScaling::AutoScalingGroup") {
|
|
21724
22452
|
this.logger.debug(`Delegating protected AutoScalingGroup ${logicalId} delete to the SDK ASGProvider (Cloud Control cannot force-delete a protected ASG)`);
|
|
21725
|
-
const { ASGProvider } = await import("./asg-provider-
|
|
22453
|
+
const { ASGProvider } = await import("./asg-provider-D6gQPSZu.js");
|
|
21726
22454
|
const delegateRegion = ambientRegion();
|
|
21727
22455
|
let asgProvider = this.asgDeleteDelegates.get(delegateRegion);
|
|
21728
22456
|
if (asgProvider === void 0) {
|
|
@@ -21733,7 +22461,7 @@ async function deleteInIdLogScope(logicalId, physicalId, resourceType, propertie
|
|
|
21733
22461
|
}
|
|
21734
22462
|
if (context?.removeProtection === true && resourceType === "AWS::EMR::Cluster") {
|
|
21735
22463
|
this.logger.debug(safeMsg`Delegating protected EMR cluster ${logicalId} delete to the SDK EMRClusterProvider (Cloud Control cannot lift termination protection)`);
|
|
21736
|
-
const { EMRClusterProvider } = await import("./emr-cluster-provider-
|
|
22464
|
+
const { EMRClusterProvider } = await import("./emr-cluster-provider-BCu1qq9J.js");
|
|
21737
22465
|
return withIndeterminateGuard(await new EMRClusterProvider().delete(logicalId, physicalId, resourceType, properties, context), indeterminateGuard);
|
|
21738
22466
|
}
|
|
21739
22467
|
await assertRecordedIdentityBeforeCcDelete.call(this, logicalId, resourceType, physicalId, context);
|
|
@@ -21882,7 +22610,7 @@ async function sdkDeleteDelegateInCcRegion(resourceType, logicalId, physicalId)
|
|
|
21882
22610
|
const family = SDK_DELETE_FAMILIES.get(resourceType);
|
|
21883
22611
|
const cached = this.sdkDeleteDelegates.get(family);
|
|
21884
22612
|
if (cached !== void 0 && cached.region === ccRegion) return cached.provider;
|
|
21885
|
-
const provider = family === "rds" ? new (await (import("./rds-provider
|
|
22613
|
+
const provider = family === "rds" ? new (await (import("./rds-provider--XBD_TS8.js"))).RDSProvider({ region: ccRegion }) : new (await (import("./neptune-provider-CL5WtULJ.js"))).NeptuneProvider({ region: ccRegion });
|
|
21886
22614
|
this.sdkDeleteDelegates.set(family, {
|
|
21887
22615
|
region: ccRegion,
|
|
21888
22616
|
provider
|
|
@@ -24461,7 +25189,7 @@ async function publishToSns(topicArn, request) {
|
|
|
24461
25189
|
}
|
|
24462
25190
|
async function invokeLambda(serviceToken, request) {
|
|
24463
25191
|
if (localCustomResourceRuntimeActive()) {
|
|
24464
|
-
const { invokeCustomResourceFunctionLocally } = await import("./custom-resource-runtime-
|
|
25192
|
+
const { invokeCustomResourceFunctionLocally } = await import("./custom-resource-runtime-BiP0vn3W.js");
|
|
24465
25193
|
const local = await invokeCustomResourceFunctionLocally({
|
|
24466
25194
|
lambda: this.lambdaClient,
|
|
24467
25195
|
s3: this.s3Client
|
|
@@ -28807,6 +29535,7 @@ var ReplacementRunState = class {
|
|
|
28807
29535
|
replacedOldMaySurvive = /* @__PURE__ */ new Map();
|
|
28808
29536
|
replacedOldIdentity = /* @__PURE__ */ new Map();
|
|
28809
29537
|
recreatedUnderSameId = /* @__PURE__ */ new Set();
|
|
29538
|
+
fallbackReplacedElsewhere = /* @__PURE__ */ new Set();
|
|
28810
29539
|
restoredLostChildren = /* @__PURE__ */ new Set();
|
|
28811
29540
|
updatesThatSentNothing = /* @__PURE__ */ new Set();
|
|
28812
29541
|
updateWasReplaced = /* @__PURE__ */ new Map();
|
|
@@ -29197,7 +29926,7 @@ async function ccRoutedInstanceTakesNoSnapshot(input) {
|
|
|
29197
29926
|
if (resourceType !== "AWS::RDS::DBInstance") return false;
|
|
29198
29927
|
if (region === void 0 || region === "") return false;
|
|
29199
29928
|
const mask = input.mask ?? ((text) => text);
|
|
29200
|
-
const { describeDBInstanceInRegion, isLiveReadReplica } = await import("./read-replica-
|
|
29929
|
+
const { describeDBInstanceInRegion, isLiveReadReplica } = await import("./read-replica-apcXpKN9.js").then((n) => n.l);
|
|
29201
29930
|
let reason;
|
|
29202
29931
|
try {
|
|
29203
29932
|
const live = await describeDBInstanceInRegion(physicalId, region);
|
|
@@ -31105,9 +31834,130 @@ function noteRolledBackCreate(scope, op, record) {
|
|
|
31105
31834
|
scope.onRolledBackCreate?.(create);
|
|
31106
31835
|
}
|
|
31107
31836
|
|
|
31837
|
+
// src/utils/ip-protocol.ts
|
|
31838
|
+
const PROTOCOL_NUMBER_TO_NAME = /* @__PURE__ */ new Map([
|
|
31839
|
+
["1", "icmp"],
|
|
31840
|
+
["6", "tcp"],
|
|
31841
|
+
["17", "udp"],
|
|
31842
|
+
["58", "icmpv6"]
|
|
31843
|
+
]);
|
|
31844
|
+
const CANONICAL_PROTOCOL_NAMES = new Set(PROTOCOL_NUMBER_TO_NAME.values());
|
|
31845
|
+
function canonicalizeIpProtocolValue(value) {
|
|
31846
|
+
let text;
|
|
31847
|
+
if (typeof value === "string") text = value;
|
|
31848
|
+
else if (typeof value === "number") text = String(value);
|
|
31849
|
+
else return value;
|
|
31850
|
+
const renamed = PROTOCOL_NUMBER_TO_NAME.get(text);
|
|
31851
|
+
if (renamed !== void 0) return renamed;
|
|
31852
|
+
const lowered = text.toLowerCase();
|
|
31853
|
+
if (CANONICAL_PROTOCOL_NAMES.has(lowered)) return lowered;
|
|
31854
|
+
return text;
|
|
31855
|
+
}
|
|
31856
|
+
|
|
31857
|
+
// src/utils/ipv4-cidr.ts
|
|
31858
|
+
function canonicalizeIpv4Cidr(value) {
|
|
31859
|
+
const match = /^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\/(\d{1,2})$/.exec(value);
|
|
31860
|
+
if (!match) return void 0;
|
|
31861
|
+
const octets = [
|
|
31862
|
+
match[1],
|
|
31863
|
+
match[2],
|
|
31864
|
+
match[3],
|
|
31865
|
+
match[4]
|
|
31866
|
+
].map(Number);
|
|
31867
|
+
const prefixLength = Number(match[5]);
|
|
31868
|
+
if (prefixLength > 32 || octets.some((octet) => octet > 255)) return void 0;
|
|
31869
|
+
const network = ((octets[0] << 24 | octets[1] << 16 | octets[2] << 8 | octets[3]) >>> 0 & (prefixLength === 0 ? 0 : 4294967295 << 32 - prefixLength >>> 0)) >>> 0;
|
|
31870
|
+
return `${[
|
|
31871
|
+
network >>> 24,
|
|
31872
|
+
network >>> 16 & 255,
|
|
31873
|
+
network >>> 8 & 255,
|
|
31874
|
+
network & 255
|
|
31875
|
+
].join(".")}/${prefixLength}`;
|
|
31876
|
+
}
|
|
31877
|
+
|
|
31878
|
+
// src/utils/ipv6-cidr.ts
|
|
31879
|
+
function canonicalizeIpv6Cidr(value) {
|
|
31880
|
+
const match = /^([0-9a-fA-F:.]{2,45})\/(\d{1,3})$/.exec(value);
|
|
31881
|
+
if (!match || !isIPv6(match[1])) return void 0;
|
|
31882
|
+
const prefix = Number(match[2]);
|
|
31883
|
+
if (prefix > 128) return void 0;
|
|
31884
|
+
try {
|
|
31885
|
+
const [left, right] = new URL(`http://[${match[1]}]/`).hostname.slice(1, -1).split("::");
|
|
31886
|
+
const before = left ? left.split(":") : [];
|
|
31887
|
+
const after = right ? right.split(":") : [];
|
|
31888
|
+
const pieces = right === void 0 ? before : [
|
|
31889
|
+
...before,
|
|
31890
|
+
...new Array(8 - before.length - after.length).fill("0"),
|
|
31891
|
+
...after
|
|
31892
|
+
];
|
|
31893
|
+
const hostBits = BigInt(128 - prefix);
|
|
31894
|
+
const hex = (BigInt(`0x${pieces.map((piece) => piece.padStart(4, "0")).join("")}`) >> hostBits << hostBits).toString(16).padStart(32, "0");
|
|
31895
|
+
const expanded = Array.from({ length: 8 }, (_, index) => hex.slice(index * 4, index * 4 + 4)).join(":");
|
|
31896
|
+
return `${new URL(`http://[${expanded}]/`).hostname.slice(1, -1)}/${prefix}`;
|
|
31897
|
+
} catch {
|
|
31898
|
+
return;
|
|
31899
|
+
}
|
|
31900
|
+
}
|
|
31901
|
+
|
|
31902
|
+
// src/provisioning/sg-rule-identity.ts
|
|
31903
|
+
function sgProtocolKey(value) {
|
|
31904
|
+
return canonicalizeIpProtocolValue(value ?? "-1");
|
|
31905
|
+
}
|
|
31906
|
+
function sgCidrKey(value) {
|
|
31907
|
+
if (typeof value !== "string") return value;
|
|
31908
|
+
const ipv4 = /^(0|[1-9]\d{0,2})(\.(0|[1-9]\d{0,2})){3}\/(0|[1-9]\d?)$/.test(value) ? canonicalizeIpv4Cidr(value) : void 0;
|
|
31909
|
+
if (ipv4 !== void 0) return ipv4;
|
|
31910
|
+
const slash = value.lastIndexOf("/");
|
|
31911
|
+
if (value.includes(":") && /^(0|[1-9]\d{0,2})$/.test(value.slice(slash + 1))) return canonicalizeIpv6Cidr(value) ?? value;
|
|
31912
|
+
return value;
|
|
31913
|
+
}
|
|
31914
|
+
function cfnIngressPortValue(value) {
|
|
31915
|
+
if (value === void 0 || value === null) return -1;
|
|
31916
|
+
if (typeof value === "number") return Number.isFinite(value) ? value : NaN;
|
|
31917
|
+
if (typeof value === "string") {
|
|
31918
|
+
const trimmed = value.trim();
|
|
31919
|
+
if (trimmed === "") return -1;
|
|
31920
|
+
const parsed = Number(trimmed);
|
|
31921
|
+
return Number.isFinite(parsed) ? parsed : NaN;
|
|
31922
|
+
}
|
|
31923
|
+
return NaN;
|
|
31924
|
+
}
|
|
31925
|
+
const SG_RULE_ID_PATTERN = /^sgr-[0-9a-f]+$/;
|
|
31926
|
+
function recordedSgRuleId(attributes) {
|
|
31927
|
+
const recorded = attributes?.["Id"];
|
|
31928
|
+
return typeof recorded === "string" && SG_RULE_ID_PATTERN.test(recorded) ? recorded : void 0;
|
|
31929
|
+
}
|
|
31930
|
+
const INGRESS_SOURCE_KEYS = [
|
|
31931
|
+
"CidrIp",
|
|
31932
|
+
"CidrIpv6",
|
|
31933
|
+
"SourcePrefixListId",
|
|
31934
|
+
"SourceSecurityGroupId"
|
|
31935
|
+
];
|
|
31936
|
+
function ingressRuleSourceKey(properties) {
|
|
31937
|
+
if (properties === void 0 || properties["SourceSecurityGroupName"] !== void 0) return;
|
|
31938
|
+
const present = INGRESS_SOURCE_KEYS.filter((key) => properties[key] !== void 0);
|
|
31939
|
+
if (present.length !== 1) return void 0;
|
|
31940
|
+
const key = present[0];
|
|
31941
|
+
const value = properties[key];
|
|
31942
|
+
if (typeof value !== "string" || value === "") return void 0;
|
|
31943
|
+
const keyed = key === "CidrIp" || key === "CidrIpv6" ? sgCidrKey(value) : value;
|
|
31944
|
+
return typeof keyed === "string" ? `${key}=${keyed}` : void 0;
|
|
31945
|
+
}
|
|
31946
|
+
|
|
31108
31947
|
// src/deployment/type-change-guard.ts
|
|
31948
|
+
const EQUAL_ID_HOOK_TYPES = /* @__PURE__ */ new Set([
|
|
31949
|
+
"AWS::Glue::Table",
|
|
31950
|
+
"AWS::Lambda::Permission",
|
|
31951
|
+
"AWS::EC2::SecurityGroupIngress",
|
|
31952
|
+
"AWS::ApiGateway::Stage",
|
|
31953
|
+
"AWS::ApiGatewayV2::Stage"
|
|
31954
|
+
]);
|
|
31109
31955
|
function equalIdNamesDifferentResources(input) {
|
|
31956
|
+
if (!EQUAL_ID_HOOK_TYPES.has(input.resourceType)) return false;
|
|
31110
31957
|
if (input.resourceType === "AWS::Lambda::Permission") return permissionsOnDifferentFunctions(input.oldProperties, input.newProperties);
|
|
31958
|
+
if (input.resourceType === "AWS::EC2::SecurityGroupIngress") return ingressRulesFromDifferentSources(input.oldProperties, input.newProperties);
|
|
31959
|
+
const parentKey = STAGE_PARENT_KEYS[input.resourceType];
|
|
31960
|
+
if (parentKey !== void 0) return stagesOnDifferentApis(input.oldProperties, input.newProperties, parentKey);
|
|
31111
31961
|
if (input.resourceType !== "AWS::Glue::Table" || input.physicalId === void 0) return false;
|
|
31112
31962
|
const oldDb = input.oldProperties?.["DatabaseName"];
|
|
31113
31963
|
const newDb = input.newProperties?.["DatabaseName"];
|
|
@@ -31125,6 +31975,22 @@ function permissionsOnDifferentFunctions(oldProperties, newProperties) {
|
|
|
31125
31975
|
const newName = parseLambdaFunctionAddress(newFn)?.name;
|
|
31126
31976
|
return oldName !== void 0 && newName !== void 0 && oldName !== newName;
|
|
31127
31977
|
}
|
|
31978
|
+
function ingressRulesFromDifferentSources(oldProperties, newProperties) {
|
|
31979
|
+
const oldSource = ingressRuleSourceKey(oldProperties);
|
|
31980
|
+
const newSource = ingressRuleSourceKey(newProperties);
|
|
31981
|
+
if (!isUsableIdentityValue(oldSource) || !isUsableIdentityValue(newSource)) return false;
|
|
31982
|
+
return oldSource !== newSource;
|
|
31983
|
+
}
|
|
31984
|
+
const STAGE_PARENT_KEYS = {
|
|
31985
|
+
"AWS::ApiGateway::Stage": "RestApiId",
|
|
31986
|
+
"AWS::ApiGatewayV2::Stage": "ApiId"
|
|
31987
|
+
};
|
|
31988
|
+
function stagesOnDifferentApis(oldProperties, newProperties, parentKey) {
|
|
31989
|
+
const oldApi = oldProperties?.[parentKey];
|
|
31990
|
+
const newApi = newProperties?.[parentKey];
|
|
31991
|
+
if (!isUsableIdentityValue(oldApi) || !isUsableIdentityValue(newApi)) return false;
|
|
31992
|
+
return oldApi !== newApi;
|
|
31993
|
+
}
|
|
31128
31994
|
function equalIdNamesSameResource(input) {
|
|
31129
31995
|
if (input.oldType === input.newType) return !equalIdNamesDifferentResources({
|
|
31130
31996
|
resourceType: input.oldType,
|
|
@@ -37490,100 +38356,6 @@ async function buildSgRuleCaptureSiblings(deps, capturedLogicalId, capturedPhysi
|
|
|
37490
38356
|
return Object.keys(siblings).length > 0 ? { siblings } : void 0;
|
|
37491
38357
|
}
|
|
37492
38358
|
|
|
37493
|
-
// src/utils/ip-protocol.ts
|
|
37494
|
-
const PROTOCOL_NUMBER_TO_NAME = /* @__PURE__ */ new Map([
|
|
37495
|
-
["1", "icmp"],
|
|
37496
|
-
["6", "tcp"],
|
|
37497
|
-
["17", "udp"],
|
|
37498
|
-
["58", "icmpv6"]
|
|
37499
|
-
]);
|
|
37500
|
-
const CANONICAL_PROTOCOL_NAMES = new Set(PROTOCOL_NUMBER_TO_NAME.values());
|
|
37501
|
-
function canonicalizeIpProtocolValue(value) {
|
|
37502
|
-
let text;
|
|
37503
|
-
if (typeof value === "string") text = value;
|
|
37504
|
-
else if (typeof value === "number") text = String(value);
|
|
37505
|
-
else return value;
|
|
37506
|
-
const renamed = PROTOCOL_NUMBER_TO_NAME.get(text);
|
|
37507
|
-
if (renamed !== void 0) return renamed;
|
|
37508
|
-
const lowered = text.toLowerCase();
|
|
37509
|
-
if (CANONICAL_PROTOCOL_NAMES.has(lowered)) return lowered;
|
|
37510
|
-
return text;
|
|
37511
|
-
}
|
|
37512
|
-
|
|
37513
|
-
// src/utils/ipv4-cidr.ts
|
|
37514
|
-
function canonicalizeIpv4Cidr(value) {
|
|
37515
|
-
const match = /^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\/(\d{1,2})$/.exec(value);
|
|
37516
|
-
if (!match) return void 0;
|
|
37517
|
-
const octets = [
|
|
37518
|
-
match[1],
|
|
37519
|
-
match[2],
|
|
37520
|
-
match[3],
|
|
37521
|
-
match[4]
|
|
37522
|
-
].map(Number);
|
|
37523
|
-
const prefixLength = Number(match[5]);
|
|
37524
|
-
if (prefixLength > 32 || octets.some((octet) => octet > 255)) return void 0;
|
|
37525
|
-
const network = ((octets[0] << 24 | octets[1] << 16 | octets[2] << 8 | octets[3]) >>> 0 & (prefixLength === 0 ? 0 : 4294967295 << 32 - prefixLength >>> 0)) >>> 0;
|
|
37526
|
-
return `${[
|
|
37527
|
-
network >>> 24,
|
|
37528
|
-
network >>> 16 & 255,
|
|
37529
|
-
network >>> 8 & 255,
|
|
37530
|
-
network & 255
|
|
37531
|
-
].join(".")}/${prefixLength}`;
|
|
37532
|
-
}
|
|
37533
|
-
|
|
37534
|
-
// src/utils/ipv6-cidr.ts
|
|
37535
|
-
function canonicalizeIpv6Cidr(value) {
|
|
37536
|
-
const match = /^([0-9a-fA-F:.]{2,45})\/(\d{1,3})$/.exec(value);
|
|
37537
|
-
if (!match || !isIPv6(match[1])) return void 0;
|
|
37538
|
-
const prefix = Number(match[2]);
|
|
37539
|
-
if (prefix > 128) return void 0;
|
|
37540
|
-
try {
|
|
37541
|
-
const [left, right] = new URL(`http://[${match[1]}]/`).hostname.slice(1, -1).split("::");
|
|
37542
|
-
const before = left ? left.split(":") : [];
|
|
37543
|
-
const after = right ? right.split(":") : [];
|
|
37544
|
-
const pieces = right === void 0 ? before : [
|
|
37545
|
-
...before,
|
|
37546
|
-
...new Array(8 - before.length - after.length).fill("0"),
|
|
37547
|
-
...after
|
|
37548
|
-
];
|
|
37549
|
-
const hostBits = BigInt(128 - prefix);
|
|
37550
|
-
const hex = (BigInt(`0x${pieces.map((piece) => piece.padStart(4, "0")).join("")}`) >> hostBits << hostBits).toString(16).padStart(32, "0");
|
|
37551
|
-
const expanded = Array.from({ length: 8 }, (_, index) => hex.slice(index * 4, index * 4 + 4)).join(":");
|
|
37552
|
-
return `${new URL(`http://[${expanded}]/`).hostname.slice(1, -1)}/${prefix}`;
|
|
37553
|
-
} catch {
|
|
37554
|
-
return;
|
|
37555
|
-
}
|
|
37556
|
-
}
|
|
37557
|
-
|
|
37558
|
-
// src/provisioning/sg-rule-identity.ts
|
|
37559
|
-
function sgProtocolKey(value) {
|
|
37560
|
-
return canonicalizeIpProtocolValue(value ?? "-1");
|
|
37561
|
-
}
|
|
37562
|
-
function sgCidrKey(value) {
|
|
37563
|
-
if (typeof value !== "string") return value;
|
|
37564
|
-
const ipv4 = /^(0|[1-9]\d{0,2})(\.(0|[1-9]\d{0,2})){3}\/(0|[1-9]\d?)$/.test(value) ? canonicalizeIpv4Cidr(value) : void 0;
|
|
37565
|
-
if (ipv4 !== void 0) return ipv4;
|
|
37566
|
-
const slash = value.lastIndexOf("/");
|
|
37567
|
-
if (value.includes(":") && /^(0|[1-9]\d{0,2})$/.test(value.slice(slash + 1))) return canonicalizeIpv6Cidr(value) ?? value;
|
|
37568
|
-
return value;
|
|
37569
|
-
}
|
|
37570
|
-
function cfnIngressPortValue(value) {
|
|
37571
|
-
if (value === void 0 || value === null) return -1;
|
|
37572
|
-
if (typeof value === "number") return Number.isFinite(value) ? value : NaN;
|
|
37573
|
-
if (typeof value === "string") {
|
|
37574
|
-
const trimmed = value.trim();
|
|
37575
|
-
if (trimmed === "") return -1;
|
|
37576
|
-
const parsed = Number(trimmed);
|
|
37577
|
-
return Number.isFinite(parsed) ? parsed : NaN;
|
|
37578
|
-
}
|
|
37579
|
-
return NaN;
|
|
37580
|
-
}
|
|
37581
|
-
const SG_RULE_ID_PATTERN = /^sgr-[0-9a-f]+$/;
|
|
37582
|
-
function recordedSgRuleId(attributes) {
|
|
37583
|
-
const recorded = attributes?.["Id"];
|
|
37584
|
-
return typeof recorded === "string" && SG_RULE_ID_PATTERN.test(recorded) ? recorded : void 0;
|
|
37585
|
-
}
|
|
37586
|
-
|
|
37587
38359
|
// src/provisioning/sg-sibling-rules.ts
|
|
37588
38360
|
const RULE_TYPE = {
|
|
37589
38361
|
ingress: "AWS::EC2::SecurityGroupIngress",
|
|
@@ -54681,6 +55453,7 @@ async function replaceFallbackFor(engine, { currentProps, currentResource, logic
|
|
|
54681
55453
|
} : { outcome: "updated" }
|
|
54682
55454
|
};
|
|
54683
55455
|
if (createResult.effectiveProperties) replacementResult.effectiveProperties = createResult.effectiveProperties;
|
|
55456
|
+
if (!engine.replacementRun.recreatedUnderSameId.has(logicalId)) engine.replacementRun.fallbackReplacedElsewhere.add(logicalId);
|
|
54684
55457
|
return {
|
|
54685
55458
|
result: replacementResult,
|
|
54686
55459
|
provisionedBy: replDecision.provisionedBy,
|
|
@@ -54688,6 +55461,59 @@ async function replaceFallbackFor(engine, { currentProps, currentResource, logic
|
|
|
54688
55461
|
};
|
|
54689
55462
|
}
|
|
54690
55463
|
|
|
55464
|
+
// src/deployment/deploy-engine/update-in-place/update-failure-remedy.ts
|
|
55465
|
+
const CC_NOT_UPDATABLE_CODE = "NotUpdatable";
|
|
55466
|
+
const CC_NOT_UPDATABLE_EXCEPTION = "NotUpdatableException";
|
|
55467
|
+
const NEW_ISSUE_URL = "https://github.com/go-to-k/cdkd/issues/new";
|
|
55468
|
+
function isNotUpdatableError(error, logicalId) {
|
|
55469
|
+
let current = error;
|
|
55470
|
+
for (let depth = 0; current !== null && current !== void 0 && depth < 5; depth++) {
|
|
55471
|
+
const link = current;
|
|
55472
|
+
if (typeof link.logicalId === "string" && link.logicalId !== logicalId) return false;
|
|
55473
|
+
if (link.name === CC_NOT_UPDATABLE_EXCEPTION) return true;
|
|
55474
|
+
if (link.ccErrorCode === "NotUpdatable" && link.ccOperation === "UPDATE") return true;
|
|
55475
|
+
current = link.cause;
|
|
55476
|
+
}
|
|
55477
|
+
return false;
|
|
55478
|
+
}
|
|
55479
|
+
function replacementRuleIssueUrl(resourceType, properties) {
|
|
55480
|
+
if (!/^(AWS|Alexa)::/.test(resourceType)) return void 0;
|
|
55481
|
+
const shown = properties.length > 0 ? properties.join(", ") : "(unknown)";
|
|
55482
|
+
const params = new URLSearchParams({
|
|
55483
|
+
title: `Replacement rule: ${resourceType} ${shown}`,
|
|
55484
|
+
body: `Cloud Control refused an in-place update that CloudFormation applies by replacement.\n\nResource type: ${resourceType}\nProperty: ${shown}\nError code: ${CC_NOT_UPDATABLE_CODE}\n`
|
|
55485
|
+
});
|
|
55486
|
+
return `${NEW_ISSUE_URL}?${params.toString()}`;
|
|
55487
|
+
}
|
|
55488
|
+
function notUpdatableRemedy(input) {
|
|
55489
|
+
const properties = [...input.changedProperties].sort();
|
|
55490
|
+
const changes = properties.length > 0 ? `, which changes ${properties.join(", ")}` : "";
|
|
55491
|
+
const stateful = input.updateReplacePolicy !== "Retain" && isStatefulRecreateTargetForReplace(input.record.resourceType, input.record.properties, input.record.observedProperties) !== null;
|
|
55492
|
+
const how = input.nestedChild ? " --replace-resource names a top-level stack's resources only, so it cannot replace a resource of a nested stack." : ` To replace it in this deploy, as CloudFormation does: ${pasteableCommand("cdkd deploy", [{
|
|
55493
|
+
value: input.stackName,
|
|
55494
|
+
hole: "stack"
|
|
55495
|
+
}, {
|
|
55496
|
+
flag: "--replace-resource",
|
|
55497
|
+
value: input.logicalId,
|
|
55498
|
+
hole: "logicalId"
|
|
55499
|
+
}]).command}.` + (stateful ? safeMsg` ${input.logicalId} is stateful: replacing it deletes its data, which the deploy asks you to confirm with --force-stateful-recreation.` : "");
|
|
55500
|
+
const issueUrl = replacementRuleIssueUrl(input.resourceType, properties);
|
|
55501
|
+
return safeMsg`\n${input.logicalId} (${input.resourceType}): Cloud Control refused this update in place (${CC_NOT_UPDATABLE_CODE})${changes}; CloudFormation replaces the resource for such a change.` + how + (issueUrl === void 0 ? "" : `\ncdkd has no replacement rule for this property yet; report it so one is added: ${issueUrl}`);
|
|
55502
|
+
}
|
|
55503
|
+
function withUpdateFailureRemedy(engine, updateError, logicalId, remedy, updateSecrets) {
|
|
55504
|
+
if (remedy === "" || !(updateError instanceof Error) || isInterruptedWaitError(updateError) || isWaitAbandonedError(updateError)) return updateError;
|
|
55505
|
+
const updateFailure = describeAwsFailure(updateError);
|
|
55506
|
+
if (updateFailure.redacted) {
|
|
55507
|
+
const shownSecrets = unionOfSecretBags([updateSecrets, printingSecretsFor(engine.secretsRun, logicalId)]);
|
|
55508
|
+
engine.logger.debug(safeMsg`${maskSecretsInText(logicalId, shownSecrets)}: the update failed: ${asIsMessage(maskSecretsInText(updateFailure.detail, shownSecrets))}`);
|
|
55509
|
+
const wrapped = new Error(`${displaySafe(updateFailure.summary)}${remedy}`, { cause: updateError });
|
|
55510
|
+
if (updateError.name !== "CredentialsProviderError") wrapped.name = updateError.name;
|
|
55511
|
+
return markRedactedCause(wrapped);
|
|
55512
|
+
}
|
|
55513
|
+
updateError.message += remedy;
|
|
55514
|
+
return updateError;
|
|
55515
|
+
}
|
|
55516
|
+
|
|
54691
55517
|
// src/deployment/deploy-engine/update-in-place/write-only-secret-skip.ts
|
|
54692
55518
|
function sameAttestedVersion(key, previous, desired, record, secrets, maskSecrets) {
|
|
54693
55519
|
if (!Object.hasOwn(previous, key) || !Object.hasOwn(desired, key)) return false;
|
|
@@ -54901,19 +55727,16 @@ async function updateInPlace(engine, { changedProperties, noEchoOnlyChangedPrope
|
|
|
54901
55727
|
captureProvider = fallbackOutcome.captureProvider;
|
|
54902
55728
|
replacedAtGeneration = fallbackGeneration;
|
|
54903
55729
|
} else {
|
|
54904
|
-
|
|
54905
|
-
|
|
54906
|
-
|
|
54907
|
-
|
|
54908
|
-
|
|
54909
|
-
|
|
54910
|
-
|
|
54911
|
-
|
|
54912
|
-
|
|
54913
|
-
|
|
54914
|
-
updateError.message += remedy;
|
|
54915
|
-
}
|
|
54916
|
-
throw updateError;
|
|
55730
|
+
const remedy = (currentResource.provisionedBy !== "cc-api" && updateDecision.ccRouteReason !== void 0 ? ccAutoRouteUpdateFailureRemedy(logicalId, resourceType, updateDecision.ccRouteReason.properties, engine.options.parentStackInfo !== void 0, currentResource.physicalId !== recordedResource.physicalId) : "") + (isNotUpdatableError(updateError, logicalId) ? notUpdatableRemedy({
|
|
55731
|
+
logicalId,
|
|
55732
|
+
resourceType,
|
|
55733
|
+
stackName,
|
|
55734
|
+
changedProperties,
|
|
55735
|
+
record: currentResource,
|
|
55736
|
+
updateReplacePolicy,
|
|
55737
|
+
nestedChild: engine.options.parentStackInfo !== void 0
|
|
55738
|
+
}) : "");
|
|
55739
|
+
throw withUpdateFailureRemedy(engine, updateError, logicalId, remedy, updateSecrets);
|
|
54917
55740
|
}
|
|
54918
55741
|
}
|
|
54919
55742
|
const stillUnsettled = result.wasReplaced ? [] : await unsettledAfterUpdate({
|
|
@@ -55851,7 +56674,7 @@ async function journalOrphanIdentity(engine, orphanOp, carried, readIdentity = t
|
|
|
55851
56674
|
|
|
55852
56675
|
// src/deployment/deploy-engine/execute/lost-children.ts
|
|
55853
56676
|
function enqueueLostChildren(run, executor) {
|
|
55854
|
-
const { engine, changes, deleteChanges, template, newResources, conditions, progress
|
|
56677
|
+
const { engine, changes, deleteChanges, template, newResources, conditions, progress } = run;
|
|
55855
56678
|
const lostIds = noChangeChildrenOfRecreatedParents({
|
|
55856
56679
|
changes,
|
|
55857
56680
|
skip: deleteChanges,
|
|
@@ -55867,11 +56690,15 @@ function enqueueLostChildren(run, executor) {
|
|
|
55867
56690
|
engine.logger.info(survivesParent(change.resourceType) ? safeMsg` ${id} was attached to a resource the update-failure fallback re-created under the same name: attaching it again` : safeMsg` ${id} went with a resource the update-failure fallback re-created under the same id: re-creating it`);
|
|
55868
56691
|
}
|
|
55869
56692
|
if (progress) progress.total += lostIds.length;
|
|
55870
|
-
|
|
56693
|
+
addPromotedNodes(run, executor, lostIds);
|
|
56694
|
+
}
|
|
56695
|
+
function addPromotedNodes(run, executor, ids) {
|
|
56696
|
+
const { engine, changes, dag } = run;
|
|
56697
|
+
const lost = new Set(ids);
|
|
55871
56698
|
const isMember = (id) => executor.has(id) || lost.has(id);
|
|
55872
56699
|
const dependenciesOf = (id) => engine.dagBuilder.getDirectDependencies(dag, id);
|
|
55873
|
-
const lostDeps = nearestMemberDependencies(
|
|
55874
|
-
for (const id of
|
|
56700
|
+
const lostDeps = nearestMemberDependencies(ids, dependenciesOf, isMember);
|
|
56701
|
+
for (const id of ids) executor.add({
|
|
55875
56702
|
id,
|
|
55876
56703
|
dependencies: lostDeps.get(id),
|
|
55877
56704
|
state: "pending",
|
|
@@ -55882,6 +56709,74 @@ function enqueueLostChildren(run, executor) {
|
|
|
55882
56709
|
for (const node of pending) for (const dep of pendingDeps.get(node.id)) if (lost.has(dep)) node.dependencies.add(dep);
|
|
55883
56710
|
}
|
|
55884
56711
|
|
|
56712
|
+
// src/deployment/deploy-engine/execute/fallback-replaced-readers.ts
|
|
56713
|
+
async function enqueueReadersOfFallbackReplacement(run, executor, replacedId) {
|
|
56714
|
+
const { engine, changes, template, progress } = run;
|
|
56715
|
+
const replaced = changes.get(replacedId);
|
|
56716
|
+
if (replaced === void 0) return;
|
|
56717
|
+
const resources = template.Resources ?? {};
|
|
56718
|
+
const diff = engine.diffCalculator;
|
|
56719
|
+
const parser = new TemplateParser();
|
|
56720
|
+
const rawGetAttRefs = /* @__PURE__ */ new Map();
|
|
56721
|
+
const readersOf = /* @__PURE__ */ new Map();
|
|
56722
|
+
const addEdge = (referencedId, readerId) => {
|
|
56723
|
+
if (referencedId === readerId) return;
|
|
56724
|
+
let readers = readersOf.get(referencedId);
|
|
56725
|
+
if (readers === void 0) {
|
|
56726
|
+
readers = /* @__PURE__ */ new Set();
|
|
56727
|
+
readersOf.set(referencedId, readers);
|
|
56728
|
+
}
|
|
56729
|
+
readers.add(readerId);
|
|
56730
|
+
};
|
|
56731
|
+
for (const [logicalId, resource] of Object.entries(resources)) {
|
|
56732
|
+
if (resource.Type === "AWS::CDK::Metadata") continue;
|
|
56733
|
+
const perProp = /* @__PURE__ */ new Map();
|
|
56734
|
+
for (const [propKey, propValue] of Object.entries(resource.Properties ?? {})) {
|
|
56735
|
+
for (const referencedId of parser.extractReferences(propValue)) addEdge(referencedId, logicalId);
|
|
56736
|
+
const refs = DiffCalculator.extractGetAttRefs(propValue);
|
|
56737
|
+
if (refs.size > 0) perProp.set(propKey, refs);
|
|
56738
|
+
for (const referencedId of refs.keys()) addEdge(referencedId, logicalId);
|
|
56739
|
+
}
|
|
56740
|
+
if (perProp.size > 0) rawGetAttRefs.set(logicalId, perProp);
|
|
56741
|
+
}
|
|
56742
|
+
const reached = /* @__PURE__ */ new Set();
|
|
56743
|
+
const queue = [replacedId];
|
|
56744
|
+
while (queue.length > 0) for (const readerId of readersOf.get(queue.shift()) ?? []) {
|
|
56745
|
+
if (readerId === replacedId || reached.has(readerId)) continue;
|
|
56746
|
+
reached.add(readerId);
|
|
56747
|
+
queue.push(readerId);
|
|
56748
|
+
}
|
|
56749
|
+
if (reached.size === 0) return;
|
|
56750
|
+
const readers = /* @__PURE__ */ new Map();
|
|
56751
|
+
for (const id of reached) {
|
|
56752
|
+
const change = changes.get(id);
|
|
56753
|
+
if (change !== void 0) readers.set(id, change);
|
|
56754
|
+
}
|
|
56755
|
+
const scope = new Map([[replacedId, replaced], ...readers]);
|
|
56756
|
+
const forced = /* @__PURE__ */ new Set([replacedId]);
|
|
56757
|
+
const syntheticCreateOnlyPaths = await diff.loadSyntheticCreateOnlyPaths(scope, template, rawGetAttRefs, void 0, forced);
|
|
56758
|
+
const before = new Map([...readers].map(([id, change]) => [id, change.changeType]));
|
|
56759
|
+
const replacingBefore = new Set([...readers].filter(([, change]) => (change.propertyChanges ?? []).some((pc) => pc.requiresReplacement)).map(([id]) => id));
|
|
56760
|
+
do
|
|
56761
|
+
diff.promoteReplacementDependents(scope, template, syntheticCreateOnlyPaths, forced);
|
|
56762
|
+
while (diff.promoteInPlaceAttributeDependents(readers, template, rawGetAttRefs, syntheticCreateOnlyPaths));
|
|
56763
|
+
dropSupersededProviderReplacements(readers);
|
|
56764
|
+
const promoted = [];
|
|
56765
|
+
for (const [id, change] of readers) {
|
|
56766
|
+
if (change.changeType !== "UPDATE") continue;
|
|
56767
|
+
const replacing = (change.propertyChanges ?? []).some((pc) => pc.requiresReplacement);
|
|
56768
|
+
if (before.get(id) !== "NO_CHANGE") {
|
|
56769
|
+
if (replacing && !replacingBefore.has(id)) engine.logger.info(safeMsg` ${id} reads ${replacedId}, which the update-failure fallback replaced: replacing it instead of updating it in place (a create-only property holds the reference)`);
|
|
56770
|
+
continue;
|
|
56771
|
+
}
|
|
56772
|
+
promoted.push(id);
|
|
56773
|
+
engine.logger.info(replacing ? safeMsg` ${id} reads ${replacedId}, which the update-failure fallback replaced: replacing it too (a create-only property holds the reference)` : safeMsg` ${id} reads ${replacedId}, which the update-failure fallback replaced: updating it`);
|
|
56774
|
+
}
|
|
56775
|
+
if (promoted.length === 0) return;
|
|
56776
|
+
if (progress) progress.total += promoted.length;
|
|
56777
|
+
addPromotedNodes(run, executor, promoted);
|
|
56778
|
+
}
|
|
56779
|
+
|
|
55885
56780
|
// src/deployment/deploy-engine/execute/provision-node.ts
|
|
55886
56781
|
const NO_REPLACEMENT_ORPHAN_TYPES = /* @__PURE__ */ new Set([
|
|
55887
56782
|
"AWS::CloudFormation::Stack",
|
|
@@ -56037,6 +56932,7 @@ async function provisionCreateUpdateNode(run, createUpdateExecutor, enqueueLostC
|
|
|
56037
56932
|
engine.deferredReadiness.record(logicalId, change.resourceType, change.changeType, readinessScope.deferred);
|
|
56038
56933
|
saveStateAfterResource(logicalId);
|
|
56039
56934
|
if (engine.replacementRun.recreatedUnderSameId.has(logicalId)) enqueueLostChildren(createUpdateExecutor);
|
|
56935
|
+
if (engine.replacementRun.fallbackReplacedElsewhere.has(logicalId)) await enqueueReadersOfFallbackReplacement(run, createUpdateExecutor, logicalId);
|
|
56040
56936
|
const created = change.changeType === "CREATE" || newResources[logicalId]?.physicalId !== physicalIdBefore;
|
|
56041
56937
|
await awaitCreationSignals(engine, logicalId, signalWaitStart, created);
|
|
56042
56938
|
}
|
|
@@ -56310,6 +57206,60 @@ function promoteRecreateTargets(changes, recreateTargets, stackName) {
|
|
|
56310
57206
|
};
|
|
56311
57207
|
}
|
|
56312
57208
|
|
|
57209
|
+
// src/deployment/replace-resource-targets.ts
|
|
57210
|
+
function replaceResourceIdsFor(replaceResources, stackName) {
|
|
57211
|
+
if (replaceResources === void 0 || replaceResources.stackName !== stackName) return void 0;
|
|
57212
|
+
return replaceResources.logicalIds.size > 0 ? replaceResources.logicalIds : void 0;
|
|
57213
|
+
}
|
|
57214
|
+
function planReplaceResourceTargets(changes, targetIds) {
|
|
57215
|
+
const replaced = [];
|
|
57216
|
+
const unreplaced = [];
|
|
57217
|
+
for (const logicalId of targetIds) {
|
|
57218
|
+
const change = changes.get(logicalId);
|
|
57219
|
+
const propertyChanges = change?.propertyChanges ?? [];
|
|
57220
|
+
if (change?.changeType === "NO_CHANGE" || change?.changeType === "UPDATE" && !propertyChanges.some(isTemplateChange)) throw markNonRetryable(new CdkdError(safeMsg`--replace-resource ${logicalId}: this deploy changes no property of ${logicalId}, so there is no update to replace. To destroy and re-create an unchanged resource, use --recreate-via-cc-api or --recreate-via-sdk-provider.`, "REPLACE_RESOURCE_REFUSED"));
|
|
57221
|
+
if (propertyChanges.some((pc) => pc.noEchoPromoted === true)) throw markNonRetryable(new CdkdError(safeMsg`--replace-resource ${logicalId}: a NoEcho value feeds this update of ${logicalId}, and cdkd never replaces a resource on a NoEcho value's word. Use --recreate-via-cc-api or --recreate-via-sdk-provider to destroy and re-create it.`, "REPLACE_RESOURCE_REFUSED"));
|
|
57222
|
+
if (change?.changeType !== "UPDATE") {
|
|
57223
|
+
unreplaced.push({
|
|
57224
|
+
logicalId,
|
|
57225
|
+
changeType: change?.changeType
|
|
57226
|
+
});
|
|
57227
|
+
continue;
|
|
57228
|
+
}
|
|
57229
|
+
if (change.resourceType === "AWS::CloudFormation::Stack") throw markNonRetryable(new CdkdError(safeMsg`--replace-resource ${logicalId}: ${logicalId} is a nested stack (AWS::CloudFormation::Stack), which is updated in place; replacing it would delete and re-create its whole child stack. Drop the flag for it.`, "REPLACE_RESOURCE_REFUSED"));
|
|
57230
|
+
change.propertyChanges = propertyChanges.map((pc) => {
|
|
57231
|
+
const { inPlacePropagated: _inPlace, replacementPropagated: _replaced, ...forced } = pc;
|
|
57232
|
+
return {
|
|
57233
|
+
...forced,
|
|
57234
|
+
requiresReplacement: true
|
|
57235
|
+
};
|
|
57236
|
+
});
|
|
57237
|
+
delete change.providerReplacement;
|
|
57238
|
+
replaced.push(logicalId);
|
|
57239
|
+
}
|
|
57240
|
+
return {
|
|
57241
|
+
replaced,
|
|
57242
|
+
unreplaced
|
|
57243
|
+
};
|
|
57244
|
+
}
|
|
57245
|
+
function refuseStatefulReplaceResourceTargets(input) {
|
|
57246
|
+
if (input.forceStatefulRecreation) return;
|
|
57247
|
+
const lines = [];
|
|
57248
|
+
for (const logicalId of input.targetIds) {
|
|
57249
|
+
const record = input.state.resources[logicalId];
|
|
57250
|
+
if (record === void 0) continue;
|
|
57251
|
+
if (input.template.Resources?.[logicalId]?.UpdateReplacePolicy === "Retain") continue;
|
|
57252
|
+
const reason = isStatefulRecreateTargetForReplace(record.resourceType, record.properties, record.observedProperties);
|
|
57253
|
+
if (reason === null) continue;
|
|
57254
|
+
lines.push(safeMsg` - ${logicalId} (${shownType(record.resourceType)}): ${renderStatefulReason(reason)}`);
|
|
57255
|
+
}
|
|
57256
|
+
if (lines.length === 0) return;
|
|
57257
|
+
throw markNonRetryable(new CdkdError(`--replace-resource names a stateful resource, and replacing it deletes it:\n${lines.join("\n")}\nRe-run with --force-stateful-recreation to confirm the data loss, or drop --replace-resource for it.`, "STATEFUL_REPLACE_BLOCKED"));
|
|
57258
|
+
}
|
|
57259
|
+
function isTemplateChange(pc) {
|
|
57260
|
+
return pc.inPlacePropagated !== true && pc.replacementPropagated !== true && pc.noEchoPromoted !== true;
|
|
57261
|
+
}
|
|
57262
|
+
|
|
56313
57263
|
// src/deployment/export-change-guard.ts
|
|
56314
57264
|
async function findAffectedExports({ template, conditions, changes, currentState, resolve, replaces }) {
|
|
56315
57265
|
const published = importableOutputKeys(currentState);
|
|
@@ -56565,6 +57515,25 @@ function healsReadByExports(heals, template) {
|
|
|
56565
57515
|
|
|
56566
57516
|
// src/deployment/deploy-engine/deploy-flow/plan-checks.ts
|
|
56567
57517
|
async function refuseUnsafePlan(engine, { stackName, ssmNameHeals = [], currentState, effectiveTemplate, parameterValues, conditions, changes, diffResolverContext }) {
|
|
57518
|
+
const replaceResourceIds = replaceResourceIdsFor(engine.options.replaceResources, stackName);
|
|
57519
|
+
if (replaceResourceIds !== void 0) {
|
|
57520
|
+
const { replaced, unreplaced } = planReplaceResourceTargets(changes, replaceResourceIds);
|
|
57521
|
+
for (const { logicalId, changeType } of unreplaced) engine.logger.warn(changeType === void 0 ? safeMsg`--replace-resource ${logicalId}: not replaced, stack ${stackName} has no such resource.` : safeMsg`--replace-resource ${logicalId}: not replaced, this deploy will ${changeType.toLowerCase()} it instead.`);
|
|
57522
|
+
refuseStatefulReplaceResourceTargets({
|
|
57523
|
+
targetIds: replaced,
|
|
57524
|
+
state: currentState,
|
|
57525
|
+
template: effectiveTemplate,
|
|
57526
|
+
forceStatefulRecreation: engine.options.forceStatefulRecreation === true
|
|
57527
|
+
});
|
|
57528
|
+
await refuseStatefulReplacedReaders({
|
|
57529
|
+
template: effectiveTemplate,
|
|
57530
|
+
state: currentState,
|
|
57531
|
+
targetIds: replaced,
|
|
57532
|
+
conditions,
|
|
57533
|
+
forceStatefulRecreation: engine.options.forceStatefulRecreation === true,
|
|
57534
|
+
targetFlag: "--replace-resource"
|
|
57535
|
+
});
|
|
57536
|
+
}
|
|
56568
57537
|
const nestedStackTypeChanges = findNestedStackTypeChanges({
|
|
56569
57538
|
changes,
|
|
56570
57539
|
stateResources: currentState.resources
|
|
@@ -57836,7 +58805,7 @@ async function calculateDeployDiff(engine, { stackName, currentState, effectiveT
|
|
|
57836
58805
|
rebaselined: /* @__PURE__ */ new Map()
|
|
57837
58806
|
};
|
|
57838
58807
|
clock.lap("journal, parameters, conditions, DAG build");
|
|
57839
|
-
const 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), {
|
|
58808
|
+
const 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), forcedReplacementIds(recreateTargetIdsFor(engine.options.recreateTargets, stackName), replaceResourceIdsFor(engine.options.replaceResources, stackName)), maskedInputs, engine.options.refusalRecovery, noEchoDiffComparison(engine.noEchoRun, engine.noEchoDeps(), currentState.resources, effectiveTemplate, conditions, parameterValues, stackName), {
|
|
57840
58809
|
...engine.options.inheritedReferenceProvenance && { inherited: engine.options.inheritedReferenceProvenance },
|
|
57841
58810
|
crossStackOutputs: crossStackOutputProvenanceSource(crossStackReads, engine.recordedImports, engine.stateBackend)
|
|
57842
58811
|
}, forcedNestedChildRuns, engine.options.updatePolicy === true);
|
|
@@ -57855,6 +58824,11 @@ async function calculateDeployDiff(engine, { stackName, currentState, effectiveT
|
|
|
57855
58824
|
zonelessRecordsHealed: zonelessRecordsHealed.length > 0
|
|
57856
58825
|
};
|
|
57857
58826
|
}
|
|
58827
|
+
function forcedReplacementIds(a, b) {
|
|
58828
|
+
if (a === void 0) return b;
|
|
58829
|
+
if (b === void 0) return a;
|
|
58830
|
+
return /* @__PURE__ */ new Set([...a, ...b]);
|
|
58831
|
+
}
|
|
57858
58832
|
|
|
57859
58833
|
// src/deployment/nested-ssm-name-check.ts
|
|
57860
58834
|
const NESTED_STACK_TYPE = "AWS::CloudFormation::Stack";
|
|
@@ -59055,5 +60029,5 @@ var DeployEngine = class {
|
|
|
59055
60029
|
}
|
|
59056
60030
|
};
|
|
59057
60031
|
|
|
59058
|
-
export { canonicalizeStaleIndexDescription as $, maskEventTextWithBoundBags as $a, isWarmThroughputDecrease as $c, validateAssetBucketName as $d, retiredNameGenerationsLeaving as $i, UNREADABLE_ORPHANS_CONTAINER_ROW as $l, revertNestedChildFromJournal as $n, WaitConditionSignalStore as $o, withoutSiblingOwnedSgRules as $r, classifyRecordedSecretRegion as $s, planIndexContributorInsightsOps as $t, readOnlyStateVersionOf as $u, deferredServiceTokenWarning as A, supersededHeldByOtherTypeWarning as Aa, withoutVersionAttestation as Ac, createLazyAssetModeContext as Ad, acquireIdempotencyToken as Ai, unreadableOrphanRecords as Al, sameMove as An, verifiedIdentityCache as Ao, hintSidesOf as Ar, isWaitAbandonedError as As, TAGS_BASELINE_REREAD_DELAYS_MS as At, displayLogicalId as Au, DynamoDBGlobalTableProvider as B, cyan as Ba, containsIntrinsic as Bc, isCfnTemplateAssetPath as Bd, IMPLICIT_DELETE_DEPENDENCIES as Bi, refuseMalformedResourceEntriesForImport as Bl, readsOnlyNoEchoParameters as Bn, memberReadFailure as Bo, mappingPairs as Br, producerLookupOver as Bs, planTimeToLive as Bt, NO_CC_HANDLERS_REASON as Bu, warnLegacySpelling as C, DEFAULT_RESOURCE_WARN_AFTER_MS as Ca, keepHeldTokenProvenance as Cc, CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION as Cd, updatePartialReason as Ci, malformedOrphanRowsKeptWarning as Cl, keptForRetainedRecord as Cn, isStoredExpression as Co, noEchoValueMacsOf as Cr, RollbackInlinePolicyWriters as Cs, maskLeafValue as Ct, refuseMalformedState as Cu, slashedSsmNameHealPendingNote as D, isSupersededResourceRecord as Da, recordedReferenceRegions as Dc, synthesizedStacks as Dd, ledgerForStack as Di, refuseMalformedOrphansForOrphan as Dl, refactorMarkerMovesOf as Dn, destroyStackRecordsView as Do, formatDestructiveChange as Dr, deleteSkipReason as Ds, sseSpecificationToSend as Dt, withheldAccountClause as Du, slashedSsmNameHealNote as E, holdsSupersededResources as Ea, recordedProvenanceOf as Ec, rememberSynthesizedStacks as Ed, earliestDefined as Ei, refuseMalformedOrphanRecordsForDestroy as El, readRefactorMarkerOnce as En, awaitInFlightSibling as Eo, formatChangeCounts as Er, deleteLeftInPlace as Es, sseSpecificationRefusal as Et, accountArgs as Eu, recordedProtectionNote as F, snapshotSegmentSurvivors as Fa, carriesDynamicReference as Fc, redirectDockerAsset as Fd, isReplacementOrphan as Fi, malformedScrubResourceEntriesRefusalMessage as Fl, settleStackTagChildRuns as Fn, SNS_DEFAULT_POLICY_ID as Fo, changedReferencePath as Fr, poisonRenderedSpellingsCollidingIn as Fs, settleWrittenTags as Ft, findSdkUnwiredProperties as Fu, planStreamMemberOps as G, noEchoAttributeNamesOf as Ga, isLegacyHandleId as Gc, AssetModeResolver as Gd, removeProtectionTypeList as Gi, malformedDriftResourcePropertiesWarning as Gl, resolvePendingCloudControlRequests as Gn, verbatimEchoDriftKeys as Go, siblingOwnedRevertDesired as Gr, explicitRoleArnOrThrow as Gs, vectorIndexesForCreate as Gt, providerReplacementReason as Gu, STREAM_TAGS_KEY as H, green as Ha, replacementSidesForLog as Hc, resolveFileAssetSourcePath as Hd, attemptUsesCompletedCreate as Hi, refuseMalformedResourceEntriesForOrphan as Hl, formatResourceLine as Hn, reReadUntilSettled as Ho, propertiesChangedReason as Hr, applyRoleArnIfSet as Hs, sendTtlWaitingOutRateLimit as Ht, PROPERTY_COVERAGE_BY_TYPE as Hu, PROTECTION_PROPERTY_BY_TYPE as I, resolveReplacementOldType as Ia, keepsSecretReferenceToken as Ic, redirectFileAsset as Id, planFailedOps as Ii, refuseMalformedResourceAttributesForOrphan as Il, childRowTags as In, declaredMemberDocument as Io, changedReferenceReason as Ir, stackIdTailOf as Is, tagsMatchDeclared as It, unwrittenCreateOnlyReplacement as Iu, streamDeclaresPolicy as J, noEchoParameterNamesOf as Ja, shownType as Jc, assertAssetBucketRegion as Jd, nameGenerationCarriedFrom as Ji, refuseMalformedResourcePropertiesForDestroy as Jl, displacedPhysicalIdShown as Jn, CC_BROKEN_REASON as Jo, recordedRuleIdOf as Jr, sendableAssumeRoleCommand as Js, CONTRIBUTOR_INSIGHTS_KEY as Jt, wireAttributeValue as Ju, readStreamPolicy as K, noEchoComparisonForTemplate as Ka, findReplacedReadersOfRecreateTargets as Kc, ensureAssetStorage as Kd, removeProtectionTypes as Ki, malformedResourcePropertiesWarning as Kl, NESTED_PENDING_PARENT_REASON as Kn, attemptedPolicyDocument as Ko, stripSiblingOwnedParentMembers as Kr, isIamRoleArn as Ks, vectorIndexesSettled as Kt, normalizeRecordName as Ku, isProtectionValueActive as L, withPreviousPolicies as La, withSharedDrainBudget as Lc, rewriteTemplateAssetReferences as Ld, recheckFailedPlan as Li, refuseMalformedResourceEntries as Ll, childStackTags as Ln, declaredPolicyDocument as Lo, differingRemedy as Lr, isSettledInstanceState as Ls, takeTagWrite as Lt, withoutAcceptedSdkUnwiredProperties as Lu, serviceTokenBlockingReason as M, supersededResourcesOf as Ma, isImpossibleEmptyStoredAttribute as Mc, isDefaultBootstrapBucketName as Md, seedsDeleteFirstGuard as Mi, malformedLocalResourceEntriesWarning as Ml, deleteSignalReceiver as Mn, KMS_DEFAULT_KEY_POLICY_ID as Mo, rollbackOrphanIds as Mr, IntrinsicFunctionResolver as Ms, declaredTagsReadback as Mt, hasReadableResources as Mu, diffSecurity as N, withoutSuperseded as Na, carriesFetchableDynamicReference as Nc, isDefaultBootstrapRepoName as Nd, demoteSupersededOrphans as Ni, malformedLocalResourcesWarning as Nl, isReceiver as Nn, LAMBDA_PERMISSION_STATEMENT_KEYS as No, withMovedTo as Nr, isSelectOutOfBounds as Ns, isDynamoDBTableArnIn as Nt, findActionableSdkUnwired as Nu, scanActiveConsumers as O, supersededAfterRollback as Oa, referenceProvenanceOf as Oc, buildAssetRedirectMap as Od, reserveStackCreateToken as Oi, repairMalformedOrphanRecordsForReadOnly as Ol, refactorMarkerRefusalMessage as On, getStackRecords as Oo, orphanedLogicalIds as Or, withIndeterminateGuard as Os, tableDeleteGoneWait as Ot, STATE_RESOURCES_MALFORMED as Ou, recordedProtectionEvidence as P, replacedDeleteFailureVerdict as Pa, isNamelessDynamicReferenceError as Pc, loadPublishableAssetManifest as Pd, isJournaledOrphan as Pi, malformedResourceEntriesWarning as Pl, removeSignalReceiverNamed as Pn, OWN_WRITE_REREAD_DELAYS_MS as Po, changedReferenceInDiff as Pr, isAlwaysLiveAttribute as Ps, recordTagWrite as Pt, findHandledUnwrittenCreateOnly as Pu, streamTagsMatchDeclared as Q, journaledOrphanPrintingBag as Qa, renderStatefulReason as Qc, readBootstrapMarkerBody as Qd, retiredNameGenerationsAfter as Qi, repairMalformedResourcePropertiesForReadOnly as Ql, recordDisplacedSkips as Qn, wouldReturnToSdkProvider as Qo, siblingRecordedSgRuleIds as Qr, envCredentialsAreAssumedRole as Qs, planContributorInsightsOp as Qt, isKnownTokenFreeState as Qu, perType as R, findNestedStackTypeChanges as Ra, namesRecreatedParent as Rc, AssetManifestLoader as Rd, recordUnderIdIsNotOwn as Ri, refuseMalformedResourceEntriesForDeploy as Rl, literalRowTags as Rn, efsPolicyMatchesDeclared as Ro, isPairableType as Rr, connectInstanceIdOf as Rs, isTtlAlreadyDisabled as Rt, withoutSdkUnwiredProperties as Ru, refusePendingMovesOut as S, DEFAULT_RESOURCE_TIMEOUT_MS as Sa, promoteInPlaceAttributeDependents as Sc, ssmResolvedValueType as Sd, updatePartialMessage as Si, malformedOrphanRecordsWarning as Sl, NestedCleanupQueue as Sn, collectPrincipalsAttachingPolicy as So, noEchoMacVerdict as Sr, waitForGoneAfterDelete as Ss, mapSSESpecification as St, refuseMalformedResourcesForExport as Su, slashedSsmNameHealAdoptedNote as T, deleteSupersededEntry as Ta, recordedOutputReferenceRegions as Tc, decodeListingKey as Td, replacementCreateRoutesToCloudControl as Ti, refuseMalformedOrphanRecords as Tl, readRefactorMarker as Tn, withoutSiblingOwned as To, findDestructiveChanges as Tr, deleteIndeterminateGuards as Ts, readCapacityNumber as Tt, JSON_LISTING_HOLE_VALUE as Tu, declaredStreamPolicyMember as U, red as Ua, siblingsOf as Uc, warnAbsoluteAssetPath as Ud, readsRegeneratingSecret as Ui, repairMalformedResourceEntriesForReadOnly as Ul, startForceQuitFlushes as Un, settleDeclaredMember as Uo, proposeRenames as Ur, assertFlagRoleArn as Us, planVectorIndexUpdates as Ut, dropSupersededProviderReplacements as Uu, STREAM_POLICY_KEY as V, gray as Va, markNewValueKnownAfterDeploy as Vc, parseAssetManifestBody as Vd, computeImplicitDeleteEdges as Vi, refuseMalformedResourceEntriesForImportSave as Vl, licensedNameHolder as Vn, policyDocumentMatchesDeclared as Vo, parseMappingFile as Vr, refuseUnreadableCdkCrossAccountRefs as Vs, readTtlSpec as Vt, hasNoCloudControlHandlers as Vu, declaredStreamTagsMember as W, yellow as Wa, LEGACY_HANDLE_ID_PREFIX as Wc, warnWholeAssemblyAsSource as Wd, segmentCleanupOptions as Wi, unreadableResourceEntries as Wl, pendingRequestCount as Wn, warnUnsettledMember as Wo, referencedLogicalIds as Wr, assertSendableRoleArn as Ws, readbackVectorIndexes as Wt, providerReplacementOldDeleted as Wu, streamMemberRefusals as X, createReadOnlyAttributeHealerFactory as Xa, isStatefulRecreateTargetForReplace as Xc, getBootstrapMarkerKey as Xd, nameScopeOf as Xi, refuseMalformedResourcePropertiesForExport as Xl, getNestedRevertRun as Xn, ccBrokenReason as Xo, sgSiblingDecidedById as Xr, applyCallerIdentityCredentials as Xs, contributorInsightsRefusals as Xt, S3StateBackend as Xu, streamDeclaresTags as Y, withAttemptedItemsMasked as Ya, MULTI_REGION_RECREATE_BLOCKED_TYPES as Yc, isCrossRegionRedirect as Yd, nameGenerationHighWaterOf as Yi, refuseMalformedResourcePropertiesForDrift as Yl, dropSettledNestedJournals as Yn, ProviderRegistry as Yo, sgRuleOwnershipIdentity as Yr, AWS_CREDENTIAL_ENV_KEYS as Ys, completeTableContributorInsightsBaseline as Yt, TemplateParser as Yu, streamPolicyMatchesDeclared as Z, completedReplayEntries as Za, isStatefulRecreateTargetSync as Zc, parseBootstrapMarker as Zd, retiredAfterRollback as Zi, refuseMalformedResourcePropertiesForOrphan as Zl, nestedChildStackName as Zn, isCustomResource as Zo, siblingOwnedSgRuleIdentities as Zr, callerEnvCredentials as Zs, indexDeclaresContributorInsights as Zt, splitImportedOps as Zu, readRecordedConditionVerdicts as _, noEchoParameterValueSeed as _a, refStateLookupFromResource as _c, listNestedTemplateRows as _d, resolveBucketRegion as _f, withUnprovenUnsettled as _i, declaresNoEcho as _l, waitForIndexesSettled as _n, unsupportedFinalSnapshotError as _o, crossStackReadsForPartialSave as _r, localCustomResourceRuntimeActive as _s, KINESIS_DISABLE_PENDING_STATUSES as _t, malformedRenderedContainersWarning as _u, mergeNoChangeOutputs as a, reachableDivergentParameters as aa, dnsEntryStrings as ac, applyCrossPrefixScan as ad, hasOwnKey as af, canonicalizeIpv6Cidr as ai, secretPhysicalIdSegment as al, DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS as an, secretNamedRecordNeedles as ao, deleteJournaledOrphans as ar, customResourceResponseExpirationWarning as as, projectIndexesOnto as at, repairMalformedOrphansForReadOnly as au, pendingMovesOutOf as b, isExportAliasCollision as ba, parseWebACLArn as bc, SSM_PARAMETER_VALUE_PREFIX as bd, equalModuloMask as bi, isReadableOrphanRecord as bl, hasCdkAutoDeleteTag as bn, collectGroupsAddedBySiblings as bo, noEchoMacBinding as br, waitForLambdaFunctionActive as bs, isPlainCapacityBlock as bt, refuseMalformedResourcesForDeploy as bu, nestedSsmNameRowNote as c, displayTextOrWithheld as ca, s3BucketDualStackDomainName as cc, isNotImplemented as cd, ownValue as cf, replayFailedOperations as ci, getSettledWriteOnlyPropertyPaths as cl, deleteBudgetKey as cn, storedSecretNameNeedles as co, isHandledOrphan as cr, readsNoEchoDeleteValues as cs, coerceWarmThroughput as ct, malformedLocalOutputsWarning as cu, makeCanonicalizePropertiesFn as d, secretBearingStateKeyWarning as da, coerceParameterTypedValue as dc, isSecretValuedAttribute as dd, describeFileReadFailure as df, PLANNED_EARLY_DELETE_CONSEQUENCE as di, inputFingerprinter as dl, DELETE_INDEX_WAIT_PROCEED_NOTE as dn, PRE_DELETE_SNAPSHOT_TYPES as do, sameJournaledOrphans as dr, withPrintingSecrets as ds, isRefusedWarmThroughput as dt, refuseMalformedNestedChildOutputs as du, withNameGenerationReached as ea, classifyReplaySecretRegion as ec, hasReasonlessBaselineRefusal as ed, validateContainerRepoName as ef, SG_RULE_ID_PATTERN as ei, toCfnInteger as el, readContributorInsightsSpec as en, namingSecretsWithRecordedNoEcho as eo, revertedNestedRowIds as er, classifyHandleUrl as es, declaresIndexList as et, hasReadableOrphans as eu, readDbInstanceAvailabilityZone as f, secretSafeKeyDisplay as fa, isUnboundTemplateParameter as fc, isSensitiveAttributeName as fd, displayAssemblyPath as ff, earlyDeleteWhen as fi, maskedPropertyFingerprintsOf as fl, INDEX_SETTLE_POLL_INTERVAL_MS as fn, ccRoutedFinalSnapshotError as fo, makeForeignHolderScan as fr, NO_LOCAL_CUSTOM_RESOURCES_FLAG as fs, readbackWarmThroughput as ft, refuseMalformedOutputs as fu, parentSuppliedValues as g, isWholeDynamicReferenceValue as ga, isStalePlaceholderArnAttribute as gc, isAbsoluteAssetPath as gd, clearBucketRegionCache as gf, settleUnsettledPrevious as gi, passedParameterClassesOf as gl, relayedIndexBusyDelete as gn, refusesFinalSnapshot as go, DeploymentEventsStore as gr, localCustomResourceCommand as gs, KINESIS_DESTINATION_SETTLE_POLL_MS as gt, refuseDivergentRecordRegionForDestroy as gu, conditionInputsFrom as h, exportNameSecretExposure as ha, cfnRefValueFromPhysicalId as hc, findNestedTemplateTreeDefect as hd, resolveAssemblyPath as hf, recordAfterRollbackUpdate as hi, maskedInputProof as hl, maskedLogger as hn, isFinalSnapshotError as ho, DeploymentEventsReader as hr, customResourcesRunWithoutApp as hs, warmThroughputAlreadyMatches as ht, STATE_REGION_DIVERGED as hu, keptWholeReasonText as i, namesAnyDeclaredParameter as ia, isUnexposedRecordedIdentity as ic, CrossPrefixScanCache as id, defineOwnKey as if, sgProtocolKey as ii, maskedSecretSegment as il, DYNAMODB_DELETE_DEADLINE_MARGIN_MS as in, secretNamedAttributeNamesOf as io, withNestedStackContext as ir, applyCustomResourceResponseExpiration as is, localSecondaryIndexesKey as it, refuseMalformedOrphansForDestroy as iu, findServiceTokenRefusals as j, supersededHolderOf as ja, getAccountInfo as jc, flattenAssetPlaceholders as jd, planRollback as ji, isReadableResourceEntry as jl, updateRefactorMarker as jn, withStackRecords as jo, movedToHint as jr, markWaitAbandoned as js, clearTagWrites as jt, hasReadableOutputs as ju, inRunStackKey as k, supersededDependentsFirst as ka, referenceTokensIn as kc, createAssetRedirectResolver as kd, withCreateTokenLedger as ki, unpreviewableOrphanRecords as kl, refuseRefactorMarker as kn, revertStackRecordsView as ko, findRefactorHints as kr, getReadOnlyPropertyPaths as ks, tableNameReleaseWait as kt, UNREADABLE_RESOURCES_MAP_ROW as ku, crossStackOutputProvenanceSource as l, exportAliasCollisionScrubWarning as la, s3BucketRegionalDomainName as lc, stackInstanceIdOf as ld, absoluteAssemblyPathEscape as lf, replayRollback as li, getTopLevelKeysHoldingUnreadableCreateOnly as ll, resolveDynamoDbDeleteBudgetClock as ln, extractDeploymentEventError as lo, journaledOrphanLines as lr, isCustomResourceType$1 as ls, declaresWarmThroughput as lt, malformedOutputsRefusalMessage as lu, conditionFingerprint as m, exportNameNoEchoParameters as ma, AWS_NO_VALUE as mc, missingStateBucketRemedy as md, renderAssemblyPathEscape as mf, buildReadCurrentStateContext as mi, parameterInputsFor as ml, deleteTableWithIndexBusyRetry as mn, effectiveDeletionPolicy as mo, planOrphanAdoption as mr, customResourcesFailedWithoutApp as ms, trimUnsentWarmMembers as mt, repairMalformedOutputsForReadOnly as mu, applyStackTagsToTemplate as n, inheritProducerRegions as na, regionLessSecretName as nc, rebuildClientForBucketRegion as nd, getCdkdAssetBucketName as nf, recordedSgRuleId as ni, APPSYNC_APIKEY_ARN_RESOURCE_PATH as nl, reverseMapTableContributorInsights as nn, secretNamePrintingBag as no, collectNestedChildUnaddressed as nr, isSignalKey as ns, desiredIndexEntriesByName as nt, malformedOrphansWarning as nu, checkNestedSsmNames as o, resourcesNamingDeclaredParameter as oa, s3BucketArn as oc, crossPrefixDeniedWarning as od, hasPlainPrototype as of, canonicalizeIpv4Cidr as oi, secretSegmentsOfState as ol, beginDeleteWait as on, stackSecretNamesMasker as oo, dropFailedCommands as or, responsePresignClient as os, reverseMapSecondaryIndex as ot, malformedExportNamesWarning as ou, healZonelessDbInstanceRecords as p, carriedExportAliasExposure as pa, parameterTypeMayLoseSecretIdentity as pc, stringifyValue as pd, namesTheSameDirectory as pf, earlyDeletedOld as pi, movedMaskedProperties as pl, TABLE_INDEX_NOUN as pn, ccRoutedInstanceTakesNoSnapshot as po, makeSiblingClaimReader as pr, customResourceStackName as ps, sentWarmThroughputMembers as pt, refuseMalformedOutputsForDestroy as pu, reverseMapStreamPolicy as q, noEchoExactEchoLeavesOf as qa, isPlainReferenceTo as qc, buildDenyExternalAccessPolicy as qd, orphanNeedsIdentity as qi, refuseMalformedResourceProperties as ql, displacedOpClause as qn, policyContentKey as qo, undeclaredGrantSiblingMembers as qr, parseIamRoleArn as qs, vectorIndexesShapeDetail as qt, planSubscriptionAttributes as qu, isSecretBearingReferenceString as r, computeParameterTaint as ra, withoutLapsedStaleShapeStamp as rc, CrossPrefixReadError as rd, getCdkdContainerRepoName as rf, sgCidrKey as ri, displayPhysicalId as rl, stripIndexContributorInsights as rn, secretNamePrintingBags as ro, getCurrentNestedStackContext as rr, CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID as rs, gsiUnsendableChangeRefusal as rt, refuseMalformedOrphans as ru, nestedSsmNameDeferredNote as s, WITHHELD_NAME_DISPLAY as sa, s3BucketDomainName as sc, isAccessDenied$1 as sd, nullPrototypeRecord as sf, canonicalizeIpProtocolValue as si, withSecretPhysicalIdsMaskedInState as sl, compensateRemovedDeletionProtection as sn, stateSecretNameNeedles as so, dropFailedHint as sr, TemplateNoEchoReresolver as ss, sameJsonValue as st, malformedExportSourceWarning as su, DeployEngine as t, getCurrentProducerRegions as ta, producerRegionsFromState as tc, hasUnverifiableParameterRefusal as td, BOOTSTRAP_MARKER_PREFIX as tf, cfnIngressPortValue as ti, toFiniteNumber as tl, reverseMapIndexContributorInsights as tn, orphanRecordsPrintingBag as to, withNestedRevertRun as tr, evaluateSignals as ts, deletionProtectionRefusal as tt, malformedOrphansRefusalMessage as tu, inheritedProvenanceForChildDiff as u, secretBearing as ua, s3BucketWebsiteUrl as uc, withStackInstanceIdWithheld as ud, assemblyPathEscape as uf, DELETED_RESOURCE_REMEDY as ui, tryGetTopLevelWriteOnlyProperties as ul, resolveDynamoDbDeleteBudgetMs as un, ATOMIC_FINAL_SNAPSHOT_TYPES as uo, loadJournaledOrphans as ur, getCurrentResourceSecrets as us, desiredBagIsInformative as ut, malformedOutputsWarning as uu, childTemplateLoader as v, collectDeclaredOutputNames as va, lacksRecordedRefArn as vc, renderNestedTemplateTreeDefect as vd, calculateResourceDrift as vi, maskedPropertyFingerprint as vl, ECR_AUTO_DELETE_IMAGES_TAG as vn, createPreDeleteFinalSnapshot as vo, NOECHO_MAC_KEY_ALIAS as vr, setLocalCustomResourceRuntimeEnabled as vs, deleteTableRetryDelays as vt, malformedResourcesWarning as vu, healSlashedSsmParameterNames as w, maskingRetryLogger as wa, outputReferenceProvenanceOf as wc, purgeNoncurrentKeyVersions as wd, findUpdatePolicyReplacementRefusals as wi, previewableOrphanRecords as wl, recordRetainedForReadoption as wn, withoutSiblingAttachedArns as wo, constructPathOf as wr, UNSPECIFIED_SKIP_REASON as ws, pointInTimeRecoveryRefusal as wt, repairMalformedResourcesForReadOnly as wu, pendingMovesRefusalMessage as x, bindingSkippedOutputs as xa, extractGetAttRefs as xc, isListParameterType as xd, undeclaredEmptyObservedKeys as xi, malformedOrphanRecordsRefusalMessage as xl, isTruthyCfnBoolean as xn, collectManagedPolicyArnsAttachedBySiblings as xo, noEchoMacParametersOf as xr, CloudControlProvider as xs, isTableName as xt, refuseMalformedResourcesForDestroy as xu, hasPendingMovesOut as y, collectPublishedOutputNames as ya, lacksRecordedTableArn as yc, templateIdentity as yd, equalModuloMarkedMask as yi, deployRefusesOrphanRowsReason as yl, S3_AUTO_DELETE_OBJECTS_TAG as yn, buildFinalSnapshotIdentifier as yo, createNoEchoValueMacs as yr, withCustomResourceStack as ys, hasUsableDeclaredCapacity as yt, malformedStateRefusalMessage as yu, readProtection as z, bold as za, INTRINSIC_KEYS as zc, getDockerImageBySourceHash as zd, replacementNeverSwapped as zi, refuseMalformedResourceEntriesForDestroy as zl, macWriteOnlyKeys as zn, lambdaPermissionMatchesDeclared as zo, looselyEqual as zr, resolveDynamicReferences as zs, isTtlRateLimited as zt, withoutUnwrittenSdkUnwiredProperties as zu };
|
|
59059
|
-
//# sourceMappingURL=deploy-engine-
|
|
60032
|
+
export { streamTagsMatchDeclared as $, journaledOrphanPrintingBag as $a, withSecretPhysicalIdsMaskedInState as $c, resolveAssemblyPath as $d, resourcesNamingDeclaredParameter as $i, malformedOutputsWarning as $l, recordDisplacedSkips as $n, wouldReturnToSdkProvider as $o, siblingRecordedSgRuleIds as $r, callerEnvCredentials as $s, planContributorInsightsOp as $t, findNestedTemplateTreeDefect as $u, deferredServiceTokenWarning as A, withPreviousPolicies as Aa, carriesFetchableDynamicReference as Ac, ensureAssetStorage as Ad, recheckFailedPlan as Ai, refuseMalformedResourceEntriesForImport as Al, refuseRefactorMarker as An, revertStackRecordsView as Ao, findRefactorHints as Ar, getReadOnlyPropertyPaths as As, tableNameReleaseWait as At, providerReplacementOldDeleted as Au, readProtection as B, bold as Ba, shownType as Bc, getCdkdAssetBucketName as Bd, orphanNeedsIdentity as Bi, refuseMalformedResourcePropertiesForOrphan as Bl, macWriteOnlyKeys as Bn, lambdaPermissionMatchesDeclared as Bo, looselyEqual as Br, connectInstanceIdOf as Bs, isTtlRateLimited as Bt, rebuildClientForBucketRegion as Bu, warnLegacySpelling as C, supersededHeldByOtherTypeWarning as Ca, keepHeldTokenProvenance as Cc, getDockerImageBySourceHash as Cd, acquireIdempotencyToken as Ci, malformedLocalResourcesWarning as Cl, NestedCleanupQueue as Cn, collectPrincipalsAttachingPolicy as Co, noEchoMacVerdict as Cr, waitForGoneAfterDelete as Cs, mapSSESpecification as Ct, findHandledUnwrittenCreateOnly as Cu, slashedSsmNameHealPendingNote as D, replacedDeleteFailureVerdict as Da, withoutVersionAttestation as Dc, warnAbsoluteAssetPath as Dd, isJournaledOrphan as Di, refuseMalformedResourceEntries as Dl, readRefactorMarkerOnce as Dn, awaitInFlightSibling as Do, formatChangeCounts as Dr, deleteLeftInPlace as Ds, sseSpecificationRefusal as Dt, NO_CC_HANDLERS_REASON as Du, slashedSsmNameHealNote as E, withoutSuperseded as Ea, recordedReferenceRegions as Ec, resolveFileAssetSourcePath as Ed, demoteSupersededOrphans as Ei, refuseMalformedResourceAttributesForOrphan as El, readRefactorMarker as En, withoutSiblingOwned as Eo, findDestructiveChanges as Er, deleteIndeterminateGuards as Es, readCapacityNumber as Et, withoutSdkUnwiredProperties as Eu, recordedProtectionEvidence as F, sgCidrKey as Fa, INTRINSIC_KEYS as Fc, parseBootstrapMarker as Fd, attemptUsesCompletedCreate as Fi, malformedDriftResourcePropertiesWarning as Fl, removeSignalReceiverNamed as Fn, OWN_WRITE_REREAD_DELAYS_MS as Fo, changedReferenceInDiff as Fr, isSelectOutOfBounds as Fs, recordTagWrite as Ft, S3StateBackend as Fu, declaredStreamTagsMember as G, yellow as Ga, isWarmThroughputDecrease as Gc, nullPrototypeRecord as Gd, retiredNameGenerationsAfter as Gi, malformedOrphansWarning as Gl, pendingRequestCount as Gn, warnUnsettledMember as Go, referencedLogicalIds as Gr, assertFlagRoleArn as Gs, readbackVectorIndexes as Gt, isAccessDenied$1 as Gu, STREAM_POLICY_KEY as H, gray as Ha, isStatefulRecreateTargetForReplace as Hc, defineOwnKey as Hd, nameGenerationHighWaterOf as Hi, UNREADABLE_ORPHANS_CONTAINER_ROW as Hl, licensedNameHolder as Hn, policyDocumentMatchesDeclared as Ho, parseMappingFile as Hr, producerLookupOver as Hs, readTtlSpec as Ht, CrossPrefixScanCache as Hu, recordedProtectionNote as I, sgProtocolKey as Ia, LEGACY_HANDLE_HEAL_REASON as Ic, readBootstrapMarkerBody as Id, readsRegeneratingSecret as Ii, malformedResourcePropertiesWarning as Il, settleStackTagChildRuns as In, SNS_DEFAULT_POLICY_ID as Io, changedReferencePath as Ir, isAlwaysLiveAttribute as Is, settleWrittenTags as It, splitImportedOps as Iu, reverseMapStreamPolicy as J, noEchoExactEchoLeavesOf as Ja, APPSYNC_APIKEY_ARN_RESOURCE_PATH as Jc, assemblyPathEscape as Jd, getCurrentProducerRegions as Ji, repairMalformedOrphansForReadOnly as Jl, displacedOpClause as Jn, policyContentKey as Jo, undeclaredGrantSiblingMembers as Jr, isIamRoleArn as Js, vectorIndexesShapeDetail as Jt, withStackInstanceIdWithheld as Ju, planStreamMemberOps as K, noEchoAttributeNamesOf as Ka, toCfnInteger as Kc, ownValue as Kd, retiredNameGenerationsLeaving as Ki, refuseMalformedOrphans as Kl, resolvePendingCloudControlRequests as Kn, verbatimEchoDriftKeys as Ko, siblingOwnedRevertDesired as Kr, assertSendableRoleArn as Ks, vectorIndexesForCreate as Kt, isNotImplemented as Ku, PROTECTION_PROPERTY_BY_TYPE as L, canonicalizeIpv6Cidr as La, LEGACY_HANDLE_ID_PREFIX as Lc, validateAssetBucketName as Ld, segmentCleanupOptions as Li, refuseMalformedResourcePropertiesForDestroy as Ll, childRowTags as Ln, declaredMemberDocument as Lo, changedReferenceReason as Lr, poisonRenderedSpellingsCollidingIn as Ls, tagsMatchDeclared as Lt, readOnlyStateVersionOf as Lu, serviceTokenBlockingReason as M, SG_RULE_ID_PATTERN as Ma, carriesDynamicReference as Mc, assertAssetBucketRegion as Md, replacementNeverSwapped as Mi, refuseMalformedResourceEntriesForOrphan as Ml, updateRefactorMarker as Mn, withStackRecords as Mo, movedToHint as Mr, markWaitAbandoned as Ms, clearTagWrites as Mt, planSubscriptionAttributes as Mu, diffSecurity as N, cfnIngressPortValue as Na, keepsSecretReferenceToken as Nc, isCrossRegionRedirect as Nd, IMPLICIT_DELETE_DEPENDENCIES as Ni, repairMalformedResourceEntriesForReadOnly as Nl, deleteSignalReceiver as Nn, KMS_DEFAULT_KEY_POLICY_ID as No, rollbackOrphanIds as Nr, DiffCalculator as Ns, declaredTagsReadback as Nt, wireAttributeValue as Nu, scanActiveConsumers as O, snapshotSegmentSurvivors as Oa, getAccountInfo as Oc, warnWholeAssemblyAsSource as Od, isReplacementOrphan as Oi, refuseMalformedResourceEntriesForDeploy as Ol, refactorMarkerMovesOf as On, destroyStackRecordsView as Oo, formatDestructiveChange as Or, deleteSkipReason as Os, sseSpecificationToSend as Ot, hasNoCloudControlHandlers as Ou, isScrutinizedProperty as P, recordedSgRuleId as Pa, withSharedDrainBudget as Pc, getBootstrapMarkerKey as Pd, computeImplicitDeleteEdges as Pi, unreadableResourceEntries as Pl, isReceiver as Pn, LAMBDA_PERMISSION_STATEMENT_KEYS as Po, withMovedTo as Pr, IntrinsicFunctionResolver as Ps, isDynamoDBTableArnIn as Pt, TemplateParser as Pu, streamPolicyMatchesDeclared as Q, completedReplayEntries as Qa, secretSegmentsOfState as Qc, renderAssemblyPathEscape as Qd, reachableDivergentParameters as Qi, malformedOutputsRefusalMessage as Ql, nestedChildStackName as Qn, isCustomResource as Qo, siblingOwnedSgRuleIdentities as Qr, applyCallerIdentityCredentials as Qs, indexDeclaresContributorInsights as Qt, missingStateBucketRemedy as Qu, isProtectionValueActive as R, canonicalizeIpv4Cidr as Ra, isLegacyHandleId as Rc, validateContainerRepoName as Rd, removeProtectionTypeList as Ri, refuseMalformedResourcePropertiesForDrift as Rl, childStackTags as Rn, declaredPolicyDocument as Ro, differingRemedy as Rr, stackIdTailOf as Rs, takeTagWrite as Rt, hasReasonlessBaselineRefusal as Ru, refusePendingMovesOut as S, supersededDependentsFirst as Sa, parseWebACLArn as Sc, AssetManifestLoader as Sd, withCreateTokenLedger as Si, malformedLocalResourceEntriesWarning as Sl, isTruthyCfnBoolean as Sn, collectManagedPolicyArnsAttachedBySiblings as So, noEchoMacParametersOf as Sr, CloudControlProvider as Ss, isTableName as St, findActionableSdkUnwired as Su, slashedSsmNameHealAdoptedNote as T, supersededResourcesOf as Ta, recordedOutputReferenceRegions as Tc, parseAssetManifestBody as Td, seedsDeleteFirstGuard as Ti, malformedScrubResourceEntriesRefusalMessage as Tl, recordRetainedForReadoption as Tn, withoutSiblingAttachedArns as To, constructPathOf as Tr, UNSPECIFIED_SKIP_REASON as Ts, pointInTimeRecoveryRefusal as Tt, unwrittenCreateOnlyReplacement as Tu, STREAM_TAGS_KEY as U, green as Ua, isStatefulRecreateTargetSync as Uc, hasOwnKey as Ud, nameScopeOf as Ui, hasReadableOrphans as Ul, formatResourceLine as Un, reReadUntilSettled as Uo, propertiesChangedReason as Ur, refuseUnreadableCdkCrossAccountRefs as Us, sendTtlWaitingOutRateLimit as Ut, applyCrossPrefixScan as Uu, DynamoDBGlobalTableProvider as V, cyan as Va, MULTI_REGION_RECREATE_BLOCKED_TYPES as Vc, getCdkdContainerRepoName as Vd, nameGenerationCarriedFrom as Vi, repairMalformedResourcePropertiesForReadOnly as Vl, readsOnlyNoEchoParameters as Vn, memberReadFailure as Vo, mappingPairs as Vr, resolveDynamicReferences as Vs, planTimeToLive as Vt, CrossPrefixReadError as Vu, declaredStreamPolicyMember as W, red as Wa, renderStatefulReason as Wc, hasPlainPrototype as Wd, retiredAfterRollback as Wi, malformedOrphansRefusalMessage as Wl, startForceQuitFlushes as Wn, settleDeclaredMember as Wo, proposeRenames as Wr, applyRoleArnIfSet as Ws, planVectorIndexUpdates as Wt, crossPrefixDeniedWarning as Wu, streamDeclaresTags as X, withAttemptedItemsMasked as Xa, maskedSecretSegment as Xc, displayAssemblyPath as Xd, computeParameterTaint as Xi, malformedExportSourceWarning as Xl, dropSettledNestedJournals as Xn, ProviderRegistry as Xo, sgRuleOwnershipIdentity as Xr, sendableAssumeRoleCommand as Xs, completeTableContributorInsightsBaseline as Xt, isSensitiveAttributeName as Xu, streamDeclaresPolicy as Y, noEchoParameterNamesOf as Ya, displayPhysicalId as Yc, describeFileReadFailure as Yd, inheritProducerRegions as Yi, malformedExportNamesWarning as Yl, displacedPhysicalIdShown as Yn, CC_BROKEN_REASON as Yo, recordedRuleIdOf as Yr, parseIamRoleArn as Ys, CONTRIBUTOR_INSIGHTS_KEY as Yt, isSecretValuedAttribute as Yu, streamMemberRefusals as Z, createReadOnlyAttributeHealerFactory as Za, secretPhysicalIdSegment as Zc, namesTheSameDirectory as Zd, namesAnyDeclaredParameter as Zi, malformedLocalOutputsWarning as Zl, getNestedRevertRun as Zn, ccBrokenReason as Zo, sgSiblingDecidedById as Zr, AWS_CREDENTIAL_ENV_KEYS as Zs, contributorInsightsRefusals as Zt, stringifyValue as Zu, readRecordedConditionVerdicts as _, maskingRetryLogger as _a, cfnRefValueFromPhysicalId as _c, isDefaultBootstrapRepoName as _d, findUpdatePolicyReplacementRefusals as _i, refuseMalformedOrphansForOrphan as _l, relayedIndexBusyDelete as _n, refusesFinalSnapshot as _o, DeploymentEventsStore as _r, localCustomResourceCommand as _s, KINESIS_DESTINATION_SETTLE_POLL_MS as _t, STATE_RESOURCES_MALFORMED as _u, mergeNoChangeOutputs as a, secretSafeKeyDisplay as aa, withoutLapsedStaleShapeStamp as ac, isListParameterType as ad, earlyDeleteWhen as ai, maskedInputProof as al, DYNAMODB_DELETE_DEADLINE_MARGIN_MS as an, secretNamedAttributeNamesOf as ao, withNestedStackContext as ar, applyCustomResourceResponseExpiration as as, localSecondaryIndexesKey as at, refuseDivergentRecordRegionForDestroy as au, pendingMovesOutOf as b, isSupersededResourceRecord as ba, lacksRecordedRefArn as bc, redirectFileAsset as bd, ledgerForStack as bi, unreadableOrphanRecords as bl, S3_AUTO_DELETE_OBJECTS_TAG as bn, buildFinalSnapshotIdentifier as bo, createNoEchoValueMacs as br, withCustomResourceStack as bs, hasUsableDeclaredCapacity as bt, hasReadableOutputs as bu, nestedSsmNameRowNote as c, exportNameSecretExposure as ca, s3BucketArn as cc, purgeNoncurrentKeyVersions as cd, recordAfterRollbackUpdate as ci, maskedPropertyFingerprint as cl, compensateRemovedDeletionProtection as cn, stateSecretNameNeedles as co, dropFailedHint as cr, TemplateNoEchoReresolver as cs, sameJsonValue as ct, malformedStateRefusalMessage as cu, makeCanonicalizePropertiesFn as d, collectDeclaredOutputNames as da, s3BucketRegionalDomainName as dc, synthesizedStacks as dd, calculateResourceDrift as di, malformedOrphanRecordsRefusalMessage as dl, resolveDynamoDbDeleteBudgetMs as dn, ATOMIC_FINAL_SNAPSHOT_TYPES as do, loadJournaledOrphans as dr, getCurrentResourceSecrets as ds, desiredBagIsInformative as dt, refuseMalformedResourcesForExport as du, WITHHELD_NAME_DISPLAY as ea, envCredentialsAreAssumedRole as ec, isAbsoluteAssetPath as ed, clearBucketRegionCache as ef, withoutSiblingOwnedSgRules as ei, getSettledWriteOnlyPropertyPaths as el, planIndexContributorInsightsOps as en, maskEventTextWithBoundBags as eo, revertNestedChildFromJournal as er, WaitConditionSignalStore as es, canonicalizeStaleIndexDescription as et, refuseMalformedNestedChildOutputs as eu, readDbInstanceAvailabilityZone as f, collectPublishedOutputNames as fa, s3BucketWebsiteUrl as fc, buildAssetRedirectMap as fd, equalModuloMarkedMask as fi, malformedOrphanRecordsWarning as fl, DELETE_INDEX_WAIT_PROCEED_NOTE as fn, PRE_DELETE_SNAPSHOT_TYPES as fo, sameJournaledOrphans as fr, withPrintingSecrets as fs, isRefusedWarmThroughput as ft, refuseMalformedState as fu, parentSuppliedValues as g, DEFAULT_RESOURCE_WARN_AFTER_MS as ga, AWS_NO_VALUE as gc, isDefaultBootstrapBucketName as gd, updatePartialReason as gi, refuseMalformedOrphanRecordsForDestroy as gl, maskedLogger as gn, isFinalSnapshotError as go, DeploymentEventsReader as gr, customResourcesRunWithoutApp as gs, warmThroughputAlreadyMatches as gt, withheldAccountClause as gu, conditionInputsFrom as h, DEFAULT_RESOURCE_TIMEOUT_MS as ha, parameterTypeMayLoseSecretIdentity as hc, flattenAssetPlaceholders as hd, updatePartialMessage as hi, refuseMalformedOrphanRecords as hl, deleteTableWithIndexBusyRetry as hn, effectiveDeletionPolicy as ho, planOrphanAdoption as hr, customResourcesFailedWithoutApp as hs, trimUnsentWarmMembers as ht, accountArgs as hu, keptWholeReasonText as i, secretBearingStateKeyWarning as ia, regionLessSecretName as ic, SSM_PARAMETER_VALUE_PREFIX as id, PLANNED_EARLY_DELETE_CONSEQUENCE as ii, parameterInputsFor as il, stripIndexContributorInsights as in, secretNamePrintingBags as io, getCurrentNestedStackContext as ir, CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID as is, gsiUnsendableChangeRefusal as it, STATE_REGION_DIVERGED as iu, findServiceTokenRefusals as j, findNestedStackTypeChanges as ja, isNamelessDynamicReferenceError as jc, buildDenyExternalAccessPolicy as jd, recordUnderIdIsNotOwn as ji, refuseMalformedResourceEntriesForImportSave as jl, sameMove as jn, verifiedIdentityCache as jo, hintSidesOf as jr, isWaitAbandonedError as js, TAGS_BASELINE_REREAD_DELAYS_MS as jt, normalizeRecordName as ju, inRunStackKey as k, resolveReplacementOldType as ka, isImpossibleEmptyStoredAttribute as kc, AssetModeResolver as kd, planFailedOps as ki, refuseMalformedResourceEntriesForDestroy as kl, refactorMarkerRefusalMessage as kn, getStackRecords as ko, orphanedLogicalIds as kr, withIndeterminateGuard as ks, tableDeleteGoneWait as kt, PROPERTY_COVERAGE_BY_TYPE as ku, crossStackOutputProvenanceSource as l, isWholeDynamicReferenceValue as la, s3BucketDomainName as lc, decodeListingKey as ld, settleUnsettledPrevious as li, deployRefusesOrphanRowsReason as ll, deleteBudgetKey as ln, storedSecretNameNeedles as lo, isHandledOrphan as lr, readsNoEchoDeleteValues as ls, coerceWarmThroughput as lt, refuseMalformedResourcesForDeploy as lu, conditionFingerprint as m, bindingSkippedOutputs as ma, isUnboundTemplateParameter as mc, createLazyAssetModeContext as md, undeclaredEmptyObservedKeys as mi, previewableOrphanRecords as ml, TABLE_INDEX_NOUN as mn, ccRoutedInstanceTakesNoSnapshot as mo, makeSiblingClaimReader as mr, customResourceStackName as ms, sentWarmThroughputMembers as mt, JSON_LISTING_HOLE_VALUE as mu, applyStackTagsToTemplate as n, exportAliasCollisionScrubWarning as na, classifyReplaySecretRegion as nc, renderNestedTemplateTreeDefect as nd, replayRollback as ni, tryGetTopLevelWriteOnlyProperties as nl, reverseMapIndexContributorInsights as nn, orphanRecordsPrintingBag as no, withNestedRevertRun as nr, evaluateSignals as ns, deletionProtectionRefusal as nt, refuseMalformedOutputsForDestroy as nu, checkNestedSsmNames as o, carriedExportAliasExposure as oa, isUnexposedRecordedIdentity as oc, ssmResolvedValueType as od, earlyDeletedOld as oi, passedParameterClassesOf as ol, DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS as on, secretNamedRecordNeedles as oo, deleteJournaledOrphans as or, customResourceResponseExpirationWarning as os, projectIndexesOnto as ot, malformedRenderedContainersWarning as ou, healZonelessDbInstanceRecords as p, isExportAliasCollision as pa, coerceParameterTypedValue as pc, createAssetRedirectResolver as pd, equalModuloMask as pi, malformedOrphanRowsKeptWarning as pl, INDEX_SETTLE_POLL_INTERVAL_MS as pn, ccRoutedFinalSnapshotError as po, makeForeignHolderScan as pr, NO_LOCAL_CUSTOM_RESOURCES_FLAG as ps, readbackWarmThroughput as pt, repairMalformedResourcesForReadOnly as pu, readStreamPolicy as q, noEchoComparisonForTemplate as qa, toFiniteNumber as qc, absoluteAssemblyPathEscape as qd, withNameGenerationReached as qi, refuseMalformedOrphansForDestroy as ql, NESTED_PENDING_PARENT_REASON as qn, attemptedPolicyDocument as qo, stripSiblingOwnedParentMembers as qr, explicitRoleArnOrThrow as qs, vectorIndexesSettled as qt, stackInstanceIdOf as qu, isSecretBearingReferenceString as r, secretBearing as ra, producerRegionsFromState as rc, templateIdentity as rd, DELETED_RESOURCE_REMEDY as ri, maskedPropertyFingerprintsOf as rl, reverseMapTableContributorInsights as rn, secretNamePrintingBag as ro, collectNestedChildUnaddressed as rr, isSignalKey as rs, desiredIndexEntriesByName as rt, repairMalformedOutputsForReadOnly as ru, nestedSsmNameDeferredNote as s, exportNameNoEchoParameters as sa, dnsEntryStrings as sc, CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION as sd, buildReadCurrentStateContext as si, declaresNoEcho as sl, beginDeleteWait as sn, stackSecretNamesMasker as so, dropFailedCommands as sr, responsePresignClient as ss, reverseMapSecondaryIndex as st, malformedResourcesWarning as su, DeployEngine as t, displayTextOrWithheld as ta, classifyRecordedSecretRegion as tc, listNestedTemplateRows as td, resolveBucketRegion as tf, replayFailedOperations as ti, getTopLevelKeysHoldingUnreadableCreateOnly as tl, readContributorInsightsSpec as tn, namingSecretsWithRecordedNoEcho as to, revertedNestedRowIds as tr, classifyHandleUrl as ts, declaresIndexList as tt, refuseMalformedOutputs as tu, inheritedProvenanceForChildDiff as u, noEchoParameterValueSeed as ua, s3BucketDualStackDomainName as uc, rememberSynthesizedStacks as ud, withUnprovenUnsettled as ui, isReadableOrphanRecord as ul, resolveDynamoDbDeleteBudgetClock as un, extractDeploymentEventError as uo, journaledOrphanLines as ur, isCustomResourceType$1 as us, declaresWarmThroughput as ut, refuseMalformedResourcesForDestroy as uu, childTemplateLoader as v, deleteSupersededEntry as va, isStalePlaceholderArnAttribute as vc, loadPublishableAssetManifest as vd, replacementCreateRoutesToCloudControl as vi, repairMalformedOrphanRecordsForReadOnly as vl, waitForIndexesSettled as vn, unsupportedFinalSnapshotError as vo, crossStackReadsForPartialSave as vr, localCustomResourceRuntimeActive as vs, KINESIS_DISABLE_PENDING_STATUSES as vt, UNREADABLE_RESOURCES_MAP_ROW as vu, healSlashedSsmParameterNames as w, supersededHolderOf as wa, outputReferenceProvenanceOf as wc, isCfnTemplateAssetPath as wd, planRollback as wi, malformedResourceEntriesWarning as wl, keptForRetainedRecord as wn, isStoredExpression as wo, noEchoValueMacsOf as wr, RollbackInlinePolicyWriters as ws, maskLeafValue as wt, findSdkUnwiredProperties as wu, pendingMovesRefusalMessage as x, supersededAfterRollback as xa, lacksRecordedTableArn as xc, rewriteTemplateAssetReferences as xd, reserveStackCreateToken as xi, isReadableResourceEntry as xl, hasCdkAutoDeleteTag as xn, collectGroupsAddedBySiblings as xo, noEchoMacBinding as xr, waitForLambdaFunctionActive as xs, isPlainCapacityBlock as xt, hasReadableResources as xu, hasPendingMovesOut as y, holdsSupersededResources as ya, refStateLookupFromResource as yc, redirectDockerAsset as yd, earliestDefined as yi, unpreviewableOrphanRecords as yl, ECR_AUTO_DELETE_IMAGES_TAG as yn, createPreDeleteFinalSnapshot as yo, NOECHO_MAC_KEY_ALIAS as yr, setLocalCustomResourceRuntimeEnabled as ys, deleteTableRetryDelays as yt, displayLogicalId as yu, perType as z, canonicalizeIpProtocolValue as za, findReplacedReadersOfRecreateTargets as zc, BOOTSTRAP_MARKER_PREFIX as zd, removeProtectionTypes as zi, refuseMalformedResourcePropertiesForExport as zl, literalRowTags as zn, efsPolicyMatchesDeclared as zo, isPairableType as zr, isSettledInstanceState as zs, isTtlAlreadyDisabled as zt, hasUnverifiableParameterRefusal as zu };
|
|
60033
|
+
//# sourceMappingURL=deploy-engine-D6iEbD4R.js.map
|