@cdkd/cli 0.373.4 → 0.373.6
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-DtG0A5aG.js → ambient-client-defaults-BqOg0I6e.js} +3 -3
- package/dist/{ambient-client-defaults-DtG0A5aG.js.map → ambient-client-defaults-BqOg0I6e.js.map} +1 -1
- package/dist/{asg-provider-BmCui3zx.js → asg-provider-DkhAcikX.js} +31 -14
- package/dist/{asg-provider-BmCui3zx.js.map → asg-provider-DkhAcikX.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{custom-resource-runtime-pm6t9jBv.js → custom-resource-runtime-CLjuWVBC.js} +6 -6
- package/dist/{custom-resource-runtime-pm6t9jBv.js.map → custom-resource-runtime-CLjuWVBC.js.map} +1 -1
- package/dist/{db-associated-roles-C607MnbC.js → db-associated-roles-CCgL0Loo.js} +2 -2
- package/dist/{db-associated-roles-C607MnbC.js.map → db-associated-roles-CCgL0Loo.js.map} +1 -1
- package/dist/{delete-started-C_hilY_A.js → delete-started-C9z4Yf_c.js} +4 -4
- package/dist/{delete-started-C_hilY_A.js.map → delete-started-C9z4Yf_c.js.map} +1 -1
- package/dist/{deploy-engine-BEzzfllj.js → deploy-engine-DNEAZMj7.js} +828 -320
- package/dist/deploy-engine-DNEAZMj7.js.map +1 -0
- package/dist/{ec2-termination-protection-BeYoGs66.js → ec2-termination-protection-zaan5pi0.js} +3 -3
- package/dist/{ec2-termination-protection-BeYoGs66.js.map → ec2-termination-protection-zaan5pi0.js.map} +1 -1
- package/dist/{ecr-uri-DcNB-WSe.js → ecr-uri-CrQgKKRC.js} +2 -2
- package/dist/{ecr-uri-DcNB-WSe.js.map → ecr-uri-CrQgKKRC.js.map} +1 -1
- package/dist/{emr-cluster-provider-TaiGpHEX.js → emr-cluster-provider-Dkg4vDao.js} +80 -16
- package/dist/emr-cluster-provider-Dkg4vDao.js.map +1 -0
- package/dist/{expected-bucket-owner-DASdeJRs.js → expected-bucket-owner-DIMD36_h.js} +2 -2
- package/dist/{expected-bucket-owner-DASdeJRs.js.map → expected-bucket-owner-DIMD36_h.js.map} +1 -1
- package/dist/{iam-role-provider-ob3lrDNI.js → iam-role-provider-CkIQ7vmu.js} +12 -12
- package/dist/{iam-role-provider-ob3lrDNI.js.map → iam-role-provider-CkIQ7vmu.js.map} +1 -1
- package/dist/{identity-read-denied-CGR1hIyA.js → identity-read-denied-DU0YqxNk.js} +4 -4
- package/dist/{identity-read-denied-CGR1hIyA.js.map → identity-read-denied-DU0YqxNk.js.map} +1 -1
- package/dist/{image-plan-BWFMyIRS.js → image-plan-B1CAuiek.js} +10 -10
- package/dist/{image-plan-BWFMyIRS.js.map → image-plan-B1CAuiek.js.map} +1 -1
- package/dist/index.d.ts +19 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-8a4raAC-.js → logger-IjQ12QWZ.js} +2 -2
- package/dist/{logger-8a4raAC-.js.map → logger-IjQ12QWZ.js.map} +1 -1
- package/dist/{neptune-provider-C8fiHA_U.js → neptune-provider-2O6bzLTH.js} +9 -9
- package/dist/{neptune-provider-C8fiHA_U.js.map → neptune-provider-2O6bzLTH.js.map} +1 -1
- package/dist/{program-BCit4cJS.js → program-DnMYJ4--.js} +613 -143
- package/dist/program-DnMYJ4--.js.map +1 -0
- package/dist/{provider-classes-BydpQUFi.js → provider-classes-BuCH49t_.js} +647 -139
- package/dist/provider-classes-BuCH49t_.js.map +1 -0
- package/dist/{rds-provider-Dv0lcb0m.js → rds-provider-BSeLwUR8.js} +13 -13
- package/dist/{rds-provider-Dv0lcb0m.js.map → rds-provider-BSeLwUR8.js.map} +1 -1
- package/dist/{read-replica-BQ87f_Oe.js → read-replica-FMRYAHg6.js} +3 -3
- package/dist/{read-replica-BQ87f_Oe.js.map → read-replica-FMRYAHg6.js.map} +1 -1
- package/dist/{redacted-delete-address-BrPnoyD9.js → redacted-delete-address-DGHv9GNm.js} +4 -4
- package/dist/{redacted-delete-address-BrPnoyD9.js.map → redacted-delete-address-DGHv9GNm.js.map} +1 -1
- package/dist/{replacement-rules-HtPsWZIV.js → replacement-rules-BAJWgr5f.js} +144 -53
- package/dist/replacement-rules-BAJWgr5f.js.map +1 -0
- package/dist/{created-resource-sink-DVzNDZ-N.js → resource-deadline-DB1HaWnD.js} +115 -5
- package/dist/resource-deadline-DB1HaWnD.js.map +1 -0
- package/dist/{restore-source-guard-BIaZBr57.js → restore-source-guard-BL2O_O6r.js} +4 -4
- package/dist/{restore-source-guard-BIaZBr57.js.map → restore-source-guard-BL2O_O6r.js.map} +1 -1
- package/dist/{run-cli-OPPhPXxz.js → run-cli-CtrPRsbm.js} +2 -2
- package/dist/{run-cli-OPPhPXxz.js.map → run-cli-CtrPRsbm.js.map} +1 -1
- package/dist/{secret-reference-immutable-OIvSuvpM.js → secret-reference-immutable-XFEdCfNg.js} +6 -6
- package/dist/{secret-reference-immutable-OIvSuvpM.js.map → secret-reference-immutable-XFEdCfNg.js.map} +1 -1
- package/dist/{settle-own-write-members-fY5JNYhA.js → settle-own-write-members-DzUentwR.js} +10 -10
- package/dist/{settle-own-write-members-fY5JNYhA.js.map → settle-own-write-members-DzUentwR.js.map} +1 -1
- package/dist/{tag-list-CmpwQ18R.js → tag-list-Bye2zxAF.js} +4 -4
- package/dist/{tag-list-CmpwQ18R.js.map → tag-list-Bye2zxAF.js.map} +1 -1
- package/dist/update-removal-BpxPxmQR.js +82 -0
- package/dist/update-removal-BpxPxmQR.js.map +1 -0
- package/dist/{version-DwQIlsjN.js → version-nXXjUmZl.js} +2 -2
- package/dist/{version-DwQIlsjN.js.map → version-nXXjUmZl.js.map} +1 -1
- package/package.json +1 -1
- package/dist/created-resource-sink-DVzNDZ-N.js.map +0 -1
- package/dist/deploy-engine-BEzzfllj.js.map +0 -1
- package/dist/emr-cluster-provider-TaiGpHEX.js.map +0 -1
- package/dist/program-BCit4cJS.js.map +0 -1
- package/dist/provider-classes-BydpQUFi.js.map +0 -1
- package/dist/replacement-rules-HtPsWZIV.js.map +0 -1
- package/dist/resource-deadline-nSheE7zd.js +0 -186
- package/dist/resource-deadline-nSheE7zd.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, d as describeAwsStatusReason, 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 { $ as AccountIdUnavailableError, A as stripControlChars, B as isTransientServerError, C as isNameCooldownError, F as isAmbiguousOutcomeError, G as markNonRetryable, J as CrossAccountSecretRefusalError, K as markRedactedCause, O as relayedNameCollision, P as isAmbiguousCcHandlerErrorCode, Q as SelectOutOfBoundsRefusalError, R as isIamPropagationError, S as isNameCollisionErrorFrom, T as isReplayedNameCollisionFrom, U as isMarkedNonRetryable, W as isThrottlingError, X as IntrinsicResolutionRefusalError, Y as DynamicReferenceRegionAmbiguousError, Z as MalformedProducerRecordRefusalError, _ as ResourceUpdateNotSupportedError, a as normalizeAwsError, b as isUpdateUnsupportedError, ct as StateError, i as credentialFingerprint, k as escapeRegExp$1, m as ExportInUseError, n as ambientCredentialConfig, ot as ProvisioningError, q as wrapMaskedAwsError, r as clientDefaultsFor, rt as DeploymentNotApprovedError, st as ResourceTimeoutError, t as ambientClientDefaults, tt as CdkdError, w as isRecreateRetryableError, z as isRetryableTransientError } 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-nXXjUmZl.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, d as describeAwsStatusReason, 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-IjQ12QWZ.js";
|
|
3
|
+
import { $ as AccountIdUnavailableError, A as stripControlChars, B as isTransientServerError, C as isNameCooldownError, F as isAmbiguousOutcomeError, G as markNonRetryable, J as CrossAccountSecretRefusalError, K as markRedactedCause, O as relayedNameCollision, P as isAmbiguousCcHandlerErrorCode, Q as SelectOutOfBoundsRefusalError, R as isIamPropagationError, S as isNameCollisionErrorFrom, T as isReplayedNameCollisionFrom, U as isMarkedNonRetryable, W as isThrottlingError, X as IntrinsicResolutionRefusalError, Y as DynamicReferenceRegionAmbiguousError, Z as MalformedProducerRecordRefusalError, _ as ResourceUpdateNotSupportedError, a as normalizeAwsError, b as isUpdateUnsupportedError, ct as StateError, i as credentialFingerprint, k as escapeRegExp$1, m as ExportInUseError, n as ambientCredentialConfig, ot as ProvisioningError, q as wrapMaskedAwsError, r as clientDefaultsFor, rt as DeploymentNotApprovedError, st as ResourceTimeoutError, t as ambientClientDefaults, tt as CdkdError, w as isRecreateRetryableError, z as isRetryableTransientError } from "./ambient-client-defaults-BqOg0I6e.js";
|
|
4
4
|
import { a as getAssumedRoleCredentials, c as setAssumedRoleCredentials, d as quietS3Logger, f as ambientRegion, i as awsEndpointOverrideUrl, n as awsClientDefaults, o as getPreAssumeEnvCredentials, r as awsEndpointOverrideActive, t as SECOND_ROLE_PUBLISH_REFUSAL, u as setPreAssumeEnvCredentials } from "./aws-client-defaults-DAebi99J.js";
|
|
5
5
|
import { l as s3ClientDefaults, r as getAwsClients } from "./aws-clients-DOkPjjAW.js";
|
|
6
|
-
import { A as parseJsonNamingNoBody, C as recordPhase, D as describeJsonParseFailure, E as timePhaseSync, O as jsonParseFailureStandIn, S as phaseTimingsEnabled, T as timePhase, _ as IAM_PROPAGATION_MAX_DELAY_MS, a as getCreateOnlyPropertyPaths, b as PhaseClock, c as templateResourceTypes, d as parseCreateOnlyPropertyPointers, f as describeTypeWithThrottleRetry, g as scheduleDescribeType, h as reportAwsEmulatorRegistryMiss, i as createOnlyChangeRequiresReplacement, j as utf8ByteLength, k as parseFailureDebugDetail, l as SPEC_REPLACEMENT_CFN_KEEPS_NAME, m as isAwsEmulatorRegistryMiss, n as unchangedBehindSecretReference, o as isIntrinsicShaped, p as hasNoRegistrySchema, r as cachedCreateOnlyPropertyPaths, s as prefetchCreateOnlyPropertyPaths, t as onlySecretReferencesDiffer, u as SPEC_REPLACEMENT_CFN_MEASURED, v as withRetry, x as phaseScopeForStack, y as CREATE_ONLY_PATHS_SNAPSHOT } from "./secret-reference-immutable-
|
|
6
|
+
import { A as parseJsonNamingNoBody, C as recordPhase, D as describeJsonParseFailure, E as timePhaseSync, O as jsonParseFailureStandIn, S as phaseTimingsEnabled, T as timePhase, _ as IAM_PROPAGATION_MAX_DELAY_MS, a as getCreateOnlyPropertyPaths, b as PhaseClock, c as templateResourceTypes, d as parseCreateOnlyPropertyPointers, f as describeTypeWithThrottleRetry, g as scheduleDescribeType, h as reportAwsEmulatorRegistryMiss, i as createOnlyChangeRequiresReplacement, j as utf8ByteLength, k as parseFailureDebugDetail, l as SPEC_REPLACEMENT_CFN_KEEPS_NAME, m as isAwsEmulatorRegistryMiss, n as unchangedBehindSecretReference, o as isIntrinsicShaped, p as hasNoRegistrySchema, r as cachedCreateOnlyPropertyPaths, s as prefetchCreateOnlyPropertyPaths, t as onlySecretReferencesDiffer, u as SPEC_REPLACEMENT_CFN_MEASURED, v as withRetry, x as phaseScopeForStack, y as CREATE_ONLY_PATHS_SNAPSHOT } from "./secret-reference-immutable-XFEdCfNg.js";
|
|
7
7
|
import { i as sameRegion, n as canonicalizeRegion, r as derivePartitionAndUrlSuffix } from "./aws-partition-DA0r2sr-.js";
|
|
8
|
-
import { $
|
|
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 { A as
|
|
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-
|
|
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 {
|
|
17
|
-
import { n as isRedactedRecordedValue } from "./redacted-delete-address-
|
|
8
|
+
import { $n as unionOfSecretBags, $r as attributionRefusedParameters, $t as markAuxiliaryFailure, Ai as wholeStringLeavesOf, An as redactForState, Ar as templateRereadsAccountId, At as canonicalizeRoute53QueryName, B as isMarkedNotGone, Bn as carryLogOnlyValues, Br as freshNoEchoLeafPositions, Bt as createMaskedRetryLogger, C as withoutServerErrorRetries, Ci as recordDerivedMaskOnlyValue, Cn as recordIntrinsicLeafResolution, Cr as arrayPairsWhateverDrops, Di as recordNoEchoAttributeValues, Dn as literalTextHoldsSubFloorSecret, Dr as standsForInheritedSecret, E as assertRegionMatch, En as resolvedPlaintextOf, Er as splitOutsideDynamicReferences, F as quotedRemedyLogicalId, Fi as isSingleDynamicReferenceToken, Fn as passProvenanceFor, Fr as recordInheritedParameterValue, G as observeThenDisableProtection, Gi as sanitizeRecoveryValue, Gn as literalSplitDelimitersOf, Gr as staticTemplateText, Gt as RETRY_AUXILIARY_OWNER, H as compensateProtectionFlip, Hn as createUnionSecretMasker, Hr as recoverMaskedOutput, Ht as maskDeep, Ii as maskMatchSpans, In as passReadVersionsFor, Ir as redactInheritedParameterValue, It as resourceTypeShown, Ji as WAIT_CONDITION_SIGNAL_PREFIX, Jn as printingCorpusOf, Jt as createdBeforeFailure, Ki as CUSTOM_RESOURCE_RESPONSE_PREFIX, Kn as logOnlyValueCount, Kr as recordDroppedArrayElements, L as refusalTypeShown, Ln as recordReferenceProvenanceEntry, Lr as withdrawRenderedParameterSpelling, Lt as segmentAfterAnchor, Mn as openRecordingScope, Mr as inheritedParameterExpression, Mt as compositeIdSeparatorRefusal, N as isQuotableImportValue, Ni as isDynamicReferenceString, Nn as recordSecretResolution, Nr as inheritedRenderedToken, Oi as recordNoEchoParameterFreshValue, On as mixedLiteralAnswered, Or as inheritedPseudoValue, Ot as isInterruptedWaitError, P as normalizeAwsTagsToCfn, Pn as hasPassProvenance, Pr as recordInheritedParameterRead, Pt as logicalIdShown, Qi as injectiveKey, Qn as shareLogOnlyValues, Qr as recordPhysicalNameCopy, Qt as isAuxiliaryMarkOf, Rn as recordReferenceResolution, Rr as carriesFreshNoEchoValue, Rt as stateOrphanRecordRemedy, Si as provenPublicValue, Sn as mergeResolvedPairs, T as RESOURCE_NOT_FOUND, Tn as redactionClaimOf, Tr as rereadParameterExpression, U as deleteWithProtectionCompensation, Un as hasLogOnlyValues, Ur as recordNestedStackParameterExpressions, Ut as maskerOrIdentity, V as markNotGone, Vn as carryLogOnlyValuesCarriedBy, Vr as recordRecoverableMaskedOutput, Vt as isSecretDerivedValue, Wi as recoveryCommandFlags, Wn as hasMaskableValues, Wr as nestedStackRowTagSpellingOf, Wt as withDerivedNameMasks, Xn as recordLogOnlySplitFragments, Xr as physicalNameCopiesOf, Yn as recordLogOnlyParameterValue, Yr as secretRerenderPairs, Yt as createdResourceIdentityBeforeFailure, Zi as withPasteableAwsProfile, Zn as recordLogOnlyValue, Zt as isAuxiliaryFailure, _i as isScopedSecretVerdict, _n as carryRedactionMarks, _r as withoutPhysicalNameCopies, a as whileEnclosingDeadlinesPaused, ai as withConsumptionScope, an as dynamicReferenceOpeners, ar as differingStringLeaves, at as ElapsedBudget, bi as noEchoParameterPlaintextsOf, bn as markLeafCertifiedBag, c as clearCreatedReport, ci as recordCrossStackExpression, cn as isMaskRun, cr as overlapRuleAnswered, ct as DELETION_PROTECTION_DOC_POINTER, di as carryFreshNoEchoMark, dn as mentionsMask, dr as embeddedPhysicalNameRewrites, ei as DYNAMIC_REFERENCE_TOKEN_SCAN, en as markCreatedBeforeFailure, er as createSecretMasker, f as retractCreatedResource, fi as contradictProvenPublicExpression, fn as mentionsMaskedIdSegment, fr as repairEmbeddedPhysicalNamesTowards, ft as pasteableAwsCommand, gi as isRecordedSecretExpression, gn as valueMentionsDynamicReference, gr as withPhysicalNameCopies, hi as isNoEchoParameterPlaintext, hn as usableRecordedName, hr as scrubResourceRecord, i as outsideEnclosingDeadlines, ii as noteReferenceConsumed, in as dynamicReferenceBody, ir as maskSecretsInText, it as runDeleteAttempt, ji as withoutNoEchoParameterEntries, jn as foldRecording, jr as inheritNestedStackParameterAssociations, ki as recordProvenPublicExpression, kn as withLegacyMixedScan, kr as recordInheritedPseudoParameters, kt as startInterruptWatch, l as collectCreatedResources, li as splitGetAttStringForm, ln as mentionsDynamicReference, lr as replaceWholeLeaves, mi as isMaskOnlyPlaintext, mr as replaceEmbeddedPhysicalNameRewrites, n as enclosingDeadlineRemainingMs, ni as dynamicReferenceTokens, nr as maskRecordedSecretsInText, nt as isTerminalDeleteFailure, o as withResourceDeadline, oi as withoutConsumptionStamps, on as holdsMaskLeaf, or as legacyLeavesWithoutMask, ot as ElapsedBudgetRegistry, pi as freshNoEchoValuesOf, pr as repairPhysicalNameCopyLeaves, pt as protectedReplacementAdvice, qi as DEFAULT_STATE_PREFIX, qn as logOnlyValuesOf, qr as recordTakenIfBranch, r as formatWarnElapsed, ri as consumptionScopeOpenFor, rr as maskSecretsInError, rt as protectionFlipKey, s as CreatedResourceSink, si as crossStackSourceKey, sn as isMaskLeaf, sr as legacyReferenceLeavesOnly, st as monotonicNowMs, t as enclosingDeadlineExpired, ta as producerRecordKey, ti as dynamicReferenceSpans, tr as errorCauseChain, tt as ProtectionFlipRegistry, u as reportCreatedResource, ui as carriesSecretMask, un as mentionsDynamicReferenceTo, ur as withLegacyOverlapScan, vi as isSecretExpressionByVerdictOrSpelling, vn as intrinsicLeafResolutionOf, vr as SPELLED_SECRET_REFERENCE_PREFIXES, wi as recordFreshNoEchoValuesIn, wn as recordIntrinsicLeafResolutionAs, wt as withUnchangedSecretPrincipalLists, xi as pinScopedSecretVerdict, xn as markSameGenerationBag, yi as markNoEchoParameterClass, yn as isSameGenerationBag, yr as spanNamesResolvableService, z as resolveExplicitPhysicalId, zr as embedsFreshNoEchoValue, zt as createMaskedLogSinks } from "./resource-deadline-DB1HaWnD.js";
|
|
9
|
+
import { t as expectedOwnerParam } from "./expected-bucket-owner-DIMD36_h.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-C9z4Yf_c.js";
|
|
11
|
+
import { A as isStaleNoEchoLeaf, D as canonicalCoordinates, F as noEchoComparison, G as replaceAtCoordinates, H as readsNoEchoSource, I as noEchoCoordinatesOf, K as valueAtCoordinate, L as noEchoLeavesOf, M as maskReadbackAtCoordinates, N as maskWholeValue, O as canonicalJson$7, P as maskedLeafCoordinatesOf, R as noEchoParameterNodesAt, T as withoutObservedMaskedLeaves, U as recordPassedNoEchoParameters, V as readbackPathFor, W as recordedNoEchoValuesOf, a as liveHoldsFreshLeaves, b as templateGetAttNamesOf, g as withStoredReferencePositionsMasked, i as keyOrderFreeJson, j as maskAtCoordinates, k as isMarkedCoordinate, m as parseLambdaFunctionAddress, n as grantSentence, o as outputMapsEqual, q as witnessNormalize, r as isReplacementCeiling, s as readDenialOf, t as ReplacementRulesRegistry, w as withOffTemplateEchoesMasked, x as withSecretAttributeKeysDropped, y as wholeNoEchoEchoTest, z as noEchoParametersReadBy } from "./replacement-rules-BAJWgr5f.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-zaan5pi0.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-BL2O_O6r.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-DU0YqxNk.js";
|
|
15
|
+
import { a as refuseMalformedDesiredTags, i as readTagList, r as planTagDiff, s as tagPlanWarning } from "./tag-list-Bye2zxAF.js";
|
|
16
|
+
import { n as prepareRemovalForUpdate, o as withoutInjectedRemovals, r as removalWarning } from "./update-removal-BpxPxmQR.js";
|
|
17
|
+
import { n as isRedactedRecordedValue } from "./redacted-delete-address-DGHv9GNm.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";
|
|
@@ -90,7 +90,7 @@ async function resolveBucketRegion(bucketName, opts = {}) {
|
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
try {
|
|
93
|
-
const { expectedOwnerParam } = await import("./expected-bucket-owner-
|
|
93
|
+
const { expectedOwnerParam } = await import("./expected-bucket-owner-DIMD36_h.js").then((n) => n.n);
|
|
94
94
|
return (await client.send(new GetBucketLocationCommand({
|
|
95
95
|
Bucket: bucketName,
|
|
96
96
|
...await expectedOwnerParam(client)
|
|
@@ -24308,6 +24308,28 @@ function withListenerRuleConditionOps(resourceType, patch, desired) {
|
|
|
24308
24308
|
|
|
24309
24309
|
// src/provisioning/cc-read-back-default-paths.ts
|
|
24310
24310
|
const CC_READ_BACK_DEFAULT_PATHS = {
|
|
24311
|
+
"AWS::AutoScaling::ScheduledAction": [{
|
|
24312
|
+
path: ["EndTime"],
|
|
24313
|
+
value: "null"
|
|
24314
|
+
}, {
|
|
24315
|
+
path: ["StartTime"],
|
|
24316
|
+
anyValueWhenUndeclared: true
|
|
24317
|
+
}],
|
|
24318
|
+
"AWS::CloudFront::ResponseHeadersPolicy": [
|
|
24319
|
+
"ContentSecurityPolicy",
|
|
24320
|
+
"ContentTypeOptions",
|
|
24321
|
+
"ReferrerPolicy",
|
|
24322
|
+
"StrictTransportSecurity",
|
|
24323
|
+
"XSSProtection"
|
|
24324
|
+
].map((member) => ({
|
|
24325
|
+
path: [
|
|
24326
|
+
"ResponseHeadersPolicyConfig",
|
|
24327
|
+
"SecurityHeadersConfig",
|
|
24328
|
+
member
|
|
24329
|
+
],
|
|
24330
|
+
value: {},
|
|
24331
|
+
pruneWhateverLive: true
|
|
24332
|
+
})),
|
|
24311
24333
|
"AWS::Connect::User": [{
|
|
24312
24334
|
path: ["VoiceEnhancementConfigs"],
|
|
24313
24335
|
value: [{ Channel: "VOICE" }]
|
|
@@ -24339,19 +24361,52 @@ function valueAt$1(bag, path) {
|
|
|
24339
24361
|
function withCcReadBackDefaultRemovals(resourceType, patch, desired, liveModel) {
|
|
24340
24362
|
const defaults = hasCcReadBackDefaultPaths(resourceType) ? CC_READ_BACK_DEFAULT_PATHS[resourceType] : [];
|
|
24341
24363
|
if (defaults.length === 0 || patch.length === 0 || liveModel === void 0) return patch;
|
|
24364
|
+
let out = patch;
|
|
24342
24365
|
const extra = [];
|
|
24343
|
-
for (const
|
|
24366
|
+
for (const entry of defaults) {
|
|
24367
|
+
const { path } = entry;
|
|
24344
24368
|
const pointer = `/${path.map(escapeJsonPointer$2).join("/")}`;
|
|
24345
|
-
|
|
24346
|
-
if (
|
|
24369
|
+
const ancestor = out.findIndex((op) => pointer.startsWith(`${op.path}/`));
|
|
24370
|
+
if (ancestor !== -1) {
|
|
24371
|
+
if (entry.anyValueWhenUndeclared) continue;
|
|
24372
|
+
const op = out[ancestor];
|
|
24373
|
+
if (op.op !== "add" && op.op !== "replace") continue;
|
|
24374
|
+
const rest = path.slice(pointerSegments(op.path).length);
|
|
24375
|
+
if (!isDeepStrictEqual(valueAt$1(op.value, rest), entry.value)) continue;
|
|
24376
|
+
if (!entry.pruneWhateverLive && !isDeepStrictEqual(valueAt$1(liveModel, path), entry.value)) continue;
|
|
24377
|
+
const pruned = {
|
|
24378
|
+
...op,
|
|
24379
|
+
value: withoutPath(op.value, rest)
|
|
24380
|
+
};
|
|
24381
|
+
out = out.map((o, i) => i === ancestor ? pruned : o);
|
|
24382
|
+
continue;
|
|
24383
|
+
}
|
|
24384
|
+
if (out.some((op) => op.path === pointer || op.path.startsWith(`${pointer}/`))) continue;
|
|
24385
|
+
const live = valueAt$1(liveModel, path);
|
|
24386
|
+
if (live === ABSENT$1) continue;
|
|
24387
|
+
if (!entry.anyValueWhenUndeclared && !isDeepStrictEqual(live, entry.value)) continue;
|
|
24347
24388
|
const declared = valueAt$1(desired, path);
|
|
24348
|
-
if (
|
|
24389
|
+
if (entry.anyValueWhenUndeclared) {
|
|
24390
|
+
if (declared !== ABSENT$1) continue;
|
|
24391
|
+
} else if (declared !== ABSENT$1 && !isDeepStrictEqual(declared, entry.value)) continue;
|
|
24349
24392
|
extra.push({
|
|
24350
24393
|
op: "remove",
|
|
24351
24394
|
path: pointer
|
|
24352
24395
|
});
|
|
24353
24396
|
}
|
|
24354
|
-
return extra.length === 0 ? patch : [...
|
|
24397
|
+
return extra.length === 0 && out === patch ? patch : [...out, ...extra];
|
|
24398
|
+
}
|
|
24399
|
+
function pointerSegments(pointer) {
|
|
24400
|
+
return pointer.slice(1).split("/").map((seg) => seg.replace(/~1/g, "/").replace(/~0/g, "~"));
|
|
24401
|
+
}
|
|
24402
|
+
function withoutPath(value, path) {
|
|
24403
|
+
if (path.length === 0 || value === null || typeof value !== "object" || Array.isArray(value)) return value;
|
|
24404
|
+
const [head, ...rest] = path;
|
|
24405
|
+
const { [head]: child, ...others } = value;
|
|
24406
|
+
return rest.length === 0 ? others : {
|
|
24407
|
+
...others,
|
|
24408
|
+
[head]: withoutPath(child, rest)
|
|
24409
|
+
};
|
|
24355
24410
|
}
|
|
24356
24411
|
function escapeJsonPointer$2(key) {
|
|
24357
24412
|
return key.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
@@ -26486,7 +26541,7 @@ async function deleteInIdLogScope(logicalId, physicalId, resourceType, propertie
|
|
|
26486
26541
|
const indeterminateGuard = await this.confirmDeleteTargetIdentity(logicalId, resourceType, physicalId, context);
|
|
26487
26542
|
if (context?.removeProtection === true && resourceType === "AWS::AutoScaling::AutoScalingGroup") {
|
|
26488
26543
|
this.logger.debug(`Delegating protected AutoScalingGroup ${logicalId} delete to the SDK ASGProvider (Cloud Control cannot force-delete a protected ASG)`);
|
|
26489
|
-
const { ASGProvider } = await import("./asg-provider-
|
|
26544
|
+
const { ASGProvider } = await import("./asg-provider-DkhAcikX.js");
|
|
26490
26545
|
const delegateRegion = ambientRegion();
|
|
26491
26546
|
let asgProvider = this.asgDeleteDelegates.get(delegateRegion);
|
|
26492
26547
|
if (asgProvider === void 0) {
|
|
@@ -26497,7 +26552,7 @@ async function deleteInIdLogScope(logicalId, physicalId, resourceType, propertie
|
|
|
26497
26552
|
}
|
|
26498
26553
|
if (context?.removeProtection === true && resourceType === "AWS::EMR::Cluster") {
|
|
26499
26554
|
this.logger.debug(safeMsg`Delegating protected EMR cluster ${logicalId} delete to the SDK EMRClusterProvider (Cloud Control cannot lift termination protection)`);
|
|
26500
|
-
const { EMRClusterProvider } = await import("./emr-cluster-provider-
|
|
26555
|
+
const { EMRClusterProvider } = await import("./emr-cluster-provider-Dkg4vDao.js");
|
|
26501
26556
|
return withIndeterminateGuard(await new EMRClusterProvider().delete(logicalId, physicalId, resourceType, properties, context), indeterminateGuard);
|
|
26502
26557
|
}
|
|
26503
26558
|
await assertRecordedIdentityBeforeCcDelete.call(this, logicalId, resourceType, physicalId, context);
|
|
@@ -26646,7 +26701,7 @@ async function sdkDeleteDelegateInCcRegion(resourceType, logicalId, physicalId)
|
|
|
26646
26701
|
const family = SDK_DELETE_FAMILIES.get(resourceType);
|
|
26647
26702
|
const cached = this.sdkDeleteDelegates.get(family);
|
|
26648
26703
|
if (cached !== void 0 && cached.region === ccRegion) return cached.provider;
|
|
26649
|
-
const provider = family === "rds" ? new (await (import("./rds-provider-
|
|
26704
|
+
const provider = family === "rds" ? new (await (import("./rds-provider-BSeLwUR8.js"))).RDSProvider({ region: ccRegion }) : new (await (import("./neptune-provider-2O6bzLTH.js"))).NeptuneProvider({ region: ccRegion });
|
|
26650
26705
|
this.sdkDeleteDelegates.set(family, {
|
|
26651
26706
|
region: ccRegion,
|
|
26652
26707
|
provider
|
|
@@ -29205,7 +29260,7 @@ async function publishToSns(topicArn, request) {
|
|
|
29205
29260
|
}
|
|
29206
29261
|
async function invokeLambda(serviceToken, request) {
|
|
29207
29262
|
if (localCustomResourceRuntimeActive()) {
|
|
29208
|
-
const { invokeCustomResourceFunctionLocally } = await import("./custom-resource-runtime-
|
|
29263
|
+
const { invokeCustomResourceFunctionLocally } = await import("./custom-resource-runtime-CLjuWVBC.js");
|
|
29209
29264
|
const local = await invokeCustomResourceFunctionLocally({
|
|
29210
29265
|
lambda: this.lambdaClient,
|
|
29211
29266
|
s3: this.s3Client
|
|
@@ -29914,7 +29969,7 @@ function getProviderFor(input) {
|
|
|
29914
29969
|
if (input.quiet !== true) this.logger.debug(message);
|
|
29915
29970
|
};
|
|
29916
29971
|
const { resourceType, properties, provisionedBy } = input;
|
|
29917
|
-
if (isCustomResource
|
|
29972
|
+
if (isCustomResource(resourceType)) {
|
|
29918
29973
|
debug(`Using Custom Resource provider for ${resourceType}`);
|
|
29919
29974
|
return {
|
|
29920
29975
|
provider: this.customResourceProvider,
|
|
@@ -32541,7 +32596,7 @@ var ProviderRegistry = class {
|
|
|
32541
32596
|
hasProvider(resourceType) {
|
|
32542
32597
|
if (this.shouldSkipResource(resourceType)) return true;
|
|
32543
32598
|
if (this.allowedUnsupportedTypes.has(resourceType)) return true;
|
|
32544
|
-
return this.providers.has(resourceType) || CloudControlProvider.isSupportedResourceType(resourceType) || isCustomResource
|
|
32599
|
+
return this.providers.has(resourceType) || CloudControlProvider.isSupportedResourceType(resourceType) || isCustomResource(resourceType);
|
|
32545
32600
|
}
|
|
32546
32601
|
getCloudControlProvider() {
|
|
32547
32602
|
return this.cloudControlProvider;
|
|
@@ -32580,7 +32635,7 @@ var ProviderRegistry = class {
|
|
|
32580
32635
|
return findAutoRouteHits.call(this, resources);
|
|
32581
32636
|
}
|
|
32582
32637
|
};
|
|
32583
|
-
function isCustomResource
|
|
32638
|
+
function isCustomResource(resourceType) {
|
|
32584
32639
|
return resourceType.startsWith("Custom::") || resourceType === "AWS::CloudFormation::CustomResource";
|
|
32585
32640
|
}
|
|
32586
32641
|
|
|
@@ -33942,7 +33997,7 @@ async function ccRoutedInstanceTakesNoSnapshot(input) {
|
|
|
33942
33997
|
if (resourceType !== "AWS::RDS::DBInstance") return false;
|
|
33943
33998
|
if (region === void 0 || region === "") return false;
|
|
33944
33999
|
const mask = input.mask ?? ((text) => text);
|
|
33945
|
-
const { describeDBInstanceInRegion, isLiveReadReplica } = await import("./read-replica-
|
|
34000
|
+
const { describeDBInstanceInRegion, isLiveReadReplica } = await import("./read-replica-FMRYAHg6.js").then((n) => n.l);
|
|
33946
34001
|
let reason;
|
|
33947
34002
|
try {
|
|
33948
34003
|
const live = await describeDBInstanceInRegion(physicalId, region);
|
|
@@ -34880,17 +34935,58 @@ function noEchoPositionSources(run, resources = {}, template = run.constructPath
|
|
|
34880
34935
|
...conditions !== void 0 && { conditions }
|
|
34881
34936
|
};
|
|
34882
34937
|
}
|
|
34883
|
-
function noEchoLeavesFor(run, deps, logicalId, record, templateProps, sources) {
|
|
34884
|
-
|
|
34938
|
+
function noEchoLeavesFor(run, deps, logicalId, record, templateProps, sources, persisted) {
|
|
34939
|
+
const positionsOf = (template, only = false) => noEchoCoordinatesOf(template, record.properties, sources, void 0, persisted === void 0 ? void 0 : {
|
|
34940
|
+
maskedAt: persisted,
|
|
34941
|
+
only
|
|
34942
|
+
});
|
|
34943
|
+
if (templateProps !== void 0 && isWrittenFromDeployedTemplate(record.properties)) return canonicalCoordinates(positionsOf(templateProps));
|
|
34885
34944
|
const existing = noEchoLeavesOf(record);
|
|
34886
|
-
if (existing !== void 0) {
|
|
34945
|
+
if (existing !== void 0 && existing.length > 0) {
|
|
34887
34946
|
const confirmed = run.witnessConfirmedLeaves.get(logicalId) ?? [];
|
|
34888
|
-
|
|
34947
|
+
const template = templatePropertiesFor(run, logicalId, record.resourceType);
|
|
34948
|
+
const keys = template === void 0 || persisted === void 0 ? /* @__PURE__ */ new Set() : uncoveredMaskKeysOf(persisted, [...existing, ...confirmed]);
|
|
34949
|
+
const embedded = keys.size === 0 ? [] : positionsOf(Object.fromEntries([...keys].filter((key) => Object.hasOwn(template, key)).map((key) => [key, template[key]])), true);
|
|
34950
|
+
return canonicalCoordinates([
|
|
34951
|
+
...existing,
|
|
34952
|
+
...confirmed,
|
|
34953
|
+
...embedded
|
|
34954
|
+
]);
|
|
34889
34955
|
}
|
|
34890
34956
|
const resolvedAsSame = deps.perResourceResolvedType().get(logicalId) === record.resourceType;
|
|
34891
34957
|
const source = (templateProps !== void 0 && resolvedAsSame ? templateProps : void 0) ?? templatePropertiesFor(run, logicalId, record.resourceType);
|
|
34892
34958
|
if (source === void 0) return void 0;
|
|
34893
|
-
return canonicalCoordinates(
|
|
34959
|
+
return canonicalCoordinates(positionsOf(source));
|
|
34960
|
+
}
|
|
34961
|
+
function uncoveredMaskKeysOf(bag, covered) {
|
|
34962
|
+
const keys = /* @__PURE__ */ new Set();
|
|
34963
|
+
if (bag === null || typeof bag !== "object" || Array.isArray(bag)) return keys;
|
|
34964
|
+
const path = [];
|
|
34965
|
+
const seen = /* @__PURE__ */ new Set();
|
|
34966
|
+
const isCovered = () => covered.some((marked) => marked.length <= path.length && marked.every((segment, i) => String(segment) === String(path[i])));
|
|
34967
|
+
const walk = (node) => {
|
|
34968
|
+
if (isMaskLeaf(node)) return !isCovered();
|
|
34969
|
+
if (node === null || typeof node !== "object" || seen.has(node)) return false;
|
|
34970
|
+
seen.add(node);
|
|
34971
|
+
const step = (segment, child) => {
|
|
34972
|
+
path.push(segment);
|
|
34973
|
+
const found = walk(child);
|
|
34974
|
+
path.pop();
|
|
34975
|
+
return found;
|
|
34976
|
+
};
|
|
34977
|
+
if (Array.isArray(node)) {
|
|
34978
|
+
for (let index = 0; index < node.length; index++) if (step(index, node[index])) return true;
|
|
34979
|
+
return false;
|
|
34980
|
+
}
|
|
34981
|
+
for (const key of Object.keys(node)) if (step(key, node[key])) return true;
|
|
34982
|
+
return false;
|
|
34983
|
+
};
|
|
34984
|
+
for (const [key, value] of Object.entries(bag)) {
|
|
34985
|
+
path.push(key);
|
|
34986
|
+
if (walk(value)) keys.add(key);
|
|
34987
|
+
path.pop();
|
|
34988
|
+
}
|
|
34989
|
+
return keys;
|
|
34894
34990
|
}
|
|
34895
34991
|
function templatePropertiesFor(run, logicalId, resourceType) {
|
|
34896
34992
|
const resources = run.constructPathTemplate?.Resources;
|
|
@@ -34970,19 +35066,20 @@ function withAttemptedItemsMasked(record, needles) {
|
|
|
34970
35066
|
unsettledItems: masked
|
|
34971
35067
|
} : record;
|
|
34972
35068
|
}
|
|
34973
|
-
function applyNoEchoPersist(run, deps, logicalId, record, scrubbed, templateProps, resources, secrets, carried = false) {
|
|
35069
|
+
function applyNoEchoPersist(run, deps, logicalId, record, scrubbed, templateProps, resources, secrets, carried = false, markEmpty = false) {
|
|
34974
35070
|
scrubbed = withNoEchoItemsMasked(run, deps, logicalId, scrubbed);
|
|
34975
35071
|
const sources = noEchoPositionSources(run, resources);
|
|
34976
35072
|
if (sources === void 0) return scrubbed;
|
|
34977
|
-
const leaves = noEchoLeavesFor(run, deps, logicalId, record, templateProps, sources);
|
|
35073
|
+
const leaves = noEchoLeavesFor(run, deps, logicalId, record, templateProps, sources, scrubbed.properties);
|
|
34978
35074
|
const names = noEchoAttributeNamesFor(run, logicalId, record, carried, leaves);
|
|
34979
35075
|
if (leaves === void 0 && names === void 0) return scrubbed;
|
|
34980
35076
|
const next = { ...scrubbed };
|
|
34981
35077
|
if (leaves !== void 0) {
|
|
34982
35078
|
next.properties = maskAtCoordinates(scrubbed.properties, leaves);
|
|
34983
35079
|
if (scrubbed.observedProperties !== void 0 && leaves.length > 0) Object.assign(next, { observedProperties: maskReadbackAtCoordinates(scrubbed.observedProperties, record.properties, leaves) });
|
|
34984
|
-
|
|
34985
|
-
|
|
35080
|
+
const sameGeneration = isWrittenFromDeployedTemplate(record.properties);
|
|
35081
|
+
if (leaves.length > 0 || markEmpty && sameGeneration) next.noEchoLeaves = leaves;
|
|
35082
|
+
else if (noEchoLeavesOf(scrubbed)?.length !== 0) delete next.noEchoLeaves;
|
|
34986
35083
|
const marked = new Set(leaves.map((coordinate) => JSON.stringify(coordinate)));
|
|
34987
35084
|
const exact = (noEchoExactEchoLeavesOf(scrubbed) ?? []).filter((coordinate) => marked.has(JSON.stringify(coordinate)));
|
|
34988
35085
|
if (exact.length > 0) next.noEchoExactEchoLeaves = exact;
|
|
@@ -35156,11 +35253,7 @@ function echoedNoEchoAttributes(run, deps, logicalId, attributes, secrets, ownPr
|
|
|
35156
35253
|
const templateProps = run.perResourceTemplateProps.get(logicalId);
|
|
35157
35254
|
const sources = noEchoPositionSources(deps.noEchoRun());
|
|
35158
35255
|
const positioned = /* @__PURE__ */ new Map();
|
|
35159
|
-
const
|
|
35160
|
-
const noteWholeOnly = (value) => {
|
|
35161
|
-
if (typeof value !== "string" || value === "" || value.includes("***")) return;
|
|
35162
|
-
if (value !== stackName) wholeOnly.add(value);
|
|
35163
|
-
};
|
|
35256
|
+
const wholeInputs = [];
|
|
35164
35257
|
if (templateProps !== void 0 && ownProperties !== void 0 && sources !== void 0) for (const coordinate of noEchoCoordinatesOf(templateProps, ownProperties, {
|
|
35165
35258
|
parameters: sources.parameters,
|
|
35166
35259
|
...sources.conditions !== void 0 && { conditions: sources.conditions }
|
|
@@ -35168,7 +35261,7 @@ function echoedNoEchoAttributes(run, deps, logicalId, attributes, secrets, ownPr
|
|
|
35168
35261
|
const name = coordinate[0];
|
|
35169
35262
|
if (typeof name !== "string") continue;
|
|
35170
35263
|
const value = valueAtCoordinate(ownProperties, coordinate);
|
|
35171
|
-
|
|
35264
|
+
wholeInputs.push(value);
|
|
35172
35265
|
const spellings = positioned.get(name) ?? /* @__PURE__ */ new Set();
|
|
35173
35266
|
spellings.add(keyOrderFreeJson(value));
|
|
35174
35267
|
if (typeof value === "number" || typeof value === "boolean") spellings.add(keyOrderFreeJson(String(value)));
|
|
@@ -35183,17 +35276,12 @@ function echoedNoEchoAttributes(run, deps, logicalId, attributes, secrets, ownPr
|
|
|
35183
35276
|
if (!value.startsWith("arn:") && fresh.some((needle) => value.includes(needle))) return true;
|
|
35184
35277
|
}
|
|
35185
35278
|
if (positioned.get(name)?.has(keyOrderFreeJson(value)) === true) return true;
|
|
35186
|
-
return
|
|
35279
|
+
return wholeEcho?.(name, value) === true;
|
|
35187
35280
|
};
|
|
35188
|
-
const
|
|
35189
|
-
const reads = wholeOnly.size === 0 || !isCustomResource(run.perResourceResolvedType.get(logicalId)) ? "any" : template === void 0 ? "any" : templateGetAttNamesOf(template, logicalId);
|
|
35190
|
-
const unread = (name) => reads !== "any" && !reads.has(name);
|
|
35281
|
+
const wholeEcho = wholeNoEchoEchoTest(run.perResourceResolvedType.get(logicalId), deps.noEchoRun().constructPathTemplate, logicalId, wholeInputs, stackName, physicalId);
|
|
35191
35282
|
for (const [name, value] of Object.entries(attributes)) if (holds(name, value)) echoed.add(name);
|
|
35192
35283
|
return echoed;
|
|
35193
35284
|
}
|
|
35194
|
-
function isCustomResource(resourceType) {
|
|
35195
|
-
return typeof resourceType === "string" && (resourceType === "AWS::CloudFormation::CustomResource" || resourceType.startsWith("Custom::"));
|
|
35196
|
-
}
|
|
35197
35285
|
function refuseRedactedAttributeReads(logicalId, resourceType, context) {
|
|
35198
35286
|
const reads = context.redactedAttributeReads;
|
|
35199
35287
|
if (reads === void 0 || reads.length === 0) return;
|
|
@@ -35965,12 +36053,14 @@ const EQUAL_ID_HOOK_TYPES = /* @__PURE__ */ new Set([
|
|
|
35965
36053
|
"AWS::Lambda::Permission",
|
|
35966
36054
|
"AWS::EC2::SecurityGroupIngress",
|
|
35967
36055
|
"AWS::ApiGateway::Stage",
|
|
35968
|
-
"AWS::ApiGatewayV2::Stage"
|
|
36056
|
+
"AWS::ApiGatewayV2::Stage",
|
|
36057
|
+
"AWS::Scheduler::Schedule"
|
|
35969
36058
|
]);
|
|
35970
36059
|
function equalIdNamesDifferentResources(input) {
|
|
35971
36060
|
if (!EQUAL_ID_HOOK_TYPES.has(input.resourceType)) return false;
|
|
35972
36061
|
if (input.resourceType === "AWS::Lambda::Permission") return permissionsOnDifferentFunctions(input.oldProperties, input.newProperties);
|
|
35973
36062
|
if (input.resourceType === "AWS::EC2::SecurityGroupIngress") return ingressRulesFromDifferentSources(input.oldProperties, input.newProperties);
|
|
36063
|
+
if (input.resourceType === "AWS::Scheduler::Schedule") return schedulesInDifferentGroups(input.oldProperties, input.newProperties);
|
|
35974
36064
|
const parentKey = STAGE_PARENT_KEYS[input.resourceType];
|
|
35975
36065
|
if (parentKey !== void 0) return stagesOnDifferentApis(input.oldProperties, input.newProperties, parentKey);
|
|
35976
36066
|
if (input.resourceType !== "AWS::Glue::Table" || input.physicalId === void 0) return false;
|
|
@@ -36006,6 +36096,14 @@ function stagesOnDifferentApis(oldProperties, newProperties, parentKey) {
|
|
|
36006
36096
|
if (!isUsableIdentityValue(oldApi) || !isUsableIdentityValue(newApi)) return false;
|
|
36007
36097
|
return oldApi !== newApi;
|
|
36008
36098
|
}
|
|
36099
|
+
function schedulesInDifferentGroups(oldProperties, newProperties) {
|
|
36100
|
+
if (oldProperties === void 0 || newProperties === void 0) return false;
|
|
36101
|
+
const group = (props) => props["GroupName"] === void 0 ? "default" : props["GroupName"];
|
|
36102
|
+
const oldGroup = group(oldProperties);
|
|
36103
|
+
const newGroup = group(newProperties);
|
|
36104
|
+
if (!isUsableIdentityValue(oldGroup) || !isUsableIdentityValue(newGroup)) return false;
|
|
36105
|
+
return oldGroup !== newGroup;
|
|
36106
|
+
}
|
|
36009
36107
|
function recordedIdsNameDifferentResources(resourceType, oldAttributes, newAttributes) {
|
|
36010
36108
|
if (resourceType !== "AWS::EC2::SecurityGroupIngress") return false;
|
|
36011
36109
|
const oldId = recordedSgRuleId(oldAttributes);
|
|
@@ -36019,7 +36117,7 @@ function equalIdNamesSameResource(input) {
|
|
|
36019
36117
|
oldProperties: input.oldProperties,
|
|
36020
36118
|
newProperties: input.newProperties
|
|
36021
36119
|
});
|
|
36022
|
-
return isCustomResource
|
|
36120
|
+
return isCustomResource(input.oldType) && isCustomResource(input.newType) && input.createLayer !== "cc-api";
|
|
36023
36121
|
}
|
|
36024
36122
|
const NESTED_STACK_RESOURCE_TYPE = "AWS::CloudFormation::Stack";
|
|
36025
36123
|
function findNestedStackTypeChanges(input) {
|
|
@@ -36687,6 +36785,7 @@ async function deleteReplacedAfterCreate(run, deps, logicalId, oldResourceType,
|
|
|
36687
36785
|
failureMessage: void 0,
|
|
36688
36786
|
cleanupPhase: true,
|
|
36689
36787
|
...currentResource.dependencies !== void 0 && { dependencies: currentResource.dependencies },
|
|
36788
|
+
properties: currentResource.properties,
|
|
36690
36789
|
retry: () => deleteReplacedAfterCreate(run, deps, logicalId, oldResourceType, currentResource, deleteProvider, deleteProperties, finalSnapshotIdentifier, updateReplacePolicy, secrets, deleteProvisionedBy, noEchoDeleteValues, true)
|
|
36691
36790
|
});
|
|
36692
36791
|
deps.logger.info(safeMsg` Old ${logicalId} (${displayPhysicalId(oldResourceType, currentResource.physicalId)}) is deleted after the rest of the deploy succeeds`);
|
|
@@ -36736,6 +36835,7 @@ async function deleteReplacedAfterCreate(run, deps, logicalId, oldResourceType,
|
|
|
36736
36835
|
provisionedBy: deleteProvisionedBy,
|
|
36737
36836
|
failureMessage: deleteMsg,
|
|
36738
36837
|
...currentResource.dependencies !== void 0 && { dependencies: currentResource.dependencies },
|
|
36838
|
+
properties: currentResource.properties,
|
|
36739
36839
|
retry: () => deleteReplacedAfterCreate(run, deps, logicalId, oldResourceType, currentResource, deleteProvider, deleteProperties, sentSnapshotIdentifier, updateReplacePolicy, secrets, deleteProvisionedBy, noEchoDeleteValues, true)
|
|
36740
36840
|
});
|
|
36741
36841
|
return;
|
|
@@ -36908,29 +37008,377 @@ async function createFirstThenDeleteOld(run, deps, input) {
|
|
|
36908
37008
|
return createResult;
|
|
36909
37009
|
}
|
|
36910
37010
|
|
|
37011
|
+
// src/deployment/dag-executor.ts
|
|
37012
|
+
var DagExecutor = class {
|
|
37013
|
+
nodes = /* @__PURE__ */ new Map();
|
|
37014
|
+
logger = getLogger().child("DagExecutor");
|
|
37015
|
+
priorityById = null;
|
|
37016
|
+
timingScope;
|
|
37017
|
+
constructor(timingScope) {
|
|
37018
|
+
this.timingScope = timingScope;
|
|
37019
|
+
}
|
|
37020
|
+
add(node) {
|
|
37021
|
+
this.nodes.set(node.id, node);
|
|
37022
|
+
}
|
|
37023
|
+
computePriorities() {
|
|
37024
|
+
if (this.priorityById) return this.priorityById;
|
|
37025
|
+
const dependentsOf = /* @__PURE__ */ new Map();
|
|
37026
|
+
for (const node of this.nodes.values()) for (const depId of node.dependencies) {
|
|
37027
|
+
if (!this.nodes.has(depId)) continue;
|
|
37028
|
+
let set = dependentsOf.get(depId);
|
|
37029
|
+
if (!set) {
|
|
37030
|
+
set = /* @__PURE__ */ new Set();
|
|
37031
|
+
dependentsOf.set(depId, set);
|
|
37032
|
+
}
|
|
37033
|
+
set.add(node.id);
|
|
37034
|
+
}
|
|
37035
|
+
const memo = /* @__PURE__ */ new Map();
|
|
37036
|
+
const visiting = /* @__PURE__ */ new Set();
|
|
37037
|
+
const collect = (id) => {
|
|
37038
|
+
const cached = memo.get(id);
|
|
37039
|
+
if (cached) return cached;
|
|
37040
|
+
const acc = /* @__PURE__ */ new Set();
|
|
37041
|
+
if (visiting.has(id)) return acc;
|
|
37042
|
+
visiting.add(id);
|
|
37043
|
+
for (const dependent of dependentsOf.get(id) ?? []) {
|
|
37044
|
+
acc.add(dependent);
|
|
37045
|
+
for (const t of collect(dependent)) acc.add(t);
|
|
37046
|
+
}
|
|
37047
|
+
visiting.delete(id);
|
|
37048
|
+
memo.set(id, acc);
|
|
37049
|
+
return acc;
|
|
37050
|
+
};
|
|
37051
|
+
const priorities = /* @__PURE__ */ new Map();
|
|
37052
|
+
for (const id of this.nodes.keys()) priorities.set(id, collect(id).size);
|
|
37053
|
+
this.priorityById = priorities;
|
|
37054
|
+
return priorities;
|
|
37055
|
+
}
|
|
37056
|
+
has(id) {
|
|
37057
|
+
return this.nodes.has(id);
|
|
37058
|
+
}
|
|
37059
|
+
size() {
|
|
37060
|
+
return this.nodes.size;
|
|
37061
|
+
}
|
|
37062
|
+
values() {
|
|
37063
|
+
return this.nodes.values();
|
|
37064
|
+
}
|
|
37065
|
+
async execute(concurrency, fn, cancelled = () => false) {
|
|
37066
|
+
let active = 0;
|
|
37067
|
+
const errors = [];
|
|
37068
|
+
const priority = this.computePriorities();
|
|
37069
|
+
const timingScope = phaseTimingsEnabled() ? this.timingScope : void 0;
|
|
37070
|
+
const readySince = /* @__PURE__ */ new Map();
|
|
37071
|
+
return new Promise((resolve, reject) => {
|
|
37072
|
+
const dispatch = () => {
|
|
37073
|
+
let changed = true;
|
|
37074
|
+
while (changed) {
|
|
37075
|
+
changed = false;
|
|
37076
|
+
for (const node of this.nodes.values()) {
|
|
37077
|
+
if (node.state !== "pending") continue;
|
|
37078
|
+
if ([...node.dependencies].some((depId) => {
|
|
37079
|
+
const dep = this.nodes.get(depId);
|
|
37080
|
+
return dep && (dep.state === "failed" || dep.state === "skipped");
|
|
37081
|
+
})) {
|
|
37082
|
+
node.state = "skipped";
|
|
37083
|
+
changed = true;
|
|
37084
|
+
this.logger.debug(`Skipped ${node.id}: dependency failed or was skipped`);
|
|
37085
|
+
}
|
|
37086
|
+
}
|
|
37087
|
+
}
|
|
37088
|
+
const ready = [];
|
|
37089
|
+
for (const node of this.nodes.values()) {
|
|
37090
|
+
if (node.state !== "pending") continue;
|
|
37091
|
+
if ([...node.dependencies].every((depId) => {
|
|
37092
|
+
const dep = this.nodes.get(depId);
|
|
37093
|
+
return !dep || dep.state === "completed";
|
|
37094
|
+
})) ready.push(node);
|
|
37095
|
+
}
|
|
37096
|
+
ready.sort((a, b) => (priority.get(b.id) ?? 0) - (priority.get(a.id) ?? 0));
|
|
37097
|
+
if (timingScope !== void 0) {
|
|
37098
|
+
const now = performance.now();
|
|
37099
|
+
for (const node of ready) if (!readySince.has(node.id)) readySince.set(node.id, now);
|
|
37100
|
+
}
|
|
37101
|
+
if (!cancelled()) for (const node of ready) {
|
|
37102
|
+
if (active >= concurrency) break;
|
|
37103
|
+
node.state = "running";
|
|
37104
|
+
active++;
|
|
37105
|
+
if (timingScope !== void 0) recordPhase(timingScope, "ready, waiting for a --concurrency slot", performance.now() - (readySince.get(node.id) ?? performance.now()), node.id);
|
|
37106
|
+
fn(node).then(() => {
|
|
37107
|
+
node.state = "completed";
|
|
37108
|
+
}).catch((error) => {
|
|
37109
|
+
node.state = "failed";
|
|
37110
|
+
errors.push({
|
|
37111
|
+
id: node.id,
|
|
37112
|
+
error
|
|
37113
|
+
});
|
|
37114
|
+
}).finally(() => {
|
|
37115
|
+
active--;
|
|
37116
|
+
dispatch();
|
|
37117
|
+
});
|
|
37118
|
+
}
|
|
37119
|
+
if (active === 0) {
|
|
37120
|
+
if (errors.length > 0) {
|
|
37121
|
+
reject(errors[0].error);
|
|
37122
|
+
return;
|
|
37123
|
+
}
|
|
37124
|
+
if ([...this.nodes.values()].some((n) => n.state === "pending") && !cancelled()) {
|
|
37125
|
+
const pending = [...this.nodes.values()].filter((n) => n.state === "pending").map((n) => n.id);
|
|
37126
|
+
reject(/* @__PURE__ */ new Error(`Deadlock detected: ${pending.length} node(s) stuck with unresolvable dependencies (${pending.join(", ")})`));
|
|
37127
|
+
return;
|
|
37128
|
+
}
|
|
37129
|
+
resolve();
|
|
37130
|
+
}
|
|
37131
|
+
};
|
|
37132
|
+
dispatch();
|
|
37133
|
+
});
|
|
37134
|
+
}
|
|
37135
|
+
};
|
|
37136
|
+
|
|
37137
|
+
// src/analyzer/implicit-delete-deps.ts
|
|
37138
|
+
const IMPLICIT_DELETE_DEPENDENCIES = {
|
|
37139
|
+
"AWS::EC2::InternetGateway": ["AWS::EC2::VPCGatewayAttachment", "AWS::EC2::NatGateway"],
|
|
37140
|
+
"AWS::EC2::VPCGatewayAttachment": ["AWS::EC2::NatGateway"],
|
|
37141
|
+
"AWS::Events::EventBus": ["AWS::Events::Rule"],
|
|
37142
|
+
"AWS::Athena::WorkGroup": ["AWS::Athena::NamedQuery"],
|
|
37143
|
+
"AWS::CloudFront::ResponseHeadersPolicy": ["AWS::CloudFront::Distribution"],
|
|
37144
|
+
"AWS::CloudFront::CachePolicy": ["AWS::CloudFront::Distribution"],
|
|
37145
|
+
"AWS::CloudFront::OriginAccessControl": ["AWS::CloudFront::Distribution"],
|
|
37146
|
+
"AWS::EC2::VPC": [
|
|
37147
|
+
"AWS::EC2::Subnet",
|
|
37148
|
+
"AWS::EC2::SecurityGroup",
|
|
37149
|
+
"AWS::EC2::InternetGateway",
|
|
37150
|
+
"AWS::EC2::EgressOnlyInternetGateway",
|
|
37151
|
+
"AWS::EC2::VPCGatewayAttachment",
|
|
37152
|
+
"AWS::EC2::RouteTable"
|
|
37153
|
+
],
|
|
37154
|
+
"AWS::EC2::Subnet": ["AWS::EC2::SubnetRouteTableAssociation", "AWS::Lambda::Function"],
|
|
37155
|
+
"AWS::EC2::RouteTable": ["AWS::EC2::Route", "AWS::EC2::SubnetRouteTableAssociation"],
|
|
37156
|
+
"AWS::EC2::SecurityGroup": [
|
|
37157
|
+
"AWS::EC2::SecurityGroupIngress",
|
|
37158
|
+
"AWS::EC2::SecurityGroupEgress",
|
|
37159
|
+
"AWS::Lambda::Function"
|
|
37160
|
+
]
|
|
37161
|
+
};
|
|
37162
|
+
function typesDeletedBefore(type) {
|
|
37163
|
+
return Object.prototype.hasOwnProperty.call(IMPLICIT_DELETE_DEPENDENCIES, type) ? IMPLICIT_DELETE_DEPENDENCIES[type] : [];
|
|
37164
|
+
}
|
|
37165
|
+
const ALARM_RULE_FUNCTION_REGEX = /\b(?:ALARM|OK|INSUFFICIENT_DATA)\s*\(\s*([^)]*?)\s*\)/gi;
|
|
37166
|
+
function extractReferencedAlarmNames(alarmRule) {
|
|
37167
|
+
const names = /* @__PURE__ */ new Set();
|
|
37168
|
+
for (const match of alarmRule.matchAll(ALARM_RULE_FUNCTION_REGEX)) {
|
|
37169
|
+
let arg = (match[1] ?? "").trim();
|
|
37170
|
+
if (arg.length === 0) continue;
|
|
37171
|
+
if (arg.startsWith("\"") && arg.endsWith("\"") || arg.startsWith("'") && arg.endsWith("'")) arg = arg.slice(1, -1);
|
|
37172
|
+
if (arg.length === 0) continue;
|
|
37173
|
+
const arnAlarmMatch = /:alarm:(.+)$/.exec(arg);
|
|
37174
|
+
if (arnAlarmMatch?.[1]) names.add(arnAlarmMatch[1]);
|
|
37175
|
+
else names.add(arg);
|
|
37176
|
+
}
|
|
37177
|
+
return [...names];
|
|
37178
|
+
}
|
|
37179
|
+
function computeImplicitDeleteEdges(resources) {
|
|
37180
|
+
const edges = [];
|
|
37181
|
+
const alarmTypes = /* @__PURE__ */ new Set(["AWS::CloudWatch::Alarm", "AWS::CloudWatch::CompositeAlarm"]);
|
|
37182
|
+
const nameToLogicalId = /* @__PURE__ */ new Map();
|
|
37183
|
+
for (const [logicalId, resource] of Object.entries(resources)) {
|
|
37184
|
+
if (!alarmTypes.has(resource.resourceType)) continue;
|
|
37185
|
+
const alarmName = typeof resource.properties?.["AlarmName"] === "string" ? resource.properties["AlarmName"] : resource.physicalId;
|
|
37186
|
+
if (alarmName) nameToLogicalId.set(alarmName, logicalId);
|
|
37187
|
+
}
|
|
37188
|
+
for (const [logicalId, resource] of Object.entries(resources)) {
|
|
37189
|
+
if (resource.resourceType !== "AWS::CloudWatch::CompositeAlarm") continue;
|
|
37190
|
+
const alarmRule = resource.properties?.["AlarmRule"];
|
|
37191
|
+
if (typeof alarmRule !== "string") continue;
|
|
37192
|
+
for (const referencedName of extractReferencedAlarmNames(alarmRule)) {
|
|
37193
|
+
const referencedLogicalId = nameToLogicalId.get(referencedName);
|
|
37194
|
+
if (!referencedLogicalId || referencedLogicalId === logicalId) continue;
|
|
37195
|
+
edges.push({
|
|
37196
|
+
before: logicalId,
|
|
37197
|
+
after: referencedLogicalId
|
|
37198
|
+
});
|
|
37199
|
+
}
|
|
37200
|
+
}
|
|
37201
|
+
return edges;
|
|
37202
|
+
}
|
|
37203
|
+
|
|
37204
|
+
// src/deployment/deploy-engine/replacement/cleanup-order.ts
|
|
37205
|
+
const emptyEdges = (nodes) => new Map(nodes.map((node) => [node.id, /* @__PURE__ */ new Set()]));
|
|
37206
|
+
function cleanupDeleteOrder(nodes) {
|
|
37207
|
+
const strong = emptyEdges(nodes);
|
|
37208
|
+
const typed = emptyEdges(nodes);
|
|
37209
|
+
const byLogicalId = /* @__PURE__ */ new Map();
|
|
37210
|
+
const byType = /* @__PURE__ */ new Map();
|
|
37211
|
+
const index = (map, key, node) => {
|
|
37212
|
+
const list = map.get(key);
|
|
37213
|
+
if (list === void 0) map.set(key, [node]);
|
|
37214
|
+
else list.push(node);
|
|
37215
|
+
};
|
|
37216
|
+
for (const node of nodes) {
|
|
37217
|
+
index(byLogicalId, node.logicalId, node);
|
|
37218
|
+
index(byType, node.resourceType, node);
|
|
37219
|
+
}
|
|
37220
|
+
for (const user of nodes) for (const dep of user.dependencies) {
|
|
37221
|
+
if (dep === user.logicalId) continue;
|
|
37222
|
+
for (const used of byLogicalId.get(dep) ?? []) strong.get(used.id).add(user.id);
|
|
37223
|
+
}
|
|
37224
|
+
const records = Object.fromEntries(nodes.map((node) => [node.id, {
|
|
37225
|
+
resourceType: node.resourceType,
|
|
37226
|
+
...node.physicalId !== void 0 && { physicalId: node.physicalId },
|
|
37227
|
+
...node.properties !== void 0 && { properties: node.properties }
|
|
37228
|
+
}]));
|
|
37229
|
+
for (const { before, after } of computeImplicitDeleteEdges(records)) if (before !== after && strong.has(before) && strong.has(after)) strong.get(after).add(before);
|
|
37230
|
+
for (const [type, later] of byType) for (const earlierType of typesDeletedBefore(type)) {
|
|
37231
|
+
if (earlierType === type) continue;
|
|
37232
|
+
for (const earlier of byType.get(earlierType) ?? []) for (const node of later) if (!strong.get(node.id).has(earlier.id)) typed.get(node.id).add(earlier.id);
|
|
37233
|
+
}
|
|
37234
|
+
for (const cycle of cyclesOf(union(strong, typed))) for (const id of cycle) for (const other of cycle) typed.get(id).delete(other);
|
|
37235
|
+
const waitsFor = union(strong, typed);
|
|
37236
|
+
for (const cycle of cyclesOf(waitsFor)) for (const id of cycle) for (const other of cycle) waitsFor.get(id).delete(other);
|
|
37237
|
+
addWeakCarriedOrder(nodes, waitsFor);
|
|
37238
|
+
return waitsFor;
|
|
37239
|
+
}
|
|
37240
|
+
function union(a, b) {
|
|
37241
|
+
const out = /* @__PURE__ */ new Map();
|
|
37242
|
+
for (const [id, edges] of a) out.set(id, /* @__PURE__ */ new Set([...edges, ...b.get(id) ?? []]));
|
|
37243
|
+
return out;
|
|
37244
|
+
}
|
|
37245
|
+
function addWeakCarriedOrder(nodes, waitsFor) {
|
|
37246
|
+
const touched = /* @__PURE__ */ new Set();
|
|
37247
|
+
for (const [id, edges] of waitsFor) {
|
|
37248
|
+
if (edges.size === 0) continue;
|
|
37249
|
+
touched.add(id);
|
|
37250
|
+
for (const other of edges) touched.add(other);
|
|
37251
|
+
}
|
|
37252
|
+
const deferred = nodes.filter((node) => node.kind === "deferred").map((node) => node.id);
|
|
37253
|
+
if (deferred.length === 0) return;
|
|
37254
|
+
for (const node of nodes) {
|
|
37255
|
+
if (node.kind !== "carried" || touched.has(node.id)) continue;
|
|
37256
|
+
for (const id of deferred) waitsFor.get(node.id).add(id);
|
|
37257
|
+
}
|
|
37258
|
+
}
|
|
37259
|
+
function cyclesOf(waitsFor) {
|
|
37260
|
+
const index = /* @__PURE__ */ new Map();
|
|
37261
|
+
const low = /* @__PURE__ */ new Map();
|
|
37262
|
+
const onStack = /* @__PURE__ */ new Set();
|
|
37263
|
+
const stack = [];
|
|
37264
|
+
const cycles = [];
|
|
37265
|
+
let next = 0;
|
|
37266
|
+
for (const root of waitsFor.keys()) {
|
|
37267
|
+
if (index.has(root)) continue;
|
|
37268
|
+
const frames = [];
|
|
37269
|
+
const open = (id) => {
|
|
37270
|
+
index.set(id, next);
|
|
37271
|
+
low.set(id, next);
|
|
37272
|
+
next++;
|
|
37273
|
+
stack.push(id);
|
|
37274
|
+
onStack.add(id);
|
|
37275
|
+
frames.push({
|
|
37276
|
+
id,
|
|
37277
|
+
edges: (waitsFor.get(id) ?? /* @__PURE__ */ new Set()).values()
|
|
37278
|
+
});
|
|
37279
|
+
};
|
|
37280
|
+
open(root);
|
|
37281
|
+
while (frames.length > 0) {
|
|
37282
|
+
const frame = frames[frames.length - 1];
|
|
37283
|
+
const step = frame.edges.next();
|
|
37284
|
+
if (!step.done) {
|
|
37285
|
+
const to = step.value;
|
|
37286
|
+
if (!waitsFor.has(to)) continue;
|
|
37287
|
+
if (!index.has(to)) open(to);
|
|
37288
|
+
else if (onStack.has(to)) low.set(frame.id, Math.min(low.get(frame.id), index.get(to)));
|
|
37289
|
+
continue;
|
|
37290
|
+
}
|
|
37291
|
+
frames.pop();
|
|
37292
|
+
const parent = frames[frames.length - 1];
|
|
37293
|
+
if (parent !== void 0) low.set(parent.id, Math.min(low.get(parent.id), low.get(frame.id)));
|
|
37294
|
+
if (low.get(frame.id) !== index.get(frame.id)) continue;
|
|
37295
|
+
const component = /* @__PURE__ */ new Set();
|
|
37296
|
+
for (let member = stack.pop(); member !== void 0; member = stack.pop()) {
|
|
37297
|
+
onStack.delete(member);
|
|
37298
|
+
component.add(member);
|
|
37299
|
+
if (member === frame.id) break;
|
|
37300
|
+
}
|
|
37301
|
+
if (component.size > 1) cycles.push(component);
|
|
37302
|
+
}
|
|
37303
|
+
}
|
|
37304
|
+
return cycles;
|
|
37305
|
+
}
|
|
37306
|
+
|
|
36911
37307
|
// src/deployment/deploy-engine/replacement/deferred-deletes.ts
|
|
36912
|
-
async function retryDeferredReplacedDeletes(run, deps, stackName, counts) {
|
|
37308
|
+
async function retryDeferredReplacedDeletes(run, deps, stackName, counts, carried = [], slots) {
|
|
36913
37309
|
const deferred = run.deferredReplacedDeletes;
|
|
36914
37310
|
run.deferredReplacedDeletes = void 0;
|
|
36915
|
-
if (deferred === void 0 || deferred.size === 0) return;
|
|
36916
|
-
const entries = [...deferred
|
|
37311
|
+
if ((deferred === void 0 || deferred.size === 0) && carried.length === 0) return;
|
|
37312
|
+
const entries = [...deferred?.values() ?? []];
|
|
36917
37313
|
const retried = entries.filter((entry) => entry.failureMessage !== void 0).length;
|
|
36918
37314
|
const cleanup = entries.filter((entry) => entry.cleanupPhase === true).length;
|
|
36919
37315
|
const movedIds = entries.length - retried - cleanup;
|
|
36920
37316
|
if (retried > 0) deps.logger.info(safeMsg`Retrying the delete of ${retried} replaced resource(s)`);
|
|
36921
37317
|
if (cleanup > 0) deps.logger.info(safeMsg`Deleting the old resource of ${cleanup} replaced resource(s)`);
|
|
36922
37318
|
if (movedIds > 0) deps.logger.info(safeMsg`Deleting the old physical id of ${movedIds} replaced custom resource(s)`);
|
|
36923
|
-
const pending = new Map(deferred);
|
|
36924
|
-
await
|
|
37319
|
+
const pending = new Map(deferred ?? []);
|
|
37320
|
+
await runCleanupDag(run, deps, stackName, counts, pending, carried, slots);
|
|
36925
37321
|
if (pending.size > 0) warnUnsentUntracked(run, deps, pending);
|
|
36926
37322
|
}
|
|
36927
|
-
async function
|
|
37323
|
+
async function runCleanupDag(run, deps, stackName, counts, pending, carried, slots) {
|
|
37324
|
+
const jobs = /* @__PURE__ */ new Map();
|
|
37325
|
+
const order = [];
|
|
37326
|
+
for (const [logicalId, entry] of pending) {
|
|
37327
|
+
const id = `deferred#${logicalId}`;
|
|
37328
|
+
jobs.set(id, {
|
|
37329
|
+
kind: "deferred",
|
|
37330
|
+
logicalId,
|
|
37331
|
+
entry
|
|
37332
|
+
});
|
|
37333
|
+
order.push({
|
|
37334
|
+
id,
|
|
37335
|
+
kind: "deferred",
|
|
37336
|
+
logicalId,
|
|
37337
|
+
resourceType: entry.resourceType,
|
|
37338
|
+
dependencies: entry.dependencies ?? [],
|
|
37339
|
+
physicalId: entry.physicalId,
|
|
37340
|
+
...entry.properties !== void 0 && { properties: entry.properties }
|
|
37341
|
+
});
|
|
37342
|
+
}
|
|
37343
|
+
carried.forEach((copy, index) => {
|
|
37344
|
+
const id = `carried#${index}#${copy.logicalId}`;
|
|
37345
|
+
jobs.set(id, {
|
|
37346
|
+
kind: "carried",
|
|
37347
|
+
copy
|
|
37348
|
+
});
|
|
37349
|
+
order.push({
|
|
37350
|
+
id,
|
|
37351
|
+
kind: "carried",
|
|
37352
|
+
logicalId: copy.logicalId,
|
|
37353
|
+
resourceType: copy.resourceType,
|
|
37354
|
+
dependencies: copy.dependencies,
|
|
37355
|
+
physicalId: copy.physicalId,
|
|
37356
|
+
properties: copy.properties
|
|
37357
|
+
});
|
|
37358
|
+
});
|
|
37359
|
+
const dag = new DagExecutor();
|
|
37360
|
+
for (const [id, waitsFor] of cleanupDeleteOrder(order)) dag.add({
|
|
37361
|
+
id,
|
|
37362
|
+
dependencies: waitsFor,
|
|
37363
|
+
state: "pending",
|
|
37364
|
+
data: jobs.get(id)
|
|
37365
|
+
});
|
|
37366
|
+
const send = async (job) => {
|
|
37367
|
+
if (deps.interrupted()) return;
|
|
37368
|
+
if (job.kind === "carried") return job.copy.remove();
|
|
37369
|
+
pending.delete(job.logicalId);
|
|
37370
|
+
return retryOne(run, deps, stackName, counts, job.logicalId, job.entry);
|
|
37371
|
+
};
|
|
37372
|
+
await dag.execute(Math.max(1, deps.options.concurrency ?? 1), (node) => slots === void 0 ? send(node.data) : slots.run(() => send(node.data)), () => deps.interrupted());
|
|
37373
|
+
}
|
|
37374
|
+
async function deleteDeferredUsersOfRemovals(run, deps, stackName, counts, removedIds, removedDependencies, heldElsewhere) {
|
|
37375
|
+
const none = /* @__PURE__ */ new Map();
|
|
36928
37376
|
const deferred = run.deferredReplacedDeletes;
|
|
36929
|
-
if (deferred === void 0 || deferred.size === 0 || removedIds.size === 0) return;
|
|
37377
|
+
if (deferred === void 0 || deferred.size === 0 || removedIds.size === 0) return none;
|
|
36930
37378
|
const users = (entry, ids) => (entry.dependencies ?? []).some((dep) => ids.has(dep));
|
|
36931
37379
|
const taken = /* @__PURE__ */ new Map();
|
|
36932
37380
|
for (const [logicalId, entry] of deferred) if (!removedIds.has(logicalId) && users(entry, removedIds)) taken.set(logicalId, entry);
|
|
36933
|
-
if (taken.size === 0) return;
|
|
37381
|
+
if (taken.size === 0) return none;
|
|
36934
37382
|
for (let grew = true; grew;) {
|
|
36935
37383
|
grew = false;
|
|
36936
37384
|
for (const [logicalId, entry] of deferred) {
|
|
@@ -36939,11 +37387,17 @@ async function deleteDeferredUsersOfRemovals(run, deps, stackName, counts, remov
|
|
|
36939
37387
|
grew = true;
|
|
36940
37388
|
}
|
|
36941
37389
|
}
|
|
36942
|
-
for (const removed of removedIds) if (removedDependencies(removed).some((dep) => dep !== removed && taken.has(dep))) return;
|
|
37390
|
+
for (const removed of removedIds) if (removedDependencies(removed).some((dep) => dep !== removed && taken.has(dep))) return none;
|
|
37391
|
+
if (heldElsewhere !== void 0 && await heldElsewhere(new Set(taken.keys()))) {
|
|
37392
|
+
const held = /* @__PURE__ */ new Map();
|
|
37393
|
+
for (const [logicalId, entry] of taken) for (const dep of entry.dependencies ?? []) if (removedIds.has(dep) && !held.has(dep)) held.set(dep, logicalId);
|
|
37394
|
+
return held;
|
|
37395
|
+
}
|
|
36943
37396
|
for (const logicalId of taken.keys()) deferred.delete(logicalId);
|
|
36944
37397
|
deps.logger.info(safeMsg`Deleting the old resource of ${taken.size} replaced resource(s) first: they use a resource removed from the template`);
|
|
36945
37398
|
await runInWaves(run, deps, stackName, counts, taken);
|
|
36946
37399
|
for (const [logicalId, entry] of taken) deferred.set(logicalId, entry);
|
|
37400
|
+
return none;
|
|
36947
37401
|
}
|
|
36948
37402
|
async function runInWaves(run, deps, stackName, counts, pending) {
|
|
36949
37403
|
while (pending.size > 0) {
|
|
@@ -38549,199 +39003,6 @@ function attemptUsesCompletedCreate(attemptedProperties, completedOps) {
|
|
|
38549
39003
|
return completedOps.some((op) => op.changeType === "CREATE" && typeof op.physicalId === "string" && op.physicalId !== "" && text.includes(op.physicalId));
|
|
38550
39004
|
}
|
|
38551
39005
|
|
|
38552
|
-
// src/analyzer/implicit-delete-deps.ts
|
|
38553
|
-
const IMPLICIT_DELETE_DEPENDENCIES = {
|
|
38554
|
-
"AWS::EC2::InternetGateway": ["AWS::EC2::VPCGatewayAttachment", "AWS::EC2::NatGateway"],
|
|
38555
|
-
"AWS::EC2::VPCGatewayAttachment": ["AWS::EC2::NatGateway"],
|
|
38556
|
-
"AWS::Events::EventBus": ["AWS::Events::Rule"],
|
|
38557
|
-
"AWS::Athena::WorkGroup": ["AWS::Athena::NamedQuery"],
|
|
38558
|
-
"AWS::CloudFront::ResponseHeadersPolicy": ["AWS::CloudFront::Distribution"],
|
|
38559
|
-
"AWS::CloudFront::CachePolicy": ["AWS::CloudFront::Distribution"],
|
|
38560
|
-
"AWS::CloudFront::OriginAccessControl": ["AWS::CloudFront::Distribution"],
|
|
38561
|
-
"AWS::EC2::VPC": [
|
|
38562
|
-
"AWS::EC2::Subnet",
|
|
38563
|
-
"AWS::EC2::SecurityGroup",
|
|
38564
|
-
"AWS::EC2::InternetGateway",
|
|
38565
|
-
"AWS::EC2::EgressOnlyInternetGateway",
|
|
38566
|
-
"AWS::EC2::VPCGatewayAttachment",
|
|
38567
|
-
"AWS::EC2::RouteTable"
|
|
38568
|
-
],
|
|
38569
|
-
"AWS::EC2::Subnet": ["AWS::EC2::SubnetRouteTableAssociation", "AWS::Lambda::Function"],
|
|
38570
|
-
"AWS::EC2::RouteTable": ["AWS::EC2::Route", "AWS::EC2::SubnetRouteTableAssociation"],
|
|
38571
|
-
"AWS::EC2::SecurityGroup": [
|
|
38572
|
-
"AWS::EC2::SecurityGroupIngress",
|
|
38573
|
-
"AWS::EC2::SecurityGroupEgress",
|
|
38574
|
-
"AWS::Lambda::Function"
|
|
38575
|
-
]
|
|
38576
|
-
};
|
|
38577
|
-
function typesDeletedBefore(type) {
|
|
38578
|
-
return Object.prototype.hasOwnProperty.call(IMPLICIT_DELETE_DEPENDENCIES, type) ? IMPLICIT_DELETE_DEPENDENCIES[type] : [];
|
|
38579
|
-
}
|
|
38580
|
-
const ALARM_RULE_FUNCTION_REGEX = /\b(?:ALARM|OK|INSUFFICIENT_DATA)\s*\(\s*([^)]*?)\s*\)/gi;
|
|
38581
|
-
function extractReferencedAlarmNames(alarmRule) {
|
|
38582
|
-
const names = /* @__PURE__ */ new Set();
|
|
38583
|
-
for (const match of alarmRule.matchAll(ALARM_RULE_FUNCTION_REGEX)) {
|
|
38584
|
-
let arg = (match[1] ?? "").trim();
|
|
38585
|
-
if (arg.length === 0) continue;
|
|
38586
|
-
if (arg.startsWith("\"") && arg.endsWith("\"") || arg.startsWith("'") && arg.endsWith("'")) arg = arg.slice(1, -1);
|
|
38587
|
-
if (arg.length === 0) continue;
|
|
38588
|
-
const arnAlarmMatch = /:alarm:(.+)$/.exec(arg);
|
|
38589
|
-
if (arnAlarmMatch?.[1]) names.add(arnAlarmMatch[1]);
|
|
38590
|
-
else names.add(arg);
|
|
38591
|
-
}
|
|
38592
|
-
return [...names];
|
|
38593
|
-
}
|
|
38594
|
-
function computeImplicitDeleteEdges(resources) {
|
|
38595
|
-
const edges = [];
|
|
38596
|
-
const alarmTypes = /* @__PURE__ */ new Set(["AWS::CloudWatch::Alarm", "AWS::CloudWatch::CompositeAlarm"]);
|
|
38597
|
-
const nameToLogicalId = /* @__PURE__ */ new Map();
|
|
38598
|
-
for (const [logicalId, resource] of Object.entries(resources)) {
|
|
38599
|
-
if (!alarmTypes.has(resource.resourceType)) continue;
|
|
38600
|
-
const alarmName = typeof resource.properties?.["AlarmName"] === "string" ? resource.properties["AlarmName"] : resource.physicalId;
|
|
38601
|
-
if (alarmName) nameToLogicalId.set(alarmName, logicalId);
|
|
38602
|
-
}
|
|
38603
|
-
for (const [logicalId, resource] of Object.entries(resources)) {
|
|
38604
|
-
if (resource.resourceType !== "AWS::CloudWatch::CompositeAlarm") continue;
|
|
38605
|
-
const alarmRule = resource.properties?.["AlarmRule"];
|
|
38606
|
-
if (typeof alarmRule !== "string") continue;
|
|
38607
|
-
for (const referencedName of extractReferencedAlarmNames(alarmRule)) {
|
|
38608
|
-
const referencedLogicalId = nameToLogicalId.get(referencedName);
|
|
38609
|
-
if (!referencedLogicalId || referencedLogicalId === logicalId) continue;
|
|
38610
|
-
edges.push({
|
|
38611
|
-
before: logicalId,
|
|
38612
|
-
after: referencedLogicalId
|
|
38613
|
-
});
|
|
38614
|
-
}
|
|
38615
|
-
}
|
|
38616
|
-
return edges;
|
|
38617
|
-
}
|
|
38618
|
-
|
|
38619
|
-
// src/deployment/dag-executor.ts
|
|
38620
|
-
var DagExecutor = class {
|
|
38621
|
-
nodes = /* @__PURE__ */ new Map();
|
|
38622
|
-
logger = getLogger().child("DagExecutor");
|
|
38623
|
-
priorityById = null;
|
|
38624
|
-
timingScope;
|
|
38625
|
-
constructor(timingScope) {
|
|
38626
|
-
this.timingScope = timingScope;
|
|
38627
|
-
}
|
|
38628
|
-
add(node) {
|
|
38629
|
-
this.nodes.set(node.id, node);
|
|
38630
|
-
}
|
|
38631
|
-
computePriorities() {
|
|
38632
|
-
if (this.priorityById) return this.priorityById;
|
|
38633
|
-
const dependentsOf = /* @__PURE__ */ new Map();
|
|
38634
|
-
for (const node of this.nodes.values()) for (const depId of node.dependencies) {
|
|
38635
|
-
if (!this.nodes.has(depId)) continue;
|
|
38636
|
-
let set = dependentsOf.get(depId);
|
|
38637
|
-
if (!set) {
|
|
38638
|
-
set = /* @__PURE__ */ new Set();
|
|
38639
|
-
dependentsOf.set(depId, set);
|
|
38640
|
-
}
|
|
38641
|
-
set.add(node.id);
|
|
38642
|
-
}
|
|
38643
|
-
const memo = /* @__PURE__ */ new Map();
|
|
38644
|
-
const visiting = /* @__PURE__ */ new Set();
|
|
38645
|
-
const collect = (id) => {
|
|
38646
|
-
const cached = memo.get(id);
|
|
38647
|
-
if (cached) return cached;
|
|
38648
|
-
const acc = /* @__PURE__ */ new Set();
|
|
38649
|
-
if (visiting.has(id)) return acc;
|
|
38650
|
-
visiting.add(id);
|
|
38651
|
-
for (const dependent of dependentsOf.get(id) ?? []) {
|
|
38652
|
-
acc.add(dependent);
|
|
38653
|
-
for (const t of collect(dependent)) acc.add(t);
|
|
38654
|
-
}
|
|
38655
|
-
visiting.delete(id);
|
|
38656
|
-
memo.set(id, acc);
|
|
38657
|
-
return acc;
|
|
38658
|
-
};
|
|
38659
|
-
const priorities = /* @__PURE__ */ new Map();
|
|
38660
|
-
for (const id of this.nodes.keys()) priorities.set(id, collect(id).size);
|
|
38661
|
-
this.priorityById = priorities;
|
|
38662
|
-
return priorities;
|
|
38663
|
-
}
|
|
38664
|
-
has(id) {
|
|
38665
|
-
return this.nodes.has(id);
|
|
38666
|
-
}
|
|
38667
|
-
size() {
|
|
38668
|
-
return this.nodes.size;
|
|
38669
|
-
}
|
|
38670
|
-
values() {
|
|
38671
|
-
return this.nodes.values();
|
|
38672
|
-
}
|
|
38673
|
-
async execute(concurrency, fn, cancelled = () => false) {
|
|
38674
|
-
let active = 0;
|
|
38675
|
-
const errors = [];
|
|
38676
|
-
const priority = this.computePriorities();
|
|
38677
|
-
const timingScope = phaseTimingsEnabled() ? this.timingScope : void 0;
|
|
38678
|
-
const readySince = /* @__PURE__ */ new Map();
|
|
38679
|
-
return new Promise((resolve, reject) => {
|
|
38680
|
-
const dispatch = () => {
|
|
38681
|
-
let changed = true;
|
|
38682
|
-
while (changed) {
|
|
38683
|
-
changed = false;
|
|
38684
|
-
for (const node of this.nodes.values()) {
|
|
38685
|
-
if (node.state !== "pending") continue;
|
|
38686
|
-
if ([...node.dependencies].some((depId) => {
|
|
38687
|
-
const dep = this.nodes.get(depId);
|
|
38688
|
-
return dep && (dep.state === "failed" || dep.state === "skipped");
|
|
38689
|
-
})) {
|
|
38690
|
-
node.state = "skipped";
|
|
38691
|
-
changed = true;
|
|
38692
|
-
this.logger.debug(`Skipped ${node.id}: dependency failed or was skipped`);
|
|
38693
|
-
}
|
|
38694
|
-
}
|
|
38695
|
-
}
|
|
38696
|
-
const ready = [];
|
|
38697
|
-
for (const node of this.nodes.values()) {
|
|
38698
|
-
if (node.state !== "pending") continue;
|
|
38699
|
-
if ([...node.dependencies].every((depId) => {
|
|
38700
|
-
const dep = this.nodes.get(depId);
|
|
38701
|
-
return !dep || dep.state === "completed";
|
|
38702
|
-
})) ready.push(node);
|
|
38703
|
-
}
|
|
38704
|
-
ready.sort((a, b) => (priority.get(b.id) ?? 0) - (priority.get(a.id) ?? 0));
|
|
38705
|
-
if (timingScope !== void 0) {
|
|
38706
|
-
const now = performance.now();
|
|
38707
|
-
for (const node of ready) if (!readySince.has(node.id)) readySince.set(node.id, now);
|
|
38708
|
-
}
|
|
38709
|
-
if (!cancelled()) for (const node of ready) {
|
|
38710
|
-
if (active >= concurrency) break;
|
|
38711
|
-
node.state = "running";
|
|
38712
|
-
active++;
|
|
38713
|
-
if (timingScope !== void 0) recordPhase(timingScope, "ready, waiting for a --concurrency slot", performance.now() - (readySince.get(node.id) ?? performance.now()), node.id);
|
|
38714
|
-
fn(node).then(() => {
|
|
38715
|
-
node.state = "completed";
|
|
38716
|
-
}).catch((error) => {
|
|
38717
|
-
node.state = "failed";
|
|
38718
|
-
errors.push({
|
|
38719
|
-
id: node.id,
|
|
38720
|
-
error
|
|
38721
|
-
});
|
|
38722
|
-
}).finally(() => {
|
|
38723
|
-
active--;
|
|
38724
|
-
dispatch();
|
|
38725
|
-
});
|
|
38726
|
-
}
|
|
38727
|
-
if (active === 0) {
|
|
38728
|
-
if (errors.length > 0) {
|
|
38729
|
-
reject(errors[0].error);
|
|
38730
|
-
return;
|
|
38731
|
-
}
|
|
38732
|
-
if ([...this.nodes.values()].some((n) => n.state === "pending") && !cancelled()) {
|
|
38733
|
-
const pending = [...this.nodes.values()].filter((n) => n.state === "pending").map((n) => n.id);
|
|
38734
|
-
reject(/* @__PURE__ */ new Error(`Deadlock detected: ${pending.length} node(s) stuck with unresolvable dependencies (${pending.join(", ")})`));
|
|
38735
|
-
return;
|
|
38736
|
-
}
|
|
38737
|
-
resolve();
|
|
38738
|
-
}
|
|
38739
|
-
};
|
|
38740
|
-
dispatch();
|
|
38741
|
-
});
|
|
38742
|
-
}
|
|
38743
|
-
};
|
|
38744
|
-
|
|
38745
39006
|
// src/deployment/deploy-engine/dependencies.ts
|
|
38746
39007
|
function hasPending(executor) {
|
|
38747
39008
|
for (const node of executor.values()) if (node.state === "pending") return true;
|
|
@@ -40753,7 +41014,8 @@ function buildReadCurrentStateContext(state, excludedLogicalId) {
|
|
|
40753
41014
|
const ownAttributes = ownRecord("attributes");
|
|
40754
41015
|
const ownObserved = ownRecord("observedProperties");
|
|
40755
41016
|
const ownFields = isReadableResourceEntry(own) ? own : {};
|
|
40756
|
-
const
|
|
41017
|
+
const rawLeaves = ownFields["noEchoLeaves"];
|
|
41018
|
+
const noEchoLeaves = Array.isArray(rawLeaves) && rawLeaves.length === 0 ? void 0 : rawLeaves;
|
|
40757
41019
|
const maskedPropertyFingerprints = ownFields["maskedPropertyFingerprints"];
|
|
40758
41020
|
const ownProvenance = noEchoLeaves !== void 0 || maskedPropertyFingerprints !== void 0 ? {
|
|
40759
41021
|
noEchoLeaves,
|
|
@@ -40776,7 +41038,7 @@ async function withRefreshedObservedBaseline(record, refresh) {
|
|
|
40776
41038
|
if (record.observedProperties === void 0 && refresh.recreated !== true) return record;
|
|
40777
41039
|
if (!provider.readCurrentState || !hasAddressablePhysicalId(record)) return record;
|
|
40778
41040
|
const noEchoFields = restored;
|
|
40779
|
-
if (noEchoFields.noEchoLeaves
|
|
41041
|
+
if (marksNoEchoLeaf(noEchoFields.noEchoLeaves) || noEchoFields.noEchoAttributeNames !== void 0 || refresh.noEcho.substituted.length > 0 || maskedLeafCoordinatesOf(restored.properties).length > 0 || maskedLeafCoordinatesOf(record.observedProperties).length > 0) return record;
|
|
40780
41042
|
const readCurrentState = provider.readCurrentState.bind(provider);
|
|
40781
41043
|
let observed;
|
|
40782
41044
|
try {
|
|
@@ -40805,6 +41067,9 @@ async function withRefreshedObservedBaseline(record, refresh) {
|
|
|
40805
41067
|
readback: observed
|
|
40806
41068
|
}, refresh.publicTokens);
|
|
40807
41069
|
}
|
|
41070
|
+
function marksNoEchoLeaf(field) {
|
|
41071
|
+
return field !== void 0 && !(Array.isArray(field) && field.length === 0);
|
|
41072
|
+
}
|
|
40808
41073
|
|
|
40809
41074
|
// src/deployment/rollback-executor/replay-revert.ts
|
|
40810
41075
|
async function replayReadopt(s, survivor) {
|
|
@@ -41206,7 +41471,7 @@ async function finishReverseReplacement(s, r, createResult, deletedNewFirst) {
|
|
|
41206
41471
|
newProperties: current.properties,
|
|
41207
41472
|
physicalId: current.physicalId
|
|
41208
41473
|
}) && !deletedNewFirst && createResult.physicalId === current.physicalId;
|
|
41209
|
-
const keepLiveRecord = adoptedLiveNewResource && oldType === op.resourceType && !isCustomResource
|
|
41474
|
+
const keepLiveRecord = adoptedLiveNewResource && oldType === op.resourceType && !isCustomResource(oldType);
|
|
41210
41475
|
if (adoptedLiveNewResource) {
|
|
41211
41476
|
const liveShown = refusalPhysicalId(mask(String(displayPhysicalId(current.resourceType, current.physicalId))));
|
|
41212
41477
|
logger.warn(` ⚠ ${shownLogicalId(op.logicalId)} (${refusalResourceType(op.resourceType)}): the re-create returned the LIVE new resource (${liveShown}) instead of re-creating the old one — its Create API is name-idempotent and the new resource still holds the same user-supplied name. Skipping the delete-new step (it would delete that very resource). ` + (keepLiveRecord ? "The old resource's ORIGINAL properties were NOT re-applied; state keeps the live resource's record, with the failed deploy's properties, so " + safeMsg`${proseQuoted(cdkdRemedy("cdkd deploy"))} re-applies the template's, or rename the resource to make the replacement ` + `reversible.` : "The old resource's ORIGINAL properties may NOT have been re-applied; state now records the pre-replacement properties, so inspect the drift and " + safeMsg`run ${proseQuoted(cdkdRemedy("cdkd deploy"))} to reconcile, or rename the resource to make the replacement ` + `reversible.`) + `${describedPhysicalIdPointer(liveShown)}\nInspect it with: ${pasteableCommand("cdkd drift", [{
|
|
@@ -44902,7 +45167,7 @@ function redactStateForPersist(state) {
|
|
|
44902
45167
|
const templateProps = this.secretsRun.perResourceTemplateProps.get(logicalId);
|
|
44903
45168
|
const healed = this.attributeHealer.withHealedAttributes(logicalId, record);
|
|
44904
45169
|
const scrubbed = scrubResourceRecord(healed, secrets ?? /* @__PURE__ */ new Map(), templateProps, void 0, sameGenerationClaimsOf(healed));
|
|
44905
|
-
const noEchoScrubbed = withSecretAttributeKeysDropped(withOffTemplateEchoesMasked(applyNoEchoPersist(this.noEchoRun, this.noEchoDeps(), logicalId, record, withNoEchoExactEchoes(this.noEchoRun, logicalId, scrubbed), templateProps, state.resources, secrets), {
|
|
45170
|
+
const noEchoScrubbed = withSecretAttributeKeysDropped(withOffTemplateEchoesMasked(applyNoEchoPersist(this.noEchoRun, this.noEchoDeps(), logicalId, record, withNoEchoExactEchoes(this.noEchoRun, logicalId, scrubbed), templateProps, state.resources, secrets, false, true), {
|
|
44906
45171
|
properties: healed.properties,
|
|
44907
45172
|
...healed.observedProperties !== void 0 && { readback: healed.observedProperties }
|
|
44908
45173
|
}, publicTokens), healed, secrets, template === void 0 ? void 0 : templateGetAttNamesOf(template, logicalId), publicTokens);
|
|
@@ -44913,7 +45178,7 @@ function redactStateForPersist(state) {
|
|
|
44913
45178
|
const sameResource = this.secretsRun.perResourceResolvedType.get(entry.logicalId) === entry.state.resourceType;
|
|
44914
45179
|
const orphanTemplateProps = sameResource ? this.secretsRun.perResourceTemplateProps.get(entry.logicalId) : void 0;
|
|
44915
45180
|
const orphanSecrets = sameResource ? this.secretsRun.perResourceSecrets.get(entry.logicalId) : void 0;
|
|
44916
|
-
return withMaskedPropertyFingerprints(withSecretAttributeKeysDropped(withOffTemplateEchoesMasked(applyNoEchoPersist(this.noEchoRun, this.noEchoDeps(), entry.logicalId, entry.state, withStoredReferencePositionsMasked(scrubResourceRecord(entry.state, orphanSecrets ?? /* @__PURE__ */ new Map(), orphanTemplateProps, void 0, sameGenerationClaimsOf(entry.state))), orphanTemplateProps, state.resources), {
|
|
45181
|
+
return withMaskedPropertyFingerprints(withSecretAttributeKeysDropped(withOffTemplateEchoesMasked(applyNoEchoPersist(this.noEchoRun, this.noEchoDeps(), entry.logicalId, entry.state, withStoredReferencePositionsMasked(scrubResourceRecord(entry.state, orphanSecrets ?? /* @__PURE__ */ new Map(), orphanTemplateProps, void 0, sameGenerationClaimsOf(entry.state))), orphanTemplateProps, state.resources, void 0, false, sameResource), {
|
|
44917
45182
|
properties: entry.state.properties,
|
|
44918
45183
|
...entry.state.observedProperties !== void 0 && { readback: entry.state.observedProperties }
|
|
44919
45184
|
}, publicTokens), entry.state, orphanSecrets, template === void 0 ? void 0 : templateGetAttNamesOf(template, entry.logicalId), publicTokens), entry.state.properties, orphanTemplateProps, orphanSecrets, sameResource ? this.secretsRun.fingerprintNoEchoValues : void 0, sameResource ? this.secretsRun.perResourceInputFingerprints.get(entry.logicalId) : void 0, sameResource ? this.secretsRun.perResourceReferenceFingerprints.get(entry.logicalId) : void 0);
|
|
@@ -45507,7 +45772,7 @@ var DeferredReadinessRun = class {
|
|
|
45507
45772
|
const deadlineOptions = {
|
|
45508
45773
|
warnAfterMs,
|
|
45509
45774
|
timeoutMs,
|
|
45510
|
-
onWarn: (elapsedMs) => this.deps.logger.info(this.mask(logicalId, safeMsg`Still waiting for ${logicalId} (${resourceType}) to be ready after ${
|
|
45775
|
+
onWarn: (elapsedMs) => this.deps.logger.info(this.mask(logicalId, safeMsg`Still waiting for ${logicalId} (${resourceType}) to be ready after ${formatWarnElapsed(elapsedMs)}`)),
|
|
45511
45776
|
onTimeout: (elapsedMs) => new ResourceTimeoutError(logicalId, resourceType, this.deps.region, elapsedMs, operation, timeoutMs)
|
|
45512
45777
|
};
|
|
45513
45778
|
try {
|
|
@@ -50629,6 +50894,28 @@ function plannedChangesLine(counts) {
|
|
|
50629
50894
|
}
|
|
50630
50895
|
|
|
50631
50896
|
// src/deployment/nested-cleanup-scope.ts
|
|
50897
|
+
var CleanupDeleteSlots = class {
|
|
50898
|
+
active = 0;
|
|
50899
|
+
waiters = [];
|
|
50900
|
+
limit;
|
|
50901
|
+
constructor(limit) {
|
|
50902
|
+
this.limit = limit;
|
|
50903
|
+
}
|
|
50904
|
+
async run(fn) {
|
|
50905
|
+
if (this.active < this.limit) this.active++;
|
|
50906
|
+
else await new Promise((resolve) => this.waiters.push(resolve));
|
|
50907
|
+
try {
|
|
50908
|
+
return await fn();
|
|
50909
|
+
} finally {
|
|
50910
|
+
const next = this.waiters.shift();
|
|
50911
|
+
if (next !== void 0) next();
|
|
50912
|
+
else this.active--;
|
|
50913
|
+
}
|
|
50914
|
+
}
|
|
50915
|
+
};
|
|
50916
|
+
function isDescendantStack(stackName, ancestor) {
|
|
50917
|
+
return stackName.startsWith(`${ancestor}~`);
|
|
50918
|
+
}
|
|
50632
50919
|
var NestedCleanupQueue = class {
|
|
50633
50920
|
entries = [];
|
|
50634
50921
|
open = true;
|
|
@@ -50651,31 +50938,66 @@ var NestedCleanupQueue = class {
|
|
|
50651
50938
|
if (!other.enqueue(moved)) entry.abandon("failed");
|
|
50652
50939
|
}
|
|
50653
50940
|
}
|
|
50654
|
-
async runAll(context, logger) {
|
|
50941
|
+
async runAll(context, logger, concurrency = 1) {
|
|
50655
50942
|
this.open = false;
|
|
50943
|
+
const limit = Number.isFinite(concurrency) && concurrency >= 1 ? Math.floor(concurrency) : 1;
|
|
50944
|
+
const waiting = this.entries.splice(0);
|
|
50945
|
+
const passContext = {
|
|
50946
|
+
...context,
|
|
50947
|
+
deleteSlots: context.deleteSlots ?? new CleanupDeleteSlots(limit)
|
|
50948
|
+
};
|
|
50656
50949
|
let updatePartial = 0;
|
|
50657
50950
|
let nestedUpdatePartial = 0;
|
|
50658
|
-
|
|
50659
|
-
|
|
50660
|
-
entry.abandon("interrupted");
|
|
50661
|
-
for (const rest of this.entries.splice(0)) rest.abandon("interrupted");
|
|
50662
|
-
break;
|
|
50663
|
-
}
|
|
50951
|
+
let updatedToPartial = 0;
|
|
50952
|
+
const runOne = async (entry) => {
|
|
50664
50953
|
const kind = entry.producer === true ? "stack" : "nested stack";
|
|
50665
50954
|
logger.info(safeMsg`Deleting the replaced resources of ${kind} ${displayStackName(entry.stackName)}`);
|
|
50666
|
-
let
|
|
50955
|
+
let outcome;
|
|
50667
50956
|
try {
|
|
50668
|
-
|
|
50957
|
+
outcome = await entry.run(passContext);
|
|
50669
50958
|
} catch (error) {
|
|
50670
50959
|
logger.warn(safeMsg` ⚠ The cleanup of ${kind} ${displayStackName(entry.stackName)} failed: ${asIsMessage(describeAwsFailure(error).summary)}. Its old resources were not deleted`);
|
|
50671
|
-
|
|
50960
|
+
outcome = entry.fail();
|
|
50961
|
+
}
|
|
50962
|
+
updatePartial += outcome.updatePartial;
|
|
50963
|
+
if (entry.producer !== true) nestedUpdatePartial += outcome.updatePartial;
|
|
50964
|
+
else updatedToPartial += outcome.updatedToPartial ?? 0;
|
|
50965
|
+
};
|
|
50966
|
+
const inFlight = /* @__PURE__ */ new Map();
|
|
50967
|
+
const mustWait = (entry) => waiting.some((other) => isDescendantStack(other.stackName, entry.stackName)) || [...inFlight.values()].some((running) => running === entry.stackName || isDescendantStack(running, entry.stackName));
|
|
50968
|
+
let failure;
|
|
50969
|
+
const record = (error) => {
|
|
50970
|
+
failure ??= { error };
|
|
50971
|
+
};
|
|
50972
|
+
const start = (index) => {
|
|
50973
|
+
const [entry] = waiting.splice(index, 1);
|
|
50974
|
+
const task = runOne(entry).catch(record).finally(() => inFlight.delete(task));
|
|
50975
|
+
inFlight.set(task, entry.stackName);
|
|
50976
|
+
};
|
|
50977
|
+
while (inFlight.size > 0 || failure === void 0 && waiting.length > 0) {
|
|
50978
|
+
if (failure === void 0) try {
|
|
50979
|
+
for (let index = 0; index < waiting.length && inFlight.size < limit;) {
|
|
50980
|
+
if (context.interrupted()) {
|
|
50981
|
+
for (const rest of waiting.splice(0)) rest.abandon("interrupted");
|
|
50982
|
+
break;
|
|
50983
|
+
}
|
|
50984
|
+
if (mustWait(waiting[index])) index++;
|
|
50985
|
+
else start(index);
|
|
50986
|
+
}
|
|
50987
|
+
if (inFlight.size === 0 && waiting.length > 0) start(0);
|
|
50988
|
+
} catch (error) {
|
|
50989
|
+
record(error);
|
|
50672
50990
|
}
|
|
50673
|
-
|
|
50674
|
-
|
|
50991
|
+
if (inFlight.size > 0) await Promise.race(inFlight.keys());
|
|
50992
|
+
}
|
|
50993
|
+
if (failure !== void 0) {
|
|
50994
|
+
this.entries.unshift(...waiting);
|
|
50995
|
+
throw failure.error;
|
|
50675
50996
|
}
|
|
50676
50997
|
return {
|
|
50677
50998
|
updatePartial,
|
|
50678
|
-
nestedUpdatePartial
|
|
50999
|
+
nestedUpdatePartial,
|
|
51000
|
+
updatedToPartial
|
|
50679
51001
|
};
|
|
50680
51002
|
}
|
|
50681
51003
|
abandon(why) {
|
|
@@ -50690,17 +51012,32 @@ function withNestedCleanupQueue(queue, fn) {
|
|
|
50690
51012
|
function getNestedCleanupQueue() {
|
|
50691
51013
|
return nestedCleanupStore.getStore();
|
|
50692
51014
|
}
|
|
51015
|
+
const cleanupDeleteSlotsStore = new AsyncLocalStorage();
|
|
51016
|
+
function withCleanupDeleteSlots(slots, fn) {
|
|
51017
|
+
return cleanupDeleteSlotsStore.run(slots, fn);
|
|
51018
|
+
}
|
|
51019
|
+
function currentCleanupDeleteSlots() {
|
|
51020
|
+
return cleanupDeleteSlotsStore.getStore();
|
|
51021
|
+
}
|
|
50693
51022
|
|
|
50694
51023
|
// src/deployment/deploy-engine/superseded-retry.ts
|
|
50695
51024
|
async function retryCarriedSupersededResources(engine, host, carried, resources, options = {}) {
|
|
50696
51025
|
let changed = false;
|
|
50697
51026
|
if (carried.length === 0) return changed;
|
|
51027
|
+
const retryOne = carriedSupersededRetrier(engine, host, resources, options);
|
|
51028
|
+
for (const entry of supersededDependentsFirst(carried)) {
|
|
51029
|
+
if (engine.interrupted) break;
|
|
51030
|
+
if (await retryOne(entry)) changed = true;
|
|
51031
|
+
}
|
|
51032
|
+
return changed;
|
|
51033
|
+
}
|
|
51034
|
+
function carriedSupersededRetrier(engine, host, resources, options = {}) {
|
|
50698
51035
|
const view = {
|
|
50699
51036
|
live: () => Object.entries(resources),
|
|
50700
51037
|
survivors: () => Object.entries(resources)
|
|
50701
51038
|
};
|
|
50702
|
-
|
|
50703
|
-
|
|
51039
|
+
return async (entry) => {
|
|
51040
|
+
let changed = false;
|
|
50704
51041
|
const { logicalId } = entry;
|
|
50705
51042
|
const { physicalId, resourceType } = entry.state;
|
|
50706
51043
|
const bag = unionOfSecretBags([secretNameBagFor(engine.secretsRun, logicalId), orphanRecordsPrintingBag([entry])]);
|
|
@@ -50710,10 +51047,10 @@ async function retryCarriedSupersededResources(engine, host, carried, resources,
|
|
|
50710
51047
|
changed = true;
|
|
50711
51048
|
if (holder.resourceType !== resourceType) {
|
|
50712
51049
|
withPrintingSecrets(bag, () => engine.logger.warn(safeMsg` ⚠ ${supersededHeldByOtherTypeWarning(entry, holder.resourceType)}`));
|
|
50713
|
-
|
|
51050
|
+
return changed;
|
|
50714
51051
|
}
|
|
50715
51052
|
withPrintingSecrets(bag, () => engine.logger.debug(safeMsg`Superseded ${logicalId} (${displayPhysicalId(resourceType, physicalId)}) is held by a record again; not deleting it`));
|
|
50716
|
-
|
|
51053
|
+
return changed;
|
|
50717
51054
|
}
|
|
50718
51055
|
await withPrintingSecrets(bag, () => withStackRecords(view, async () => {
|
|
50719
51056
|
engine.logger.info(safeMsg` Deleting old ${logicalId} (${displayPhysicalId(resourceType, physicalId)}), superseded by an earlier deploy...`);
|
|
@@ -50771,8 +51108,8 @@ async function retryCarriedSupersededResources(engine, host, carried, resources,
|
|
|
50771
51108
|
}
|
|
50772
51109
|
engine.logger.info(safeMsg` ${green("✓")} Old ${logicalId} (${displayPhysicalId(resourceType, physicalId)}) deleted`);
|
|
50773
51110
|
}));
|
|
50774
|
-
|
|
50775
|
-
|
|
51111
|
+
return changed;
|
|
51112
|
+
};
|
|
50776
51113
|
}
|
|
50777
51114
|
|
|
50778
51115
|
// src/deployment/deploy-engine/consumer-held-superseded.ts
|
|
@@ -50799,7 +51136,19 @@ async function carriedNotHeldByConsumers(engine, stackName, carried, live) {
|
|
|
50799
51136
|
}
|
|
50800
51137
|
return carried.filter((entry) => !kept.has(entry));
|
|
50801
51138
|
}
|
|
50802
|
-
async function
|
|
51139
|
+
async function oldCopiesHeldByConsumers(engine, stackName, entries, live, only) {
|
|
51140
|
+
const recorded = entries.filter((entry) => entry !== void 0);
|
|
51141
|
+
if (recorded.length < entries.length) {
|
|
51142
|
+
engine.logger.info(safeMsg` An old copy of a replaced resource is not recorded in state, so cdkd cannot tell whether a stack importing this stack's outputs still uses it: it is deleted after those stacks deploy, not before the removed resources it uses`);
|
|
51143
|
+
return true;
|
|
51144
|
+
}
|
|
51145
|
+
const holders = await consumersNaming(engine, stackName, recorded, live, only);
|
|
51146
|
+
const names = [...new Set([...holders.values()].flat())];
|
|
51147
|
+
if (names.length === 0) return false;
|
|
51148
|
+
withPrintingSecrets(orphanRecordsPrintingBag(recorded), () => engine.logger.info(safeMsg` ${names.join(", ")} (importing this stack's outputs) still uses an old copy of a replaced resource, so it is deleted after those stacks deploy, not before the removed resources it uses`));
|
|
51149
|
+
return true;
|
|
51150
|
+
}
|
|
51151
|
+
async function consumersNaming(engine, stackName, entries, live, only) {
|
|
50803
51152
|
const region = canonicalizeRegion(engine.stackRegion);
|
|
50804
51153
|
const holders = /* @__PURE__ */ new Map();
|
|
50805
51154
|
const holdAll = (why) => {
|
|
@@ -50808,7 +51157,7 @@ async function consumersNaming(engine, stackName, entries, live) {
|
|
|
50808
51157
|
};
|
|
50809
51158
|
let refs;
|
|
50810
51159
|
try {
|
|
50811
|
-
refs = await engine.stateBackend.listStacks();
|
|
51160
|
+
refs = only !== void 0 ? [...only] : await engine.stateBackend.listStacks();
|
|
50812
51161
|
} catch {
|
|
50813
51162
|
return holdAll("a stack cdkd could not list");
|
|
50814
51163
|
}
|
|
@@ -50866,17 +51215,33 @@ function names(leaf, needle) {
|
|
|
50866
51215
|
|
|
50867
51216
|
// src/deployment/deploy-engine/nested-cleanup.ts
|
|
50868
51217
|
async function runCleanupPhase(engine, { stackName, counts, completedOperations, host, carried, resources, releasedSomething }) {
|
|
51218
|
+
const sendable = carried.length === 0 ? [] : await carriedNotHeldByConsumers(engine, stackName, carried, resources);
|
|
51219
|
+
const retryCarried = sendable.length === 0 ? void 0 : carriedSupersededRetrier(engine, host, resources, { waitInUse: releasedSomething });
|
|
51220
|
+
const carriedCopies = sendable.map((entry) => ({
|
|
51221
|
+
logicalId: entry.logicalId,
|
|
51222
|
+
resourceType: entry.state.resourceType,
|
|
51223
|
+
dependencies: recordDependencies(entry),
|
|
51224
|
+
physicalId: entry.state.physicalId,
|
|
51225
|
+
properties: entry.state.properties,
|
|
51226
|
+
remove: async () => {
|
|
51227
|
+
await retryCarried(entry);
|
|
51228
|
+
}
|
|
51229
|
+
}));
|
|
50869
51230
|
try {
|
|
50870
|
-
await retryDeferredReplacedDeletes(engine.replacementRun, engine.replacementDeps(), stackName, counts);
|
|
51231
|
+
await retryDeferredReplacedDeletes(engine.replacementRun, engine.replacementDeps(), stackName, counts, carriedCopies, currentCleanupDeleteSlots());
|
|
50871
51232
|
} finally {
|
|
50872
51233
|
restampReplacedVerdicts(engine, completedOperations);
|
|
50873
51234
|
}
|
|
50874
|
-
const sendable = await carriedNotHeldByConsumers(engine, stackName, carried, resources);
|
|
50875
|
-
await retryCarriedSupersededResources(engine, host, sendable, resources, { waitInUse: releasedSomething });
|
|
50876
51235
|
}
|
|
50877
|
-
|
|
51236
|
+
function recordDependencies(entry) {
|
|
51237
|
+
const deps = entry.state.dependencies;
|
|
51238
|
+
return Array.isArray(deps) ? deps.filter((dep) => typeof dep === "string") : [];
|
|
51239
|
+
}
|
|
51240
|
+
async function deleteUsersOfRemovalsFirst(engine, stackName, counts, removedIds, currentState, completedOperations, live) {
|
|
51241
|
+
const held = engine.options.consumerCleanupQueue !== void 0;
|
|
51242
|
+
const producer = stackName.split("~")[0];
|
|
50878
51243
|
try {
|
|
50879
|
-
await deleteDeferredUsersOfRemovals(engine.replacementRun, engine.replacementDeps(), stackName, counts, removedIds, recordedDependencies(currentState.resources));
|
|
51244
|
+
return await deleteDeferredUsersOfRemovals(engine.replacementRun, engine.replacementDeps(), stackName, counts, removedIds, recordedDependencies(currentState.resources), held ? (taken) => oldCopiesHeldByConsumers(engine, producer, [...taken].map((id) => engine.replacementRun.supersededEntries.get(id)), live, engine.options.consumerStacks) : void 0);
|
|
50880
51245
|
} finally {
|
|
50881
51246
|
restampReplacedVerdicts(engine, completedOperations);
|
|
50882
51247
|
}
|
|
@@ -50894,7 +51259,7 @@ async function runOrQueueCleanups(engine, stackName, host, nestedCleanups, actua
|
|
|
50894
51259
|
const held = engine.options.parentStackInfo === void 0 ? engine.options.consumerCleanupQueue : void 0;
|
|
50895
51260
|
if (nestedCleanups !== void 0 && held !== void 0 && nestedCleanups.size > 0) nestedCleanups.drainInto(held);
|
|
50896
51261
|
else if (nestedCleanups !== void 0) {
|
|
50897
|
-
const { updatePartial, nestedUpdatePartial } = await nestedCleanups.runAll({ interrupted: () => engine.interrupted }, engine.logger);
|
|
51262
|
+
const { updatePartial, nestedUpdatePartial } = await nestedCleanups.runAll({ interrupted: () => engine.interrupted }, engine.logger, engine.options.concurrency);
|
|
50898
51263
|
actualCounts.updatePartial += updatePartial;
|
|
50899
51264
|
actualCounts.nestedUpdatePartial += nestedUpdatePartial;
|
|
50900
51265
|
}
|
|
@@ -50967,16 +51332,20 @@ async function runQueuedNestedCleanup(engine, stackName, host, pass, context) {
|
|
|
50967
51332
|
}
|
|
50968
51333
|
}
|
|
50969
51334
|
const before = supersededResourcesOf(host);
|
|
51335
|
+
const seeded = run.deferredReplacedDeletes?.size ?? 0;
|
|
50970
51336
|
const counts = {
|
|
50971
|
-
updated:
|
|
51337
|
+
updated: seeded,
|
|
50972
51338
|
updatePartial: 0
|
|
50973
51339
|
};
|
|
50974
|
-
await pass(stillOwed, counts);
|
|
51340
|
+
await withCleanupDeleteSlots(context.deleteSlots, () => pass(stillOwed, counts));
|
|
50975
51341
|
const after = supersededResourcesOf(host);
|
|
50976
51342
|
const dropped = before.filter((entry) => !after.some((row) => sameSuperseded(row, entry)));
|
|
50977
51343
|
const replaced = after.filter((row) => !before.includes(row) && before.some((entry) => sameSuperseded(row, entry)));
|
|
50978
51344
|
const unrecorded = dropped.length > 0 || replaced.length > 0 ? await persistDropped(engine, stackName, read, dropped, replaced) : 0;
|
|
50979
|
-
return {
|
|
51345
|
+
return {
|
|
51346
|
+
updatePartial: counts.updatePartial + unrecorded,
|
|
51347
|
+
updatedToPartial: seeded - counts.updated
|
|
51348
|
+
};
|
|
50980
51349
|
} finally {
|
|
50981
51350
|
try {
|
|
50982
51351
|
await engine.lockManager.releaseLock(stackName, region);
|
|
@@ -51039,7 +51408,7 @@ function isEtagConflict(error) {
|
|
|
51039
51408
|
}
|
|
51040
51409
|
|
|
51041
51410
|
// src/deployment/deploy-engine/carried-users-of-removals.ts
|
|
51042
|
-
function carriedUsersOfRemovals(carried, resources, removedIds) {
|
|
51411
|
+
function carriedUsersOfRemovals(carried, resources, removedIds, released = /* @__PURE__ */ new Set()) {
|
|
51043
51412
|
if (carried.length === 0 || removedIds.size === 0) return [];
|
|
51044
51413
|
const recordOf = (id) => {
|
|
51045
51414
|
const record = hasOwnKey(resources, id) ? resources[id] : void 0;
|
|
@@ -51054,7 +51423,7 @@ function carriedUsersOfRemovals(carried, resources, removedIds) {
|
|
|
51054
51423
|
const record = recordOf(id);
|
|
51055
51424
|
if (record !== void 0) removedTypes.add(record.resourceType);
|
|
51056
51425
|
}
|
|
51057
|
-
const candidates = carried.filter((row) => row.heldForConsumers !== true);
|
|
51426
|
+
const candidates = carried.filter((row) => row.heldForConsumers !== true || released.has(row));
|
|
51058
51427
|
const taken = /* @__PURE__ */ new Set();
|
|
51059
51428
|
for (const row of candidates) {
|
|
51060
51429
|
const rowType = row.state.resourceType;
|
|
@@ -51086,10 +51455,13 @@ function carriedUsersOfRemovals(carried, resources, removedIds) {
|
|
|
51086
51455
|
}
|
|
51087
51456
|
return carried.filter((row) => taken.has(row));
|
|
51088
51457
|
}
|
|
51089
|
-
async function deleteCarriedUsersOfRemovalsFirst(run, carried) {
|
|
51458
|
+
async function deleteCarriedUsersOfRemovalsFirst(run, carried, held = /* @__PURE__ */ new Map()) {
|
|
51090
51459
|
const { engine, currentState, deleteChanges, newResources } = run;
|
|
51091
|
-
|
|
51092
|
-
|
|
51460
|
+
const waits = engine.options.consumerCleanupQueue !== void 0;
|
|
51461
|
+
if (engine.options.parentStackInfo !== void 0 && !waits) return carried;
|
|
51462
|
+
const released = await holdRemovalsOfNamedRows(engine, currentState, carried, deleteChanges, newResources, held);
|
|
51463
|
+
if (waits) return carried;
|
|
51464
|
+
const taken = carriedUsersOfRemovals(carried, currentState.resources, deleteChanges, released);
|
|
51093
51465
|
if (taken.length === 0) return carried;
|
|
51094
51466
|
engine.logger.info(safeMsg`Deleting ${taken.length} old resource(s) an earlier deploy kept first: they use a resource removed from the template`);
|
|
51095
51467
|
await retryCarriedSupersededResources(engine, currentState, taken, newResources, { keptRemedy: "cdkd sends it again after the removed resources are deleted" });
|
|
@@ -51101,6 +51473,47 @@ async function deleteCarriedUsersOfRemovalsFirst(run, carried) {
|
|
|
51101
51473
|
const owed = new Set(carried.map(key));
|
|
51102
51474
|
return supersededResourcesOf(currentState).filter((row) => owed.has(key(row)));
|
|
51103
51475
|
}
|
|
51476
|
+
function removedDepsOf(row, removedIds, resources) {
|
|
51477
|
+
const deps = row.state.dependencies;
|
|
51478
|
+
const named = Array.isArray(deps) ? deps.filter((dep) => typeof dep === "string" && dep !== row.logicalId) : [];
|
|
51479
|
+
if (named.length > 0) return named.filter((dep) => removedIds.has(dep));
|
|
51480
|
+
return [...removedIds].filter((id) => {
|
|
51481
|
+
const record = hasOwnKey(resources, id) ? resources[id] : void 0;
|
|
51482
|
+
const type = typeof record === "object" && record !== null ? record.resourceType : void 0;
|
|
51483
|
+
return type !== void 0 && typesDeletedBefore(type).includes(row.state.resourceType);
|
|
51484
|
+
});
|
|
51485
|
+
}
|
|
51486
|
+
async function holdRemovalsOfNamedRows(engine, currentState, carried, removedIds, live, held) {
|
|
51487
|
+
const released = /* @__PURE__ */ new Set();
|
|
51488
|
+
const waits = engine.options.consumerCleanupQueue !== void 0;
|
|
51489
|
+
const users = carried.filter((row) => (waits || row.heldForConsumers === true) && removedDepsOf(row, removedIds, currentState.resources).length > 0);
|
|
51490
|
+
if (users.length === 0) return released;
|
|
51491
|
+
const producer = engine.options.parentStackInfo === void 0 ? currentState.stackName : currentState.stackName.split("~")[0];
|
|
51492
|
+
const marked = users.filter((row) => row.heldForConsumers === true);
|
|
51493
|
+
const unmarked = users.filter((row) => row.heldForConsumers !== true);
|
|
51494
|
+
const named = /* @__PURE__ */ new Set();
|
|
51495
|
+
const ask = async (rows, only) => {
|
|
51496
|
+
if (rows.length === 0) return;
|
|
51497
|
+
const holders = await consumersNaming(engine, producer, rows, live, only);
|
|
51498
|
+
for (const row of rows) if ((holders.get(row)?.length ?? 0) > 0) named.add(row);
|
|
51499
|
+
};
|
|
51500
|
+
await ask(marked, void 0);
|
|
51501
|
+
await ask(unmarked, engine.options.consumerStacks);
|
|
51502
|
+
for (const row of users) if (named.has(row)) {
|
|
51503
|
+
for (const dep of removedDepsOf(row, removedIds, currentState.resources)) if (!held.has(dep)) held.set(dep, row.logicalId);
|
|
51504
|
+
} else if (!waits && row.heldForConsumers === true) released.add(row);
|
|
51505
|
+
const stays = carried.filter((row) => row.heldForConsumers === true && !released.has(row));
|
|
51506
|
+
while (stays.length > 0) {
|
|
51507
|
+
const deps = stays.pop().state.dependencies;
|
|
51508
|
+
if (!Array.isArray(deps)) continue;
|
|
51509
|
+
for (const row of [...released]) {
|
|
51510
|
+
if (!deps.includes(row.logicalId)) continue;
|
|
51511
|
+
released.delete(row);
|
|
51512
|
+
stays.push(row);
|
|
51513
|
+
}
|
|
51514
|
+
}
|
|
51515
|
+
return released;
|
|
51516
|
+
}
|
|
51104
51517
|
|
|
51105
51518
|
// src/provisioning/changed-properties-consumers.ts
|
|
51106
51519
|
const CHANGED_PROPERTIES_CONSUMER_TYPES = /* @__PURE__ */ new Set(["AWS::ServiceDiscovery::Service"]);
|
|
@@ -54368,16 +54781,17 @@ async function pollUntilSettled(what, opts, defaults, read, judge, describeLast)
|
|
|
54368
54781
|
const { maskSecrets } = opts;
|
|
54369
54782
|
const pollMs = opts.pollMs ?? defaults.pollMs;
|
|
54370
54783
|
const maxPolls = opts.maxPolls ?? defaults.maxPolls;
|
|
54371
|
-
if (process.env["CDKD_NO_WAIT"] === "true") {
|
|
54784
|
+
if (process.env["CDKD_NO_WAIT"] === "true" && defaults.runsUnderNoWait !== true) {
|
|
54372
54785
|
opts.debug(maskSecrets(`Skipping the wait for ${what} (CDKD_NO_WAIT=true)`));
|
|
54373
54786
|
return;
|
|
54374
54787
|
}
|
|
54788
|
+
const outcome = defaults.beforeSend === true ? "the change was NOT sent" : "the change is not confirmed";
|
|
54375
54789
|
const watch = startInterruptWatch(maskSecrets(what));
|
|
54376
54790
|
let last;
|
|
54377
54791
|
try {
|
|
54378
54792
|
for (let poll = 1; poll <= maxPolls; poll++) {
|
|
54379
54793
|
if (watch.isInterrupted()) throw watch.onInterrupted();
|
|
54380
|
-
if (enclosingDeadlineRemainingMs() <= 0) throw markNonRetryable(new Error(maskSecrets(`The resource timeout expired while waiting for ${what} (last status: ${describeLast(last)});
|
|
54794
|
+
if (enclosingDeadlineRemainingMs() <= 0) throw markNonRetryable(new Error(maskSecrets(`The resource timeout expired while waiting for ${what} (last status: ${describeLast(last)}); ${outcome}`)));
|
|
54381
54795
|
let verdict = "pending";
|
|
54382
54796
|
try {
|
|
54383
54797
|
last = await read();
|
|
@@ -54394,7 +54808,8 @@ async function pollUntilSettled(what, opts, defaults, read, judge, describeLast)
|
|
|
54394
54808
|
} finally {
|
|
54395
54809
|
watch.dispose();
|
|
54396
54810
|
}
|
|
54397
|
-
|
|
54811
|
+
const timedOut = new Error(maskSecrets(`Timed out waiting for ${what}: still ${describeLast(last)} after ${maxPolls * pollMs / 1e3} seconds; ${outcome}`));
|
|
54812
|
+
throw defaults.beforeSend === true ? timedOut : markNonRetryable(timedOut);
|
|
54398
54813
|
}
|
|
54399
54814
|
function settledFailure(head, reason, opts) {
|
|
54400
54815
|
const text = describeAwsStatusReason(reason, "");
|
|
@@ -54446,6 +54861,27 @@ async function waitForKinesisEnableActive(client, tableName, streamArn, target,
|
|
|
54446
54861
|
return settledFailure(`Kinesis streaming destination ${streamArn} on ${target} settled as ${status ?? "absent"}, expected ACTIVE`, { message: dest?.DestinationStatusDescription }, opts);
|
|
54447
54862
|
}, (dest) => dest?.DestinationStatus ?? "absent");
|
|
54448
54863
|
}
|
|
54864
|
+
async function waitForKinesisPrecisionSettled(client, tableName, streamArn, precision, target, opts) {
|
|
54865
|
+
await pollUntilSettled(`Kinesis streaming destination ${streamArn} on ${target} to read ACTIVE at ApproximateCreationDateTimePrecision ${precision}`, opts, {
|
|
54866
|
+
pollMs: KINESIS_ENABLE_SETTLE_POLL_MS,
|
|
54867
|
+
maxPolls: 300
|
|
54868
|
+
}, async () => currentDestination((await client.send(new DescribeKinesisStreamingDestinationCommand({ TableName: tableName }))).KinesisDataStreamDestinations ?? [], streamArn), (dest, poll) => {
|
|
54869
|
+
const status = dest?.DestinationStatus;
|
|
54870
|
+
if (status === "ACTIVE" && dest?.ApproximateCreationDateTimePrecision === precision) return "settled";
|
|
54871
|
+
if (status === "ENABLING" || status === "UPDATING") return "pending";
|
|
54872
|
+
if (poll <= 5) return "pending";
|
|
54873
|
+
return settledFailure(`Kinesis streaming destination ${streamArn} on ${target} settled as ${status ?? "absent"} with ApproximateCreationDateTimePrecision ${dest?.ApproximateCreationDateTimePrecision ?? "unset"}, expected ACTIVE / ${precision}`, { message: dest?.DestinationStatusDescription }, opts);
|
|
54874
|
+
}, (dest) => dest === void 0 ? "absent" : `${dest.DestinationStatus ?? "unknown"} / ${dest.ApproximateCreationDateTimePrecision ?? "unset"}`);
|
|
54875
|
+
}
|
|
54876
|
+
const KINESIS_PRE_UPDATE_POLLS = 150;
|
|
54877
|
+
async function waitForKinesisUpdatable(client, tableName, streamArn, target, opts) {
|
|
54878
|
+
await pollUntilSettled(`Kinesis streaming destination ${streamArn} on ${target} to accept an update`, opts, {
|
|
54879
|
+
pollMs: KINESIS_ENABLE_SETTLE_POLL_MS,
|
|
54880
|
+
maxPolls: 150,
|
|
54881
|
+
runsUnderNoWait: true,
|
|
54882
|
+
beforeSend: true
|
|
54883
|
+
}, async () => currentDestination((await client.send(new DescribeKinesisStreamingDestinationCommand({ TableName: tableName }))).KinesisDataStreamDestinations ?? [], streamArn), (dest) => dest?.DestinationStatus === "UPDATING" || dest?.DestinationStatus === "ENABLING" ? "pending" : "settled", (dest) => dest?.DestinationStatus ?? "absent");
|
|
54884
|
+
}
|
|
54449
54885
|
|
|
54450
54886
|
// src/provisioning/providers/dynamodb-globaltable/replica-ops.ts
|
|
54451
54887
|
async function deleteOldStreamPolicy(client, streamArn, tableName, warn, maskSecrets) {
|
|
@@ -54557,11 +54993,18 @@ async function sendReplicaSettingOp(client, tableName, region, logicalId, op, de
|
|
|
54557
54993
|
await this.waitForKinesisDisableSettled(client, tableName, op.streamArn, scope, maskSecrets);
|
|
54558
54994
|
break;
|
|
54559
54995
|
case "kinesisPrecision":
|
|
54560
|
-
await
|
|
54561
|
-
|
|
54562
|
-
|
|
54563
|
-
|
|
54564
|
-
|
|
54996
|
+
await waitForKinesisUpdatable(client, tableName, op.streamArn, scope, settleWait);
|
|
54997
|
+
try {
|
|
54998
|
+
await send(() => client.send(new UpdateKinesisStreamingDestinationCommand({
|
|
54999
|
+
TableName: tableName,
|
|
55000
|
+
StreamArn: op.streamArn,
|
|
55001
|
+
UpdateKinesisStreamingConfiguration: { ApproximateCreationDateTimePrecision: op.precision }
|
|
55002
|
+
})));
|
|
55003
|
+
} catch (error) {
|
|
55004
|
+
if (!(error instanceof Error && error.name === "ValidationException") || !/already set to the desired value/i.test(describeAwsFailure(error).detail)) throw error;
|
|
55005
|
+
this.logger.debug(maskSecrets(`Kinesis streaming precision on ${scope} is already ${op.precision}`));
|
|
55006
|
+
}
|
|
55007
|
+
await waitForKinesisPrecisionSettled(client, tableName, op.streamArn, op.precision, scope, settleWait);
|
|
54565
55008
|
break;
|
|
54566
55009
|
case "putTablePolicy":
|
|
54567
55010
|
case "putStreamPolicy": {
|
|
@@ -58269,8 +58712,17 @@ async function resolveUpdateInputs(engine, logicalId, change, stateResources, st
|
|
|
58269
58712
|
attributeIsNoEcho: noEchoSources.attributeIsNoEcho
|
|
58270
58713
|
}));
|
|
58271
58714
|
const noEchoCoordinates = canonicalCoordinates([...parameterCoordinates, ...attributeCoordinates]);
|
|
58272
|
-
const
|
|
58273
|
-
|
|
58715
|
+
const recordedLeaves = noEchoLeavesOf(currentResource) ?? [];
|
|
58716
|
+
const embeddedCoordinates = recordedLeaves.length === 0 || noEchoSources?.attributeIsNoEcho === void 0 ? [] : noEchoCoordinatesOf(desiredProps, resolvedProps, {
|
|
58717
|
+
parameters: /* @__PURE__ */ new Set(),
|
|
58718
|
+
attributeIsNoEcho: noEchoSources.attributeIsNoEcho
|
|
58719
|
+
}, void 0, {
|
|
58720
|
+
maskedAt: currentProps,
|
|
58721
|
+
only: true
|
|
58722
|
+
});
|
|
58723
|
+
const knownSources = [...noEchoCoordinates, ...embeddedCoordinates];
|
|
58724
|
+
const staleCoordinates = recordedLeaves.filter((coordinate) => {
|
|
58725
|
+
if (knownSources.some((known) => keyOrderFreeJson(known) === keyOrderFreeJson(coordinate))) return false;
|
|
58274
58726
|
return isStaleNoEchoLeaf(currentProps, resolvedProps, coordinate);
|
|
58275
58727
|
});
|
|
58276
58728
|
const comparisonCoordinates = canonicalCoordinates([...noEchoCoordinates, ...staleCoordinates]);
|
|
@@ -58447,7 +58899,7 @@ async function compareWithRecord(engine, logicalId, change, stateResources, temp
|
|
|
58447
58899
|
const allowedForRecord = allowedSdkUnwired ?? /* @__PURE__ */ new Set();
|
|
58448
58900
|
const createOnlyEvidence = acceptedCreateOnlyDropsOf(currentResource);
|
|
58449
58901
|
const recordedAsWritten = currentResource.provisionedBy === "cc-api" ? currentProps : withoutUnwrittenSdkUnwiredProperties(resourceType, currentProps, desiredForSkipCheck, allowedForRecord, createOnlyEvidence);
|
|
58450
|
-
const unmarkedRecord = noEchoLeavesOf(currentResource) ===
|
|
58902
|
+
const unmarkedRecord = (noEchoLeavesOf(currentResource)?.length ?? 0) === 0;
|
|
58451
58903
|
const todayAsWritten = unmarkedRecord || witnessNormalize(recordedAsWritten, void 0, desiredForSkipCheckAsWritten).differing.length > 0 ? redactForState(resolvedProps, {
|
|
58452
58904
|
provenance: "template-derived",
|
|
58453
58905
|
secrets: withoutNoEchoParameterEntries(updateSecrets),
|
|
@@ -60402,13 +60854,13 @@ async function provisionResource(engine, logicalId, change, stateResources, stac
|
|
|
60402
60854
|
warnAfterMs,
|
|
60403
60855
|
timeoutMs,
|
|
60404
60856
|
onWarn: (elapsedMs) => {
|
|
60405
|
-
const
|
|
60406
|
-
const warnSuffix = ` [taking longer than expected, ${
|
|
60857
|
+
const elapsed = formatWarnElapsed(elapsedMs);
|
|
60858
|
+
const warnSuffix = ` [taking longer than expected, ${elapsed}+]`;
|
|
60407
60859
|
const current = engine.liveTaskLabels.get(logicalId);
|
|
60408
60860
|
if (current !== void 0) current.warnSuffix = warnSuffix;
|
|
60409
60861
|
renderer.updateTaskLabel(logicalId, `${current?.label ?? baseLabel}${warnSuffix}`);
|
|
60410
60862
|
renderer.printAbove(() => {
|
|
60411
|
-
engine.logger.warn(safeMsg`${logicalId} (${resourceType}) has been ${operationKind === "CREATE" ? "creating" : operationKind === "DELETE" ? "deleting" : "updating"} for ${
|
|
60863
|
+
engine.logger.warn(safeMsg`${logicalId} (${resourceType}) has been ${operationKind === "CREATE" ? "creating" : operationKind === "DELETE" ? "deleting" : "updating"} for ${elapsed} — still waiting`);
|
|
60412
60864
|
});
|
|
60413
60865
|
},
|
|
60414
60866
|
onTimeout: (elapsedMs) => new ResourceTimeoutError(logicalId, resourceType, engine.stackRegion, elapsedMs, operationKind, timeoutMs)
|
|
@@ -60870,6 +61322,43 @@ function notInvokedError(run, logicalId, resourceType, error) {
|
|
|
60870
61322
|
// src/deployment/deploy-engine/execute/removal-delete-kept.ts
|
|
60871
61323
|
var RemovalDeletesKept = class {
|
|
60872
61324
|
keptBy = /* @__PURE__ */ new Map();
|
|
61325
|
+
constructor(heldForOldCopies = /* @__PURE__ */ new Map()) {
|
|
61326
|
+
this.heldForOldCopies = heldForOldCopies;
|
|
61327
|
+
}
|
|
61328
|
+
heldForOldCopies;
|
|
61329
|
+
keepUnsent(engine, node, stackName, counts, progress) {
|
|
61330
|
+
const { logicalId, change, record } = node;
|
|
61331
|
+
const oldCopy = this.heldOldCopyOf(logicalId);
|
|
61332
|
+
if (oldCopy !== void 0) {
|
|
61333
|
+
this.keepHeld(engine, logicalId, change, oldCopy, record, stackName, counts, progress);
|
|
61334
|
+
return true;
|
|
61335
|
+
}
|
|
61336
|
+
const blocker = this.blockerOf(node.dependencies);
|
|
61337
|
+
if (blocker === void 0) return false;
|
|
61338
|
+
this.keepBlocked(engine, logicalId, change, blocker, record, stackName, counts, progress);
|
|
61339
|
+
return true;
|
|
61340
|
+
}
|
|
61341
|
+
heldOldCopyOf(logicalId) {
|
|
61342
|
+
return this.heldForOldCopies.get(logicalId);
|
|
61343
|
+
}
|
|
61344
|
+
keepHeld(engine, logicalId, change, oldCopy, record, stackName, counts, progress) {
|
|
61345
|
+
this.keptBy.set(logicalId, logicalId);
|
|
61346
|
+
if (progress) progress.current++;
|
|
61347
|
+
counts.deleteSkipped++;
|
|
61348
|
+
const reason = `the old ${oldCopy} still uses it and waits for the stacks importing this stack's outputs`;
|
|
61349
|
+
getLiveRenderer().removeTask(logicalId);
|
|
61350
|
+
engine.logger.warn(safeMsg`${logicalId} (${change.resourceType}) was removed from the template, but ${reason}, so it stays in AWS and its cdkd state record was KEPT: the next 'cdkd deploy' deletes it.`);
|
|
61351
|
+
engine.recordEvent({
|
|
61352
|
+
eventType: "RESOURCE_SKIPPED",
|
|
61353
|
+
stackName,
|
|
61354
|
+
operation: "DELETE",
|
|
61355
|
+
logicalId,
|
|
61356
|
+
resourceType: change.resourceType,
|
|
61357
|
+
...record?.provisionedBy && { provisionedBy: record.provisionedBy },
|
|
61358
|
+
...record?.physicalId && { physicalId: record.physicalId },
|
|
61359
|
+
reason
|
|
61360
|
+
});
|
|
61361
|
+
}
|
|
60873
61362
|
keepFailure(engine, logicalId, change, error, counts, progress) {
|
|
60874
61363
|
if (engine.interrupted || isInterruptedWaitError(error) || deadlineFiredFor(error, logicalId)) return false;
|
|
60875
61364
|
this.keptBy.set(logicalId, logicalId);
|
|
@@ -61706,13 +62195,13 @@ async function executeDeploymentBody(registerForceQuitFlush, engine, template, c
|
|
|
61706
62195
|
}
|
|
61707
62196
|
});
|
|
61708
62197
|
if (deleteChanges.size > 0) {
|
|
61709
|
-
await deleteUsersOfRemovalsFirst(engine, stackName, actualCounts, deleteChanges, currentState, completedOperations);
|
|
61710
|
-
carriedSuperseded = await deleteCarriedUsersOfRemovalsFirst(run, carriedSuperseded);
|
|
62198
|
+
const heldForOldCopies = new Map(await deleteUsersOfRemovalsFirst(engine, stackName, actualCounts, deleteChanges, currentState, completedOperations, newResources));
|
|
62199
|
+
carriedSuperseded = await deleteCarriedUsersOfRemovalsFirst(run, carriedSuperseded, heldForOldCopies);
|
|
61711
62200
|
engine.logger.info(safeMsg`${red("Deleting")} ${red(deleteChanges.size)} resource(s)`);
|
|
61712
62201
|
const deleteDeps = buildDeletionDependencies(deleteChanges, currentState, engine.logger);
|
|
61713
62202
|
const deletes = new DagExecutor(phaseScope);
|
|
61714
62203
|
deleteExecutor = deletes;
|
|
61715
|
-
const removalKept = new RemovalDeletesKept();
|
|
62204
|
+
const removalKept = new RemovalDeletesKept(heldForOldCopies);
|
|
61716
62205
|
for (const id of deleteChanges) deletes.add({
|
|
61717
62206
|
id,
|
|
61718
62207
|
dependencies: deleteDeps.get(id) ?? /* @__PURE__ */ new Set(),
|
|
@@ -61724,11 +62213,12 @@ async function executeDeploymentBody(registerForceQuitFlush, engine, template, c
|
|
|
61724
62213
|
const logicalId = node.id;
|
|
61725
62214
|
const change = node.data;
|
|
61726
62215
|
const previousState = currentState.resources[logicalId] ? { ...currentState.resources[logicalId] } : void 0;
|
|
61727
|
-
|
|
61728
|
-
|
|
61729
|
-
|
|
61730
|
-
|
|
61731
|
-
|
|
62216
|
+
if (removalKept.keepUnsent(engine, {
|
|
62217
|
+
logicalId,
|
|
62218
|
+
change,
|
|
62219
|
+
dependencies: node.dependencies,
|
|
62220
|
+
record: previousState
|
|
62221
|
+
}, stackName, actualCounts, progress)) return;
|
|
61732
62222
|
let deleteOutcome;
|
|
61733
62223
|
try {
|
|
61734
62224
|
deleteOutcome = await timePhase(phaseScope, "resource delete", () => provisionResource(engine, logicalId, change, newResources, stackName, template, parameterValues, conditions, actualCounts, progress), `${logicalId} ${change.resourceType}`);
|
|
@@ -62787,6 +63277,23 @@ function nestedSsmNameRowNote(logicalId) {
|
|
|
62787
63277
|
return safeMsg`Nested stack ${logicalId}: a nested stack record below it holds an SSM parameter ` + "name cdkd generated before go-to-k/cdkd#6272, so this deploy updates the nested stack to re-spell it (go-to-k/cdkd#6282)";
|
|
62788
63278
|
}
|
|
62789
63279
|
|
|
63280
|
+
// src/deployment/deploy-engine/carried-noecho.ts
|
|
63281
|
+
function carriedRecordsHoldNoEchoPlaintext(engine, resources, orphans, superseded) {
|
|
63282
|
+
const rows = [...Array.isArray(orphans) ? orphans : [], ...superseded];
|
|
63283
|
+
if (rows.length === 0) return false;
|
|
63284
|
+
const sources = noEchoPositionSources(engine.noEchoRun, resources);
|
|
63285
|
+
if (sources === void 0) return false;
|
|
63286
|
+
const deps = engine.noEchoDeps();
|
|
63287
|
+
return rows.some((row) => {
|
|
63288
|
+
const record = row?.state;
|
|
63289
|
+
if (record === null || typeof record !== "object") return false;
|
|
63290
|
+
return (noEchoLeavesFor(engine.noEchoRun, deps, row.logicalId, record, void 0, sources) ?? []).some((coordinate) => {
|
|
63291
|
+
const value = valueAtCoordinate(record.properties, coordinate);
|
|
63292
|
+
return JSON.stringify(maskWholeValue(value)) !== JSON.stringify(value);
|
|
63293
|
+
});
|
|
63294
|
+
});
|
|
63295
|
+
}
|
|
63296
|
+
|
|
62790
63297
|
// src/deployment/no-change-outputs-merge.ts
|
|
62791
63298
|
function isSecretBearingReferenceString(value) {
|
|
62792
63299
|
if (typeof value !== "string") return false;
|
|
@@ -62869,6 +63376,7 @@ async function deployWithoutChanges(engine, { stackName, template, currentState,
|
|
|
62869
63376
|
const supersededChanged = engine.options.dryRun ? false : queueNestedCleanup(engine, stackName, currentState, async (stillOwed) => {
|
|
62870
63377
|
await retryCarriedSupersededResources(engine, currentState, await carriedNotHeldByConsumers(engine, stackName, supersededResourcesOf(currentState).filter(stillOwed), currentState.resources), currentState.resources);
|
|
62871
63378
|
}) ? engine.options.parentStackInfo === void 0 && unmarked : await retryCarriedSupersededResources(engine, currentState, await carriedNotHeldByConsumers(engine, stackName, supersededResourcesOf(currentState), currentState.resources), currentState.resources);
|
|
63379
|
+
const carriedNoEchoPending = carriedRecordsHoldNoEchoPlaintext(engine, currentState.resources, currentState.orphans, supersededResourcesOf(currentState));
|
|
62872
63380
|
let persistedOutputs = currentState.outputs ?? {};
|
|
62873
63381
|
if (!engine.options.dryRun) {
|
|
62874
63382
|
const resolvedOutputs = redactOutputs(engine.maskingDeps(), await withSharedDrainBudget(() => resolveOutputs(engine.outputsRun, engine.outputsDeps(), effectiveTemplate, currentState.resources, stackName, outputsDigestSource, parameterValues, conditions)));
|
|
@@ -62914,7 +63422,7 @@ async function deployWithoutChanges(engine, { stackName, template, currentState,
|
|
|
62914
63422
|
});
|
|
62915
63423
|
const outputProvenanceBackfill = !outputsChanged && currentState.outputReferenceProvenance === void 0 && engine.provenanceBaseline?.tokenFree === false && engine.outputReferenceProvenanceFor(persistedOutputs, redactOutputs(engine.maskingDeps(), persistedOutputs)) !== void 0;
|
|
62916
63424
|
const refreshedResources = withTemplateDependencies(currentState.resources, effectiveTemplate, { removalsOnly: engine.options.parentStackInfo !== void 0 });
|
|
62917
|
-
if (observedRefresh || refreshedResources !== void 0 || outputProvenanceBackfill || maskedFingerprintsBackfilled || conditionVerdictsChanged || outputsChanged || exportSetChanged || skippedOutputsChanged || orphansChanged || supersededChanged || terminationProtectionChanged || ssmNamesHealed || zonelessRecordsHealed || nestedSsmNamesMarked || healedAttributesPending || readsAdded) {
|
|
63425
|
+
if (observedRefresh || refreshedResources !== void 0 || outputProvenanceBackfill || maskedFingerprintsBackfilled || conditionVerdictsChanged || outputsChanged || exportSetChanged || skippedOutputsChanged || orphansChanged || supersededChanged || carriedNoEchoPending || terminationProtectionChanged || ssmNamesHealed || zonelessRecordsHealed || nestedSsmNamesMarked || healedAttributesPending || readsAdded) {
|
|
62918
63426
|
await resolveStackInstanceId();
|
|
62919
63427
|
try {
|
|
62920
63428
|
const refreshedState = {
|
|
@@ -63849,5 +64357,5 @@ var DeployEngine = class {
|
|
|
63849
64357
|
}
|
|
63850
64358
|
};
|
|
63851
64359
|
|
|
63852
|
-
export { streamTagsMatchDeclared as $, maskEventTextWithBoundBags as $a, yellow as $c, createLazyAssetModeContext as $d, getCurrentProducerRegions as $i, repairMalformedOrphanRecordsForReadOnly as $l, NESTED_PENDING_PARENT_REASON as $n, WaitConditionSignalStore as $o, recordedRuleIdOf as $r, classifyReplaySecretRegion as $s, contributorInsightsRefusals as $t, UNREADABLE_RESOURCES_MAP_ROW as $u, renderUnreplacedTarget as A, supersededResourcesOf as Aa, recordedValuesOf as Ac, isSecretValuedAttribute as Ad, nullPrototypeRecord as Af, demoteSupersededOrphans as Ai, maskedSecretSegment as Al, refactorMarkerMovesOf as An, verifiedIdentityCache as Ao, movedToHint as Ar, DiffCalculator as As, tableNameReleaseWait as At, malformedExportNamesWarning as Au, readProtection as B, sgCidrKey as Ba, parseCfnTemplateWithFormat as Bc, isListParameterType as Bd, resolveBucketRegion as Bf, attemptUsesCompletedCreate as Bi, maskedInputProof as Bl, settleStackTagChildRuns as Bn, memberReadFailure as Bo, parseMappingFile as Br, refuseUnreadableCdkCrossAccountRefs as Bs, waitForKinesisEnableActive as Bt, refuseDivergentRecordRegionForDestroy as Bu, healSlashedSsmParameterNames as C, deleteSupersededEntry as Ca, maskPassedSecretChanges as Cc, CrossPrefixScanCache as Cd, validateContainerRepoName as Cf, earliestDefined as Ci, isStatefulRecreateTargetSync as Cl, hasCdkAutoDeleteTag as Cn, isStoredExpression as Co, constructPathOf as Cr, deleteIndeterminateGuards as Cs, mapSSESpecification as Ct, UNREADABLE_ORPHANS_CONTAINER_ROW as Cu, scanActiveConsumers as D, supersededDependentsFirst as Da, mixedSecretTagKeys as Dc, isNotImplemented as Dd, defineOwnKey as Df, acquireIdempotencyToken as Di, toFiniteNumber as Dl, recordRetainedForReadoption as Dn, destroyStackRecordsView as Do, orphanedLogicalIds as Dr, getReadOnlyPropertyPaths as Ds, sseSpecificationRefusal as Dt, refuseMalformedOrphans as Du, slashedSsmNameHealPendingNote as E, supersededAfterRollback as Ea, mixedSecretRowKeys as Ec, isAccessDenied$1 as Ed, getCdkdContainerRepoName as Ef, withCreateTokenLedger as Ei, toCfnInteger as El, keptForRetainedRecord as En, awaitInFlightSibling as Eo, formatDestructiveChange as Er, withIndeterminateGuard as Es, readCapacityNumber as Et, malformedOrphansWarning as Eu, recordedProtectionEvidence as F, withPreviousPolicies as Fa, prepareCloudFormationStackRetirement as Fc, isAbsoluteAssetPath as Fd, displayAssemblyPath as Ff, recordUnderIdIsNotOwn as Fi, getTopLevelKeysHoldingUnreadableCreateOnly as Fl, deleteSignalReceiver as Fn, SNS_DEFAULT_POLICY_ID as Fo, changedReferenceReason as Fr, stackIdTailOf as Fs, recordTagWrite as Ft, refuseMalformedNestedChildOutputs as Fu, declaredStreamTagsMember as G, noEchoAttributeNamesOf as Ga, promptYesNo as Gc, uploadCfnTemplate as Gd, orphanNeedsIdentity as Gi, isReadableOrphanRecord as Gl, readsOnlyNoEchoParameters as Gn, verbatimEchoDriftKeys as Go, createNoEchoValueMacs as Gr, isIamRoleArn as Gs, sendTtlWaitingOutRateLimit as Gt, refuseMalformedResourcesForDestroy as Gu, STREAM_POLICY_KEY as H, canonicalizeIpv6Cidr as Ha, SUPERSEDED_COPY_HINT as Hc, CFN_TEMPLATE_BODY_LIMIT as Hd, segmentCleanupOptions as Hi, declaresNoEcho as Hl, childStackTags as Hn, reReadUntilSettled as Ho, proposeRenames as Hr, assertFlagRoleArn as Hs, isTtlRateLimited as Ht, malformedResourcesWarning as Hu, recordedProtectionNote as I, findNestedStackTypeChanges as Ia, findReplacedCfnResources as Ic, listNestedTemplateRows as Id, namesTheSameDirectory as If, replacementNeverSwapped as Ii, tryGetTopLevelWriteOnlyProperties as Il, isReceiver as In, declaredMemberDocument as Io, differingRemedy as Ir, isSettledInstanceState as Is, settleWrittenTags as It, refuseMalformedOutputs as Iu, reverseMapStreamPolicy as J, withAttemptedItemsMasked as Ja, bold as Jc, decodeListingKey as Jd, nameScopeOf as Ji, malformedOrphanRowsKeptWarning as Jl, startForceQuitFlushes as Jn, CC_BROKEN_REASON as Jo, noEchoMacVerdict as Jr, AWS_CREDENTIAL_ENV_KEYS as Js, vectorIndexesForCreate as Jt, repairMalformedResourcesForReadOnly as Ju, planStreamMemberOps as K, noEchoComparisonForTemplate as Ka, serializePrompt as Kc, CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION as Kd, nameGenerationCarriedFrom as Ki, malformedOrphanRecordsRefusalMessage as Kl, licensedNameHolder as Kn, attemptedPolicyDocument as Ko, noEchoMacBinding as Kr, parseIamRoleArn as Ks, planVectorIndexUpdates as Kt, refuseMalformedResourcesForExport as Ku, PROTECTION_PROPERTY_BY_TYPE as L, SG_RULE_ID_PATTERN as La, getCloudFormationResourceTree as Lc, renderNestedTemplateTreeDefect as Ld, renderAssemblyPathEscape as Lf, IMPLICIT_DELETE_DEPENDENCIES as Li, publicReferencesOf as Ll, removeSignalReceiverNamed as Ln, declaredPolicyDocument as Lo, isPairableType as Lr, connectInstanceIdOf as Ls, tagsMatchDeclared as Lt, refuseMalformedOutputsForDestroy as Lu, findServiceTokenRefusals as M, replacedDeleteFailureVerdict as Ma, taintedNamesOf as Mc, stringifyValue as Md, absoluteAssemblyPathEscape as Mf, isReplacementOrphan as Mi, secretSegmentsOfState as Ml, refuseRefactorMarker as Mn, KMS_DEFAULT_KEY_POLICY_ID as Mo, withMovedTo as Mr, isSelectOutOfBounds as Ms, clearTagWrites as Mt, malformedLocalOutputsWarning as Mu, serviceTokenBlockingReason as N, snapshotSegmentSurvivors as Na, templateMixesDynamicReference as Nc, missingStateBucketRemedy as Nd, assemblyPathEscape as Nf, planFailedOps as Ni, withSecretPhysicalIdsMaskedInState as Nl, sameMove as Nn, LAMBDA_PERMISSION_STATEMENT_KEYS as No, changedReferenceInDiff as Nr, isAlwaysLiveAttribute as Ns, declaredTagsReadback as Nt, malformedOutputsRefusalMessage as Nu, planReplaceResourceTargets as O, supersededHeldByOtherTypeWarning as Oa, mixesDynamicReference as Oc, stackInstanceIdOf as Od, hasOwnKey as Of, planRollback as Oi, APPSYNC_APIKEY_ARN_RESOURCE_PATH as Ol, readRefactorMarker as On, getStackRecords as Oo, findRefactorHints as Or, isWaitAbandonedError as Os, sseSpecificationToSend as Ot, refuseMalformedOrphansForDestroy as Ou, diffSecurity as P, resolveReplacementOldType as Pa, deleteRetiredCloudFormationStack as Pc, findNestedTemplateTreeDefect as Pd, describeFileReadFailure as Pf, recheckFailedPlan as Pi, getSettledWriteOnlyPropertyPaths as Pl, updateRefactorMarker as Pn, OWN_WRITE_REREAD_DELAYS_MS as Po, changedReferencePath as Pr, poisonRenderedSpellingsCollidingIn as Ps, isDynamoDBTableArnIn as Pt, malformedOutputsWarning as Pu, streamPolicyMatchesDeclared as Q, journaledOrphanPrintingBag as Qa, red as Qc, createAssetRedirectResolver as Qd, withNameGenerationReached as Qi, refuseMalformedOrphansForOrphan as Ql, planOrphanAdoption as Qn, wouldReturnToSdkProvider as Qo, undeclaredGrantSiblingMembers as Qr, classifyRecordedSecretRegion as Qs, completeTableContributorInsightsBaseline as Qt, STATE_RESOURCES_MALFORMED as Qu, isProtectionValueActive as R, cfnIngressPortValue as Ra, tryGetCloudFormationResourceMap as Rc, templateIdentity as Rd, resolveAssemblyPath as Rf, computeImplicitDeleteEdges as Ri, maskedPropertyFingerprintsOf as Rl, childTemplateLoader as Rn, efsPolicyMatchesDeclared as Ro, looselyEqual as Rr, resolveDynamicReferences as Rs, takeTagWrite as Rt, repairMalformedOutputsForReadOnly as Ru, warnLegacySpelling as S, maskingRetryLogger as Sa, crossStackTaintSeeds as Sc, CrossPrefixReadError as Sd, validateAssetBucketName as Sf, replacementCreateRoutesToCloudControl as Si, isStatefulRecreateTargetForReplace as Sl, S3_AUTO_DELETE_OBJECTS_TAG as Sn, collectPrincipalsAttachingPolicy as So, crossStackReadsForPartialSave as Sr, UNSPECIFIED_SKIP_REASON as Ss, isTableName as St, repairMalformedResourcePropertiesForReadOnly as Su, slashedSsmNameHealNote as T, isSupersededResourceRecord as Ta, maskPassedSecretReasons as Tc, crossPrefixDeniedWarning as Td, getCdkdAssetBucketName as Tf, reserveStackCreateToken as Ti, isWarmThroughputDecrease as Tl, NestedCleanupQueue as Tn, withoutSiblingOwned as To, formatChangeCounts as Tr, deleteSkipReason as Ts, pointInTimeRecoveryRefusal as Tt, malformedOrphansRefusalMessage as Tu, STREAM_TAGS_KEY as U, canonicalizeIpv4Cidr as Ua, cfnFailureText as Uc, CFN_TEMPLATE_URL_LIMIT as Ud, removeProtectionTypeList as Ui, maskedPropertyFingerprint as Ul, literalRowTags as Un, settleDeclaredMember as Uo, referencedLogicalIds as Ur, assertSendableRoleArn as Us, planTimeToLive as Ut, malformedStateRefusalMessage as Uu, DynamoDBGlobalTableProvider as V, sgProtocolKey as Va, stringifyCfnTemplate as Vc, ssmResolvedValueType as Vd, readsRegeneratingSecret as Vi, passedParameterClassesOf as Vl, childRowTags as Vn, policyDocumentMatchesDeclared as Vo, propertiesChangedReason as Vr, applyRoleArnIfSet as Vs, isTtlAlreadyDisabled as Vt, malformedRenderedContainersWarning as Vu, declaredStreamPolicyMember as W, canonicalizeIpProtocolValue as Wa, confirmOrRefuse as Wc, findLargeInlineResources as Wd, removeProtectionTypes as Wi, deployRefusesOrphanRowsReason as Wl, macWriteOnlyKeys as Wn, warnUnsettledMember as Wo, NOECHO_MAC_KEY_ALIAS as Wr, explicitRoleArnOrThrow as Ws, readTtlSpec as Wt, refuseMalformedResourcesForDeploy as Wu, streamDeclaresTags as X, createReadOnlyAttributeHealerFactory as Xa, gray as Xc, synthesizedStacks as Xd, retiredNameGenerationsAfter as Xi, refuseMalformedOrphanRecords as Xl, resolvePendingCloudControlRequests as Xn, ccBrokenReason as Xo, siblingOwnedRevertDesired as Xr, callerEnvCredentials as Xs, vectorIndexesShapeDetail as Xt, accountArgs as Xu, streamDeclaresPolicy as Y, noEchoExactEchoLeavesOf as Ya, cyan as Yc, rememberSynthesizedStacks as Yd, retiredAfterRollback as Yi, previewableOrphanRecords as Yl, pendingRequestCount as Yn, ProviderRegistry as Yo, noEchoValueMacsOf as Yr, applyCallerIdentityCredentials as Ys, vectorIndexesSettled as Yt, JSON_LISTING_HOLE_VALUE as Yu, streamMemberRefusals as Z, completedReplayEntries as Za, green as Zc, buildAssetRedirectMap as Zd, retiredNameGenerationsLeaving as Zi, refuseMalformedOrphanRecordsForDestroy as Zl, makeSiblingClaimReader as Zn, isCustomResource$1 as Zo, stripSiblingOwnedParentMembers as Zr, envCredentialsAreAssumedRole as Zs, CONTRIBUTOR_INSIGHTS_KEY as Zt, withheldAccountClause as Zu, readRecordedConditionVerdicts as _, collectPublishedOutputNames as _a, lacksRecordedRefArn as _c, splitImportedOps as _d, assertAssetBucketRegion as _f, equalModuloMask as _i, isLegacyHandleId as _l, deleteTableWithIndexBusyRetry as _n, unsupportedFinalSnapshotError as _o, loadJournaledOrphans as _r, withCustomResourceStack as _s, KINESIS_DESTINATION_SETTLE_POLL_MS as _t, malformedResourcePropertiesWarning as _u, mergeNoChangeOutputs as a, WITHHELD_NAME_DISPLAY as aa, s3BucketArn as ac, findSdkUnwiredProperties as ad, redirectFileAsset as af, replayFailedOperations as ai, recordedReferenceRegions as al, reverseMapTableContributorInsights as an, secretNamedRecordNeedles as ao, recordDisplacedSkips as ar, customResourceResponseExpirationWarning as as, localSecondaryIndexesKey as at, malformedResourceEntriesWarning as au, pendingMovesRefusalMessage as b, DEFAULT_RESOURCE_TIMEOUT_MS as ba, SECURITY_TABLE_WITHHELD as bc, hasUnverifiableParameterRefusal as bd, parseBootstrapMarker as bf, updatePartialReason as bi, shownType as bl, waitForIndexesSettled as bn, collectGroupsAddedBySiblings as bo, DeploymentEventsReader as br, waitForGoneAfterDelete as bs, hasUsableDeclaredCapacity as bt, refuseMalformedResourcePropertiesForExport as bu, nestedSsmNameRowNote as c, secretBearing as ca, s3BucketRegionalDomainName as cc, NO_CC_HANDLERS_REASON as cd, getDockerImageBySourceHash as cf, PLANNED_EARLY_DELETE_CONSEQUENCE as ci, isImpossibleEmptyStoredAttribute as cl, DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS as cn, storedSecretNameNeedles as co, withNestedRevertRun as cr, readsNoEchoDeleteValues as cs, sameJsonValue as ct, refuseMalformedResourceEntries as cu, makeCanonicalizePropertiesFn as d, carriedExportAliasExposure as da, isUnboundTemplateParameter as dc, providerReplacementOldDeleted as dd, resolveFileAssetSourcePath as df, buildReadCurrentStateContext as di, carriesDynamicReference as dl, deleteBudgetKey as dn, PRE_DELETE_SNAPSHOT_TYPES as do, withNestedStackContext as dr, customResourceStackName as ds, desiredBagIsInformative as dt, refuseMalformedResourceEntriesForImport as du, inheritProducerRegions as ea, producerRegionsFromState as ec, displayLogicalId as ed, flattenAssetPlaceholders as ef, sgRuleOwnershipIdentity as ei, getCurrentResourceSecrets as el, indexDeclaresContributorInsights as en, namingSecretsWithRecordedNoEcho as eo, displacedOpClause as er, classifyHandleUrl as es, canonicalizeStaleIndexDescription as et, unpreviewableOrphanRecords as eu, readDbInstanceAvailabilityZone as f, exportNameNoEchoParameters as fa, parameterTypeMayLoseSecretIdentity as fc, normalizeRecordName as fd, warnAbsoluteAssetPath as ff, recordAfterRollbackUpdate as fi, keepsSecretReferenceToken as fl, resolveDynamoDbDeleteBudgetClock as fn, ccRoutedFinalSnapshotError as fo, deleteJournaledOrphans as fr, customResourcesFailedWithoutApp as fs, isRefusedWarmThroughput as ft, refuseMalformedResourceEntriesForImportSave as fu, parentSuppliedValues as g, collectDeclaredOutputNames as ga, refStateLookupFromResource as gc, S3StateBackend as gd, buildDenyExternalAccessPolicy as gf, equalModuloMarkedMask as gi, LEGACY_HANDLE_ID_PREFIX as gl, TABLE_INDEX_NOUN as gn, refusesFinalSnapshot as go, journaledOrphanLines as gr, setLocalCustomResourceRuntimeEnabled as gs, warmThroughputAlreadyMatches as gt, malformedDriftResourcePropertiesWarning as gu, conditionInputsFrom as h, noEchoParameterValueSeed as ha, isStalePlaceholderArnAttribute as hc, TemplateParser as hd, ensureAssetStorage as hf, calculateResourceDrift as hi, LEGACY_HANDLE_HEAL_REASON as hl, INDEX_SETTLE_POLL_INTERVAL_MS as hn, isFinalSnapshotError as ho, isHandledOrphan as hr, localCustomResourceRuntimeActive as hs, trimUnsentWarmMembers as ht, unreadableResourceEntries as hu, keptWholeReasonText as i, resourcesNamingDeclaredParameter as ia, dnsEntryStrings as ic, findHandledUnwrittenCreateOnly as id, redirectDockerAsset as if, withoutSiblingOwnedSgRules as ii, recordedOutputReferenceRegions as il, reverseMapIndexContributorInsights as in, secretNamedAttributeNamesOf as io, nestedChildStackName as ir, applyCustomResourceResponseExpiration as is, gsiUnsendableChangeRefusal as it, malformedLocalResourcesWarning as iu, deferredServiceTokenWarning as j, withoutSuperseded as ja, securityDiffWithPassedSecretWithheld as jc, isSensitiveAttributeName as jd, ownValue as jf, isJournaledOrphan as ji, secretPhysicalIdSegment as jl, refactorMarkerRefusalMessage as jn, withStackRecords as jo, rollbackOrphanIds as jr, IntrinsicFunctionResolver as js, TAGS_BASELINE_REREAD_DELAYS_MS as jt, malformedExportSourceWarning as ju, refuseStatefulReplaceResourceTargets as k, supersededHolderOf as ka, readsTainted as kc, withStackInstanceIdWithheld as kd, hasPlainPrototype as kf, seedsDeleteFirstGuard as ki, displayPhysicalId as kl, readRefactorMarkerOnce as kn, revertStackRecordsView as ko, hintSidesOf as kr, markWaitAbandoned as ks, tableDeleteGoneWait as kt, repairMalformedOrphansForReadOnly as ku, crossStackOutputProvenanceSource as l, secretBearingStateKeyWarning as la, s3BucketWebsiteUrl as lc, hasNoCloudControlHandlers as ld, isCfnTemplateAssetPath as lf, earlyDeleteWhen as li, carriesFetchableDynamicReference as ll, beginDeleteWait as ln, extractDeploymentEventError as lo, collectNestedChildUnaddressed as lr, isCustomResourceType$1 as ls, coerceWarmThroughput as lt, refuseMalformedResourceEntriesForDeploy as lu, conditionFingerprint as m, isWholeDynamicReferenceValue as ma, cfnRefValueFromPhysicalId as mc, wireAttributeValue as md, AssetModeResolver as mf, withUnprovenUnsettled as mi, INTRINSIC_KEYS as ml, DELETE_INDEX_WAIT_PROCEED_NOTE as mn, effectiveDeletionPolicy as mo, dropFailedHint as mr, localCustomResourceCommand as ms, sentWarmThroughputMembers as mt, repairMalformedResourceEntriesForReadOnly as mu, applyStackTagsToTemplate as n, namesAnyDeclaredParameter as na, withoutLapsedStaleShapeStamp as nc, hasReadableResources as nd, isDefaultBootstrapRepoName as nf, siblingOwnedSgRuleIdentities as ni, keepHeldTokenProvenance as nl, planIndexContributorInsightsOps as nn, secretNamePrintingBag as no, dropSettledNestedJournals as nr, isSignalKey as ns, deletionProtectionRefusal as nt, isReadableResourceEntry as nu, checkNestedSsmNames as o, displayTextOrWithheld as oa, s3BucketDomainName as oc, unwrittenCreateOnlyReplacement as od, rewriteTemplateAssetReferences as of, replayRollback as oi, withoutVersionAttestation as ol, stripIndexContributorInsights as on, stackSecretNamesMasker as oo, revertNestedChildFromJournal as or, responsePresignClient as os, projectIndexesOnto as ot, malformedScrubResourceEntriesRefusalMessage as ou, healZonelessDbInstanceRecords as p, exportNameSecretExposure as pa, AWS_NO_VALUE as pc, planSubscriptionAttributes as pd, warnWholeAssemblyAsSource as pf, settleUnsettledPrevious as pi, withSharedDrainBudget as pl, resolveDynamoDbDeleteBudgetMs as pn, ccRoutedInstanceTakesNoSnapshot as po, dropFailedCommands as pr, customResourcesRunWithoutApp as ps, readbackWarmThroughput as pt, refuseMalformedResourceEntriesForOrphan as pu, readStreamPolicy as q, noEchoParameterNamesOf as qa, NESTED_STACK_RESOURCE_TYPE$2 as qc, purgeNoncurrentKeyVersions as qd, nameGenerationHighWaterOf as qi, malformedOrphanRecordsWarning as ql, formatResourceLine as qn, policyContentKey as qo, noEchoMacParametersOf as qr, sendableAssumeRoleCommand as qs, readbackVectorIndexes as qt, refuseMalformedState as qu, isSecretBearingReferenceString as r, reachableDivergentParameters as ra, isUnexposedRecordedIdentity as rc, findActionableSdkUnwired as rd, loadPublishableAssetManifest as rf, siblingRecordedSgRuleIds as ri, outputReferenceProvenanceOf as rl, readContributorInsightsSpec as rn, secretNamePrintingBags as ro, getNestedRevertRun as rr, CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID as rs, desiredIndexEntriesByName as rt, malformedLocalResourceEntriesWarning as ru, nestedSsmNameDeferredNote as s, exportAliasCollisionScrubWarning as sa, s3BucketDualStackDomainName as sc, withoutSdkUnwiredProperties as sd, AssetManifestLoader as sf, DELETED_RESOURCE_REMEDY as si, getAccountInfo as sl, DYNAMODB_DELETE_DEADLINE_MARGIN_MS as sn, stateSecretNameNeedles as so, revertedNestedRowIds as sr, TemplateNoEchoReresolver as ss, reverseMapSecondaryIndex as st, refuseMalformedResourceAttributesForOrphan as su, DeployEngine as t, computeParameterTaint as ta, regionLessSecretName as tc, hasReadableOutputs as td, isDefaultBootstrapBucketName as tf, sgSiblingDecidedById as ti, withPrintingSecrets as tl, planContributorInsightsOp as tn, orphanRecordsPrintingBag as to, displacedPhysicalIdShown as tr, evaluateSignals as ts, declaresIndexList as tt, unreadableOrphanRecords as tu, inheritedProvenanceForChildDiff as u, secretSafeKeyDisplay as ua, coerceParameterTypedValue as uc, PROPERTY_COVERAGE_BY_TYPE as ud, parseAssetManifestBody as uf, earlyDeletedOld as ui, isNamelessDynamicReferenceError as ul, compensateRemovedDeletionProtection as un, ATOMIC_FINAL_SNAPSHOT_TYPES as uo, getCurrentNestedStackContext as ur, NO_LOCAL_CUSTOM_RESOURCES_FLAG as us, declaresWarmThroughput as ut, refuseMalformedResourceEntriesForDestroy as uu, hasPendingMovesOut as v, isExportAliasCollision as va, lacksRecordedTableArn as vc, readOnlyStateVersionOf as vd, isCrossRegionRedirect as vf, undeclaredEmptyObservedKeys as vi, findReplacedReadersOfRecreateTargets as vl, maskedLogger as vn, createPreDeleteFinalSnapshot as vo, sameJournaledOrphans as vr, waitForLambdaFunctionActive as vs, KINESIS_DISABLE_PENDING_STATUSES as vt, refuseMalformedResourcePropertiesForDestroy as vu, slashedSsmNameHealAdoptedNote as w, holdsSupersededResources as wa, maskPassedSecretOutputs as wc, applyCrossPrefixScan as wd, BOOTSTRAP_MARKER_PREFIX as wf, ledgerForStack as wi, renderStatefulReason as wl, isTruthyCfnBoolean as wn, withoutSiblingAttachedArns as wo, findDestructiveChanges as wr, deleteLeftInPlace as ws, maskLeafValue as wt, hasReadableOrphans as wu, refusePendingMovesOut as x, DEFAULT_RESOURCE_WARN_AFTER_MS as xa, calculatorMaskingPassedSecretLines as xc, rebuildClientForBucketRegion as xd, readBootstrapMarkerBody as xf, findUpdatePolicyReplacementRefusals as xi, MULTI_REGION_RECREATE_BLOCKED_TYPES as xl, ECR_AUTO_DELETE_IMAGES_TAG as xn, collectManagedPolicyArnsAttachedBySiblings as xo, DeploymentEventsStore as xr, RollbackInlinePolicyWriters as xs, isPlainCapacityBlock as xt, refuseMalformedResourcePropertiesForOrphan as xu, pendingMovesOutOf as y, bindingSkippedOutputs as ya, parseWebACLArn as yc, hasReasonlessBaselineRefusal as yd, getBootstrapMarkerKey as yf, updatePartialMessage as yi, refuseStatefulReplacedReaders as yl, relayedIndexBusyDelete as yn, buildFinalSnapshotIdentifier as yo, makeForeignHolderScan as yr, CloudControlProvider as ys, deleteTableRetryDelays as yt, refuseMalformedResourcePropertiesForDrift as yu, perType as z, recordedSgRuleId as za, parseCfnTemplate as zc, SSM_PARAMETER_VALUE_PREFIX as zd, clearBucketRegionCache as zf, typesDeletedBefore as zi, parameterInputsFor as zl, inRunStackKey as zn, lambdaPermissionMatchesDeclared as zo, mappingPairs as zr, producerLookupOver as zs, waitForContributorInsightsSettled as zt, STATE_REGION_DIVERGED as zu };
|
|
63853
|
-
//# sourceMappingURL=deploy-engine-
|
|
64360
|
+
export { streamTagsMatchDeclared as $, maskEventTextWithBoundBags as $a, yellow as $c, createLazyAssetModeContext as $d, namesAnyDeclaredParameter as $i, repairMalformedOrphanRecordsForReadOnly as $l, NESTED_PENDING_PARENT_REASON as $n, WaitConditionSignalStore as $o, recordedRuleIdOf as $r, classifyReplaySecretRegion as $s, contributorInsightsRefusals as $t, UNREADABLE_RESOURCES_MAP_ROW as $u, renderUnreplacedTarget as A, supersededResourcesOf as Aa, recordedValuesOf as Ac, isSecretValuedAttribute as Ad, nullPrototypeRecord as Af, demoteSupersededOrphans as Ai, maskedSecretSegment as Al, refactorMarkerMovesOf as An, verifiedIdentityCache as Ao, movedToHint as Ar, DiffCalculator as As, tableNameReleaseWait as At, malformedExportNamesWarning as Au, readProtection as B, sgCidrKey as Ba, parseCfnTemplateWithFormat as Bc, isListParameterType as Bd, resolveBucketRegion as Bf, removeProtectionTypeList as Bi, maskedInputProof as Bl, settleStackTagChildRuns as Bn, memberReadFailure as Bo, parseMappingFile as Br, refuseUnreadableCdkCrossAccountRefs as Bs, waitForKinesisEnableActive as Bt, refuseDivergentRecordRegionForDestroy as Bu, healSlashedSsmParameterNames as C, deleteSupersededEntry as Ca, maskPassedSecretChanges as Cc, CrossPrefixScanCache as Cd, validateContainerRepoName as Cf, earliestDefined as Ci, isStatefulRecreateTargetSync as Cl, hasCdkAutoDeleteTag as Cn, isStoredExpression as Co, constructPathOf as Cr, deleteIndeterminateGuards as Cs, mapSSESpecification as Ct, UNREADABLE_ORPHANS_CONTAINER_ROW as Cu, scanActiveConsumers as D, supersededDependentsFirst as Da, mixedSecretTagKeys as Dc, isNotImplemented as Dd, defineOwnKey as Df, acquireIdempotencyToken as Di, toFiniteNumber as Dl, recordRetainedForReadoption as Dn, destroyStackRecordsView as Do, orphanedLogicalIds as Dr, getReadOnlyPropertyPaths as Ds, sseSpecificationRefusal as Dt, refuseMalformedOrphans as Du, slashedSsmNameHealPendingNote as E, supersededAfterRollback as Ea, mixedSecretRowKeys as Ec, isAccessDenied$1 as Ed, getCdkdContainerRepoName as Ef, withCreateTokenLedger as Ei, toCfnInteger as El, keptForRetainedRecord as En, awaitInFlightSibling as Eo, formatDestructiveChange as Er, withIndeterminateGuard as Es, readCapacityNumber as Et, malformedOrphansWarning as Eu, recordedProtectionEvidence as F, withPreviousPolicies as Fa, prepareCloudFormationStackRetirement as Fc, isAbsoluteAssetPath as Fd, displayAssemblyPath as Ff, recordUnderIdIsNotOwn as Fi, getTopLevelKeysHoldingUnreadableCreateOnly as Fl, deleteSignalReceiver as Fn, SNS_DEFAULT_POLICY_ID as Fo, changedReferenceReason as Fr, stackIdTailOf as Fs, recordTagWrite as Ft, refuseMalformedNestedChildOutputs as Fu, declaredStreamTagsMember as G, noEchoAttributeNamesOf as Ga, promptYesNo as Gc, uploadCfnTemplate as Gd, nameScopeOf as Gi, isReadableOrphanRecord as Gl, readsOnlyNoEchoParameters as Gn, verbatimEchoDriftKeys as Go, createNoEchoValueMacs as Gr, isIamRoleArn as Gs, sendTtlWaitingOutRateLimit as Gt, refuseMalformedResourcesForDestroy as Gu, STREAM_POLICY_KEY as H, canonicalizeIpv6Cidr as Ha, SUPERSEDED_COPY_HINT as Hc, CFN_TEMPLATE_BODY_LIMIT as Hd, orphanNeedsIdentity as Hi, declaresNoEcho as Hl, childStackTags as Hn, reReadUntilSettled as Ho, proposeRenames as Hr, assertFlagRoleArn as Hs, isTtlRateLimited as Ht, malformedResourcesWarning as Hu, recordedProtectionNote as I, findNestedStackTypeChanges as Ia, findReplacedCfnResources as Ic, listNestedTemplateRows as Id, namesTheSameDirectory as If, replacementNeverSwapped as Ii, tryGetTopLevelWriteOnlyProperties as Il, isReceiver as In, declaredMemberDocument as Io, differingRemedy as Ir, isSettledInstanceState as Is, settleWrittenTags as It, refuseMalformedOutputs as Iu, reverseMapStreamPolicy as J, withAttemptedItemsMasked as Ja, bold as Jc, decodeListingKey as Jd, retiredNameGenerationsLeaving as Ji, malformedOrphanRowsKeptWarning as Jl, startForceQuitFlushes as Jn, CC_BROKEN_REASON as Jo, noEchoMacVerdict as Jr, AWS_CREDENTIAL_ENV_KEYS as Js, vectorIndexesForCreate as Jt, repairMalformedResourcesForReadOnly as Ju, planStreamMemberOps as K, noEchoComparisonForTemplate as Ka, serializePrompt as Kc, CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION as Kd, retiredAfterRollback as Ki, malformedOrphanRecordsRefusalMessage as Kl, licensedNameHolder as Kn, attemptedPolicyDocument as Ko, noEchoMacBinding as Kr, parseIamRoleArn as Ks, planVectorIndexUpdates as Kt, refuseMalformedResourcesForExport as Ku, PROTECTION_PROPERTY_BY_TYPE as L, SG_RULE_ID_PATTERN as La, getCloudFormationResourceTree as Lc, renderNestedTemplateTreeDefect as Ld, renderAssemblyPathEscape as Lf, attemptUsesCompletedCreate as Li, publicReferencesOf as Ll, removeSignalReceiverNamed as Ln, declaredPolicyDocument as Lo, isPairableType as Lr, connectInstanceIdOf as Ls, tagsMatchDeclared as Lt, refuseMalformedOutputsForDestroy as Lu, findServiceTokenRefusals as M, replacedDeleteFailureVerdict as Ma, taintedNamesOf as Mc, stringifyValue as Md, absoluteAssemblyPathEscape as Mf, isReplacementOrphan as Mi, secretSegmentsOfState as Ml, refuseRefactorMarker as Mn, KMS_DEFAULT_KEY_POLICY_ID as Mo, withMovedTo as Mr, isSelectOutOfBounds as Ms, clearTagWrites as Mt, malformedLocalOutputsWarning as Mu, serviceTokenBlockingReason as N, snapshotSegmentSurvivors as Na, templateMixesDynamicReference as Nc, missingStateBucketRemedy as Nd, assemblyPathEscape as Nf, planFailedOps as Ni, withSecretPhysicalIdsMaskedInState as Nl, sameMove as Nn, LAMBDA_PERMISSION_STATEMENT_KEYS as No, changedReferenceInDiff as Nr, isAlwaysLiveAttribute as Ns, declaredTagsReadback as Nt, malformedOutputsRefusalMessage as Nu, planReplaceResourceTargets as O, supersededHeldByOtherTypeWarning as Oa, mixesDynamicReference as Oc, stackInstanceIdOf as Od, hasOwnKey as Of, planRollback as Oi, APPSYNC_APIKEY_ARN_RESOURCE_PATH as Ol, readRefactorMarker as On, getStackRecords as Oo, findRefactorHints as Or, isWaitAbandonedError as Os, sseSpecificationToSend as Ot, refuseMalformedOrphansForDestroy as Ou, diffSecurity as P, resolveReplacementOldType as Pa, deleteRetiredCloudFormationStack as Pc, findNestedTemplateTreeDefect as Pd, describeFileReadFailure as Pf, recheckFailedPlan as Pi, getSettledWriteOnlyPropertyPaths as Pl, updateRefactorMarker as Pn, OWN_WRITE_REREAD_DELAYS_MS as Po, changedReferencePath as Pr, poisonRenderedSpellingsCollidingIn as Ps, isDynamoDBTableArnIn as Pt, malformedOutputsWarning as Pu, streamPolicyMatchesDeclared as Q, journaledOrphanPrintingBag as Qa, red as Qc, createAssetRedirectResolver as Qd, computeParameterTaint as Qi, refuseMalformedOrphansForOrphan as Ql, planOrphanAdoption as Qn, wouldReturnToSdkProvider as Qo, undeclaredGrantSiblingMembers as Qr, classifyRecordedSecretRegion as Qs, completeTableContributorInsightsBaseline as Qt, STATE_RESOURCES_MALFORMED as Qu, isProtectionValueActive as R, cfnIngressPortValue as Ra, tryGetCloudFormationResourceMap as Rc, templateIdentity as Rd, resolveAssemblyPath as Rf, readsRegeneratingSecret as Ri, maskedPropertyFingerprintsOf as Rl, childTemplateLoader as Rn, efsPolicyMatchesDeclared as Ro, looselyEqual as Rr, resolveDynamicReferences as Rs, takeTagWrite as Rt, repairMalformedOutputsForReadOnly as Ru, warnLegacySpelling as S, typesDeletedBefore as Sa, crossStackTaintSeeds as Sc, CrossPrefixReadError as Sd, validateAssetBucketName as Sf, replacementCreateRoutesToCloudControl as Si, isStatefulRecreateTargetForReplace as Sl, S3_AUTO_DELETE_OBJECTS_TAG as Sn, collectPrincipalsAttachingPolicy as So, crossStackReadsForPartialSave as Sr, UNSPECIFIED_SKIP_REASON as Ss, isTableName as St, repairMalformedResourcePropertiesForReadOnly as Su, slashedSsmNameHealNote as T, isSupersededResourceRecord as Ta, maskPassedSecretReasons as Tc, crossPrefixDeniedWarning as Td, getCdkdAssetBucketName as Tf, reserveStackCreateToken as Ti, isWarmThroughputDecrease as Tl, NestedCleanupQueue as Tn, withoutSiblingOwned as To, formatChangeCounts as Tr, deleteSkipReason as Ts, pointInTimeRecoveryRefusal as Tt, malformedOrphansRefusalMessage as Tu, STREAM_TAGS_KEY as U, canonicalizeIpv4Cidr as Ua, cfnFailureText as Uc, CFN_TEMPLATE_URL_LIMIT as Ud, nameGenerationCarriedFrom as Ui, maskedPropertyFingerprint as Ul, literalRowTags as Un, settleDeclaredMember as Uo, referencedLogicalIds as Ur, assertSendableRoleArn as Us, planTimeToLive as Ut, malformedStateRefusalMessage as Uu, DynamoDBGlobalTableProvider as V, sgProtocolKey as Va, stringifyCfnTemplate as Vc, ssmResolvedValueType as Vd, removeProtectionTypes as Vi, passedParameterClassesOf as Vl, childRowTags as Vn, policyDocumentMatchesDeclared as Vo, propertiesChangedReason as Vr, applyRoleArnIfSet as Vs, isTtlAlreadyDisabled as Vt, malformedRenderedContainersWarning as Vu, declaredStreamPolicyMember as W, canonicalizeIpProtocolValue as Wa, confirmOrRefuse as Wc, findLargeInlineResources as Wd, nameGenerationHighWaterOf as Wi, deployRefusesOrphanRowsReason as Wl, macWriteOnlyKeys as Wn, warnUnsettledMember as Wo, NOECHO_MAC_KEY_ALIAS as Wr, explicitRoleArnOrThrow as Ws, readTtlSpec as Wt, refuseMalformedResourcesForDeploy as Wu, streamDeclaresTags as X, createReadOnlyAttributeHealerFactory as Xa, gray as Xc, synthesizedStacks as Xd, getCurrentProducerRegions as Xi, refuseMalformedOrphanRecords as Xl, resolvePendingCloudControlRequests as Xn, ccBrokenReason as Xo, siblingOwnedRevertDesired as Xr, callerEnvCredentials as Xs, vectorIndexesShapeDetail as Xt, accountArgs as Xu, streamDeclaresPolicy as Y, noEchoExactEchoLeavesOf as Ya, cyan as Yc, rememberSynthesizedStacks as Yd, withNameGenerationReached as Yi, previewableOrphanRecords as Yl, pendingRequestCount as Yn, ProviderRegistry as Yo, noEchoValueMacsOf as Yr, applyCallerIdentityCredentials as Ys, vectorIndexesSettled as Yt, JSON_LISTING_HOLE_VALUE as Yu, streamMemberRefusals as Z, completedReplayEntries as Za, green as Zc, buildAssetRedirectMap as Zd, inheritProducerRegions as Zi, refuseMalformedOrphanRecordsForDestroy as Zl, makeSiblingClaimReader as Zn, isCustomResource as Zo, stripSiblingOwnedParentMembers as Zr, envCredentialsAreAssumedRole as Zs, CONTRIBUTOR_INSIGHTS_KEY as Zt, withheldAccountClause as Zu, readRecordedConditionVerdicts as _, DEFAULT_RESOURCE_TIMEOUT_MS as _a, lacksRecordedRefArn as _c, splitImportedOps as _d, assertAssetBucketRegion as _f, equalModuloMask as _i, isLegacyHandleId as _l, deleteTableWithIndexBusyRetry as _n, unsupportedFinalSnapshotError as _o, loadJournaledOrphans as _r, withCustomResourceStack as _s, KINESIS_DESTINATION_SETTLE_POLL_MS as _t, malformedResourcePropertiesWarning as _u, mergeNoChangeOutputs as a, secretBearing as aa, s3BucketArn as ac, findSdkUnwiredProperties as ad, redirectFileAsset as af, replayFailedOperations as ai, recordedReferenceRegions as al, reverseMapTableContributorInsights as an, secretNamedRecordNeedles as ao, recordDisplacedSkips as ar, customResourceResponseExpirationWarning as as, localSecondaryIndexesKey as at, malformedResourceEntriesWarning as au, pendingMovesRefusalMessage as b, IMPLICIT_DELETE_DEPENDENCIES as ba, SECURITY_TABLE_WITHHELD as bc, hasUnverifiableParameterRefusal as bd, parseBootstrapMarker as bf, updatePartialReason as bi, shownType as bl, waitForIndexesSettled as bn, collectGroupsAddedBySiblings as bo, DeploymentEventsReader as br, waitForGoneAfterDelete as bs, hasUsableDeclaredCapacity as bt, refuseMalformedResourcePropertiesForExport as bu, nestedSsmNameRowNote as c, carriedExportAliasExposure as ca, s3BucketRegionalDomainName as cc, NO_CC_HANDLERS_REASON as cd, getDockerImageBySourceHash as cf, PLANNED_EARLY_DELETE_CONSEQUENCE as ci, isImpossibleEmptyStoredAttribute as cl, DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS as cn, storedSecretNameNeedles as co, withNestedRevertRun as cr, readsNoEchoDeleteValues as cs, sameJsonValue as ct, refuseMalformedResourceEntries as cu, makeCanonicalizePropertiesFn as d, isWholeDynamicReferenceValue as da, isUnboundTemplateParameter as dc, providerReplacementOldDeleted as dd, resolveFileAssetSourcePath as df, buildReadCurrentStateContext as di, carriesDynamicReference as dl, deleteBudgetKey as dn, PRE_DELETE_SNAPSHOT_TYPES as do, withNestedStackContext as dr, customResourceStackName as ds, desiredBagIsInformative as dt, refuseMalformedResourceEntriesForImport as du, reachableDivergentParameters as ea, producerRegionsFromState as ec, displayLogicalId as ed, flattenAssetPlaceholders as ef, sgRuleOwnershipIdentity as ei, getCurrentResourceSecrets as el, indexDeclaresContributorInsights as en, namingSecretsWithRecordedNoEcho as eo, displacedOpClause as er, classifyHandleUrl as es, canonicalizeStaleIndexDescription as et, unpreviewableOrphanRecords as eu, readDbInstanceAvailabilityZone as f, noEchoParameterValueSeed as fa, parameterTypeMayLoseSecretIdentity as fc, normalizeRecordName as fd, warnAbsoluteAssetPath as ff, recordAfterRollbackUpdate as fi, keepsSecretReferenceToken as fl, resolveDynamoDbDeleteBudgetClock as fn, ccRoutedFinalSnapshotError as fo, deleteJournaledOrphans as fr, customResourcesFailedWithoutApp as fs, isRefusedWarmThroughput as ft, refuseMalformedResourceEntriesForImportSave as fu, parentSuppliedValues as g, bindingSkippedOutputs as ga, refStateLookupFromResource as gc, S3StateBackend as gd, buildDenyExternalAccessPolicy as gf, equalModuloMarkedMask as gi, LEGACY_HANDLE_ID_PREFIX as gl, TABLE_INDEX_NOUN as gn, refusesFinalSnapshot as go, journaledOrphanLines as gr, setLocalCustomResourceRuntimeEnabled as gs, warmThroughputAlreadyMatches as gt, malformedDriftResourcePropertiesWarning as gu, conditionInputsFrom as h, isExportAliasCollision as ha, isStalePlaceholderArnAttribute as hc, TemplateParser as hd, ensureAssetStorage as hf, calculateResourceDrift as hi, LEGACY_HANDLE_HEAL_REASON as hl, INDEX_SETTLE_POLL_INTERVAL_MS as hn, isFinalSnapshotError as ho, isHandledOrphan as hr, localCustomResourceRuntimeActive as hs, trimUnsentWarmMembers as ht, unreadableResourceEntries as hu, keptWholeReasonText as i, exportAliasCollisionScrubWarning as ia, dnsEntryStrings as ic, findHandledUnwrittenCreateOnly as id, redirectDockerAsset as if, withoutSiblingOwnedSgRules as ii, recordedOutputReferenceRegions as il, reverseMapIndexContributorInsights as in, secretNamedAttributeNamesOf as io, nestedChildStackName as ir, applyCustomResourceResponseExpiration as is, gsiUnsendableChangeRefusal as it, malformedLocalResourcesWarning as iu, deferredServiceTokenWarning as j, withoutSuperseded as ja, securityDiffWithPassedSecretWithheld as jc, isSensitiveAttributeName as jd, ownValue as jf, isJournaledOrphan as ji, secretPhysicalIdSegment as jl, refactorMarkerRefusalMessage as jn, withStackRecords as jo, rollbackOrphanIds as jr, IntrinsicFunctionResolver as js, TAGS_BASELINE_REREAD_DELAYS_MS as jt, malformedExportSourceWarning as ju, refuseStatefulReplaceResourceTargets as k, supersededHolderOf as ka, readsTainted as kc, withStackInstanceIdWithheld as kd, hasPlainPrototype as kf, seedsDeleteFirstGuard as ki, displayPhysicalId as kl, readRefactorMarkerOnce as kn, revertStackRecordsView as ko, hintSidesOf as kr, markWaitAbandoned as ks, tableDeleteGoneWait as kt, repairMalformedOrphansForReadOnly as ku, crossStackOutputProvenanceSource as l, exportNameNoEchoParameters as la, s3BucketWebsiteUrl as lc, hasNoCloudControlHandlers as ld, isCfnTemplateAssetPath as lf, earlyDeleteWhen as li, carriesFetchableDynamicReference as ll, beginDeleteWait as ln, extractDeploymentEventError as lo, collectNestedChildUnaddressed as lr, isCustomResourceType$1 as ls, coerceWarmThroughput as lt, refuseMalformedResourceEntriesForDeploy as lu, conditionFingerprint as m, collectPublishedOutputNames as ma, cfnRefValueFromPhysicalId as mc, wireAttributeValue as md, AssetModeResolver as mf, withUnprovenUnsettled as mi, INTRINSIC_KEYS as ml, DELETE_INDEX_WAIT_PROCEED_NOTE as mn, effectiveDeletionPolicy as mo, dropFailedHint as mr, localCustomResourceCommand as ms, sentWarmThroughputMembers as mt, repairMalformedResourceEntriesForReadOnly as mu, applyStackTagsToTemplate as n, WITHHELD_NAME_DISPLAY as na, withoutLapsedStaleShapeStamp as nc, hasReadableResources as nd, isDefaultBootstrapRepoName as nf, siblingOwnedSgRuleIdentities as ni, keepHeldTokenProvenance as nl, planIndexContributorInsightsOps as nn, secretNamePrintingBag as no, dropSettledNestedJournals as nr, isSignalKey as ns, deletionProtectionRefusal as nt, isReadableResourceEntry as nu, checkNestedSsmNames as o, secretBearingStateKeyWarning as oa, s3BucketDomainName as oc, unwrittenCreateOnlyReplacement as od, rewriteTemplateAssetReferences as of, replayRollback as oi, withoutVersionAttestation as ol, stripIndexContributorInsights as on, stackSecretNamesMasker as oo, revertNestedChildFromJournal as or, responsePresignClient as os, projectIndexesOnto as ot, malformedScrubResourceEntriesRefusalMessage as ou, healZonelessDbInstanceRecords as p, collectDeclaredOutputNames as pa, AWS_NO_VALUE as pc, planSubscriptionAttributes as pd, warnWholeAssemblyAsSource as pf, settleUnsettledPrevious as pi, withSharedDrainBudget as pl, resolveDynamoDbDeleteBudgetMs as pn, ccRoutedInstanceTakesNoSnapshot as po, dropFailedCommands as pr, customResourcesRunWithoutApp as ps, readbackWarmThroughput as pt, refuseMalformedResourceEntriesForOrphan as pu, readStreamPolicy as q, noEchoParameterNamesOf as qa, NESTED_STACK_RESOURCE_TYPE$2 as qc, purgeNoncurrentKeyVersions as qd, retiredNameGenerationsAfter as qi, malformedOrphanRecordsWarning as ql, formatResourceLine as qn, policyContentKey as qo, noEchoMacParametersOf as qr, sendableAssumeRoleCommand as qs, readbackVectorIndexes as qt, refuseMalformedState as qu, isSecretBearingReferenceString as r, displayTextOrWithheld as ra, isUnexposedRecordedIdentity as rc, findActionableSdkUnwired as rd, loadPublishableAssetManifest as rf, siblingRecordedSgRuleIds as ri, outputReferenceProvenanceOf as rl, readContributorInsightsSpec as rn, secretNamePrintingBags as ro, getNestedRevertRun as rr, CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID as rs, desiredIndexEntriesByName as rt, malformedLocalResourceEntriesWarning as ru, nestedSsmNameDeferredNote as s, secretSafeKeyDisplay as sa, s3BucketDualStackDomainName as sc, withoutSdkUnwiredProperties as sd, AssetManifestLoader as sf, DELETED_RESOURCE_REMEDY as si, getAccountInfo as sl, DYNAMODB_DELETE_DEADLINE_MARGIN_MS as sn, stateSecretNameNeedles as so, revertedNestedRowIds as sr, TemplateNoEchoReresolver as ss, reverseMapSecondaryIndex as st, refuseMalformedResourceAttributesForOrphan as su, DeployEngine as t, resourcesNamingDeclaredParameter as ta, regionLessSecretName as tc, hasReadableOutputs as td, isDefaultBootstrapBucketName as tf, sgSiblingDecidedById as ti, withPrintingSecrets as tl, planContributorInsightsOp as tn, orphanRecordsPrintingBag as to, displacedPhysicalIdShown as tr, evaluateSignals as ts, declaresIndexList as tt, unreadableOrphanRecords as tu, inheritedProvenanceForChildDiff as u, exportNameSecretExposure as ua, coerceParameterTypedValue as uc, PROPERTY_COVERAGE_BY_TYPE as ud, parseAssetManifestBody as uf, earlyDeletedOld as ui, isNamelessDynamicReferenceError as ul, compensateRemovedDeletionProtection as un, ATOMIC_FINAL_SNAPSHOT_TYPES as uo, getCurrentNestedStackContext as ur, NO_LOCAL_CUSTOM_RESOURCES_FLAG as us, declaresWarmThroughput as ut, refuseMalformedResourceEntriesForDestroy as uu, hasPendingMovesOut as v, DEFAULT_RESOURCE_WARN_AFTER_MS as va, lacksRecordedTableArn as vc, readOnlyStateVersionOf as vd, isCrossRegionRedirect as vf, undeclaredEmptyObservedKeys as vi, findReplacedReadersOfRecreateTargets as vl, maskedLogger as vn, createPreDeleteFinalSnapshot as vo, sameJournaledOrphans as vr, waitForLambdaFunctionActive as vs, KINESIS_DISABLE_PENDING_STATUSES as vt, refuseMalformedResourcePropertiesForDestroy as vu, slashedSsmNameHealAdoptedNote as w, holdsSupersededResources as wa, maskPassedSecretOutputs as wc, applyCrossPrefixScan as wd, BOOTSTRAP_MARKER_PREFIX as wf, ledgerForStack as wi, renderStatefulReason as wl, isTruthyCfnBoolean as wn, withoutSiblingAttachedArns as wo, findDestructiveChanges as wr, deleteLeftInPlace as ws, maskLeafValue as wt, hasReadableOrphans as wu, refusePendingMovesOut as x, computeImplicitDeleteEdges as xa, calculatorMaskingPassedSecretLines as xc, rebuildClientForBucketRegion as xd, readBootstrapMarkerBody as xf, findUpdatePolicyReplacementRefusals as xi, MULTI_REGION_RECREATE_BLOCKED_TYPES as xl, ECR_AUTO_DELETE_IMAGES_TAG as xn, collectManagedPolicyArnsAttachedBySiblings as xo, DeploymentEventsStore as xr, RollbackInlinePolicyWriters as xs, isPlainCapacityBlock as xt, refuseMalformedResourcePropertiesForOrphan as xu, pendingMovesOutOf as y, maskingRetryLogger as ya, parseWebACLArn as yc, hasReasonlessBaselineRefusal as yd, getBootstrapMarkerKey as yf, updatePartialMessage as yi, refuseStatefulReplacedReaders as yl, relayedIndexBusyDelete as yn, buildFinalSnapshotIdentifier as yo, makeForeignHolderScan as yr, CloudControlProvider as ys, deleteTableRetryDelays as yt, refuseMalformedResourcePropertiesForDrift as yu, perType as z, recordedSgRuleId as za, parseCfnTemplate as zc, SSM_PARAMETER_VALUE_PREFIX as zd, clearBucketRegionCache as zf, segmentCleanupOptions as zi, parameterInputsFor as zl, inRunStackKey as zn, lambdaPermissionMatchesDeclared as zo, mappingPairs as zr, producerLookupOver as zs, waitForContributorInsightsSettled as zt, STATE_REGION_DIVERGED as zu };
|
|
64361
|
+
//# sourceMappingURL=deploy-engine-DNEAZMj7.js.map
|