@cdkd/cli 0.360.0 → 0.361.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ambient-client-defaults-Zw14vfrI.js → ambient-client-defaults-Bq5rj529.js} +3 -3
- package/dist/{ambient-client-defaults-Zw14vfrI.js.map → ambient-client-defaults-Bq5rj529.js.map} +1 -1
- package/dist/{asg-provider-D1t6qsKn.js → asg-provider-7c1iqoaI.js} +6 -6
- package/dist/{asg-provider-D1t6qsKn.js.map → asg-provider-7c1iqoaI.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{custom-resource-runtime-CIDXtQ5Q.js → custom-resource-runtime-xE15oufB.js} +6 -6
- package/dist/{custom-resource-runtime-CIDXtQ5Q.js.map → custom-resource-runtime-xE15oufB.js.map} +1 -1
- package/dist/{db-associated-roles-CYMYBGeh.js → db-associated-roles-RCr0v8tz.js} +2 -2
- package/dist/{db-associated-roles-CYMYBGeh.js.map → db-associated-roles-RCr0v8tz.js.map} +1 -1
- package/dist/{delete-started-dMEHah06.js → delete-started-BY94yU_N.js} +148 -6
- package/dist/delete-started-BY94yU_N.js.map +1 -0
- package/dist/{deploy-engine-T1iXkB24.js → deploy-engine-CkY2eTL9.js} +761 -186
- package/dist/deploy-engine-CkY2eTL9.js.map +1 -0
- package/dist/{ec2-termination-protection-Ct7iZKky.js → ec2-termination-protection-C50H1PZO.js} +6 -6
- package/dist/{ec2-termination-protection-Ct7iZKky.js.map → ec2-termination-protection-C50H1PZO.js.map} +1 -1
- package/dist/{ecr-uri-DMMMk4h5.js → ecr-uri-CHY7E5Ju.js} +2 -2
- package/dist/{ecr-uri-DMMMk4h5.js.map → ecr-uri-CHY7E5Ju.js.map} +1 -1
- package/dist/{expected-bucket-owner-D0my0zRR.js → expected-bucket-owner-BeB-z8ED.js} +2 -2
- package/dist/{expected-bucket-owner-D0my0zRR.js.map → expected-bucket-owner-BeB-z8ED.js.map} +1 -1
- package/dist/{iam-role-provider-R89AqWLY.js → iam-role-provider-DzDXdyx5.js} +52 -13
- package/dist/iam-role-provider-DzDXdyx5.js.map +1 -0
- package/dist/{image-plan-nkTmvIbr.js → image-plan-CKRVQgWU.js} +8 -8
- package/dist/{image-plan-nkTmvIbr.js.map → image-plan-CKRVQgWU.js.map} +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-Fqr4kSBL.js → logger-CZTXRggO.js} +2 -2
- package/dist/{logger-Fqr4kSBL.js.map → logger-CZTXRggO.js.map} +1 -1
- package/dist/{neptune-provider-BMDYjSf5.js → neptune-provider-BPnu4P-b.js} +7 -7
- package/dist/{neptune-provider-BMDYjSf5.js.map → neptune-provider-BPnu4P-b.js.map} +1 -1
- package/dist/{program-Di80isf8.js → program-uYb3oSBF.js} +360 -41
- package/dist/program-uYb3oSBF.js.map +1 -0
- package/dist/{provider-classes-Bkb_H0Sp.js → provider-classes-CpwN6g8B.js} +671 -148
- package/dist/provider-classes-CpwN6g8B.js.map +1 -0
- package/dist/{rds-provider-BcNL1C0E.js → rds-provider-CjaaTJEe.js} +74 -14
- package/dist/rds-provider-CjaaTJEe.js.map +1 -0
- package/dist/{read-replica-mqoiWJdM.js → read-replica-8-Idke_l.js} +3 -3
- package/dist/{read-replica-mqoiWJdM.js.map → read-replica-8-Idke_l.js.map} +1 -1
- package/dist/{replacement-rules-Y1UE2Vqb.js → replacement-rules-Bs3dhR_O.js} +3 -3
- package/dist/{replacement-rules-Y1UE2Vqb.js.map → replacement-rules-Bs3dhR_O.js.map} +1 -1
- package/dist/{resource-deadline-BSt_tRep.js → resource-deadline-CSd19ZNv.js} +21 -21
- package/dist/{resource-deadline-BSt_tRep.js.map → resource-deadline-CSd19ZNv.js.map} +1 -1
- package/dist/{restore-source-guard-CDrsW4tB.js → restore-source-guard-D7zwBxYx.js} +4 -4
- package/dist/{restore-source-guard-CDrsW4tB.js.map → restore-source-guard-D7zwBxYx.js.map} +1 -1
- package/dist/{run-cli-BKSKYUvl.js → run-cli-BD5KBGA1.js} +2 -2
- package/dist/{run-cli-BKSKYUvl.js.map → run-cli-BD5KBGA1.js.map} +1 -1
- package/dist/{settle-own-write-members-BqIDAx00.js → settle-own-write-members-B4h_lONt.js} +41 -23
- package/dist/{settle-own-write-members-BqIDAx00.js.map → settle-own-write-members-B4h_lONt.js.map} +1 -1
- package/dist/{version-yPbqfysZ.js → version-BAoHSHRL.js} +2 -2
- package/dist/{version-yPbqfysZ.js.map → version-BAoHSHRL.js.map} +1 -1
- package/package.json +1 -1
- package/dist/delete-started-dMEHah06.js.map +0 -1
- package/dist/deploy-engine-T1iXkB24.js.map +0 -1
- package/dist/iam-role-provider-R89AqWLY.js.map +0 -1
- package/dist/program-Di80isf8.js.map +0 -1
- package/dist/provider-classes-Bkb_H0Sp.js.map +0 -1
- package/dist/rds-provider-BcNL1C0E.js.map +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { A as displayStackName, C as STACK_REF_MAX_CODE_POINTS, D as displayAwsMessage, I as terminalSafe, L as truncateCodePoints, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, T as asIsMessage, _ as shellQuote, a as UNSHOWABLE_VALUE, c as deployReplaceCommand, d as pasteableCommand, f as physicalIdShownBesideCommand, g as shellBoundedDisplay, h as quotedOrDescribed, i as SHELL_ACTIVE_WHY, j as isPasteableIdent, k as displaySafe, m as proseQuoted, o as cdkdRemedy, p as plainOrDescribed, s as commandHole, t as getCdkdVersion, u as isInertUnquoted, v as withheldTargetClause, w as UNRENDERABLE } from "./version-
|
|
2
|
-
import { $ as withStackScope, A as configStringRefusal, C as fallbackNamePropertyFor, D as coerceCfnInteger, E as coerceCfnBoolean, F as requireConfigString, G as currentNameGeneration, H as looksLikeCdkdGeneratedName, J as getCurrentStackName, K as getCurrentSkipPrefix, M as replayWarn, O as configBooleanRefusal, P as requireConfigObject, Q as withSkipPrefix, S as explicitNamePropertyFor, T as withoutGeneratedFallbackName, V as generateResourceNameWithFallback, W as stackInstanceNameSuffix, X as isNameGeneration, Z as withNameGeneration, _ as currentLogLineMasker, b as alternateNamePropertiesFor, c as VERBOSE_POINTER, et as withStackScopeBeforeStateRead, g as verbosePointerTail, h as verbosePointerSentence, j as readConfigString, k as configIntegerRefusal, m as verboseAwareText, n as getLogger, p as safeStringify, q as getCurrentStackInstanceId, u as describeAwsFailure, v as installLogLineMaskerSource, w as generatedNameFor, x as applyDefaultNameForFallback, y as getLiveRenderer } from "./logger-
|
|
3
|
-
import { A as stripControlChars, C as isNameCooldownError, F as isAmbiguousOutcomeError, G as markRedactedCause, H as isMarkedNonRetryable, J as DynamicReferenceRegionAmbiguousError, K as wrapMaskedAwsError, L as isIamPropagationError, O as relayedNameCollision, P as isAmbiguousCcHandlerErrorCode, Q as AccountIdUnavailableError, R as isRetryableTransientError, S as isNameCollisionErrorFrom, T as isReplayedNameCollisionFrom, U as isThrottlingError, W as markNonRetryable, X as MalformedProducerRecordRefusalError, Y as IntrinsicResolutionRefusalError, Z as SelectOutOfBoundsRefusalError, _ as ResourceUpdateNotSupportedError, a as normalizeAwsError, at as ProvisioningError, b as isUpdateUnsupportedError, et as CdkdError, i as credentialFingerprint, k as escapeRegExp$1, m as ExportInUseError, n as ambientCredentialConfig, nt as DeploymentNotApprovedError, ot as ResourceTimeoutError, q as CrossAccountSecretRefusalError, r as clientDefaultsFor, st as StateError, t as ambientClientDefaults, w as isRecreateRetryableError, z as isTransientServerError } from "./ambient-client-defaults-
|
|
1
|
+
import { A as displayStackName, C as STACK_REF_MAX_CODE_POINTS, D as displayAwsMessage, I as terminalSafe, L as truncateCodePoints, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, T as asIsMessage, _ as shellQuote, a as UNSHOWABLE_VALUE, c as deployReplaceCommand, d as pasteableCommand, f as physicalIdShownBesideCommand, g as shellBoundedDisplay, h as quotedOrDescribed, i as SHELL_ACTIVE_WHY, j as isPasteableIdent, k as displaySafe, m as proseQuoted, o as cdkdRemedy, p as plainOrDescribed, s as commandHole, t as getCdkdVersion, u as isInertUnquoted, v as withheldTargetClause, w as UNRENDERABLE } from "./version-BAoHSHRL.js";
|
|
2
|
+
import { $ as withStackScope, A as configStringRefusal, C as fallbackNamePropertyFor, D as coerceCfnInteger, E as coerceCfnBoolean, F as requireConfigString, G as currentNameGeneration, H as looksLikeCdkdGeneratedName, J as getCurrentStackName, K as getCurrentSkipPrefix, M as replayWarn, O as configBooleanRefusal, P as requireConfigObject, Q as withSkipPrefix, S as explicitNamePropertyFor, T as withoutGeneratedFallbackName, V as generateResourceNameWithFallback, W as stackInstanceNameSuffix, X as isNameGeneration, Z as withNameGeneration, _ as currentLogLineMasker, b as alternateNamePropertiesFor, c as VERBOSE_POINTER, et as withStackScopeBeforeStateRead, g as verbosePointerTail, h as verbosePointerSentence, j as readConfigString, k as configIntegerRefusal, m as verboseAwareText, n as getLogger, p as safeStringify, q as getCurrentStackInstanceId, u as describeAwsFailure, v as installLogLineMaskerSource, w as generatedNameFor, x as applyDefaultNameForFallback, y as getLiveRenderer } from "./logger-CZTXRggO.js";
|
|
3
|
+
import { A as stripControlChars, C as isNameCooldownError, F as isAmbiguousOutcomeError, G as markRedactedCause, H as isMarkedNonRetryable, J as DynamicReferenceRegionAmbiguousError, K as wrapMaskedAwsError, L as isIamPropagationError, O as relayedNameCollision, P as isAmbiguousCcHandlerErrorCode, Q as AccountIdUnavailableError, R as isRetryableTransientError, S as isNameCollisionErrorFrom, T as isReplayedNameCollisionFrom, U as isThrottlingError, W as markNonRetryable, X as MalformedProducerRecordRefusalError, Y as IntrinsicResolutionRefusalError, Z as SelectOutOfBoundsRefusalError, _ as ResourceUpdateNotSupportedError, a as normalizeAwsError, at as ProvisioningError, b as isUpdateUnsupportedError, et as CdkdError, i as credentialFingerprint, k as escapeRegExp$1, m as ExportInUseError, n as ambientCredentialConfig, nt as DeploymentNotApprovedError, ot as ResourceTimeoutError, q as CrossAccountSecretRefusalError, r as clientDefaultsFor, st as StateError, t as ambientClientDefaults, w as isRecreateRetryableError, z as isTransientServerError } from "./ambient-client-defaults-Bq5rj529.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 IAM_PROPAGATION_MAX_DELAY_MS, B as phaseScopeForStack, C as prefetchCreateOnlyPropertyPaths, D as hasNoRegistrySchema, E as describeTypeWithThrottleRetry, G as timePhaseSync, H as recordPhase, I as ignoresUnmodifiedGroupSize, J as parseFailureDebugDetail, K as describeJsonParseFailure, L as rollingUpdatePolicy, M as CREATE_ONLY_PATHS_SNAPSHOT, N as INSTANCE_REFRESH_TRIGGER_PROPERTIES, O as isAwsEmulatorRegistryMiss, P as REPLACEMENT_TRIGGER_PROPERTIES, R as willReplaceGroup, S as isIntrinsicShaped, T as parseCreateOnlyPropertyPointers, V as phaseTimingsEnabled, W as timePhase, X as utf8ByteLength, Y as parseJsonNamingNoBody, a as reDisableInstanceApiTermination, c as resolvedResourceTimeoutMs, d as isRefusedBeforeApplying, f as markRefusedBeforeApplying, g as withPriorAttempts, h as provenOrphanIdsInJournal, i as observeThenDisableInstanceApiTermination, j as withRetry, k as reportAwsEmulatorRegistryMiss, m as priorAttemptsInJournal, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, p as priorAttemptLookup, q as jsonParseFailureStandIn, r as isTerminationProtectionPropagationError, v as unchangedBehindSecretReference, w as templateResourceTypes, x as getCreateOnlyPropertyPaths, y as cachedCreateOnlyPropertyPaths, z as PhaseClock } from "./ec2-termination-protection-
|
|
6
|
+
import { A as IAM_PROPAGATION_MAX_DELAY_MS, B as phaseScopeForStack, C as prefetchCreateOnlyPropertyPaths, D as hasNoRegistrySchema, E as describeTypeWithThrottleRetry, G as timePhaseSync, H as recordPhase, I as ignoresUnmodifiedGroupSize, J as parseFailureDebugDetail, K as describeJsonParseFailure, L as rollingUpdatePolicy, M as CREATE_ONLY_PATHS_SNAPSHOT, N as INSTANCE_REFRESH_TRIGGER_PROPERTIES, O as isAwsEmulatorRegistryMiss, P as REPLACEMENT_TRIGGER_PROPERTIES, R as willReplaceGroup, S as isIntrinsicShaped, T as parseCreateOnlyPropertyPointers, V as phaseTimingsEnabled, W as timePhase, X as utf8ByteLength, Y as parseJsonNamingNoBody, a as reDisableInstanceApiTermination, c as resolvedResourceTimeoutMs, d as isRefusedBeforeApplying, f as markRefusedBeforeApplying, g as withPriorAttempts, h as provenOrphanIdsInJournal, i as observeThenDisableInstanceApiTermination, j as withRetry, k as reportAwsEmulatorRegistryMiss, m as priorAttemptsInJournal, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, p as priorAttemptLookup, q as jsonParseFailureStandIn, r as isTerminationProtectionPropagationError, v as unchangedBehindSecretReference, w as templateResourceTypes, x as getCreateOnlyPropertyPaths, y as cachedCreateOnlyPropertyPaths, z as PhaseClock } from "./ec2-termination-protection-C50H1PZO.js";
|
|
7
7
|
import { i as sameRegion, n as canonicalizeRegion, r as derivePartitionAndUrlSuffix } from "./aws-partition-DA0r2sr-.js";
|
|
8
|
-
import { $t as markAuxiliaryFailure, At as canonicalizeRoute53QueryName, B as
|
|
9
|
-
import { t as expectedOwnerParam } from "./expected-bucket-owner-
|
|
10
|
-
import { Ct as
|
|
11
|
-
import { $t as recordInheritedParameterValue, A as witnessNormalize, An as recordNoEchoAttributeValues, At as withoutPhysicalNameCopies, B as redactionClaimOf, Cn as noEchoParameterPlaintextsOf, Ct as withLegacyOverlapScan, D as recordedNoEchoValuesOf, Dn as recordFreshNoEchoValuesIn, Dt as replaceEmbeddedPhysicalNameRewrites, E as recordPassedNoEchoParameters, En as recordDerivedMaskOnlyValue, Et as repairPhysicalNameCopyLeaves, F as markLeafCertifiedBag, G as foldRecording, Gt as recordTakenIfBranch, H as mixedLiteralAnswered, Ht as splitOutsideDynamicReferences, I as markSameGenerationBag, In as isDynamicReferenceString, It as secretRerenderPairs, J as hasPassProvenance, Jt as templateRereadsAccountId, K as openRecordingScope, Kt as inheritedPseudoValue, L as mergeResolvedPairs, Ln as isSingleDynamicReferenceToken, M as carryRedactionMarks, Mn as recordProvenPublicExpression, Mt as DYNAMIC_REFERENCE_TOKEN_SCAN, N as intrinsicLeafResolutionOf, Nn as wholeStringLeavesOf, Nt as dynamicReferenceTokens, O as replaceAtCoordinates, Ot as scrubResourceRecord, P as isSameGenerationBag, Pn as withoutNoEchoParameterEntries, Q as recordReferenceResolution, Qt as recordInheritedParameterRead, R as recordIntrinsicLeafResolution, Rn as maskMatchSpans, S as noEchoParametersReadBy, Sn as markNoEchoParameterClass, St as replaceWholeLeaves, Tt as repairEmbeddedPhysicalNamesTowards, U as withLegacyMixedScan, Ut as standsForInheritedSecret, V as resolvedPlaintextOf, Vt as rereadParameterExpression, W as redactForState, Wt as recordDroppedArrayElements, X as passReadVersionsFor, Xt as inheritedParameterExpression, Y as passProvenanceFor, Yt as inheritNestedStackParameterAssociations, Z as recordReferenceProvenanceEntry, Zt as inheritedRenderedToken, _ as noEchoComparison, _n as freshNoEchoValuesOf, _t as maskSecretsInText, an as recordRecoverableMaskedOutput, at as literalSplitDelimitersOf, bn as isScopedSecretVerdict, bt as legacyReferenceLeavesOnly, c as parseLambdaFunctionAddress, ct as recordLogOnlyParameterValue, d as canonicalJson$7, dn as crossStackSourceKey, dt as shareLogOnlyValues, en as redactInheritedParameterValue, et as carryLogOnlyValues, f as isMarkedCoordinate, fn as recordCrossStackExpression, ft as unionOfSecretBags, g as maskedLeafCoordinatesOf, gn as contradictProvenPublicExpression, gt as maskSecretsInError, h as maskWholeValue, hn as carryFreshNoEchoMark, ht as maskRecordedSecretsInText, in as freshNoEchoLeafPositions, it as hasMaskableValues, jn as recordNoEchoParameterFreshValue, jt as spanNamesResolvableService, k as valueAtCoordinate, kt as withPhysicalNameCopies, ln as recordPhysicalNameCopy, lt as recordLogOnlySplitFragments, m as maskReadbackAtCoordinates, mn as carriesSecretMask, mt as errorCauseChain, nn as carriesFreshNoEchoValue, nt as createUnionSecretMasker, on as recoverMaskedOutput, ot as logOnlyValueCount, p as maskAtCoordinates, pn as splitGetAttStringForm, pt as createSecretMasker, q as recordSecretResolution, qt as recordInheritedPseudoParameters, rn as embedsFreshNoEchoValue, rt as hasLogOnlyValues, sn as physicalNameCopiesOf, st as printingCorpusOf, t as ReplacementRulesRegistry, tn as withdrawRenderedParameterSpelling, tt as carryLogOnlyValuesCarriedBy, u as canonicalCoordinates, un as recordNestedStackParameterExpressions, ut as recordLogOnlyValue, v as noEchoCoordinatesOf, vn as isMaskOnlyPlaintext, vt as differingStringLeaves, w as readbackPathFor, wn as pinScopedSecretVerdict, wt as embeddedPhysicalNameRewrites, x as noEchoParameterNodesAt, xn as isSecretExpressionByVerdictOrSpelling, xt as overlapRuleAnswered, y as noEchoLeavesOf, yn as isNoEchoParameterPlaintext, yt as legacyLeavesWithoutMask, z as recordIntrinsicLeafResolutionAs, zt as arrayPairsWhateverDrops } from "./replacement-rules-
|
|
12
|
-
import { C as withUnsettledItems, S as unsettledPropertiesOf, T as withoutUnsettledProperties, _ as isUsableAttemptedName, b as unsettledItemsOf, c as planTagDiff, f as tagPlanWarning, h as definedAttributes, i as refuseRestoreFromItself, l as readTagList, u as refuseMalformedDesiredTags, v as unsettledContextOf, w as withUnsettledProperties, x as unsettledItemsTopKey, y as unsettledItemsField } from "./restore-source-guard-
|
|
8
|
+
import { $t as markAuxiliaryFailure, A as assertRegionMatch, At as canonicalizeRoute53QueryName, B as resolveExplicitPhysicalId, Bt as createMaskedRetryLogger, D as withoutServerErrorRetries, F as isQuotableImportValue, Gt as RETRY_AUXILIARY_OWNER, H as markNotGone, Ht as maskDeep, I as normalizeAwsTagsToCfn, It as resourceTypeShown, Jt as createdBeforeFailure, K as observeThenDisableProtection, L as quotedRemedyLogicalId, Lt as segmentAfterAnchor, Mt as compositeIdSeparatorRefusal, Pt as logicalIdShown, Qt as isAuxiliaryMarkOf, R as refusalTypeShown, Rt as stateOrphanRecordRemedy, U as compensateProtectionFlip, Ut as maskerOrIdentity, V as isMarkedNotGone, Vt as isSecretDerivedValue, W as deleteWithProtectionCompensation, Wt as withDerivedNameMasks, Yt as createdResourceIdentityBeforeFailure, Zt as isAuxiliaryFailure, _n as withPasteableAwsProfile, at as runDeleteAttempt, bt as startInterruptWatch, ct as monotonicNowMs, d as CreatedResourceSink, dn as sanitizeRecoveryValue, en as markCreatedBeforeFailure, f as clearCreatedReport, fn as CUSTOM_RESOURCE_RESPONSE_PREFIX, g as retractCreatedResource, i as withResourceDeadline, it as protectionFlipKey, k as RESOURCE_NOT_FOUND, kt as withUnchangedSecretPrincipalLists, lt as DELETION_PROTECTION_DOC_POINTER, m as reportCreatedResource, mn as WAIT_CONDITION_SIGNAL_PREFIX, mt as protectedReplacementAdvice, n as enclosingDeadlineRemainingMs, nt as ProtectionFlipRegistry, o as prepareRemovalForUpdate, ot as ElapsedBudget, p as collectCreatedResources, pn as DEFAULT_STATE_PREFIX, pt as pasteableAwsCommand, r as whileEnclosingDeadlinesPaused, rt as isTerminalDeleteFailure, s as removalWarning, st as ElapsedBudgetRegistry, t as enclosingDeadlineExpired, u as withoutInjectedRemovals, un as recoveryCommandFlags, vn as injectiveKey, xn as producerRecordKey, yt as isInterruptedWaitError, zt as createMaskedLogSinks } from "./resource-deadline-CSd19ZNv.js";
|
|
9
|
+
import { t as expectedOwnerParam } from "./expected-bucket-owner-BeB-z8ED.js";
|
|
10
|
+
import { At as replaceDeadIdentity, Bt as orphansCarriedFrom, Ct as SURVIVOR_IDENTITY_ATTRIBUTES, Dt as isUsableIdentityValue, Et as isRecordedIdentityAttribute, Ht as skippedOutputsCarriedFrom, It as importableOutputKeys, Lt as importableOutputs, Mt as acceptedCreateOnlyDropsOf, Nt as describeRegionValueKind, Ot as keepRecordedIdentity, Pt as exportNamesCarriedFrom, Rt as isReadableBag, St as slowCcOperationTimeoutMs, Ut as stackInstanceIdCarriedFrom, Vt as shouldRetainResource, bt as identityWarner, ht as dbInstanceAttributes, i as dbClusterAttributes, kt as newCopyDeleteAttributes, n as isRefusedByName, r as markDeleteStarted, t as isDeleteStarted, vt as assertRecordedIdentity, wt as attributesAfterUpdate, xt as recordedIdentityId, yt as differingIdentityWarning, zt as orphansAfterRollback } from "./delete-started-BY94yU_N.js";
|
|
11
|
+
import { $t as recordInheritedParameterValue, A as witnessNormalize, An as recordNoEchoAttributeValues, At as withoutPhysicalNameCopies, B as redactionClaimOf, Cn as noEchoParameterPlaintextsOf, Ct as withLegacyOverlapScan, D as recordedNoEchoValuesOf, Dn as recordFreshNoEchoValuesIn, Dt as replaceEmbeddedPhysicalNameRewrites, E as recordPassedNoEchoParameters, En as recordDerivedMaskOnlyValue, Et as repairPhysicalNameCopyLeaves, F as markLeafCertifiedBag, G as foldRecording, Gt as recordTakenIfBranch, H as mixedLiteralAnswered, Ht as splitOutsideDynamicReferences, I as markSameGenerationBag, In as isDynamicReferenceString, It as secretRerenderPairs, J as hasPassProvenance, Jt as templateRereadsAccountId, K as openRecordingScope, Kt as inheritedPseudoValue, L as mergeResolvedPairs, Ln as isSingleDynamicReferenceToken, M as carryRedactionMarks, Mn as recordProvenPublicExpression, Mt as DYNAMIC_REFERENCE_TOKEN_SCAN, N as intrinsicLeafResolutionOf, Nn as wholeStringLeavesOf, Nt as dynamicReferenceTokens, O as replaceAtCoordinates, Ot as scrubResourceRecord, P as isSameGenerationBag, Pn as withoutNoEchoParameterEntries, Q as recordReferenceResolution, Qt as recordInheritedParameterRead, R as recordIntrinsicLeafResolution, Rn as maskMatchSpans, S as noEchoParametersReadBy, Sn as markNoEchoParameterClass, St as replaceWholeLeaves, Tt as repairEmbeddedPhysicalNamesTowards, U as withLegacyMixedScan, Ut as standsForInheritedSecret, V as resolvedPlaintextOf, Vt as rereadParameterExpression, W as redactForState, Wt as recordDroppedArrayElements, X as passReadVersionsFor, Xt as inheritedParameterExpression, Y as passProvenanceFor, Yt as inheritNestedStackParameterAssociations, Z as recordReferenceProvenanceEntry, Zt as inheritedRenderedToken, _ as noEchoComparison, _n as freshNoEchoValuesOf, _t as maskSecretsInText, an as recordRecoverableMaskedOutput, at as literalSplitDelimitersOf, bn as isScopedSecretVerdict, bt as legacyReferenceLeavesOnly, c as parseLambdaFunctionAddress, ct as recordLogOnlyParameterValue, d as canonicalJson$7, dn as crossStackSourceKey, dt as shareLogOnlyValues, en as redactInheritedParameterValue, et as carryLogOnlyValues, f as isMarkedCoordinate, fn as recordCrossStackExpression, ft as unionOfSecretBags, g as maskedLeafCoordinatesOf, gn as contradictProvenPublicExpression, gt as maskSecretsInError, h as maskWholeValue, hn as carryFreshNoEchoMark, ht as maskRecordedSecretsInText, in as freshNoEchoLeafPositions, it as hasMaskableValues, jn as recordNoEchoParameterFreshValue, jt as spanNamesResolvableService, k as valueAtCoordinate, kt as withPhysicalNameCopies, ln as recordPhysicalNameCopy, lt as recordLogOnlySplitFragments, m as maskReadbackAtCoordinates, mn as carriesSecretMask, mt as errorCauseChain, nn as carriesFreshNoEchoValue, nt as createUnionSecretMasker, on as recoverMaskedOutput, ot as logOnlyValueCount, p as maskAtCoordinates, pn as splitGetAttStringForm, pt as createSecretMasker, q as recordSecretResolution, qt as recordInheritedPseudoParameters, rn as embedsFreshNoEchoValue, rt as hasLogOnlyValues, sn as physicalNameCopiesOf, st as printingCorpusOf, t as ReplacementRulesRegistry, tn as withdrawRenderedParameterSpelling, tt as carryLogOnlyValuesCarriedBy, u as canonicalCoordinates, un as recordNestedStackParameterExpressions, ut as recordLogOnlyValue, v as noEchoCoordinatesOf, vn as isMaskOnlyPlaintext, vt as differingStringLeaves, w as readbackPathFor, wn as pinScopedSecretVerdict, wt as embeddedPhysicalNameRewrites, x as noEchoParameterNodesAt, xn as isSecretExpressionByVerdictOrSpelling, xt as overlapRuleAnswered, y as noEchoLeavesOf, yn as isNoEchoParameterPlaintext, yt as legacyLeavesWithoutMask, z as recordIntrinsicLeafResolutionAs, zt as arrayPairsWhateverDrops } from "./replacement-rules-Bs3dhR_O.js";
|
|
12
|
+
import { C as withUnsettledItems, S as unsettledPropertiesOf, T as withoutUnsettledProperties, _ as isUsableAttemptedName, b as unsettledItemsOf, c as planTagDiff, f as tagPlanWarning, h as definedAttributes, i as refuseRestoreFromItself, l as readTagList, u as refuseMalformedDesiredTags, v as unsettledContextOf, w as withUnsettledProperties, x as unsettledItemsTopKey, y as unsettledItemsField } from "./restore-source-guard-D7zwBxYx.js";
|
|
13
13
|
import { createHash, randomUUID, timingSafeEqual } from "node:crypto";
|
|
14
14
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
15
15
|
import { CreateBucketCommand, DeleteObjectCommand, DeleteObjectsCommand, GetBucketLifecycleConfigurationCommand, GetBucketLocationCommand, GetBucketReplicationCommand, GetBucketTaggingCommand, GetObjectCommand, HeadBucketCommand, HeadObjectCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchKey, PutBucketEncryptionCommand, PutBucketLifecycleConfigurationCommand, PutBucketPolicyCommand, PutObjectCommand, PutPublicAccessBlockCommand, S3Client } from "@aws-sdk/client-s3";
|
|
@@ -19,7 +19,7 @@ import { GetFunctionCommand, GetFunctionConfigurationCommand, GetFunctionUrlConf
|
|
|
19
19
|
import { AssumeRoleCommand, GetCallerIdentityCommand, STSClient } from "@aws-sdk/client-sts";
|
|
20
20
|
import { CreateSnapshotCommand, DeleteVolumeCommand, DescribeAvailabilityZonesCommand, DescribeInstancesCommand, DescribeLaunchTemplatesCommand, DescribeNatGatewaysCommand, DescribeNetworkAclsCommand, DescribeSecurityGroupsCommand, DescribeSnapshotsCommand, DescribeSubnetsCommand, DescribeVolumesCommand, DescribeVpcsCommand, GetIpamPoolAllocationsCommand } from "@aws-sdk/client-ec2";
|
|
21
21
|
import { CreateTableCommand, DeleteResourcePolicyCommand, DeleteTableCommand, DescribeContinuousBackupsCommand, DescribeContributorInsightsCommand, DescribeKinesisStreamingDestinationCommand, DescribeTableCommand, DescribeTimeToLiveCommand, DisableKinesisStreamingDestinationCommand, DynamoDBClient, EnableKinesisStreamingDestinationCommand, GetResourcePolicyCommand, ListTagsOfResourceCommand, PolicyNotFoundException, PutResourcePolicyCommand, ResourceNotFoundException as ResourceNotFoundException$1, TagResourceCommand as TagResourceCommand$2, UntagResourceCommand as UntagResourceCommand$2, UpdateContinuousBackupsCommand, UpdateContributorInsightsCommand, UpdateKinesisStreamingDestinationCommand, UpdateTableCommand, UpdateTimeToLiveCommand } from "@aws-sdk/client-dynamodb";
|
|
22
|
-
import { CloudFormationClient, DescribeStacksCommand, ListExportsCommand } from "@aws-sdk/client-cloudformation";
|
|
22
|
+
import { CancelUpdateStackCommand, CloudFormationClient, ContinueUpdateRollbackCommand, CreateStackCommand, DeleteStackCommand, DescribeStackEventsCommand, DescribeStackResourceCommand, DescribeStacksCommand, GetTemplateCommand, ListExportsCommand, UpdateStackCommand } from "@aws-sdk/client-cloudformation";
|
|
23
23
|
import { GetRestApiCommand } from "@aws-sdk/client-api-gateway";
|
|
24
24
|
import { DescribeApiDestinationCommand, DescribeConnectionCommand } from "@aws-sdk/client-eventbridge";
|
|
25
25
|
import { GetSecretValueCommand } from "@aws-sdk/client-secrets-manager";
|
|
@@ -82,7 +82,7 @@ async function resolveBucketRegion(bucketName, opts = {}) {
|
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
84
|
try {
|
|
85
|
-
const { expectedOwnerParam } = await import("./expected-bucket-owner-
|
|
85
|
+
const { expectedOwnerParam } = await import("./expected-bucket-owner-BeB-z8ED.js").then((n) => n.n);
|
|
86
86
|
return (await client.send(new GetBucketLocationCommand({
|
|
87
87
|
Bucket: bucketName,
|
|
88
88
|
...await expectedOwnerParam(client)
|
|
@@ -11433,7 +11433,7 @@ function mayBeStoredIn(childType, parentType) {
|
|
|
11433
11433
|
const entry = CHILD_STORED_IN_PARENT[childType];
|
|
11434
11434
|
return entry.properties.some((property) => typesFor(entry, property).includes(parentType));
|
|
11435
11435
|
}
|
|
11436
|
-
let parser;
|
|
11436
|
+
let parser$1;
|
|
11437
11437
|
function childLostWithRecreatedParent(input) {
|
|
11438
11438
|
if (input.recreatedUnderSameId.size === 0) return void 0;
|
|
11439
11439
|
if (!Object.hasOwn(CHILD_STORED_IN_PARENT, input.resourceType)) return void 0;
|
|
@@ -11442,8 +11442,8 @@ function childLostWithRecreatedParent(input) {
|
|
|
11442
11442
|
for (const property of entry.properties) {
|
|
11443
11443
|
if (!Object.hasOwn(properties, property)) continue;
|
|
11444
11444
|
const value = input.conditions === void 0 ? properties[property] : takenFnIfArms(properties[property], input.conditions);
|
|
11445
|
-
parser ??= new TemplateParser();
|
|
11446
|
-
for (const referencedId of parser.extractReferences(value)) {
|
|
11445
|
+
parser$1 ??= new TemplateParser();
|
|
11446
|
+
for (const referencedId of parser$1.extractReferences(value)) {
|
|
11447
11447
|
if (!input.recreatedUnderSameId.has(referencedId)) continue;
|
|
11448
11448
|
const parentType = input.recordedTypeOf(referencedId);
|
|
11449
11449
|
if (parentType !== void 0 && typesFor(entry, property).includes(parentType)) return {
|
|
@@ -11586,8 +11586,8 @@ function withRecreatedAttachmentsDropped(input) {
|
|
|
11586
11586
|
for (const property of entry.properties) {
|
|
11587
11587
|
if (!Object.hasOwn(properties, property)) continue;
|
|
11588
11588
|
const value = input.conditions === void 0 ? properties[property] : takenFnIfArms(properties[property], input.conditions);
|
|
11589
|
-
parser ??= new TemplateParser();
|
|
11590
|
-
const recreated = [...parser.extractReferences(value)].filter((id) => input.recreatedUnderSameId.has(id)).map((id) => ({
|
|
11589
|
+
parser$1 ??= new TemplateParser();
|
|
11590
|
+
const recreated = [...parser$1.extractReferences(value)].filter((id) => input.recreatedUnderSameId.has(id)).map((id) => ({
|
|
11591
11591
|
id,
|
|
11592
11592
|
record: input.recordOf(id)
|
|
11593
11593
|
})).filter((p) => p.record !== void 0 && typesFor(entry, property).includes(p.record.resourceType));
|
|
@@ -13127,61 +13127,6 @@ const SHAPE_MISMATCHED_GETATT_ATTRIBUTES = {
|
|
|
13127
13127
|
"AWS::MediaLive::Input": ["Destinations", "Sources"]
|
|
13128
13128
|
};
|
|
13129
13129
|
|
|
13130
|
-
// src/deployment/recorded-identity-attributes.ts
|
|
13131
|
-
const SURVIVOR_IDENTITY_ATTRIBUTES = {
|
|
13132
|
-
"AWS::IAM::Role": "RoleId",
|
|
13133
|
-
"AWS::IAM::ManagedPolicy": "PolicyId",
|
|
13134
|
-
"AWS::DynamoDB::Table": "TableId",
|
|
13135
|
-
"AWS::RDS::DBInstance": "DbiResourceId",
|
|
13136
|
-
"AWS::RDS::DBCluster": "DBClusterResourceId",
|
|
13137
|
-
"AWS::IAM::User": "UserId",
|
|
13138
|
-
"AWS::IAM::Group": "GroupId",
|
|
13139
|
-
"AWS::IAM::InstanceProfile": "InstanceProfileId"
|
|
13140
|
-
};
|
|
13141
|
-
function isRecordedIdentityAttribute(resourceType, key) {
|
|
13142
|
-
return Object.hasOwn(SURVIVOR_IDENTITY_ATTRIBUTES, resourceType) && SURVIVOR_IDENTITY_ATTRIBUTES[resourceType] === key;
|
|
13143
|
-
}
|
|
13144
|
-
function keepRecordedIdentity(resourceType, previous, next, onDiffering) {
|
|
13145
|
-
if (!Object.hasOwn(SURVIVOR_IDENTITY_ATTRIBUTES, resourceType)) return next;
|
|
13146
|
-
const key = SURVIVOR_IDENTITY_ATTRIBUTES[resourceType];
|
|
13147
|
-
const held = previous !== void 0 && Object.hasOwn(previous, key) ? previous[key] : void 0;
|
|
13148
|
-
const recorded = isUsableIdentityValue(held) ? held : void 0;
|
|
13149
|
-
if (recorded === void 0 || next[key] === recorded) return next;
|
|
13150
|
-
if (Object.hasOwn(next, key) && next[key] !== void 0) onDiffering?.(key);
|
|
13151
|
-
return {
|
|
13152
|
-
...next,
|
|
13153
|
-
[key]: recorded
|
|
13154
|
-
};
|
|
13155
|
-
}
|
|
13156
|
-
function attributesAfterUpdate(resourceType, previous, result, onDiffering) {
|
|
13157
|
-
if (result.wasReplaced) return result.attributes;
|
|
13158
|
-
const next = result.attributes ?? previous;
|
|
13159
|
-
return next === void 0 ? void 0 : keepRecordedIdentity(resourceType, previous, next, onDiffering);
|
|
13160
|
-
}
|
|
13161
|
-
function withoutDeadIdentity(resourceType, attributes) {
|
|
13162
|
-
if (attributes === void 0 || !Object.hasOwn(SURVIVOR_IDENTITY_ATTRIBUTES, resourceType)) return attributes;
|
|
13163
|
-
const key = SURVIVOR_IDENTITY_ATTRIBUTES[resourceType];
|
|
13164
|
-
if (!Object.hasOwn(attributes, key)) return attributes;
|
|
13165
|
-
const { [key]: _dead, ...rest } = attributes;
|
|
13166
|
-
return rest;
|
|
13167
|
-
}
|
|
13168
|
-
function newCopyDeleteAttributes(resourceType, current, oldDeletedBeforeCreate, previous) {
|
|
13169
|
-
if (oldDeletedBeforeCreate !== true || !Object.hasOwn(SURVIVOR_IDENTITY_ATTRIBUTES, resourceType)) return current;
|
|
13170
|
-
const key = SURVIVOR_IDENTITY_ATTRIBUTES[resourceType];
|
|
13171
|
-
return current?.[key] !== void 0 && current[key] === previous?.[key] ? withoutDeadIdentity(resourceType, current) : current;
|
|
13172
|
-
}
|
|
13173
|
-
function isUsableIdentityValue(value) {
|
|
13174
|
-
return typeof value === "string" && value !== "" && !value.includes("***") && !holdsSecretDerivedEntry(value);
|
|
13175
|
-
}
|
|
13176
|
-
function replaceDeadIdentity(resourceType, attributes, previous, madeIdentity) {
|
|
13177
|
-
const dropped = newCopyDeleteAttributes(resourceType, attributes, true, previous);
|
|
13178
|
-
if (dropped === attributes || madeIdentity === void 0 || madeIdentity === "") return dropped;
|
|
13179
|
-
return {
|
|
13180
|
-
...dropped,
|
|
13181
|
-
[SURVIVOR_IDENTITY_ATTRIBUTES[resourceType]]: madeIdentity
|
|
13182
|
-
};
|
|
13183
|
-
}
|
|
13184
|
-
|
|
13185
13130
|
// src/deployment/unexposed-identity-attribute.ts
|
|
13186
13131
|
function isUnexposedRecordedIdentity(resourceType, attributeName) {
|
|
13187
13132
|
if (!isRecordedIdentityAttribute(resourceType, attributeName)) return false;
|
|
@@ -16136,6 +16081,8 @@ async function resolvePseudoParameter(resolver, name, context) {
|
|
|
16136
16081
|
case "AWS::Partition": return derivePartitionAndUrlSuffix(effectiveAccountInfoRegion(resolver.resolverRegion)).partition;
|
|
16137
16082
|
case "AWS::StackName": return context?.stackName ?? "UnknownStack";
|
|
16138
16083
|
case "AWS::StackId": {
|
|
16084
|
+
const override = context?.stackIdOverride?.();
|
|
16085
|
+
if (override !== void 0) return override;
|
|
16139
16086
|
const info = await getAccountInfo(resolver.resolverRegion);
|
|
16140
16087
|
let tail;
|
|
16141
16088
|
try {
|
|
@@ -19932,62 +19879,6 @@ function ccProtectionSite(resourceType, physicalId, entry, region) {
|
|
|
19932
19879
|
};
|
|
19933
19880
|
}
|
|
19934
19881
|
|
|
19935
|
-
// src/provisioning/recorded-identity.ts
|
|
19936
|
-
function recordedIdentityId(resourceType, context) {
|
|
19937
|
-
if (!Object.hasOwn(SURVIVOR_IDENTITY_ATTRIBUTES, resourceType)) return void 0;
|
|
19938
|
-
const key = SURVIVOR_IDENTITY_ATTRIBUTES[resourceType];
|
|
19939
|
-
const value = context?.recordedAttributes?.[key];
|
|
19940
|
-
return isUsableIdentityValue(value) ? {
|
|
19941
|
-
key,
|
|
19942
|
-
value
|
|
19943
|
-
} : void 0;
|
|
19944
|
-
}
|
|
19945
|
-
var RecordedIdentityError = class extends ProvisioningError {
|
|
19946
|
-
constructor(message, resourceType, logicalId, physicalId, cause) {
|
|
19947
|
-
super(message, resourceType, logicalId, physicalId, cause);
|
|
19948
|
-
Object.setPrototypeOf(this, new.target.prototype);
|
|
19949
|
-
this.name = "RecordedIdentityError";
|
|
19950
|
-
}
|
|
19951
|
-
};
|
|
19952
|
-
var RecordedIdentityMismatchError = class RecordedIdentityMismatchError extends RecordedIdentityError {
|
|
19953
|
-
attribute;
|
|
19954
|
-
constructor(params) {
|
|
19955
|
-
const { label, resourceType, logicalId, physicalId, attribute, context } = params;
|
|
19956
|
-
super(`Cannot delete ${label} ${logicalId}: the ${label} holding the name cdkd recorded is not the one cdkd created (its ${attribute} differs from the recorded one), so cdkd sent no delete and kept the record. Leave that ${label} alone; if the one cdkd created is gone, drop the record with ${stateOrphanRecordRemedy(context, logicalId)}.`, resourceType, logicalId, physicalId);
|
|
19957
|
-
Object.setPrototypeOf(this, RecordedIdentityMismatchError.prototype);
|
|
19958
|
-
this.attribute = attribute;
|
|
19959
|
-
this.name = "RecordedIdentityMismatchError";
|
|
19960
|
-
markNonRetryable(this);
|
|
19961
|
-
}
|
|
19962
|
-
};
|
|
19963
|
-
const RECORDED_IDENTITY_REREAD_DELAY_MS = 5e3;
|
|
19964
|
-
async function assertRecordedIdentity(params) {
|
|
19965
|
-
const recorded = recordedIdentityId(params.resourceType, params.context);
|
|
19966
|
-
if (recorded === void 0) return;
|
|
19967
|
-
const { label, resourceType, logicalId, physicalId, context } = params;
|
|
19968
|
-
let liveId = params.liveId;
|
|
19969
|
-
if (typeof liveId === "string" && liveId !== "" && liveId !== recorded.value) {
|
|
19970
|
-
await new Promise((resolve) => setTimeout(resolve, RECORDED_IDENTITY_REREAD_DELAY_MS));
|
|
19971
|
-
liveId = await params.reread();
|
|
19972
|
-
}
|
|
19973
|
-
if (typeof liveId !== "string" || liveId === "") throw markNotGone(new RecordedIdentityError(`Cannot delete ${label} ${logicalId}: AWS answered without its ${recorded.key}, so cdkd cannot confirm it is the one cdkd created; nothing was sent and the record is kept. Re-run the operation.`, resourceType, logicalId, physicalId));
|
|
19974
|
-
if (liveId === recorded.value) return;
|
|
19975
|
-
throw new RecordedIdentityMismatchError({
|
|
19976
|
-
label,
|
|
19977
|
-
resourceType,
|
|
19978
|
-
logicalId,
|
|
19979
|
-
physicalId,
|
|
19980
|
-
attribute: recorded.key,
|
|
19981
|
-
context
|
|
19982
|
-
});
|
|
19983
|
-
}
|
|
19984
|
-
function differingIdentityWarning(logicalId, resourceType, attribute) {
|
|
19985
|
-
return safeMsg`${logicalId} (${resourceType}): the update answered with another ${attribute} than the recorded one, so it may have reached another resource under the same name; cdkd keeps the recorded ${attribute}. Check the resource before deleting anything by hand.`;
|
|
19986
|
-
}
|
|
19987
|
-
function identityWarner(logger, mask, op) {
|
|
19988
|
-
return (attribute) => logger.warn(mask(differingIdentityWarning(op.logicalId, op.resourceType, attribute)));
|
|
19989
|
-
}
|
|
19990
|
-
|
|
19991
19882
|
// src/provisioning/cloud-control/delete-guards.ts
|
|
19992
19883
|
const CC_DELETE_IDENTITY_CHECKED_TYPES = /* @__PURE__ */ new Set(["AWS::S3::Bucket"]);
|
|
19993
19884
|
function requiresCcDeleteIdentityCheck(resourceType) {
|
|
@@ -20007,7 +19898,10 @@ const CC_MODEL_OMITS_IDENTITY = /* @__PURE__ */ new Set([
|
|
|
20007
19898
|
"AWS::DynamoDB::Table",
|
|
20008
19899
|
"AWS::IAM::User",
|
|
20009
19900
|
"AWS::IAM::Group",
|
|
20010
|
-
"AWS::IAM::InstanceProfile"
|
|
19901
|
+
"AWS::IAM::InstanceProfile",
|
|
19902
|
+
"AWS::Logs::LogGroup",
|
|
19903
|
+
"AWS::StepFunctions::StateMachine",
|
|
19904
|
+
"AWS::ECR::Repository"
|
|
20011
19905
|
]);
|
|
20012
19906
|
const CC_DELETE_RECORDED_IDENTITY_ATTRIBUTES = new Map(Object.entries(SURVIVOR_IDENTITY_ATTRIBUTES).filter(([resourceType]) => !CC_MODEL_OMITS_IDENTITY.has(resourceType)));
|
|
20013
19907
|
function recordedCcDeleteIdentity(resourceType, context) {
|
|
@@ -20349,7 +20243,7 @@ async function deleteInIdLogScope(logicalId, physicalId, resourceType, propertie
|
|
|
20349
20243
|
const indeterminateGuard = await this.confirmDeleteTargetIdentity(logicalId, resourceType, physicalId, context);
|
|
20350
20244
|
if (context?.removeProtection === true && resourceType === "AWS::AutoScaling::AutoScalingGroup") {
|
|
20351
20245
|
this.logger.debug(`Delegating protected AutoScalingGroup ${logicalId} delete to the SDK ASGProvider (Cloud Control cannot force-delete a protected ASG)`);
|
|
20352
|
-
const { ASGProvider } = await import("./asg-provider-
|
|
20246
|
+
const { ASGProvider } = await import("./asg-provider-7c1iqoaI.js");
|
|
20353
20247
|
const delegateRegion = ambientRegion();
|
|
20354
20248
|
let asgProvider = this.asgDeleteDelegates.get(delegateRegion);
|
|
20355
20249
|
if (asgProvider === void 0) {
|
|
@@ -20504,7 +20398,7 @@ async function sdkDeleteDelegateInCcRegion(resourceType, logicalId, physicalId)
|
|
|
20504
20398
|
const family = SDK_DELETE_FAMILIES.get(resourceType);
|
|
20505
20399
|
const cached = this.sdkDeleteDelegates.get(family);
|
|
20506
20400
|
if (cached !== void 0 && cached.region === ccRegion) return cached.provider;
|
|
20507
|
-
const provider = family === "rds" ? new (await (import("./rds-provider-
|
|
20401
|
+
const provider = family === "rds" ? new (await (import("./rds-provider-CjaaTJEe.js"))).RDSProvider({ region: ccRegion }) : new (await (import("./neptune-provider-BPnu4P-b.js"))).NeptuneProvider({ region: ccRegion });
|
|
20508
20402
|
this.sdkDeleteDelegates.set(family, {
|
|
20509
20403
|
region: ccRegion,
|
|
20510
20404
|
provider
|
|
@@ -23080,7 +22974,7 @@ async function publishToSns(topicArn, request) {
|
|
|
23080
22974
|
}
|
|
23081
22975
|
async function invokeLambda(serviceToken, request) {
|
|
23082
22976
|
if (localCustomResourceRuntimeActive()) {
|
|
23083
|
-
const { invokeCustomResourceFunctionLocally } = await import("./custom-resource-runtime-
|
|
22977
|
+
const { invokeCustomResourceFunctionLocally } = await import("./custom-resource-runtime-xE15oufB.js");
|
|
23084
22978
|
const local = await invokeCustomResourceFunctionLocally({
|
|
23085
22979
|
lambda: this.lambdaClient,
|
|
23086
22980
|
s3: this.s3Client
|
|
@@ -26614,6 +26508,32 @@ function policyContentKey(document) {
|
|
|
26614
26508
|
return canonicalJson$5(value);
|
|
26615
26509
|
}
|
|
26616
26510
|
|
|
26511
|
+
// src/analyzer/drift-verbatim-paths.ts
|
|
26512
|
+
const VERBATIM_ECHO_DRIFT_KEYS = {
|
|
26513
|
+
"AWS::IAM::Role": ["AssumeRolePolicyDocument"],
|
|
26514
|
+
"AWS::IAM::Policy": ["PolicyDocument"],
|
|
26515
|
+
"AWS::IAM::ManagedPolicy": ["PolicyDocument"],
|
|
26516
|
+
"AWS::IAM::RolePolicy": ["PolicyDocument"],
|
|
26517
|
+
"AWS::IAM::UserPolicy": ["PolicyDocument"],
|
|
26518
|
+
"AWS::IAM::GroupPolicy": ["PolicyDocument"],
|
|
26519
|
+
"AWS::S3::BucketPolicy": ["PolicyDocument"],
|
|
26520
|
+
"AWS::SQS::QueuePolicy": ["PolicyDocument"],
|
|
26521
|
+
"AWS::SNS::TopicPolicy": ["PolicyDocument"],
|
|
26522
|
+
"AWS::KMS::Key": ["KeyPolicy"],
|
|
26523
|
+
"AWS::SecretsManager::ResourcePolicy": ["ResourcePolicy"]
|
|
26524
|
+
};
|
|
26525
|
+
const NONE$1 = [];
|
|
26526
|
+
function verbatimEchoDriftKeys(resourceType) {
|
|
26527
|
+
return Object.hasOwn(VERBATIM_ECHO_DRIFT_KEYS, resourceType) ? VERBATIM_ECHO_DRIFT_KEYS[resourceType] : NONE$1;
|
|
26528
|
+
}
|
|
26529
|
+
function isVerbatimStatementPath(path, verbatimKeys) {
|
|
26530
|
+
return verbatimKeys.some((key) => path === `${key}.Statement`);
|
|
26531
|
+
}
|
|
26532
|
+
const OMITTED_POLICY_VERSION = "2008-10-17";
|
|
26533
|
+
function isOmittedVersionDefault(path, value, verbatimKeys) {
|
|
26534
|
+
return value === "2008-10-17" && verbatimKeys.some((key) => path === `${key}.Version`);
|
|
26535
|
+
}
|
|
26536
|
+
|
|
26617
26537
|
// src/provisioning/settle-after-own-write.ts
|
|
26618
26538
|
const OWN_WRITE_REREAD_DELAYS_MS = [
|
|
26619
26539
|
500,
|
|
@@ -26658,7 +26578,7 @@ async function settleDeclaredMember(first, read, matches, declared, delaysMs, un
|
|
|
26658
26578
|
return newest === "absent" ? { value: declared } : newest;
|
|
26659
26579
|
}
|
|
26660
26580
|
function warnUnsettledMember(logger, logicalId, resourceType, memberKey) {
|
|
26661
|
-
logger.warn(safeMsg`${resourceType} ${logicalId}: the read right after the write never showed the declared
|
|
26581
|
+
logger.warn(safeMsg`${resourceType} ${logicalId}: the read right after the write never showed ${memberKey} as the write left it (a declared value missing, or a removed one still present), so its drift baseline may not match the live resource; run ${proseQuoted(cdkdRemedy("cdkd state refresh-observed"))} on the stack to re-capture it`);
|
|
26662
26582
|
}
|
|
26663
26583
|
function declaredMemberDocument(value) {
|
|
26664
26584
|
if (typeof value === "string") {
|
|
@@ -26677,16 +26597,8 @@ function efsPolicyMatchesDeclared(answer, declared, fileSystemId) {
|
|
|
26677
26597
|
return policyDocumentMatchesDeclared(withoutAddedResource(answer, declared, fileSystemId), declared);
|
|
26678
26598
|
}
|
|
26679
26599
|
function withoutAddedResource(answer, declared, fileSystemId) {
|
|
26680
|
-
const
|
|
26681
|
-
|
|
26682
|
-
try {
|
|
26683
|
-
return JSON.parse(doc);
|
|
26684
|
-
} catch {
|
|
26685
|
-
return doc;
|
|
26686
|
-
}
|
|
26687
|
-
};
|
|
26688
|
-
const read = parse(answer);
|
|
26689
|
-
const want = parse(declared);
|
|
26600
|
+
const read = parsedDocument(answer);
|
|
26601
|
+
const want = parsedDocument(declared);
|
|
26690
26602
|
const statements = (doc) => {
|
|
26691
26603
|
if (typeof doc !== "object" || doc === null || Array.isArray(doc)) return void 0;
|
|
26692
26604
|
const s = doc["Statement"];
|
|
@@ -26714,7 +26626,22 @@ function declaredPolicyDocument(properties) {
|
|
|
26714
26626
|
return typeof doc === "object" && doc !== null && !Array.isArray(doc) ? doc : void 0;
|
|
26715
26627
|
}
|
|
26716
26628
|
function policyDocumentMatchesDeclared(answer, declared) {
|
|
26717
|
-
return answer !== void 0 && policyContentKey(foldConditionValues(answer)) === policyContentKey(foldConditionValues(declared));
|
|
26629
|
+
return answer !== void 0 && policyContentKey(foldConditionValues(withoutOmittedVersionDefault(answer, declared))) === policyContentKey(foldConditionValues(declared));
|
|
26630
|
+
}
|
|
26631
|
+
function withoutOmittedVersionDefault(answer, declared) {
|
|
26632
|
+
const read = parsedDocument(answer);
|
|
26633
|
+
const want = parsedDocument(declared);
|
|
26634
|
+
if (typeof read !== "object" || read === null || Array.isArray(read) || typeof want !== "object" || want === null || Array.isArray(want) || Object.prototype.hasOwnProperty.call(want, "Version") || read["Version"] !== "2008-10-17") return answer;
|
|
26635
|
+
const { Version: _default, ...rest } = read;
|
|
26636
|
+
return rest;
|
|
26637
|
+
}
|
|
26638
|
+
function parsedDocument(document) {
|
|
26639
|
+
if (typeof document !== "string") return document;
|
|
26640
|
+
try {
|
|
26641
|
+
return JSON.parse(document);
|
|
26642
|
+
} catch {
|
|
26643
|
+
return document;
|
|
26644
|
+
}
|
|
26718
26645
|
}
|
|
26719
26646
|
function foldConditionValues(document) {
|
|
26720
26647
|
let doc = document;
|
|
@@ -26790,6 +26717,19 @@ function collectManagedPolicyArnsAttachedBySiblings(targetPhysicalId, context, a
|
|
|
26790
26717
|
}
|
|
26791
26718
|
return result;
|
|
26792
26719
|
}
|
|
26720
|
+
function managedPoliciesDeclaringAttachments(resourceType, context, notCompared = /* @__PURE__ */ new Set()) {
|
|
26721
|
+
const field = ATTACHMENT_FIELD[resourceType];
|
|
26722
|
+
if (field === void 0) return [];
|
|
26723
|
+
const out = [];
|
|
26724
|
+
for (const sibling of Object.values(context?.siblings ?? {})) {
|
|
26725
|
+
if (sibling.resourceType !== "AWS::IAM::ManagedPolicy") continue;
|
|
26726
|
+
const arn = sibling.physicalId;
|
|
26727
|
+
if (typeof arn !== "string" || arn === "" || notCompared.has(arn)) continue;
|
|
26728
|
+
const list = Object.prototype.hasOwnProperty.call(sibling.properties, field) ? sibling.properties[field] : void 0;
|
|
26729
|
+
if (Array.isArray(list) && list.every((m) => typeof m === "string" && m !== "" && !isStoredExpression(m))) out.push(arn);
|
|
26730
|
+
}
|
|
26731
|
+
return out;
|
|
26732
|
+
}
|
|
26793
26733
|
function withoutSiblingAttachedArns(arns, siblingArns, properties) {
|
|
26794
26734
|
return withoutSiblingOwned(arns, siblingArns, properties, "ManagedPolicyArns");
|
|
26795
26735
|
}
|
|
@@ -27607,7 +27547,7 @@ async function ccRoutedInstanceTakesNoSnapshot(input) {
|
|
|
27607
27547
|
if (resourceType !== "AWS::RDS::DBInstance") return false;
|
|
27608
27548
|
if (region === void 0 || region === "") return false;
|
|
27609
27549
|
const mask = input.mask ?? ((text) => text);
|
|
27610
|
-
const { describeDBInstanceInRegion, isLiveReadReplica } = await import("./read-replica-
|
|
27550
|
+
const { describeDBInstanceInRegion, isLiveReadReplica } = await import("./read-replica-8-Idke_l.js").then((n) => n.l);
|
|
27611
27551
|
let reason;
|
|
27612
27552
|
try {
|
|
27613
27553
|
const live = await describeDBInstanceInRegion(physicalId, region);
|
|
@@ -30344,7 +30284,7 @@ function deferToCleanupPhase(run, deps, logicalId, oldResource, updateReplacePol
|
|
|
30344
30284
|
if (run.deferredReplacedDeletes === void 0) return false;
|
|
30345
30285
|
if (updateReplacePolicy === "Snapshot" && deps.options.skipFinalSnapshot !== true && !ATOMIC_FINAL_SNAPSHOT_TYPES.has(oldResource.resourceType) && !owesPreDeleteSnapshot(oldResource.resourceType, context.finalSnapshotIdentifier)) return false;
|
|
30346
30286
|
if (isInlinePolicyType(oldResource.resourceType)) return false;
|
|
30347
|
-
if (oldIdHeldByAnotherRecord(deps, logicalId, oldResource)) return
|
|
30287
|
+
if (oldIdHeldByAnotherRecord(deps, logicalId, oldResource)) return true;
|
|
30348
30288
|
recordSupersededForDeferral(run, deps, logicalId, oldResource, {
|
|
30349
30289
|
updateReplacePolicy,
|
|
30350
30290
|
finalSnapshotIdentifier: context.finalSnapshotIdentifier,
|
|
@@ -33273,8 +33213,8 @@ function stringLeaves(value) {
|
|
|
33273
33213
|
if (isObject$2(value)) return Object.values(value).flatMap(stringLeaves);
|
|
33274
33214
|
return [];
|
|
33275
33215
|
}
|
|
33276
|
-
function warnUnhonoredCreationPolicy(logger, logicalId, resource) {
|
|
33277
|
-
if (resource?.CreationPolicy === void 0) return;
|
|
33216
|
+
function warnUnhonoredCreationPolicy(logger, logicalId, resource, waited = false) {
|
|
33217
|
+
if (resource?.CreationPolicy === void 0 || waited) return;
|
|
33278
33218
|
logger.warn(safeMsg`${logicalId}: CreationPolicy is not honored; cdkd does not wait for cfn-signal success signals.`);
|
|
33279
33219
|
}
|
|
33280
33220
|
function updatePolicyReplacementRefusal(logicalId, resource, desired, triggerPaths, stackHasInstanceId) {
|
|
@@ -33699,31 +33639,6 @@ function walkUnordered(v, path, paths) {
|
|
|
33699
33639
|
return v;
|
|
33700
33640
|
}
|
|
33701
33641
|
|
|
33702
|
-
// src/analyzer/drift-verbatim-paths.ts
|
|
33703
|
-
const VERBATIM_ECHO_DRIFT_KEYS = {
|
|
33704
|
-
"AWS::IAM::Role": ["AssumeRolePolicyDocument"],
|
|
33705
|
-
"AWS::IAM::Policy": ["PolicyDocument"],
|
|
33706
|
-
"AWS::IAM::ManagedPolicy": ["PolicyDocument"],
|
|
33707
|
-
"AWS::IAM::RolePolicy": ["PolicyDocument"],
|
|
33708
|
-
"AWS::IAM::UserPolicy": ["PolicyDocument"],
|
|
33709
|
-
"AWS::IAM::GroupPolicy": ["PolicyDocument"],
|
|
33710
|
-
"AWS::S3::BucketPolicy": ["PolicyDocument"],
|
|
33711
|
-
"AWS::SQS::QueuePolicy": ["PolicyDocument"],
|
|
33712
|
-
"AWS::SNS::TopicPolicy": ["PolicyDocument"],
|
|
33713
|
-
"AWS::KMS::Key": ["KeyPolicy"],
|
|
33714
|
-
"AWS::SecretsManager::ResourcePolicy": ["ResourcePolicy"]
|
|
33715
|
-
};
|
|
33716
|
-
const NONE$1 = [];
|
|
33717
|
-
function verbatimEchoDriftKeys(resourceType) {
|
|
33718
|
-
return Object.hasOwn(VERBATIM_ECHO_DRIFT_KEYS, resourceType) ? VERBATIM_ECHO_DRIFT_KEYS[resourceType] : NONE$1;
|
|
33719
|
-
}
|
|
33720
|
-
function isVerbatimStatementPath(path, verbatimKeys) {
|
|
33721
|
-
return verbatimKeys.some((key) => path === `${key}.Statement`);
|
|
33722
|
-
}
|
|
33723
|
-
function isOmittedVersionDefault(path, value, verbatimKeys) {
|
|
33724
|
-
return value === "2008-10-17" && verbatimKeys.some((key) => path === `${key}.Version`);
|
|
33725
|
-
}
|
|
33726
|
-
|
|
33727
33642
|
// src/analyzer/drift-calculator.ts
|
|
33728
33643
|
function calculateResourceDrift(stateProperties, awsProperties, options) {
|
|
33729
33644
|
const drifts = [];
|
|
@@ -34599,9 +34514,10 @@ async function finishReverseReplacement(s, r, createResult, deletedNewFirst) {
|
|
|
34599
34514
|
newProperties: current.properties,
|
|
34600
34515
|
physicalId: current.physicalId
|
|
34601
34516
|
}) && !deletedNewFirst && createResult.physicalId === current.physicalId;
|
|
34517
|
+
const keepLiveRecord = adoptedLiveNewResource && oldType === op.resourceType && !isCustomResource(oldType);
|
|
34602
34518
|
if (adoptedLiveNewResource) {
|
|
34603
34519
|
const liveShown = refusalPhysicalId(mask(current.physicalId));
|
|
34604
|
-
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). The old resource's ORIGINAL properties may NOT have been re-applied; state now records the pre-replacement properties, so inspect the drift and
|
|
34520
|
+
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", [{
|
|
34605
34521
|
value: stackName,
|
|
34606
34522
|
hole: "stack"
|
|
34607
34523
|
}, {
|
|
@@ -34612,9 +34528,20 @@ async function finishReverseReplacement(s, r, createResult, deletedNewFirst) {
|
|
|
34612
34528
|
result.warnings++;
|
|
34613
34529
|
}
|
|
34614
34530
|
const { observedProperties: _staleObserved, noEchoValueMacs: _staleMacs, ...prevRecord } = prev;
|
|
34531
|
+
if (keepLiveRecord) {
|
|
34532
|
+
const { deletionPolicy: _failedDeletionPolicy, updateReplacePolicy: _failedUpdateReplacePolicy, dependencies: _failedDependencies, metadata: _failedMetadata, constructPath: _failedConstructPath, ...live } = current;
|
|
34533
|
+
stateResources[op.logicalId] = {
|
|
34534
|
+
...live,
|
|
34535
|
+
...prev.deletionPolicy !== void 0 && { deletionPolicy: prev.deletionPolicy },
|
|
34536
|
+
...prev.updateReplacePolicy !== void 0 && { updateReplacePolicy: prev.updateReplacePolicy },
|
|
34537
|
+
...prev.dependencies !== void 0 && { dependencies: prev.dependencies },
|
|
34538
|
+
...prev.metadata !== void 0 && { metadata: prev.metadata },
|
|
34539
|
+
...prev.constructPath !== void 0 && { constructPath: prev.constructPath }
|
|
34540
|
+
};
|
|
34541
|
+
}
|
|
34615
34542
|
recordNoEchoAttributeValues(createResult, secrets, resolvedPrevProps);
|
|
34616
34543
|
const restoredProperties = recordedPropertiesAfterReplayCreate(prevRecord, createResult);
|
|
34617
|
-
stateResources[op.logicalId] = redactRollbackRecord({
|
|
34544
|
+
if (!keepLiveRecord) stateResources[op.logicalId] = redactRollbackRecord({
|
|
34618
34545
|
...withNameGenerationReached(prevRecord, op.logicalId, op.nameGeneration),
|
|
34619
34546
|
physicalId: createResult.physicalId,
|
|
34620
34547
|
attributes: createResult.attributes ?? {},
|
|
@@ -34680,7 +34607,7 @@ async function finishReverseReplacement(s, r, createResult, deletedNewFirst) {
|
|
|
34680
34607
|
reason: mask(survivorReason),
|
|
34681
34608
|
...survivorProvisionedBy && { provisionedBy: survivorProvisionedBy }
|
|
34682
34609
|
},
|
|
34683
|
-
...adoptedLiveNewResource && { reason: mask(
|
|
34610
|
+
...adoptedLiveNewResource && { reason: mask("The re-create returned the live new resource instead of re-creating the old one (its Create API is name-idempotent), so the replacement was NOT fully reversed: " + (keepLiveRecord ? `the old resource's original properties were not re-applied. State keeps the live resource's record, so ${proseQuoted(cdkdRemedy("cdkd deploy"), "`")} re-applies the template's.` : `the old resource's original properties may not have been re-applied. Inspect it with ${proseQuoted(cdkdRemedy("cdkd drift"), "`")} and run ${proseQuoted(cdkdRemedy("cdkd deploy"), "`")} to reconcile.`)) }
|
|
34684
34611
|
});
|
|
34685
34612
|
return survivorReason === void 0;
|
|
34686
34613
|
};
|
|
@@ -36029,6 +35956,18 @@ function inlinePolicyMemberName(member) {
|
|
|
36029
35956
|
return;
|
|
36030
35957
|
}
|
|
36031
35958
|
}
|
|
35959
|
+
function inlinePolicyMemberValue(member) {
|
|
35960
|
+
try {
|
|
35961
|
+
const [name, doc] = JSON.parse(member);
|
|
35962
|
+
if (typeof name !== "string" || typeof doc !== "string") return void 0;
|
|
35963
|
+
return {
|
|
35964
|
+
PolicyName: name,
|
|
35965
|
+
PolicyDocument: JSON.parse(doc)
|
|
35966
|
+
};
|
|
35967
|
+
} catch {
|
|
35968
|
+
return;
|
|
35969
|
+
}
|
|
35970
|
+
}
|
|
36032
35971
|
function inlinePolicyIdentity(element) {
|
|
36033
35972
|
if (!isPlainRecord$2(element)) return void 0;
|
|
36034
35973
|
const name = plainString(element["PolicyName"]);
|
|
@@ -36204,7 +36143,8 @@ const SIBLING_OWNED_ROWS = [
|
|
|
36204
36143
|
writes: iamPolicyWrites(field),
|
|
36205
36144
|
identity: inlinePolicyIdentity,
|
|
36206
36145
|
nameOf: inlinePolicyName,
|
|
36207
|
-
memberName: inlinePolicyMemberName
|
|
36146
|
+
memberName: inlinePolicyMemberName,
|
|
36147
|
+
memberValue: inlinePolicyMemberValue
|
|
36208
36148
|
}, {
|
|
36209
36149
|
child: standalone,
|
|
36210
36150
|
parent,
|
|
@@ -36212,7 +36152,8 @@ const SIBLING_OWNED_ROWS = [
|
|
|
36212
36152
|
writes: standalonePolicyWrites(nameField),
|
|
36213
36153
|
identity: inlinePolicyIdentity,
|
|
36214
36154
|
nameOf: inlinePolicyName,
|
|
36215
|
-
memberName: inlinePolicyMemberName
|
|
36155
|
+
memberName: inlinePolicyMemberName,
|
|
36156
|
+
memberValue: inlinePolicyMemberValue
|
|
36216
36157
|
}])
|
|
36217
36158
|
];
|
|
36218
36159
|
|
|
@@ -36630,6 +36571,23 @@ function stripSiblingOwnedParentMembers(resourceType, physicalId, baseline, aws,
|
|
|
36630
36571
|
};
|
|
36631
36572
|
return out;
|
|
36632
36573
|
}
|
|
36574
|
+
function siblingRecordedMembers(resourceType, physicalId, key, properties, context) {
|
|
36575
|
+
const out = [];
|
|
36576
|
+
for (const [row, owned] of ownedByRow(resourceType, physicalId, context)) {
|
|
36577
|
+
if (row.key !== key || row.memberValue === void 0) continue;
|
|
36578
|
+
for (const [member, n] of effectiveDrop(row, owned, properties)) {
|
|
36579
|
+
const value = row.memberValue(member);
|
|
36580
|
+
for (let i = 0; i < n && value !== void 0; i++) out.push(value);
|
|
36581
|
+
}
|
|
36582
|
+
}
|
|
36583
|
+
return out;
|
|
36584
|
+
}
|
|
36585
|
+
function undeclaredGrantSiblingMembers(resourceType, physicalId, grantKeys, properties, context, notComparedPolicyArns) {
|
|
36586
|
+
const out = {};
|
|
36587
|
+
if (grantKeys.includes("Policies")) out["Policies"] = siblingRecordedMembers(resourceType, physicalId, "Policies", properties, context);
|
|
36588
|
+
if (grantKeys.includes("ManagedPolicyArns")) out["ManagedPolicyArns"] = managedPoliciesDeclaringAttachments(resourceType, context, notComparedPolicyArns);
|
|
36589
|
+
return out;
|
|
36590
|
+
}
|
|
36633
36591
|
function siblingOwnedRevertDesired(resourceType, physicalId, desired, aws, properties, context) {
|
|
36634
36592
|
let out = stripSiblingOwnedMembers(resourceType, physicalId, desired, aws, properties, context).baseline;
|
|
36635
36593
|
out = stripSiblingOwnedSgRules(resourceType, physicalId, out, aws, properties, context).baseline;
|
|
@@ -37173,6 +37131,7 @@ function buildResolverContext(deps, base, stackName) {
|
|
|
37173
37131
|
stateBackend: deps.stateBackend,
|
|
37174
37132
|
stackName,
|
|
37175
37133
|
stackIdTail: () => deps.runStackIdTail()?.(),
|
|
37134
|
+
stackIdOverride: () => deps.signalReceiverStackId(),
|
|
37176
37135
|
...deps.exportIndexStore && { exportIndex: deps.exportIndexStore },
|
|
37177
37136
|
recordedImports: deps.recordedImports(),
|
|
37178
37137
|
recordedOutputReads: deps.recordedOutputReads(),
|
|
@@ -41624,7 +41583,8 @@ function resolverContextDeps() {
|
|
|
41624
41583
|
recordedImports: () => this.recordedImports,
|
|
41625
41584
|
recordedOutputReads: () => this.recordedOutputReads,
|
|
41626
41585
|
runProducerRegionEvidence: () => this.runProducerRegionEvidence,
|
|
41627
|
-
runStackIdTail: () => this.runStackIdTail
|
|
41586
|
+
runStackIdTail: () => this.runStackIdTail,
|
|
41587
|
+
signalReceiverStackId: () => this.signalReceiverStackId
|
|
41628
41588
|
};
|
|
41629
41589
|
}
|
|
41630
41590
|
function deleteDeps() {
|
|
@@ -41668,6 +41628,609 @@ function rollbackDeps() {
|
|
|
41668
41628
|
};
|
|
41669
41629
|
}
|
|
41670
41630
|
|
|
41631
|
+
// src/deployment/deploy-engine/signal-receiver.ts
|
|
41632
|
+
const RECEIVER_TAG_KEY = "cdkd:signal-receiver";
|
|
41633
|
+
const RECEIVER_DESCRIPTION = "cdkd signal receiver: answers cfn-signal / cfn-init for the cdkd stack of the same name (do not edit)";
|
|
41634
|
+
const ANCHOR_ID = "CdkdSignalReceiverAnchor";
|
|
41635
|
+
const MAX_SIGNAL_TIMEOUT_MS = 432e5;
|
|
41636
|
+
const DEFAULT_SIGNAL_TIMEOUT_MS = 3e5;
|
|
41637
|
+
const POLL_INTERVAL_MS = 5e3;
|
|
41638
|
+
const MAX_TEMPLATE_BODY_BYTES = 51200;
|
|
41639
|
+
const SETTLE_WAIT_MS = 6e5;
|
|
41640
|
+
function isoDurationMs(value) {
|
|
41641
|
+
if (typeof value !== "string") return void 0;
|
|
41642
|
+
const match = /^PT(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?$/.exec(value.trim());
|
|
41643
|
+
if (match === null || (match[1] ?? match[2] ?? match[3]) === void 0) return void 0;
|
|
41644
|
+
return (Number(match[1] ?? 0) * 3600 + Number(match[2] ?? 0) * 60 + Number(match[3] ?? 0)) * 1e3;
|
|
41645
|
+
}
|
|
41646
|
+
function signalCandidateOf(resource) {
|
|
41647
|
+
if (resource === null || typeof resource !== "object") return void 0;
|
|
41648
|
+
const r = resource;
|
|
41649
|
+
const policy = r.CreationPolicy !== null && typeof r.CreationPolicy === "object" ? r.CreationPolicy["ResourceSignal"] : void 0;
|
|
41650
|
+
const hasInitMetadata = r.Metadata !== null && typeof r.Metadata === "object" && Object.hasOwn(r.Metadata, "AWS::CloudFormation::Init");
|
|
41651
|
+
const hasPolicy = policy !== void 0 && policy !== null && typeof policy === "object";
|
|
41652
|
+
if (!hasPolicy && !hasInitMetadata) return void 0;
|
|
41653
|
+
if (!hasPolicy) return {
|
|
41654
|
+
count: 0,
|
|
41655
|
+
timeoutMs: 0,
|
|
41656
|
+
hasInitMetadata
|
|
41657
|
+
};
|
|
41658
|
+
const p = policy;
|
|
41659
|
+
const rawCount = p["Count"];
|
|
41660
|
+
return {
|
|
41661
|
+
count: rawCount === void 0 ? 1 : typeof rawCount === "number" && Number.isInteger(rawCount) && rawCount > 0 ? rawCount : typeof rawCount === "string" && /^\d+$/.test(rawCount.trim()) && Number(rawCount) > 0 ? Number(rawCount.trim()) : 1,
|
|
41662
|
+
timeoutMs: Math.min(isoDurationMs(p["Timeout"]) ?? DEFAULT_SIGNAL_TIMEOUT_MS, MAX_SIGNAL_TIMEOUT_MS),
|
|
41663
|
+
hasInitMetadata
|
|
41664
|
+
};
|
|
41665
|
+
}
|
|
41666
|
+
function signalPlanOf(template) {
|
|
41667
|
+
const candidates = /* @__PURE__ */ new Map();
|
|
41668
|
+
const unsigned = [];
|
|
41669
|
+
const resources = template.Resources ?? {};
|
|
41670
|
+
const calls = bootstrapCallsByResource(resources);
|
|
41671
|
+
for (const [id, resource] of Object.entries(resources)) {
|
|
41672
|
+
const candidate = signalCandidateOf(resource);
|
|
41673
|
+
if (candidate === void 0) continue;
|
|
41674
|
+
const call = calls.get(id);
|
|
41675
|
+
if (call?.unsigned === true) {
|
|
41676
|
+
unsigned.push(id);
|
|
41677
|
+
continue;
|
|
41678
|
+
}
|
|
41679
|
+
if (candidate.count > 0 ? call?.signedSignal === true : call?.signedInit === true) candidates.set(id, candidate);
|
|
41680
|
+
}
|
|
41681
|
+
return {
|
|
41682
|
+
candidates,
|
|
41683
|
+
unsigned
|
|
41684
|
+
};
|
|
41685
|
+
}
|
|
41686
|
+
function bootstrapCallsByResource(resources) {
|
|
41687
|
+
const out = /* @__PURE__ */ new Map();
|
|
41688
|
+
for (const script of userDataScriptsOf(resources)) for (const command of commandsOf(script)) {
|
|
41689
|
+
const call = parseBootstrapCall(command);
|
|
41690
|
+
if (call === void 0) continue;
|
|
41691
|
+
const entry = out.get(call.resource) ?? {
|
|
41692
|
+
signedSignal: false,
|
|
41693
|
+
signedInit: false,
|
|
41694
|
+
unsigned: false
|
|
41695
|
+
};
|
|
41696
|
+
if (!call.signed) entry.unsigned = true;
|
|
41697
|
+
else if (call.kind === "signal") entry.signedSignal = true;
|
|
41698
|
+
else entry.signedInit = true;
|
|
41699
|
+
out.set(call.resource, entry);
|
|
41700
|
+
}
|
|
41701
|
+
return out;
|
|
41702
|
+
}
|
|
41703
|
+
const TOKEN_PLACEHOLDER = "__CDKD_TOKEN__";
|
|
41704
|
+
const CREDENTIAL_FLAGS = /* @__PURE__ */ new Set([
|
|
41705
|
+
"--role",
|
|
41706
|
+
"--access-key",
|
|
41707
|
+
"--credential-file",
|
|
41708
|
+
"-f"
|
|
41709
|
+
]);
|
|
41710
|
+
function userDataScriptsOf(resources) {
|
|
41711
|
+
const out = [];
|
|
41712
|
+
const walk = (value, depth) => {
|
|
41713
|
+
if (depth > 12 || value === null || typeof value !== "object") return;
|
|
41714
|
+
if (Array.isArray(value)) {
|
|
41715
|
+
for (const v of value) walk(v, depth + 1);
|
|
41716
|
+
return;
|
|
41717
|
+
}
|
|
41718
|
+
for (const [key, inner] of Object.entries(value)) if (key === "UserData") out.push(renderScript(inner, true));
|
|
41719
|
+
else walk(inner, depth + 1);
|
|
41720
|
+
};
|
|
41721
|
+
for (const resource of Object.values(resources)) if (resource !== null && typeof resource === "object") walk(resource.Properties, 0);
|
|
41722
|
+
return out;
|
|
41723
|
+
}
|
|
41724
|
+
function renderScript(value, topLevel = false) {
|
|
41725
|
+
if (typeof value === "string") {
|
|
41726
|
+
if (topLevel && /^[A-Za-z0-9+/=\s]+$/.test(value) && value.length >= 8) {
|
|
41727
|
+
const decoded = Buffer.from(value, "base64").toString("utf8");
|
|
41728
|
+
if (/^[\x09\x0a\x0d\x20-\x7e]*$/.test(decoded)) return decoded;
|
|
41729
|
+
}
|
|
41730
|
+
return value;
|
|
41731
|
+
}
|
|
41732
|
+
if (typeof value === "number" || typeof value === "boolean") return String(value);
|
|
41733
|
+
if (value === null || typeof value !== "object" || Array.isArray(value)) return TOKEN_PLACEHOLDER;
|
|
41734
|
+
const entries = Object.entries(value);
|
|
41735
|
+
if (entries.length !== 1) return TOKEN_PLACEHOLDER;
|
|
41736
|
+
const [fn, arg] = entries[0];
|
|
41737
|
+
if (fn === "Fn::Base64") return renderScript(arg);
|
|
41738
|
+
if (fn === "Fn::Join" && Array.isArray(arg) && typeof arg[0] === "string" && Array.isArray(arg[1])) return arg[1].map((part) => renderScript(part)).join(arg[0]);
|
|
41739
|
+
if (fn === "Fn::Sub") {
|
|
41740
|
+
const body = typeof arg === "string" ? arg : Array.isArray(arg) ? arg[0] : void 0;
|
|
41741
|
+
if (typeof body === "string") return body.replace(/\$\{[^!][^}]*\}/g, TOKEN_PLACEHOLDER);
|
|
41742
|
+
}
|
|
41743
|
+
return TOKEN_PLACEHOLDER;
|
|
41744
|
+
}
|
|
41745
|
+
function commandsOf(script) {
|
|
41746
|
+
return script.replace(/\\\r?\n/g, " ").split(/\r?\n|;|&&|\|\||\|/).map((c) => c.trim()).filter((c) => c.length > 0);
|
|
41747
|
+
}
|
|
41748
|
+
function parseBootstrapCall(command) {
|
|
41749
|
+
const tokens = command.split(/\s+/).map((t) => t.replace(/^[\[("',]+|[\]),"']+$/g, "")).filter((t) => t.length > 0);
|
|
41750
|
+
const at = tokens.findIndex((t) => /(?:^|[/\\])cfn-(?:init|signal)(?:\.exe)?$/i.test(t));
|
|
41751
|
+
if (at !== -1) {
|
|
41752
|
+
const kind = /init(?:\.exe)?$/i.test(tokens[at]) ? "init" : "signal";
|
|
41753
|
+
const args = tokens.slice(at + 1);
|
|
41754
|
+
const resource = flagValue(args, ["--resource", "-r"]);
|
|
41755
|
+
if (resource === void 0) return void 0;
|
|
41756
|
+
return {
|
|
41757
|
+
kind,
|
|
41758
|
+
resource,
|
|
41759
|
+
signed: args.some((t) => CREDENTIAL_FLAGS.has(t.split("=")[0]))
|
|
41760
|
+
};
|
|
41761
|
+
}
|
|
41762
|
+
const aws = tokens.findIndex((t, i) => /(?:^|[/\\])aws(?:\.exe)?$/i.test(t) && tokens[i + 1] === "cloudformation" && tokens[i + 2] === "signal-resource");
|
|
41763
|
+
if (aws !== -1) {
|
|
41764
|
+
const resource = flagValue(tokens.slice(aws + 3), ["--logical-resource-id"]);
|
|
41765
|
+
return resource === void 0 ? void 0 : {
|
|
41766
|
+
kind: "signal",
|
|
41767
|
+
resource,
|
|
41768
|
+
signed: true
|
|
41769
|
+
};
|
|
41770
|
+
}
|
|
41771
|
+
}
|
|
41772
|
+
function flagValue(args, names) {
|
|
41773
|
+
for (let i = 0; i < args.length; i++) {
|
|
41774
|
+
const [flag, inline] = args[i].split("=", 2);
|
|
41775
|
+
if (!names.includes(flag)) continue;
|
|
41776
|
+
const value = inline ?? args[i + 1];
|
|
41777
|
+
return value === void 0 || value.includes(TOKEN_PLACEHOLDER) ? void 0 : value;
|
|
41778
|
+
}
|
|
41779
|
+
}
|
|
41780
|
+
function canReceiveFor(stackName) {
|
|
41781
|
+
return /^[A-Za-z][A-Za-z0-9-]{0,127}$/.test(stackName);
|
|
41782
|
+
}
|
|
41783
|
+
function isReceiver(stack) {
|
|
41784
|
+
return stack.Tags?.some((t) => t.Key === "cdkd:signal-receiver" && t.Value === "true") === true && stack.Description === "cdkd signal receiver: answers cfn-signal / cfn-init for the cdkd stack of the same name (do not edit)";
|
|
41785
|
+
}
|
|
41786
|
+
function receiverTemplateBody(resources) {
|
|
41787
|
+
return JSON.stringify({
|
|
41788
|
+
Description: RECEIVER_DESCRIPTION,
|
|
41789
|
+
Resources: resources
|
|
41790
|
+
});
|
|
41791
|
+
}
|
|
41792
|
+
function waiterResource(count, metadata) {
|
|
41793
|
+
return {
|
|
41794
|
+
Type: "AWS::CloudFormation::WaitCondition",
|
|
41795
|
+
CreationPolicy: { ResourceSignal: {
|
|
41796
|
+
Count: Math.max(count, 1),
|
|
41797
|
+
Timeout: "PT12H"
|
|
41798
|
+
} },
|
|
41799
|
+
...metadata !== void 0 && { Metadata: metadata }
|
|
41800
|
+
};
|
|
41801
|
+
}
|
|
41802
|
+
function holderResource(metadata) {
|
|
41803
|
+
return {
|
|
41804
|
+
Type: "AWS::CloudFormation::WaitConditionHandle",
|
|
41805
|
+
...metadata !== void 0 && { Metadata: metadata }
|
|
41806
|
+
};
|
|
41807
|
+
}
|
|
41808
|
+
const anchorResource = () => ({ Type: "AWS::CloudFormation::WaitConditionHandle" });
|
|
41809
|
+
function notFound(error) {
|
|
41810
|
+
return /does not exist/i.test(error instanceof Error ? error.message : "");
|
|
41811
|
+
}
|
|
41812
|
+
function noUpdates(error) {
|
|
41813
|
+
return /No updates are to be performed/i.test(error instanceof Error ? error.message : "");
|
|
41814
|
+
}
|
|
41815
|
+
const SETTLED = /(_COMPLETE|_FAILED)$/;
|
|
41816
|
+
var SignalReceiver = class {
|
|
41817
|
+
stackId;
|
|
41818
|
+
armed = /* @__PURE__ */ new Set();
|
|
41819
|
+
finished = /* @__PURE__ */ new Set();
|
|
41820
|
+
armedIds = [];
|
|
41821
|
+
armedUpdate = false;
|
|
41822
|
+
sleep;
|
|
41823
|
+
now;
|
|
41824
|
+
stackName;
|
|
41825
|
+
candidates;
|
|
41826
|
+
client;
|
|
41827
|
+
logger;
|
|
41828
|
+
constructor(stackName, candidates, client, logger, clock = {}) {
|
|
41829
|
+
this.stackName = stackName;
|
|
41830
|
+
this.candidates = candidates;
|
|
41831
|
+
this.client = client;
|
|
41832
|
+
this.logger = logger;
|
|
41833
|
+
this.sleep = clock.sleep ?? ((ms) => new Promise((r) => setTimeout(r, ms)));
|
|
41834
|
+
this.now = clock.now ?? Date.now;
|
|
41835
|
+
}
|
|
41836
|
+
get receiverStackId() {
|
|
41837
|
+
return this.stackId;
|
|
41838
|
+
}
|
|
41839
|
+
candidate(logicalId) {
|
|
41840
|
+
return this.candidates.get(logicalId);
|
|
41841
|
+
}
|
|
41842
|
+
isArmed(logicalId) {
|
|
41843
|
+
return this.armed.has(logicalId);
|
|
41844
|
+
}
|
|
41845
|
+
disarm(logicalId) {
|
|
41846
|
+
this.armed.delete(logicalId);
|
|
41847
|
+
}
|
|
41848
|
+
async ensure(recordedStackId) {
|
|
41849
|
+
try {
|
|
41850
|
+
const client = this.client();
|
|
41851
|
+
let stack = recordedStackId !== void 0 ? await this.describe(client, recordedStackId) : void 0;
|
|
41852
|
+
if (stack !== void 0 && !isReceiver(stack)) stack = void 0;
|
|
41853
|
+
if (stack === void 0) {
|
|
41854
|
+
const byName = await this.describe(client, this.stackName);
|
|
41855
|
+
if (byName !== void 0 && !isReceiver(byName)) {
|
|
41856
|
+
this.logger.warn(safeMsg`A CloudFormation stack named ${this.stackName} exists and is not cdkd's signal receiver, so it is left alone; resources declaring a CreationPolicy or cfn-init metadata are created without waiting for signals.`);
|
|
41857
|
+
return;
|
|
41858
|
+
}
|
|
41859
|
+
stack = byName;
|
|
41860
|
+
}
|
|
41861
|
+
if (stack === void 0) {
|
|
41862
|
+
const out = await client.send(new CreateStackCommand({
|
|
41863
|
+
StackName: this.stackName,
|
|
41864
|
+
TemplateBody: receiverTemplateBody({ [ANCHOR_ID]: anchorResource() }),
|
|
41865
|
+
Tags: [{
|
|
41866
|
+
Key: RECEIVER_TAG_KEY,
|
|
41867
|
+
Value: "true"
|
|
41868
|
+
}]
|
|
41869
|
+
}));
|
|
41870
|
+
this.stackId = out.StackId;
|
|
41871
|
+
this.logger.info(safeMsg`Created the CloudFormation signal receiver stack ${this.stackName} (tag cdkd:signal-receiver=true): this stack declares CreationPolicy signals or cfn-init metadata, which only a CloudFormation stack can answer. It holds no resources of yours, AWS::StackId resolves to it, and cdkd destroy deletes it.`);
|
|
41872
|
+
} else this.stackId = stack.StackId;
|
|
41873
|
+
if (this.stackId === void 0) return void 0;
|
|
41874
|
+
await this.recover(client, stack?.StackStatus);
|
|
41875
|
+
if (await this.awaitSettled(client) === void 0) throw new Error("the receiver stack did not settle in a usable state");
|
|
41876
|
+
return this.stackId;
|
|
41877
|
+
} catch (error) {
|
|
41878
|
+
this.fallbackWarn(error);
|
|
41879
|
+
this.stackId = void 0;
|
|
41880
|
+
return;
|
|
41881
|
+
}
|
|
41882
|
+
}
|
|
41883
|
+
async arm(armIds, resolveMetadata) {
|
|
41884
|
+
if (this.stackId === void 0) return /* @__PURE__ */ new Set();
|
|
41885
|
+
try {
|
|
41886
|
+
const client = this.client();
|
|
41887
|
+
const current = await this.currentResources(client);
|
|
41888
|
+
const desired = { [ANCHOR_ID]: anchorResource() };
|
|
41889
|
+
const toArm = /* @__PURE__ */ new Set();
|
|
41890
|
+
for (const [id, candidate] of this.candidates) {
|
|
41891
|
+
let metadata;
|
|
41892
|
+
try {
|
|
41893
|
+
metadata = candidate.hasInitMetadata ? await resolveMetadata(id) : void 0;
|
|
41894
|
+
} catch {
|
|
41895
|
+
this.logger.warn(safeMsg`${id}: its Metadata cannot be sent to the CloudFormation signal receiver (it reads a NoEcho value or a resource not created yet), so cfn-init and cfn-signal for it are not served this deploy`);
|
|
41896
|
+
if (current[id] !== void 0) desired[id] = current[id];
|
|
41897
|
+
continue;
|
|
41898
|
+
}
|
|
41899
|
+
if (armIds.has(id) && candidate.count > 0) {
|
|
41900
|
+
desired[id] = waiterResource(candidate.count, metadata);
|
|
41901
|
+
toArm.add(id);
|
|
41902
|
+
} else if (candidate.hasInitMetadata) {
|
|
41903
|
+
const existing = current[id];
|
|
41904
|
+
desired[id] = existing !== void 0 && existing["Type"] === "AWS::CloudFormation::WaitCondition" ? {
|
|
41905
|
+
...existing,
|
|
41906
|
+
...metadata !== void 0 && { Metadata: metadata }
|
|
41907
|
+
} : holderResource(metadata);
|
|
41908
|
+
}
|
|
41909
|
+
}
|
|
41910
|
+
const rearm = [...toArm].filter((id) => current[id] !== void 0);
|
|
41911
|
+
if (rearm.length > 0) {
|
|
41912
|
+
const without = Object.fromEntries(Object.entries(desired).filter(([id]) => !rearm.includes(id)));
|
|
41913
|
+
await this.update(client, without);
|
|
41914
|
+
if (await this.awaitSettled(client) !== "UPDATE_COMPLETE") throw new Error("the receiver did not finish removing its earlier waiters");
|
|
41915
|
+
}
|
|
41916
|
+
if (await this.update(client, desired)) this.armedUpdate = toArm.size > 0;
|
|
41917
|
+
if (toArm.size > 0) await this.awaitWaiting(client, toArm);
|
|
41918
|
+
this.armed = toArm;
|
|
41919
|
+
this.armedIds = [...toArm];
|
|
41920
|
+
if (toArm.size > 0) this.logger.info(safeMsg`Signal receiver ${this.stackName}: waiting for CreationPolicy signals from ${[...toArm].join(", ")}`);
|
|
41921
|
+
return toArm;
|
|
41922
|
+
} catch (error) {
|
|
41923
|
+
this.fallbackWarn(error);
|
|
41924
|
+
this.armed = /* @__PURE__ */ new Set();
|
|
41925
|
+
return /* @__PURE__ */ new Set();
|
|
41926
|
+
}
|
|
41927
|
+
}
|
|
41928
|
+
async awaitSignals(logicalId, startedAt, stop) {
|
|
41929
|
+
const candidate = this.candidates.get(logicalId);
|
|
41930
|
+
if (!this.armed.has(logicalId) || candidate === void 0 || this.stackId === void 0) return;
|
|
41931
|
+
const client = this.client();
|
|
41932
|
+
const deadline = startedAt + candidate.timeoutMs;
|
|
41933
|
+
this.logger.info(safeMsg`${logicalId}: waiting for ${candidate.count} CreationPolicy signal(s) (timeout ${Math.round(candidate.timeoutMs / 1e3)}s)`);
|
|
41934
|
+
for (;;) {
|
|
41935
|
+
if (stop()) throw new Error(safeMsg`${logicalId}: the CreationPolicy signal wait stopped with the deploy`);
|
|
41936
|
+
let status;
|
|
41937
|
+
let reason;
|
|
41938
|
+
try {
|
|
41939
|
+
const out = await client.send(new DescribeStackResourceCommand({
|
|
41940
|
+
StackName: this.stackId,
|
|
41941
|
+
LogicalResourceId: logicalId
|
|
41942
|
+
}));
|
|
41943
|
+
status = out.StackResourceDetail?.ResourceStatus;
|
|
41944
|
+
reason = out.StackResourceDetail?.ResourceStatusReason;
|
|
41945
|
+
} catch (error) {
|
|
41946
|
+
if (!notFound(error)) throw error;
|
|
41947
|
+
status = "GONE";
|
|
41948
|
+
}
|
|
41949
|
+
if (status === "CREATE_COMPLETE") {
|
|
41950
|
+
this.finished.add(logicalId);
|
|
41951
|
+
this.logger.info(safeMsg`${logicalId}: received its CreationPolicy signal(s)`);
|
|
41952
|
+
return;
|
|
41953
|
+
}
|
|
41954
|
+
if (status === "CREATE_FAILED" || status === "GONE" || status?.startsWith("DELETE") === true) {
|
|
41955
|
+
reason ??= await this.failureReasonOf(client, logicalId, startedAt);
|
|
41956
|
+
throw new Error(reason !== void 0 && /FAILURE signal/i.test(reason) ? safeMsg`${logicalId} received a FAILURE signal (CreationPolicy): ${reason}` : safeMsg`${logicalId} did not receive its CreationPolicy signal(s): its wait in the signal receiver ended (${reason ?? status ?? "unknown"})`);
|
|
41957
|
+
}
|
|
41958
|
+
if (this.now() >= deadline) throw new Error(safeMsg`${logicalId} did not receive ${candidate.count} CreationPolicy signal(s) within ${Math.round(candidate.timeoutMs / 1e3)}s`);
|
|
41959
|
+
await this.sleep(Math.min(POLL_INTERVAL_MS, Math.max(deadline - this.now(), 0)));
|
|
41960
|
+
}
|
|
41961
|
+
}
|
|
41962
|
+
async settle() {
|
|
41963
|
+
if (!this.armedUpdate || this.stackId === void 0) return;
|
|
41964
|
+
if (this.armedIds.every((id) => this.finished.has(id))) return;
|
|
41965
|
+
try {
|
|
41966
|
+
const client = this.client();
|
|
41967
|
+
if ((await this.describe(client, this.stackId))?.StackStatus === "UPDATE_IN_PROGRESS") {
|
|
41968
|
+
await client.send(new CancelUpdateStackCommand({ StackName: this.stackId }));
|
|
41969
|
+
this.logger.debug(safeMsg`Cancelled the signal receiver's unfinished update`);
|
|
41970
|
+
}
|
|
41971
|
+
} catch (error) {
|
|
41972
|
+
this.logger.debug(safeMsg`Could not cancel the signal receiver's update: ${describeAwsFailure(error).summary}`);
|
|
41973
|
+
}
|
|
41974
|
+
}
|
|
41975
|
+
async recover(client, status) {
|
|
41976
|
+
if (status === "UPDATE_IN_PROGRESS") {
|
|
41977
|
+
this.logger.info(safeMsg`Cancelling the signal receiver update a previous deploy left waiting`);
|
|
41978
|
+
await client.send(new CancelUpdateStackCommand({ StackName: this.stackId }));
|
|
41979
|
+
} else if (status === "UPDATE_ROLLBACK_FAILED") await client.send(new ContinueUpdateRollbackCommand({ StackName: this.stackId }));
|
|
41980
|
+
else if (status === "ROLLBACK_COMPLETE" || status === "CREATE_FAILED") {
|
|
41981
|
+
await client.send(new DeleteStackCommand({ StackName: this.stackId }));
|
|
41982
|
+
const deadline = this.now() + SETTLE_WAIT_MS;
|
|
41983
|
+
while (await this.describe(client, this.stackId) !== void 0) {
|
|
41984
|
+
if (this.now() >= deadline) throw new Error("the failed receiver stack was not deleted");
|
|
41985
|
+
await this.sleep(POLL_INTERVAL_MS);
|
|
41986
|
+
}
|
|
41987
|
+
const out = await client.send(new CreateStackCommand({
|
|
41988
|
+
StackName: this.stackName,
|
|
41989
|
+
TemplateBody: receiverTemplateBody({ [ANCHOR_ID]: anchorResource() }),
|
|
41990
|
+
Tags: [{
|
|
41991
|
+
Key: RECEIVER_TAG_KEY,
|
|
41992
|
+
Value: "true"
|
|
41993
|
+
}]
|
|
41994
|
+
}));
|
|
41995
|
+
this.stackId = out.StackId;
|
|
41996
|
+
}
|
|
41997
|
+
}
|
|
41998
|
+
fallbackWarn(error) {
|
|
41999
|
+
const failure = describeAwsFailure(error);
|
|
42000
|
+
this.logger.warn(safeMsg`The CloudFormation signal receiver ${this.stackName} is unavailable (${failure.summary}); resources declaring a CreationPolicy or cfn-init metadata are created without waiting for signals.`);
|
|
42001
|
+
this.logger.debug(safeMsg`Signal receiver failure detail: ${failure.detail}`);
|
|
42002
|
+
}
|
|
42003
|
+
async describe(client, name) {
|
|
42004
|
+
try {
|
|
42005
|
+
const stack = (await client.send(new DescribeStacksCommand({ StackName: name }))).Stacks?.[0];
|
|
42006
|
+
if (stack === void 0 || stack.StackStatus === "DELETE_COMPLETE") return void 0;
|
|
42007
|
+
return stack;
|
|
42008
|
+
} catch (error) {
|
|
42009
|
+
if (notFound(error)) return void 0;
|
|
42010
|
+
throw error;
|
|
42011
|
+
}
|
|
42012
|
+
}
|
|
42013
|
+
async awaitSettled(client) {
|
|
42014
|
+
const deadline = this.now() + SETTLE_WAIT_MS;
|
|
42015
|
+
while (this.now() < deadline) {
|
|
42016
|
+
const status = (await this.describe(client, this.stackId))?.StackStatus;
|
|
42017
|
+
if (status === void 0) return void 0;
|
|
42018
|
+
if (SETTLED.test(status) && !status.endsWith("ROLLBACK_FAILED")) {
|
|
42019
|
+
if (status === "CREATE_FAILED" || status === "ROLLBACK_COMPLETE") return void 0;
|
|
42020
|
+
return status;
|
|
42021
|
+
}
|
|
42022
|
+
if (status.endsWith("ROLLBACK_FAILED")) return void 0;
|
|
42023
|
+
await this.sleep(POLL_INTERVAL_MS);
|
|
42024
|
+
}
|
|
42025
|
+
}
|
|
42026
|
+
async currentResources(client) {
|
|
42027
|
+
const body = (await client.send(new GetTemplateCommand({ StackName: this.stackId }))).TemplateBody;
|
|
42028
|
+
if (typeof body !== "string") return {};
|
|
42029
|
+
const resources = { ...JSON.parse(body).Resources ?? {} };
|
|
42030
|
+
delete resources[ANCHOR_ID];
|
|
42031
|
+
return resources;
|
|
42032
|
+
}
|
|
42033
|
+
async update(client, resources) {
|
|
42034
|
+
const body = receiverTemplateBody(resources);
|
|
42035
|
+
if (body.length > MAX_TEMPLATE_BODY_BYTES) throw new Error(`the receiver template (${body.length} bytes of cfn-init metadata) exceeds the ${MAX_TEMPLATE_BODY_BYTES}-byte inline TemplateBody limit`);
|
|
42036
|
+
try {
|
|
42037
|
+
await client.send(new UpdateStackCommand({
|
|
42038
|
+
StackName: this.stackId,
|
|
42039
|
+
TemplateBody: body,
|
|
42040
|
+
Tags: [{
|
|
42041
|
+
Key: RECEIVER_TAG_KEY,
|
|
42042
|
+
Value: "true"
|
|
42043
|
+
}]
|
|
42044
|
+
}));
|
|
42045
|
+
return true;
|
|
42046
|
+
} catch (error) {
|
|
42047
|
+
if (noUpdates(error)) return false;
|
|
42048
|
+
throw error;
|
|
42049
|
+
}
|
|
42050
|
+
}
|
|
42051
|
+
async failureReasonOf(client, logicalId, since) {
|
|
42052
|
+
try {
|
|
42053
|
+
return (await client.send(new DescribeStackEventsCommand({ StackName: this.stackId }))).StackEvents?.find((e) => e.LogicalResourceId === logicalId && e.ResourceStatus === "CREATE_FAILED" && (e.Timestamp?.getTime() ?? 0) >= since)?.ResourceStatusReason;
|
|
42054
|
+
} catch {
|
|
42055
|
+
return;
|
|
42056
|
+
}
|
|
42057
|
+
}
|
|
42058
|
+
async awaitWaiting(client, ids) {
|
|
42059
|
+
const deadline = this.now() + SETTLE_WAIT_MS;
|
|
42060
|
+
const pending = new Set(ids);
|
|
42061
|
+
while (pending.size > 0) {
|
|
42062
|
+
for (const id of [...pending]) try {
|
|
42063
|
+
if ((await client.send(new DescribeStackResourceCommand({
|
|
42064
|
+
StackName: this.stackId,
|
|
42065
|
+
LogicalResourceId: id
|
|
42066
|
+
}))).StackResourceDetail?.ResourceStatus !== void 0) pending.delete(id);
|
|
42067
|
+
} catch (error) {
|
|
42068
|
+
if (!notFound(error)) throw error;
|
|
42069
|
+
}
|
|
42070
|
+
if (pending.size === 0) return;
|
|
42071
|
+
if (this.now() >= deadline) throw new Error("the receiver waiters did not appear");
|
|
42072
|
+
await this.sleep(POLL_INTERVAL_MS / 2);
|
|
42073
|
+
}
|
|
42074
|
+
}
|
|
42075
|
+
};
|
|
42076
|
+
async function deleteSignalReceiver(client, stackId, logger) {
|
|
42077
|
+
try {
|
|
42078
|
+
const stack = (await client.send(new DescribeStacksCommand({ StackName: stackId }))).Stacks?.[0];
|
|
42079
|
+
if (stack === void 0 || stack.StackStatus === "DELETE_COMPLETE") return;
|
|
42080
|
+
if (!isReceiver(stack)) return;
|
|
42081
|
+
if (stack.StackStatus === "UPDATE_IN_PROGRESS") {
|
|
42082
|
+
await client.send(new CancelUpdateStackCommand({ StackName: stackId }));
|
|
42083
|
+
const deadline = Date.now() + SETTLE_WAIT_MS;
|
|
42084
|
+
for (;;) {
|
|
42085
|
+
const status = (await client.send(new DescribeStacksCommand({ StackName: stackId }))).Stacks?.[0]?.StackStatus;
|
|
42086
|
+
if (status === void 0 || !status.endsWith("_IN_PROGRESS") || Date.now() >= deadline) break;
|
|
42087
|
+
await new Promise((r) => setTimeout(r, POLL_INTERVAL_MS));
|
|
42088
|
+
}
|
|
42089
|
+
}
|
|
42090
|
+
await client.send(new DeleteStackCommand({ StackName: stackId }));
|
|
42091
|
+
logger.info(safeMsg`Deleting the CloudFormation signal receiver stack ${stack.StackName ?? stackId}`);
|
|
42092
|
+
} catch (error) {
|
|
42093
|
+
if (notFound(error)) return;
|
|
42094
|
+
logger.warn(safeMsg`Could not delete the CloudFormation signal receiver stack (${describeAwsFailure(error).summary}); delete it with: aws cloudformation delete-stack --stack-name '${stackId}'`);
|
|
42095
|
+
}
|
|
42096
|
+
}
|
|
42097
|
+
async function removeSignalReceiverNamed(client, stackName, logger, clock = {}) {
|
|
42098
|
+
const sleep = clock.sleep ?? ((ms) => new Promise((r) => setTimeout(r, ms)));
|
|
42099
|
+
const now = clock.now ?? Date.now;
|
|
42100
|
+
const stack = (await client.send(new DescribeStacksCommand({ StackName: stackName })).catch((error) => {
|
|
42101
|
+
if (notFound(error)) return void 0;
|
|
42102
|
+
throw error;
|
|
42103
|
+
}))?.Stacks?.[0];
|
|
42104
|
+
if (stack?.StackId === void 0 || stack.StackStatus === "DELETE_COMPLETE" || !isReceiver(stack)) return;
|
|
42105
|
+
const stackId = stack.StackId;
|
|
42106
|
+
logger.info(safeMsg`Deleting the CloudFormation signal receiver stack ${stackName} so the export can take its name`);
|
|
42107
|
+
await client.send(new DeleteStackCommand({ StackName: stackId }));
|
|
42108
|
+
const deadline = now() + SETTLE_WAIT_MS;
|
|
42109
|
+
for (;;) {
|
|
42110
|
+
const status = await client.send(new DescribeStacksCommand({ StackName: stackId })).then((r) => r.Stacks?.[0]?.StackStatus).catch((error) => {
|
|
42111
|
+
if (notFound(error)) return "DELETE_COMPLETE";
|
|
42112
|
+
throw error;
|
|
42113
|
+
});
|
|
42114
|
+
if (status === void 0 || status === "DELETE_COMPLETE") return;
|
|
42115
|
+
if (status === "DELETE_FAILED" || now() >= deadline) throw new Error(safeMsg`The CloudFormation signal receiver stack ${stackName} could not be deleted (${status}); delete it, then re-run the export`);
|
|
42116
|
+
await sleep(POLL_INTERVAL_MS);
|
|
42117
|
+
}
|
|
42118
|
+
}
|
|
42119
|
+
|
|
42120
|
+
// src/deployment/deploy-engine/signal-receiver-run.ts
|
|
42121
|
+
let parser;
|
|
42122
|
+
const templateParser = () => parser ??= new TemplateParser();
|
|
42123
|
+
async function ensureSignalReceiver(engine, stackName, template, currentState) {
|
|
42124
|
+
const recorded = currentState.signalReceiverStackId;
|
|
42125
|
+
engine.signalReceiverStackId = recorded;
|
|
42126
|
+
const { candidates } = signalPlanOf(template);
|
|
42127
|
+
if (candidates.size === 0 || engine.options.dryRun || !canReceiveFor(stackName)) return false;
|
|
42128
|
+
const receiver = new SignalReceiver(stackName, candidates, () => getAwsClients().cloudFormation, engine.logger);
|
|
42129
|
+
const stackId = await receiver.ensure(recorded);
|
|
42130
|
+
if (stackId === void 0) return false;
|
|
42131
|
+
engine.signalReceiver = receiver;
|
|
42132
|
+
engine.signalReceiverStackId = stackId;
|
|
42133
|
+
if (stackId === recorded) return false;
|
|
42134
|
+
currentState.signalReceiverStackId = stackId;
|
|
42135
|
+
return true;
|
|
42136
|
+
}
|
|
42137
|
+
async function armSignalReceiver(engine, stackName, template, changes, stateResources, parameterValues, conditions) {
|
|
42138
|
+
const receiver = engine.signalReceiver;
|
|
42139
|
+
if (receiver === void 0) return;
|
|
42140
|
+
const armIds = /* @__PURE__ */ new Set();
|
|
42141
|
+
let touchesCandidate = false;
|
|
42142
|
+
for (const change of changes.values()) {
|
|
42143
|
+
if (change.changeType !== "NO_CHANGE" && receiver.candidate(change.logicalId) !== void 0) touchesCandidate = true;
|
|
42144
|
+
if ((change.changeType === "CREATE" || change.changeType === "UPDATE" && change.propertyChanges?.some((pc) => pc.requiresReplacement) === true) && (receiver.candidate(change.logicalId)?.count ?? 0) > 0) armIds.add(change.logicalId);
|
|
42145
|
+
}
|
|
42146
|
+
if (!touchesCandidate) return;
|
|
42147
|
+
await receiver.arm(armIds, (id) => resolveTemplateMetadata(engine, id, stateResources, stackName, template, parameterValues, conditions));
|
|
42148
|
+
}
|
|
42149
|
+
async function awaitCreationSignals(engine, logicalId, startedAt, created) {
|
|
42150
|
+
const receiver = engine.signalReceiver;
|
|
42151
|
+
if (receiver === void 0 || !receiver.isArmed(logicalId)) return;
|
|
42152
|
+
if (!created) {
|
|
42153
|
+
receiver.disarm(logicalId);
|
|
42154
|
+
return;
|
|
42155
|
+
}
|
|
42156
|
+
try {
|
|
42157
|
+
await receiver.awaitSignals(logicalId, startedAt, () => engine.interrupted);
|
|
42158
|
+
} catch (error) {
|
|
42159
|
+
engine.interrupted = true;
|
|
42160
|
+
engine.interruptCause ??= "sibling-failure";
|
|
42161
|
+
throw error;
|
|
42162
|
+
}
|
|
42163
|
+
}
|
|
42164
|
+
function warnUnwaitedCreationPolicy(engine, logicalId, template) {
|
|
42165
|
+
const resource = template?.Resources?.[logicalId];
|
|
42166
|
+
if (resource?.CreationPolicy === void 0 || engine.signalReceiver?.isArmed(logicalId) === true) return;
|
|
42167
|
+
if (template !== void 0 && signalPlanOf(template).unsigned.includes(logicalId)) {
|
|
42168
|
+
engine.logger.warn(safeMsg`${logicalId}: CreationPolicy is not honored; its user data calls cfn-init / cfn-signal without credentials, which CloudFormation answers only for its own stacks' instances. Pass --role (CDK: initOptions.includeRole: true) and cdkd waits for the signals.`);
|
|
42169
|
+
return;
|
|
42170
|
+
}
|
|
42171
|
+
warnUnhonoredCreationPolicy(engine.logger, logicalId, resource);
|
|
42172
|
+
}
|
|
42173
|
+
async function resolveTemplateMetadata(engine, logicalId, stateResources, stackName, template, parameterValues, conditions) {
|
|
42174
|
+
const metadata = template.Resources?.[logicalId]?.Metadata;
|
|
42175
|
+
if (metadata === void 0) return void 0;
|
|
42176
|
+
const noEchoParameters = noEchoParameterNamesOf(template);
|
|
42177
|
+
const noEchoAttributes = engine.noEchoRun.noEchoAttributeResources;
|
|
42178
|
+
for (const ref of templateParser().extractReferences(metadata)) if (noEchoParameters.has(ref) || noEchoAttributes.has(ref)) throw new Error(`${logicalId}'s Metadata reads a NoEcho value`);
|
|
42179
|
+
for (const [ref, attribute] of getAttReadsOf(metadata)) {
|
|
42180
|
+
const type = template.Resources?.[ref]?.Type;
|
|
42181
|
+
if (isSensitiveAttributeName(attribute) || isSecretValuedAttribute(type, attribute) || type !== void 0 && isCustomResourceType(type)) throw new Error(`${logicalId}'s Metadata reads a credential-bearing attribute`);
|
|
42182
|
+
}
|
|
42183
|
+
const context = buildResolverContext(engine.resolverContextDeps(), {
|
|
42184
|
+
template,
|
|
42185
|
+
resources: stateResources,
|
|
42186
|
+
...parameterValues && { parameters: parameterValues },
|
|
42187
|
+
...conditions && { conditions }
|
|
42188
|
+
}, stackName);
|
|
42189
|
+
return engine.resolver.resolve(metadata, {
|
|
42190
|
+
...context,
|
|
42191
|
+
skipDynamicReferences: true
|
|
42192
|
+
});
|
|
42193
|
+
}
|
|
42194
|
+
async function settledAfter(engine, run) {
|
|
42195
|
+
try {
|
|
42196
|
+
return await run();
|
|
42197
|
+
} finally {
|
|
42198
|
+
await engine.signalReceiver?.settle();
|
|
42199
|
+
}
|
|
42200
|
+
}
|
|
42201
|
+
function refuseUnservedSignalWait(engine, logicalId, change, template) {
|
|
42202
|
+
if (change.changeType !== "CREATE" && change.changeType !== "UPDATE") return;
|
|
42203
|
+
const resource = template?.Resources?.[logicalId];
|
|
42204
|
+
if (resource?.Type !== "AWS::CloudFormation::WaitCondition") return;
|
|
42205
|
+
const handle = resource.Properties?.["Handle"];
|
|
42206
|
+
if (handle !== void 0 && handle !== null) return;
|
|
42207
|
+
if (engine.signalReceiver?.isArmed(logicalId) === true) return;
|
|
42208
|
+
if (change.changeType === "UPDATE" && change.propertyChanges?.some((pc) => pc.requiresReplacement) !== true) return;
|
|
42209
|
+
throw markNonRetryable(new ProvisioningError(`WaitCondition ${logicalId} has no Handle, and no CloudFormation signal receiver waits on it this deploy (a nested stack, or a receiver that could not be used), so its CreationPolicy signals cannot be received.`, "AWS::CloudFormation::WaitCondition", logicalId));
|
|
42210
|
+
}
|
|
42211
|
+
function getAttReadsOf(value) {
|
|
42212
|
+
const out = [];
|
|
42213
|
+
const walk = (v) => {
|
|
42214
|
+
if (Array.isArray(v)) {
|
|
42215
|
+
v.forEach(walk);
|
|
42216
|
+
return;
|
|
42217
|
+
}
|
|
42218
|
+
if (v === null || typeof v !== "object") return;
|
|
42219
|
+
for (const [key, inner] of Object.entries(v)) {
|
|
42220
|
+
if (key === "Fn::GetAtt") {
|
|
42221
|
+
const parts = typeof inner === "string" ? [inner.slice(0, inner.indexOf(".")), inner.slice(inner.indexOf(".") + 1)] : Array.isArray(inner) ? inner : [];
|
|
42222
|
+
if (typeof parts[0] === "string" && typeof parts[1] === "string") out.push([parts[0], parts[1]]);
|
|
42223
|
+
} else if (key === "Fn::Sub") {
|
|
42224
|
+
const text = typeof inner === "string" ? inner : Array.isArray(inner) ? inner[0] : void 0;
|
|
42225
|
+
if (typeof text === "string") for (const m of text.matchAll(/\$\{([^!}.][^}.]*)\.([^}]+)\}/g)) out.push([m[1], m[2]]);
|
|
42226
|
+
}
|
|
42227
|
+
walk(inner);
|
|
42228
|
+
}
|
|
42229
|
+
};
|
|
42230
|
+
walk(value);
|
|
42231
|
+
return out;
|
|
42232
|
+
}
|
|
42233
|
+
|
|
41671
42234
|
// src/state/refactor-marker.ts
|
|
41672
42235
|
function refactorMarkerMovesOf(body) {
|
|
41673
42236
|
const raw = body?.moves;
|
|
@@ -42198,7 +42761,7 @@ async function runQueuedNestedCleanup(engine, stackName, host, pass, context) {
|
|
|
42198
42761
|
if (recorded !== void 0 && !stillOwed(recorded)) {
|
|
42199
42762
|
run.deferredReplacedDeletes?.delete(logicalId);
|
|
42200
42763
|
engine.logger.debug(safeMsg`Old ${logicalId} of nested stack ${display} is no longer awaiting its delete; not deleting it`);
|
|
42201
|
-
} else if (recorded === void 0 && Object.values(read.state.resources).some((record) => typeof record === "object" && record !== null && record.physicalId === entry.physicalId)) {
|
|
42764
|
+
} else if (recorded === void 0 && Object.values(read.state.resources).some((record) => typeof record === "object" && record !== null && record.physicalId === entry.physicalId && record.resourceType === entry.resourceType)) {
|
|
42202
42765
|
run.deferredReplacedDeletes?.delete(logicalId);
|
|
42203
42766
|
engine.logger.warn(safeMsg` ⚠ Old ${logicalId} of nested stack ${display} (${entry.physicalId}) was not deleted: a record of that stack names its physical id again, and cdkd never deletes an id a record names`);
|
|
42204
42767
|
}
|
|
@@ -51072,7 +51635,7 @@ async function updateInPlace(engine, { changedProperties, noEchoOnlyChangedPrope
|
|
|
51072
51635
|
logicalId,
|
|
51073
51636
|
generation: fallbackGeneration
|
|
51074
51637
|
}, replaceFallback));
|
|
51075
|
-
|
|
51638
|
+
warnUnwaitedCreationPolicy(engine, logicalId, template);
|
|
51076
51639
|
engine.unsettledMarks.delete(logicalId);
|
|
51077
51640
|
engine.unsettledItemMarks.delete(logicalId);
|
|
51078
51641
|
result = fallbackOutcome.result;
|
|
@@ -51373,7 +51936,7 @@ async function finishUpdate(engine, input) {
|
|
|
51373
51936
|
logicalId,
|
|
51374
51937
|
generation: nextGeneration
|
|
51375
51938
|
}, replace));
|
|
51376
|
-
|
|
51939
|
+
warnUnwaitedCreationPolicy(engine, logicalId, template);
|
|
51377
51940
|
return markRestored(replaced);
|
|
51378
51941
|
}
|
|
51379
51942
|
const serviceTokenRefusal = serviceTokenUpdateRefusal({
|
|
@@ -51936,7 +52499,7 @@ async function provisionResourceBody(engine, logicalId, change, stateResources,
|
|
|
51936
52499
|
return withStackRecords(engine.stackRecordsView, () => {
|
|
51937
52500
|
switch (change.changeType) {
|
|
51938
52501
|
case "CREATE": return withPriorAttempts(priorAttempts, () => provisionCreate(engine, logicalId, change, stateResources, stackName, template, parameterValues, conditions, counts, progress)).then((outcome) => {
|
|
51939
|
-
|
|
52502
|
+
warnUnwaitedCreationPolicy(engine, logicalId, template);
|
|
51940
52503
|
return outcome;
|
|
51941
52504
|
});
|
|
51942
52505
|
case "UPDATE": return withPriorAttempts(priorAttempts, () => provisionUpdate(engine, logicalId, change, stateResources, stackName, template, parameterValues, conditions, counts, progress));
|
|
@@ -52086,8 +52649,11 @@ async function provisionCreateUpdateNode(run, createUpdateExecutor, enqueueLostC
|
|
|
52086
52649
|
});
|
|
52087
52650
|
let succeeded = false;
|
|
52088
52651
|
const createdSink = new CreatedResourceSink(logicalId, change.resourceType);
|
|
52652
|
+
const signalWaitStart = Date.now();
|
|
52653
|
+
const physicalIdBefore = newResources[logicalId]?.physicalId;
|
|
52089
52654
|
try {
|
|
52090
52655
|
try {
|
|
52656
|
+
refuseUnservedSignalWait(engine, logicalId, change, template);
|
|
52091
52657
|
await timePhase(phaseScope, `resource ${change.changeType.toLowerCase()}`, () => collectCreatedResources(createdSink, () => provisionResource(engine, logicalId, change, newResources, stackName, template, parameterValues, conditions, actualCounts, progress)), `${logicalId} ${change.resourceType}`);
|
|
52092
52658
|
settledUpdates.add(logicalId);
|
|
52093
52659
|
succeeded = true;
|
|
@@ -52187,6 +52753,8 @@ async function provisionCreateUpdateNode(run, createUpdateExecutor, enqueueLostC
|
|
|
52187
52753
|
});
|
|
52188
52754
|
saveStateAfterResource(logicalId);
|
|
52189
52755
|
if (engine.replacementRun.recreatedUnderSameId.has(logicalId)) enqueueLostChildren(createUpdateExecutor);
|
|
52756
|
+
const created = change.changeType === "CREATE" || newResources[logicalId]?.physicalId !== physicalIdBefore;
|
|
52757
|
+
await awaitCreationSignals(engine, logicalId, signalWaitStart, created);
|
|
52190
52758
|
}
|
|
52191
52759
|
function journaledUpdatePolicyField(changeType, updatePolicyOption, template, logicalId, resolved) {
|
|
52192
52760
|
if (changeType !== "UPDATE") return {};
|
|
@@ -54088,6 +54656,7 @@ async function doDeployWithPrefetch(engine, stackName, template, createOnlyPrefe
|
|
|
54088
54656
|
const firstDeployIdentityRead = idArrivesLater && engine.stateBackend.peekStackInstanceSibling ? engine.options.dryRun ? Promise.resolve(null) : engine.stateBackend.peekStackInstanceSibling(stackName, engine.stackRegion) : void 0;
|
|
54089
54657
|
firstDeployIdentityRead?.catch(() => void 0);
|
|
54090
54658
|
let firstDeployIdentity;
|
|
54659
|
+
engine.signalReceiverStackId = currentState.signalReceiverStackId;
|
|
54091
54660
|
engine.runStackIdTail = () => stackIdTailOf(currentState.stackInstanceId === void 0 && firstDeployIdentity !== void 0 ? {
|
|
54092
54661
|
stackInstanceId: firstDeployIdentity.stackInstanceId,
|
|
54093
54662
|
...firstDeployIdentity.stackIdFromInstance && { stackIdFromInstance: true }
|
|
@@ -54177,6 +54746,7 @@ async function doDeployWithPrefetch(engine, stackName, template, createOnlyPrefe
|
|
|
54177
54746
|
for (const row of nestedCheck?.forcedRows ?? []) engine.logger.info(nestedSsmNameRowNote(row));
|
|
54178
54747
|
for (const row of nestedCheck?.deferredRows ?? []) engine.logger.info(nestedSsmNameDeferredNote(row));
|
|
54179
54748
|
const marksNestedCheck = nestedCheck?.complete === true && !Object.values(orphanPlan.adopted).some((r) => r.resourceType === "AWS::CloudFormation::Stack");
|
|
54749
|
+
const signalReceiverChanged = await ensureSignalReceiver(engine, stackName, effectiveTemplate, currentState);
|
|
54180
54750
|
const { diffResolverContext, maskedInputs, changes } = await calculateDeployDiff(engine, {
|
|
54181
54751
|
stackName,
|
|
54182
54752
|
currentState,
|
|
@@ -54248,7 +54818,7 @@ async function doDeployWithPrefetch(engine, stackName, template, createOnlyPrefe
|
|
|
54248
54818
|
migrationPending,
|
|
54249
54819
|
maskedFingerprintsBackfilled,
|
|
54250
54820
|
orphansChanged,
|
|
54251
|
-
terminationProtectionChanged,
|
|
54821
|
+
terminationProtectionChanged: terminationProtectionChanged || signalReceiverChanged,
|
|
54252
54822
|
ssmNamesHealed: ssmNameHeals.length > 0,
|
|
54253
54823
|
nestedSsmNamesMarked: marksNestedCheck,
|
|
54254
54824
|
resolveStackInstanceId,
|
|
@@ -54294,8 +54864,9 @@ async function doDeployWithPrefetch(engine, stackName, template, createOnlyPrefe
|
|
|
54294
54864
|
current: 0,
|
|
54295
54865
|
total: createChanges.length + updateChanges.length + deleteChanges.length
|
|
54296
54866
|
};
|
|
54867
|
+
await armSignalReceiver(engine, stackName, effectiveTemplate, changes, currentState.resources, parameterValues, conditions);
|
|
54297
54868
|
clock.lap("first-deploy instance id, name guard");
|
|
54298
|
-
const { state: newState, actualCounts, completedOperations } = await withProducerRegions(() => producerRegionEvidence(engine.rollbackDeps(), currentState), () => withStackScope(nameScope(), () => executeDeployment(engine, effectiveTemplate, currentState, changes, dag, executionLevels, stackName, outputsDigestSource, parameterValues, conditions, currentEtag, progress, migrationPending)));
|
|
54869
|
+
const { state: newState, actualCounts, completedOperations } = await withProducerRegions(() => producerRegionEvidence(engine.rollbackDeps(), currentState), () => withStackScope(nameScope(), () => settledAfter(engine, () => executeDeployment(engine, effectiveTemplate, currentState, changes, dag, executionLevels, stackName, outputsDigestSource, parameterValues, conditions, currentEtag, progress, migrationPending))));
|
|
54299
54870
|
clock.lap("resource DAG");
|
|
54300
54871
|
try {
|
|
54301
54872
|
engine.stateBackend.warmConnections(stackName, engine.stackRegion, TAIL_WARM_CONNECTIONS);
|
|
@@ -54380,6 +54951,8 @@ function deploy(stackName, template) {
|
|
|
54380
54951
|
this.unsettledItemMarks = /* @__PURE__ */ new Map();
|
|
54381
54952
|
this.resumedCreates = /* @__PURE__ */ new Map();
|
|
54382
54953
|
this.generatedNameGuard = void 0;
|
|
54954
|
+
this.signalReceiver = void 0;
|
|
54955
|
+
this.signalReceiverStackId = void 0;
|
|
54383
54956
|
this.liveTaskLabels = /* @__PURE__ */ new Map();
|
|
54384
54957
|
this.outputsRun = new OutputsRunState();
|
|
54385
54958
|
this.provenanceBaseline = void 0;
|
|
@@ -54459,6 +55032,8 @@ var DeployEngine = class {
|
|
|
54459
55032
|
inFlightBodies = /* @__PURE__ */ new Map();
|
|
54460
55033
|
resumedCreates = /* @__PURE__ */ new Map();
|
|
54461
55034
|
generatedNameGuard;
|
|
55035
|
+
signalReceiver;
|
|
55036
|
+
signalReceiverStackId;
|
|
54462
55037
|
liveTaskLabels = /* @__PURE__ */ new Map();
|
|
54463
55038
|
provenanceBaseline = void 0;
|
|
54464
55039
|
provenanceCapture;
|
|
@@ -54597,5 +55172,5 @@ var DeployEngine = class {
|
|
|
54597
55172
|
}
|
|
54598
55173
|
};
|
|
54599
55174
|
|
|
54600
|
-
export { recordTagWrite as $, ProviderRegistry as $a, refuseMalformedResourcePropertiesForDestroy as $c, gray as $i, hasReasonlessBaselineRefusal as $l, parseMappingFile as $n, refuseUnreadableCdkCrossAccountRefs as $o, redactedDeleteAddressSkip as $r, LEGACY_HANDLE_ID_PREFIX as $s, formatResourceLine as $t, validateContainerRepoName as $u, recordedProtectionEvidence as A, buildFinalSnapshotIdentifier as Aa, refuseMalformedOrphanRecords as Ac, bindingSkippedOutputs as Ai, JSON_LISTING_HOLE_VALUE as Al, DeploymentEventsStore as An, RollbackInlinePolicyWriters as Ao, findUpdatePolicyReplacementRefusals as Ar, parseWebACLArn as As, DELETE_INDEX_WAIT_PROCEED_NOTE as At, flattenAssetPlaceholders as Au, declaredStreamTagsMember as B, SNS_DEFAULT_POLICY_ID as Ba, malformedScrubResourceEntriesRefusalMessage as Bc, isSupersededResourceRecord as Bi, findSdkUnwiredProperties as Bl, formatDestructiveChange as Bn, isSelectOutOfBounds as Bo, isJournaledOrphan as Br, getAccountInfo as Bs, isTruthyCfnBoolean as Bt, parseAssetManifestBody as Bu, pendingMovesOutOf as C, ccRoutedFinalSnapshotError as Ca, maskedPropertyFingerprint as Cc, exportNameNoEchoParameters as Ci, malformedResourcesWarning as Cl, journaledOrphanLines as Cn, waitForLambdaFunctionActive as Co, calculateResourceDrift as Cr, parameterTypeMayLoseSecretIdentity as Cs, DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS as Ct, purgeNoncurrentKeyVersions as Cu, findServiceTokenRefusals as D, refusesFinalSnapshot as Da, malformedOrphanRecordsWarning as Dc, collectDeclaredOutputNames as Di, refuseMalformedResourcesForExport as Dl, makeSiblingClaimReader as Dn, RecordedIdentityMismatchError as Do, verbatimEchoDriftKeys as Dr, refStateLookupFromResource as Ds, deleteBudgetKey as Dt, buildAssetRedirectMap as Du, deferredServiceTokenWarning as E, isFinalSnapshotError as Ea, malformedOrphanRecordsRefusalMessage as Ec, noEchoParameterValueSeed as Ei, refuseMalformedResourcesForDestroy as El, makeForeignHolderScan as En, RecordedIdentityError as Eo, undeclaredEmptyObservedKeys as Er, isStalePlaceholderArnAttribute as Es, compensateRemovedDeletionProtection as Et, synthesizedStacks as Eu, readProtection as F, withoutSiblingAttachedArns as Fa, unreadableOrphanRecords as Fc, destroyStackRecordsView as Fi, displayLogicalId as Fl, noEchoMacParametersOf as Fn, withIndeterminateGuard as Fo, withCreateTokenLedger as Fr, recordedOutputReferenceRegions as Fs, relayedIndexBusyDelete as Ft, redirectFileAsset as Fu, streamDeclaresTags as G, memberReadFailure as Ga, refuseMalformedResourceEntriesForImport as Gc, withoutSuperseded as Gi, NO_CC_HANDLERS_REASON as Gl, withMovedTo as Gn, APPSYNC_APIKEY_ARN_RESOURCE_PATH as Go, replacementNeverSwapped as Gr, keepsSecretReferenceToken as Gs, refactorMarkerMovesOf as Gt, ensureAssetStorage as Gu, readStreamPolicy as H, declaredPolicyDocument as Ha, refuseMalformedResourceEntries as Hc, supersededHeldByOtherTypeWarning as Hi, withoutAcceptedSdkUnwiredProperties as Hl, hintSidesOf as Hn, poisonRenderedSpellingsCollidingIn as Ho, planFailedOps as Hr, carriesFetchableDynamicReference as Hs, recordRetainedForReadoption as Ht, warnAbsoluteAssetPath as Hu, DynamoDBGlobalTableProvider as I, withoutSiblingOwned as Ia, isReadableResourceEntry as Ic, getStackRecords as Ii, hasReadableOutputs as Il, noEchoMacVerdict as In, getReadOnlyPropertyPaths as Io, acquireIdempotencyToken as Ir, recordedProvenanceOf as Is, waitForIndexesSettled as It, rewriteTemplateAssetReferences as Iu, streamTagsMatchDeclared as J, settleDeclaredMember as Ja, repairMalformedResourceEntriesForReadOnly as Jc, resolveReplacementOldType as Ji, TemplateParser as Jl, changedReferenceReason as Jn, secretPhysicalIdSegment as Jo, attemptUsesCompletedCreate as Jr, INTRINSIC_KEYS as Js, sameMove as Jt, isCrossRegionRedirect as Ju, streamMemberRefusals as K, policyDocumentMatchesDeclared as Ka, refuseMalformedResourceEntriesForImportSave as Kc, replacedDeleteFailureVerdict as Ki, hasNoCloudControlHandlers as Kl, changedReferenceInDiff as Kn, displayPhysicalId as Ko, IMPLICIT_DELETE_DEPENDENCIES as Kr, withSharedDrainBudget as Ks, refactorMarkerRefusalMessage as Kt, buildDenyExternalAccessPolicy as Ku, STREAM_POLICY_KEY as L, KMS_DEFAULT_KEY_POLICY_ID as La, malformedLocalResourceEntriesWarning as Lc, withStackRecords as Li, hasReadableResources as Ll, noEchoValueMacsOf as Ln, isWaitAbandonedError as Lo, planRollback as Lr, recordedReferenceRegions as Ls, ECR_AUTO_DELETE_IMAGES_TAG as Lt, AssetManifestLoader as Lu, PROTECTION_PROPERTY_BY_TYPE as M, collectManagedPolicyArnsAttachedBySiblings as Ma, refuseMalformedOrphansForOrphan as Mc, DEFAULT_RESOURCE_WARN_AFTER_MS as Mi, withheldAccountClause as Ml, NOECHO_MAC_KEY_ALIAS as Mn, deleteIndeterminateGuards as Mo, earliestDefined as Mr, promoteInPlaceAttributeDependents as Ms, TABLE_INDEX_NOUN as Mt, isDefaultBootstrapRepoName as Mu, isProtectionValueActive as N, collectPrincipalsAttachingPolicy as Na, repairMalformedOrphanRecordsForReadOnly as Nc, maskingRetryLogger as Ni, STATE_RESOURCES_MALFORMED as Nl, createNoEchoValueMacs as Nn, deleteLeftInPlace as No, ledgerForStack as Nr, keepHeldTokenProvenance as Ns, deleteTableWithIndexBusyRetry as Nt, loadPublishableAssetManifest as Nu, serviceTokenBlockingReason as O, unsupportedFinalSnapshotError as Oa, malformedOrphanRowsKeptWarning as Oc, collectPublishedOutputNames as Oi, refuseMalformedState as Ol, planOrphanAdoption as On, assertRecordedIdentity as Oo, updatePartialMessage as Or, lacksRecordedRefArn as Os, resolveDynamoDbDeleteBudgetClock as Ot, createAssetRedirectResolver as Ou, perType as P, isStoredExpression as Pa, unpreviewableOrphanRecords as Pc, awaitInFlightSibling as Pi, UNREADABLE_RESOURCES_MAP_ROW as Pl, noEchoMacBinding as Pn, deleteSkipReason as Po, reserveStackCreateToken as Pr, outputReferenceProvenanceOf as Ps, maskedLogger as Pt, redirectDockerAsset as Pu, isDynamoDBTableArnIn as Q, CC_BROKEN_REASON as Qa, refuseMalformedResourceProperties as Qc, cyan as Qi, readOnlyStateVersionOf as Ql, mappingPairs as Qn, producerLookupOver as Qo, redactedDeleteAddressFields as Qr, siblingsOf as Qs, licensedNameHolder as Qt, validateAssetBucketName as Qu, STREAM_TAGS_KEY as R, LAMBDA_PERMISSION_STATEMENT_KEYS as Ra, malformedLocalResourcesWarning as Rc, deleteSupersededEntry as Ri, findActionableSdkUnwired as Rl, constructPathOf as Rn, markWaitAbandoned as Ro, seedsDeleteFirstGuard as Rr, referenceProvenanceOf as Rs, S3_AUTO_DELETE_OBJECTS_TAG as Rt, getDockerImageBySourceHash as Ru, hasPendingMovesOut as S, PRE_DELETE_SNAPSHOT_TYPES as Sa, declaresNoEcho as Sc, carriedExportAliasExposure as Si, malformedRenderedContainersWarning as Sl, isHandledOrphan as Sn, withCustomResourceStack as So, withUnprovenUnsettled as Sr, isUnboundTemplateParameter as Ss, DYNAMODB_DELETE_DEADLINE_MARGIN_MS as St, CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION as Su, refusePendingMovesOut as T, effectiveDeletionPolicy as Ta, isReadableOrphanRecord as Tc, isWholeDynamicReferenceValue as Ti, refuseMalformedResourcesForDeploy as Tl, sameJournaledOrphans as Tn, waitForGoneAfterDelete as To, equalModuloMask as Tr, cfnRefValueFromPhysicalId as Ts, beginDeleteWait as Tt, rememberSynthesizedStacks as Tu, reverseMapStreamPolicy as U, efsPolicyMatchesDeclared as Ua, refuseMalformedResourceEntriesForDeploy as Uc, supersededHolderOf as Ui, withoutSdkUnwiredProperties as Ul, movedToHint as Un, stackIdTailOf as Uo, recheckFailedPlan as Ur, isNamelessDynamicReferenceError as Us, readRefactorMarker as Ut, warnWholeAssemblyAsSource as Uu, planStreamMemberOps as V, declaredMemberDocument as Va, refuseMalformedResourceAttributesForOrphan as Vc, supersededAfterRollback as Vi, unwrittenCreateOnlyReplacement as Vl, findRefactorHints as Vn, isAlwaysLiveAttribute as Vo, isReplacementOrphan as Vr, isImpossibleEmptyStoredAttribute as Vs, keptForRetainedRecord as Vt, resolveFileAssetSourcePath as Vu, streamDeclaresPolicy as W, lambdaPermissionMatchesDeclared as Wa, refuseMalformedResourceEntriesForDestroy as Wc, supersededResourcesOf as Wi, withoutUnwrittenSdkUnwiredProperties as Wl, rollbackOrphanIds as Wn, isSettledInstanceState as Wo, recordUnderIdIsNotOwn as Wr, carriesDynamicReference as Ws, readRefactorMarkerOnce as Wt, AssetModeResolver as Wu, clearTagWrites as X, attemptedPolicyDocument as Xa, malformedDriftResourcePropertiesWarning as Xc, findNestedStackTypeChanges as Xi, splitImportedOps as Xl, isPairableType as Xn, withSecretPhysicalIdsMaskedInState as Xo, REDACTED_DELETE_ADDRESS_SKIP_REASON as Xr, markNewValueKnownAfterDeploy as Xs, macWriteOnlyKeys as Xt, parseBootstrapMarker as Xu, TAGS_BASELINE_REREAD_DELAYS_MS as Y, warnUnsettledMember as Ya, unreadableResourceEntries as Yc, withPreviousPolicies as Yi, S3StateBackend as Yl, differingRemedy as Yn, secretSegmentsOfState as Yo, readsRegeneratingSecret as Yr, containsIntrinsic as Ys, updateRefactorMarker as Yt, getBootstrapMarkerKey as Yu, declaredTagsReadback as Z, policyContentKey as Za, malformedResourcePropertiesWarning as Zc, bold as Zi, isKnownTokenFreeState as Zl, looselyEqual as Zn, resolveDynamicReferences as Zo, isRedactedRecordedValue as Zr, replacementSidesForLog as Zs, readsOnlyNoEchoParameters as Zt, readBootstrapMarkerBody as Zu, conditionFingerprint as _, secretNamedRecordNeedles as _a, maskedPropertyFingerprintsOf as _c, displayTextOrWithheld as _i, refuseMalformedOutputs as _l, getCurrentNestedStackContext as _n, customResourcesFailedWithoutApp as _o, replayRollback as _r, s3BucketDomainName as _s, planIndexContributorInsightsOps as _t, renderNestedTemplateTreeDefect as _u, scanActiveConsumers as a, noEchoExactEchoLeavesOf as aa, isStatefulRecreateTargetForReplace as ac, hasPlainPrototype as ad, nameScopeOf as ai, hasReadableOrphans as al, resolvePendingCloudControlRequests as an, evaluateSignals as ao, recordedRuleIdOf as ar, parseIamRoleArn as as, planTimeToLive as at, crossPrefixDeniedWarning as au, readRecordedConditionVerdicts as b, extractDeploymentEventError as ba, maskedInputProof as bc, secretBearingStateKeyWarning as bi, STATE_REGION_DIVERGED as bl, dropFailedCommands as bn, localCustomResourceRuntimeActive as bo, recordAfterRollbackUpdate as br, s3BucketWebsiteUrl as bs, reverseMapTableContributorInsights as bt, isListParameterType as bu, nestedSsmNameDeferredNote as c, createReadOnlyAttributeHealerFactory as ca, WARM_THROUGHPUT_MEMBERS as cc, absoluteAssemblyPathEscape as cd, retiredNameGenerationsLeaving as ci, refuseMalformedOrphans as cl, displacedPhysicalIdShown as cn, customResourceResponseExpirationWarning as co, siblingOwnedSgRuleIdentities as cr, applyCallerIdentityCredentials as cs, planVectorIndexUpdates as ct, stackInstanceIdOf as cu, slashedSsmNameHealAdoptedNote as d, maskEventTextWithBoundBags as da, toCfnInteger as dc, displayAssemblyPath as dd, inheritProducerRegions as di, malformedExportNamesWarning as dl, nestedChildStackName as dn, readsNoEchoDeleteValues as do, SG_RULE_ID_PATTERN as dr, classifyRecordedSecretRegion as ds, vectorIndexesSettled as dt, isSensitiveAttributeName as du, green as ea, isLegacyHandleId as ec, BOOTSTRAP_MARKER_PREFIX as ed, segmentCleanupOptions as ei, refuseMalformedResourcePropertiesForDrift as el, chunks as en, ccBrokenReason as eo, propertiesChangedReason as er, applyRoleArnIfSet as es, settleWrittenTags as et, hasUnverifiableParameterRefusal as eu, slashedSsmNameHealNote as f, namingSecretsWithRecordedNoEcho as fa, toFiniteNumber as fc, namesTheSameDirectory as fd, computeParameterTaint as fi, malformedExportSourceWarning as fl, recordDisplacedSkips as fn, isCustomResourceType as fo, cfnIngressPortValue as fr, classifyReplaySecretRegion as fs, vectorIndexesShapeDetail as ft, stringifyValue as fu, makeCanonicalizePropertiesFn as g, secretNamedAttributeNamesOf as ga, inputFingerprinter as gc, resolveBucketRegion as gd, WITHHELD_NAME_DISPLAY as gi, refuseMalformedNestedChildOutputs as gl, collectNestedChildUnaddressed as gn, customResourceStackName as go, replayFailedOperations as gr, s3BucketArn as gs, planContributorInsightsOp as gt, listNestedTemplateRows as gu, inheritedProvenanceForChildDiff as h, secretNamePrintingBags as ha, tryGetTopLevelWriteOnlyProperties as hc, clearBucketRegionCache as hd, resourcesNamingDeclaredParameter as hi, malformedOutputsWarning as hl, withNestedRevertRun as hn, NO_LOCAL_CUSTOM_RESOURCES_FLAG as ho, canonicalizeIpProtocolValue as hr, isUnexposedRecordedIdentity as hs, indexDeclaresContributorInsights as ht, isAbsoluteAssetPath as hu, mergeNoChangeOutputs as i, noEchoComparisonForTemplate as ia, MULTI_REGION_RECREATE_BLOCKED_TYPES as ic, hasOwnKey as id, nameGenerationHighWaterOf as ii, UNREADABLE_ORPHANS_CONTAINER_ROW as il, pendingRequestCount as in, classifyHandleUrl as io, stripSiblingOwnedParentMembers as ir, isIamRoleArn as is, isTtlRateLimited as it, applyCrossPrefixScan as iu, recordedProtectionNote as j, collectGroupsAddedBySiblings as ja, refuseMalformedOrphanRecordsForDestroy as jc, DEFAULT_RESOURCE_TIMEOUT_MS as ji, accountArgs as jl, crossStackReadsForPartialSave as jn, UNSPECIFIED_SKIP_REASON as jo, replacementCreateRoutesToCloudControl as jr, extractGetAttRefs as js, INDEX_SETTLE_POLL_INTERVAL_MS as jt, isDefaultBootstrapBucketName as ju, diffSecurity as k, createPreDeleteFinalSnapshot as ka, previewableOrphanRecords as kc, isExportAliasCollision as ki, repairMalformedResourcesForReadOnly as kl, DeploymentEventsReader as kn, differingIdentityWarning as ko, updatePartialReason as kr, lacksRecordedTableArn as ks, resolveDynamoDbDeleteBudgetMs as kt, createLazyAssetModeContext as ku, nestedSsmNameRowNote as l, completedReplayEntries as la, coerceWarmThroughput as lc, assemblyPathEscape as ld, withNameGenerationReached as li, refuseMalformedOrphansForDestroy as ll, dropSettledNestedJournals as ln, responsePresignClient as lo, siblingRecordedSgRuleIds as lr, callerEnvCredentials as ls, readbackVectorIndexes as lt, withStackInstanceIdWithheld as lu, crossStackOutputProvenanceSource as m, secretNamePrintingBag as ma, getTopLevelKeysHoldingUnreadableCreateOnly as mc, resolveAssemblyPath as md, reachableDivergentParameters as mi, malformedOutputsRefusalMessage as ml, revertedNestedRowIds as mn, withPrintingSecrets as mo, sgProtocolKey as mr, regionLessSecretName as ms, contributorInsightsRefusals as mt, findNestedTemplateTreeDefect as mu, isSecretBearingReferenceString as n, yellow as na, isPlainReferenceTo as nc, getCdkdContainerRepoName as nd, orphanNeedsIdentity as ni, refuseMalformedResourcePropertiesForOrphan as nl, lookupEachName as nn, wouldReturnToSdkProvider as no, referencedLogicalIds as nr, assertSendableRoleArn as ns, takeTagWrite as nt, CrossPrefixReadError as nu, inRunStackKey as o, noEchoParameterNamesOf as oa, isStatefulRecreateTargetSync as oc, nullPrototypeRecord as od, retiredAfterRollback as oi, malformedOrphansRefusalMessage as ol, NESTED_PENDING_PARENT_REASON as on, CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID as oo, sgRuleOwnershipIdentity as or, sendableAssumeRoleCommand as os, readTtlSpec as ot, isAccessDenied$1 as ou, slashedSsmNameHealPendingNote as p, orphanRecordsPrintingBag as pa, getSettledWriteOnlyPropertyPaths as pc, renderAssemblyPathEscape as pd, namesAnyDeclaredParameter as pi, malformedLocalOutputsWarning as pl, revertNestedChildFromJournal as pn, getCurrentResourceSecrets as po, recordedSgRuleId as pr, producerRegionsFromState as ps, CONTRIBUTOR_INSIGHTS_KEY as pt, missingStateBucketRemedy as pu, streamPolicyMatchesDeclared as q, reReadUntilSettled as qa, refuseMalformedResourceEntriesForOrphan as qc, snapshotSegmentSurvivors as qi, PROPERTY_COVERAGE_BY_TYPE as ql, changedReferencePath as qn, maskedSecretSegment as qo, computeImplicitDeleteEdges as qr, namesRecreatedParent as qs, refuseRefactorMarker as qt, assertAssetBucketRegion as qu, keptWholeReasonText as r, noEchoAttributeNamesOf as ra, shownType as rc, defineOwnKey as rd, nameGenerationCarriedFrom as ri, repairMalformedResourcePropertiesForReadOnly as rl, withApiLimit as rn, WaitConditionSignalStore as ro, siblingOwnedRevertDesired as rr, explicitRoleArnOrThrow as rs, isTtlAlreadyDisabled as rt, CrossPrefixScanCache as ru, checkNestedSsmNames as s, withAttemptedItemsMasked as sa, renderStatefulReason as sc, ownValue as sd, retiredNameGenerationsAfter as si, malformedOrphansWarning as sl, displacedOpClause as sn, applyCustomResourceResponseExpiration as so, sgSiblingDecidedById as sr, AWS_CREDENTIAL_ENV_KEYS as ss, sendTtlWaitingOutRateLimit as st, isNotImplemented as su, DeployEngine as t, red as ta, findReplacedReadersOfRecreateTargets as tc, getCdkdAssetBucketName as td, removeProtectionTypeList as ti, refuseMalformedResourcePropertiesForExport as tl, isAccessDeniedError as tn, isCustomResource as to, proposeRenames as tr, assertFlagRoleArn as ts, tagsMatchDeclared as tt, rebuildClientForBucketRegion as tu, healSlashedSsmParameterNames as u, journaledOrphanPrintingBag as ua, isWarmThroughputDecrease as uc, describeFileReadFailure as ud, getCurrentProducerRegions as ui, repairMalformedOrphansForReadOnly as ul, getNestedRevertRun as un, TemplateNoEchoReresolver as uo, withoutSiblingOwnedSgRules as ur, envCredentialsAreAssumedRole as us, vectorIndexesForCreate as ut, isSecretValuedAttribute as uu, conditionInputsFrom as v, stateSecretNameNeedles as va, movedMaskedProperties as vc, exportAliasCollisionScrubWarning as vi, refuseMalformedOutputsForDestroy as vl, withNestedStackContext as vn, customResourcesRunWithoutApp as vo, DELETED_RESOURCE_REMEDY as vr, s3BucketDualStackDomainName as vs, readContributorInsightsSpec as vt, templateIdentity as vu, pendingMovesRefusalMessage as w, ccRoutedInstanceTakesNoSnapshot as wa, deployRefusesOrphanRowsReason as wc, exportNameSecretExposure as wi, malformedStateRefusalMessage as wl, loadJournaledOrphans as wn, CloudControlProvider as wo, equalModuloMarkedMask as wr, AWS_NO_VALUE as ws, DYNAMODB_DELETE_POLL_COST_MS as wt, decodeListingKey as wu, childTemplateLoader as x, ATOMIC_FINAL_SNAPSHOT_TYPES as xa, passedParameterClassesOf as xc, secretSafeKeyDisplay as xi, refuseDivergentRecordRegionForDestroy as xl, dropFailedHint as xn, setLocalCustomResourceRuntimeEnabled as xo, settleUnsettledPrevious as xr, coerceParameterTypedValue as xs, stripIndexContributorInsights as xt, ssmResolvedValueType as xu, parentSuppliedValues as y, storedSecretNameNeedles as ya, parameterInputsFor as yc, secretBearing as yi, repairMalformedOutputsForReadOnly as yl, deleteJournaledOrphans as yn, localCustomResourceCommand as yo, buildReadCurrentStateContext as yr, s3BucketRegionalDomainName as ys, reverseMapIndexContributorInsights as yt, SSM_PARAMETER_VALUE_PREFIX as yu, declaredStreamPolicyMember as z, OWN_WRITE_REREAD_DELAYS_MS as za, malformedResourceEntriesWarning as zc, holdsSupersededResources as zi, findHandledUnwrittenCreateOnly as zl, findDestructiveChanges as zn, IntrinsicFunctionResolver as zo, demoteSupersededOrphans as zr, referenceTokensIn as zs, hasCdkAutoDeleteTag as zt, isCfnTemplateAssetPath as zu };
|
|
54601
|
-
//# sourceMappingURL=deploy-engine-
|
|
55175
|
+
export { recordTagWrite as $, verbatimEchoDriftKeys as $a, refuseMalformedResourcePropertiesForDestroy as $c, findNestedStackTypeChanges as $i, hasReasonlessBaselineRefusal as $l, isPairableType as $n, refuseUnreadableCdkCrossAccountRefs as $o, REDACTED_DELETE_ADDRESS_SKIP_REASON as $r, LEGACY_HANDLE_ID_PREFIX as $s, macWriteOnlyKeys as $t, validateContainerRepoName as $u, recordedProtectionEvidence as A, refusesFinalSnapshot as Aa, refuseMalformedOrphanRecords as Ac, collectDeclaredOutputNames as Ai, JSON_LISTING_HOLE_VALUE as Al, makeSiblingClaimReader as An, RollbackInlinePolicyWriters as Ao, undeclaredEmptyObservedKeys as Ar, parseWebACLArn as As, DELETE_INDEX_WAIT_PROCEED_NOTE as At, flattenAssetPlaceholders as Au, declaredStreamTagsMember as B, KMS_DEFAULT_KEY_POLICY_ID as Ba, malformedScrubResourceEntriesRefusalMessage as Bc, withStackRecords as Bi, findSdkUnwiredProperties as Bl, noEchoValueMacsOf as Bn, isSelectOutOfBounds as Bo, planRollback as Br, getAccountInfo as Bs, isTruthyCfnBoolean as Bt, parseAssetManifestBody as Bu, pendingMovesOutOf as C, extractDeploymentEventError as Ca, maskedPropertyFingerprint as Cc, secretBearingStateKeyWarning as Ci, malformedResourcesWarning as Cl, dropFailedCommands as Cn, localCustomResourceCommand as Co, buildReadCurrentStateContext as Cr, parameterTypeMayLoseSecretIdentity as Cs, DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS as Ct, purgeNoncurrentKeyVersions as Cu, findServiceTokenRefusals as D, ccRoutedInstanceTakesNoSnapshot as Da, malformedOrphanRecordsWarning as Dc, exportNameSecretExposure as Di, refuseMalformedResourcesForExport as Dl, loadJournaledOrphans as Dn, waitForLambdaFunctionActive as Do, calculateResourceDrift as Dr, refStateLookupFromResource as Ds, deleteBudgetKey as Dt, buildAssetRedirectMap as Du, deferredServiceTokenWarning as E, ccRoutedFinalSnapshotError as Ea, malformedOrphanRecordsRefusalMessage as Ec, exportNameNoEchoParameters as Ei, refuseMalformedResourcesForDestroy as El, journaledOrphanLines as En, withCustomResourceStack as Eo, withUnprovenUnsettled as Er, isStalePlaceholderArnAttribute as Es, compensateRemovedDeletionProtection as Et, synthesizedStacks as Eu, readProtection as F, collectManagedPolicyArnsAttachedBySiblings as Fa, unreadableOrphanRecords as Fc, DEFAULT_RESOURCE_WARN_AFTER_MS as Fi, displayLogicalId as Fl, NOECHO_MAC_KEY_ALIAS as Fn, withIndeterminateGuard as Fo, earliestDefined as Fr, recordedOutputReferenceRegions as Fs, relayedIndexBusyDelete as Ft, redirectFileAsset as Fu, streamDeclaresTags as G, declaredPolicyDocument as Ga, refuseMalformedResourceEntriesForImport as Gc, supersededHeldByOtherTypeWarning as Gi, NO_CC_HANDLERS_REASON as Gl, hintSidesOf as Gn, APPSYNC_APIKEY_ARN_RESOURCE_PATH as Go, planFailedOps as Gr, keepsSecretReferenceToken as Gs, refactorMarkerMovesOf as Gt, ensureAssetStorage as Gu, readStreamPolicy as H, OWN_WRITE_REREAD_DELAYS_MS as Ha, refuseMalformedResourceEntries as Hc, holdsSupersededResources as Hi, withoutAcceptedSdkUnwiredProperties as Hl, findDestructiveChanges as Hn, poisonRenderedSpellingsCollidingIn as Ho, demoteSupersededOrphans as Hr, carriesFetchableDynamicReference as Hs, recordRetainedForReadoption as Ht, warnAbsoluteAssetPath as Hu, DynamoDBGlobalTableProvider as I, collectPrincipalsAttachingPolicy as Ia, isReadableResourceEntry as Ic, maskingRetryLogger as Ii, hasReadableOutputs as Il, createNoEchoValueMacs as In, getReadOnlyPropertyPaths as Io, ledgerForStack as Ir, recordedProvenanceOf as Is, waitForIndexesSettled as It, rewriteTemplateAssetReferences as Iu, streamTagsMatchDeclared as J, memberReadFailure as Ja, repairMalformedResourceEntriesForReadOnly as Jc, withoutSuperseded as Ji, TemplateParser as Jl, withMovedTo as Jn, secretPhysicalIdSegment as Jo, replacementNeverSwapped as Jr, INTRINSIC_KEYS as Js, sameMove as Jt, isCrossRegionRedirect as Ju, streamMemberRefusals as K, efsPolicyMatchesDeclared as Ka, refuseMalformedResourceEntriesForImportSave as Kc, supersededHolderOf as Ki, hasNoCloudControlHandlers as Kl, movedToHint as Kn, displayPhysicalId as Ko, recheckFailedPlan as Kr, withSharedDrainBudget as Ks, refactorMarkerRefusalMessage as Kt, buildDenyExternalAccessPolicy as Ku, STREAM_POLICY_KEY as L, isStoredExpression as La, malformedLocalResourceEntriesWarning as Lc, awaitInFlightSibling as Li, hasReadableResources as Ll, noEchoMacBinding as Ln, isWaitAbandonedError as Lo, reserveStackCreateToken as Lr, recordedReferenceRegions as Ls, ECR_AUTO_DELETE_IMAGES_TAG as Lt, AssetManifestLoader as Lu, PROTECTION_PROPERTY_BY_TYPE as M, createPreDeleteFinalSnapshot as Ma, refuseMalformedOrphansForOrphan as Mc, isExportAliasCollision as Mi, withheldAccountClause as Ml, DeploymentEventsReader as Mn, deleteIndeterminateGuards as Mo, updatePartialReason as Mr, promoteInPlaceAttributeDependents as Ms, TABLE_INDEX_NOUN as Mt, isDefaultBootstrapRepoName as Mu, isProtectionValueActive as N, buildFinalSnapshotIdentifier as Na, repairMalformedOrphanRecordsForReadOnly as Nc, bindingSkippedOutputs as Ni, STATE_RESOURCES_MALFORMED as Nl, DeploymentEventsStore as Nn, deleteLeftInPlace as No, findUpdatePolicyReplacementRefusals as Nr, keepHeldTokenProvenance as Ns, deleteTableWithIndexBusyRetry as Nt, loadPublishableAssetManifest as Nu, serviceTokenBlockingReason as O, effectiveDeletionPolicy as Oa, malformedOrphanRowsKeptWarning as Oc, isWholeDynamicReferenceValue as Oi, refuseMalformedState as Ol, sameJournaledOrphans as On, CloudControlProvider as Oo, equalModuloMarkedMask as Or, lacksRecordedRefArn as Os, resolveDynamoDbDeleteBudgetClock as Ot, createAssetRedirectResolver as Ou, perType as P, collectGroupsAddedBySiblings as Pa, unpreviewableOrphanRecords as Pc, DEFAULT_RESOURCE_TIMEOUT_MS as Pi, UNREADABLE_RESOURCES_MAP_ROW as Pl, crossStackReadsForPartialSave as Pn, deleteSkipReason as Po, replacementCreateRoutesToCloudControl as Pr, outputReferenceProvenanceOf as Ps, maskedLogger as Pt, redirectDockerAsset as Pu, isDynamoDBTableArnIn as Q, warnUnsettledMember as Qa, refuseMalformedResourceProperties as Qc, withPreviousPolicies as Qi, readOnlyStateVersionOf as Ql, differingRemedy as Qn, producerLookupOver as Qo, readsRegeneratingSecret as Qr, siblingsOf as Qs, removeSignalReceiverNamed as Qt, validateAssetBucketName as Qu, STREAM_TAGS_KEY as R, withoutSiblingAttachedArns as Ra, malformedLocalResourcesWarning as Rc, destroyStackRecordsView as Ri, findActionableSdkUnwired as Rl, noEchoMacParametersOf as Rn, markWaitAbandoned as Ro, withCreateTokenLedger as Rr, referenceProvenanceOf as Rs, S3_AUTO_DELETE_OBJECTS_TAG as Rt, getDockerImageBySourceHash as Ru, hasPendingMovesOut as S, storedSecretNameNeedles as Sa, declaresNoEcho as Sc, secretBearing as Si, malformedRenderedContainersWarning as Sl, deleteJournaledOrphans as Sn, customResourcesRunWithoutApp as So, DELETED_RESOURCE_REMEDY as Sr, isUnboundTemplateParameter as Ss, DYNAMODB_DELETE_DEADLINE_MARGIN_MS as St, CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION as Su, refusePendingMovesOut as T, PRE_DELETE_SNAPSHOT_TYPES as Ta, isReadableOrphanRecord as Tc, carriedExportAliasExposure as Ti, refuseMalformedResourcesForDeploy as Tl, isHandledOrphan as Tn, setLocalCustomResourceRuntimeEnabled as To, settleUnsettledPrevious as Tr, cfnRefValueFromPhysicalId as Ts, beginDeleteWait as Tt, rememberSynthesizedStacks as Tu, reverseMapStreamPolicy as U, SNS_DEFAULT_POLICY_ID as Ua, refuseMalformedResourceEntriesForDeploy as Uc, isSupersededResourceRecord as Ui, withoutSdkUnwiredProperties as Ul, formatDestructiveChange as Un, stackIdTailOf as Uo, isJournaledOrphan as Ur, isNamelessDynamicReferenceError as Us, readRefactorMarker as Ut, warnWholeAssemblyAsSource as Uu, planStreamMemberOps as V, LAMBDA_PERMISSION_STATEMENT_KEYS as Va, refuseMalformedResourceAttributesForOrphan as Vc, deleteSupersededEntry as Vi, unwrittenCreateOnlyReplacement as Vl, constructPathOf as Vn, isAlwaysLiveAttribute as Vo, seedsDeleteFirstGuard as Vr, isImpossibleEmptyStoredAttribute as Vs, keptForRetainedRecord as Vt, resolveFileAssetSourcePath as Vu, streamDeclaresPolicy as W, declaredMemberDocument as Wa, refuseMalformedResourceEntriesForDestroy as Wc, supersededAfterRollback as Wi, withoutUnwrittenSdkUnwiredProperties as Wl, findRefactorHints as Wn, isSettledInstanceState as Wo, isReplacementOrphan as Wr, carriesDynamicReference as Ws, readRefactorMarkerOnce as Wt, AssetModeResolver as Wu, clearTagWrites as X, reReadUntilSettled as Xa, malformedDriftResourcePropertiesWarning as Xc, snapshotSegmentSurvivors as Xi, splitImportedOps as Xl, changedReferencePath as Xn, withSecretPhysicalIdsMaskedInState as Xo, computeImplicitDeleteEdges as Xr, markNewValueKnownAfterDeploy as Xs, deleteSignalReceiver as Xt, parseBootstrapMarker as Xu, TAGS_BASELINE_REREAD_DELAYS_MS as Y, policyDocumentMatchesDeclared as Ya, unreadableResourceEntries as Yc, replacedDeleteFailureVerdict as Yi, S3StateBackend as Yl, changedReferenceInDiff as Yn, secretSegmentsOfState as Yo, IMPLICIT_DELETE_DEPENDENCIES as Yr, containsIntrinsic as Ys, updateRefactorMarker as Yt, getBootstrapMarkerKey as Yu, declaredTagsReadback as Z, settleDeclaredMember as Za, malformedResourcePropertiesWarning as Zc, resolveReplacementOldType as Zi, isKnownTokenFreeState as Zl, changedReferenceReason as Zn, resolveDynamicReferences as Zo, attemptUsesCompletedCreate as Zr, replacementSidesForLog as Zs, isReceiver as Zt, readBootstrapMarkerBody as Zu, conditionFingerprint as _, secretNamePrintingBag as _a, maskedPropertyFingerprintsOf as _c, reachableDivergentParameters as _i, refuseMalformedOutputs as _l, revertedNestedRowIds as _n, getCurrentResourceSecrets as _o, recordedSgRuleId as _r, s3BucketDomainName as _s, planIndexContributorInsightsOps as _t, renderNestedTemplateTreeDefect as _u, scanActiveConsumers as a, yellow as aa, isStatefulRecreateTargetForReplace as ac, hasPlainPrototype as ad, orphanNeedsIdentity as ai, hasReadableOrphans as al, lookupEachName as an, isCustomResource as ao, referencedLogicalIds as ar, parseIamRoleArn as as, planTimeToLive as at, crossPrefixDeniedWarning as au, readRecordedConditionVerdicts as b, secretNamedRecordNeedles as ba, maskedInputProof as bc, displayTextOrWithheld as bi, STATE_REGION_DIVERGED as bl, getCurrentNestedStackContext as bn, customResourceStackName as bo, replayFailedOperations as br, s3BucketWebsiteUrl as bs, reverseMapTableContributorInsights as bt, isListParameterType as bu, nestedSsmNameDeferredNote as c, noEchoExactEchoLeavesOf as ca, WARM_THROUGHPUT_MEMBERS as cc, absoluteAssemblyPathEscape as cd, nameScopeOf as ci, refuseMalformedOrphans as cl, resolvePendingCloudControlRequests as cn, classifyHandleUrl as co, undeclaredGrantSiblingMembers as cr, applyCallerIdentityCredentials as cs, planVectorIndexUpdates as ct, stackInstanceIdOf as cu, slashedSsmNameHealAdoptedNote as d, createReadOnlyAttributeHealerFactory as da, toCfnInteger as dc, displayAssemblyPath as dd, retiredNameGenerationsLeaving as di, malformedExportNamesWarning as dl, displacedPhysicalIdShown as dn, applyCustomResourceResponseExpiration as do, sgSiblingDecidedById as dr, classifyRecordedSecretRegion as ds, vectorIndexesSettled as dt, isSensitiveAttributeName as du, bold as ea, isLegacyHandleId as ec, BOOTSTRAP_MARKER_PREFIX as ed, isRedactedRecordedValue as ei, refuseMalformedResourcePropertiesForDrift as el, readsOnlyNoEchoParameters as en, attemptedPolicyDocument as eo, looselyEqual as er, applyRoleArnIfSet as es, settleWrittenTags as et, hasUnverifiableParameterRefusal as eu, slashedSsmNameHealNote as f, completedReplayEntries as fa, toFiniteNumber as fc, namesTheSameDirectory as fd, withNameGenerationReached as fi, malformedExportSourceWarning as fl, dropSettledNestedJournals as fn, customResourceResponseExpirationWarning as fo, siblingOwnedSgRuleIdentities as fr, classifyReplaySecretRegion as fs, vectorIndexesShapeDetail as ft, stringifyValue as fu, makeCanonicalizePropertiesFn as g, orphanRecordsPrintingBag as ga, inputFingerprinter as gc, resolveBucketRegion as gd, namesAnyDeclaredParameter as gi, refuseMalformedNestedChildOutputs as gl, revertNestedChildFromJournal as gn, isCustomResourceType as go, cfnIngressPortValue as gr, s3BucketArn as gs, planContributorInsightsOp as gt, listNestedTemplateRows as gu, inheritedProvenanceForChildDiff as h, namingSecretsWithRecordedNoEcho as ha, tryGetTopLevelWriteOnlyProperties as hc, clearBucketRegionCache as hd, computeParameterTaint as hi, malformedOutputsWarning as hl, recordDisplacedSkips as hn, readsNoEchoDeleteValues as ho, SG_RULE_ID_PATTERN as hr, isUnexposedRecordedIdentity as hs, indexDeclaresContributorInsights as ht, isAbsoluteAssetPath as hu, mergeNoChangeOutputs as i, red as ia, MULTI_REGION_RECREATE_BLOCKED_TYPES as ic, hasOwnKey as id, removeProtectionTypeList as ii, UNREADABLE_ORPHANS_CONTAINER_ROW as il, isAccessDeniedError as in, ccBrokenReason as io, proposeRenames as ir, isIamRoleArn as is, isTtlRateLimited as it, applyCrossPrefixScan as iu, recordedProtectionNote as j, unsupportedFinalSnapshotError as ja, refuseMalformedOrphanRecordsForDestroy as jc, collectPublishedOutputNames as ji, accountArgs as jl, planOrphanAdoption as jn, UNSPECIFIED_SKIP_REASON as jo, updatePartialMessage as jr, extractGetAttRefs as js, INDEX_SETTLE_POLL_INTERVAL_MS as jt, isDefaultBootstrapBucketName as ju, diffSecurity as k, isFinalSnapshotError as ka, previewableOrphanRecords as kc, noEchoParameterValueSeed as ki, repairMalformedResourcesForReadOnly as kl, makeForeignHolderScan as kn, waitForGoneAfterDelete as ko, equalModuloMask as kr, lacksRecordedTableArn as ks, resolveDynamoDbDeleteBudgetMs as kt, createLazyAssetModeContext as ku, nestedSsmNameRowNote as l, noEchoParameterNamesOf as la, coerceWarmThroughput as lc, assemblyPathEscape as ld, retiredAfterRollback as li, refuseMalformedOrphansForDestroy as ll, NESTED_PENDING_PARENT_REASON as ln, evaluateSignals as lo, recordedRuleIdOf as lr, callerEnvCredentials as ls, readbackVectorIndexes as lt, withStackInstanceIdWithheld as lu, crossStackOutputProvenanceSource as m, maskEventTextWithBoundBags as ma, getTopLevelKeysHoldingUnreadableCreateOnly as mc, resolveAssemblyPath as md, inheritProducerRegions as mi, malformedOutputsRefusalMessage as ml, nestedChildStackName as mn, TemplateNoEchoReresolver as mo, withoutSiblingOwnedSgRules as mr, regionLessSecretName as ms, contributorInsightsRefusals as mt, findNestedTemplateTreeDefect as mu, isSecretBearingReferenceString as n, gray as na, isPlainReferenceTo as nc, getCdkdContainerRepoName as nd, redactedDeleteAddressSkip as ni, refuseMalformedResourcePropertiesForOrphan as nl, formatResourceLine as nn, CC_BROKEN_REASON as no, parseMappingFile as nr, assertSendableRoleArn as ns, takeTagWrite as nt, CrossPrefixReadError as nu, inRunStackKey as o, noEchoAttributeNamesOf as oa, isStatefulRecreateTargetSync as oc, nullPrototypeRecord as od, nameGenerationCarriedFrom as oi, malformedOrphansRefusalMessage as ol, withApiLimit as on, wouldReturnToSdkProvider as oo, siblingOwnedRevertDesired as or, sendableAssumeRoleCommand as os, readTtlSpec as ot, isAccessDenied$1 as ou, slashedSsmNameHealPendingNote as p, journaledOrphanPrintingBag as pa, getSettledWriteOnlyPropertyPaths as pc, renderAssemblyPathEscape as pd, getCurrentProducerRegions as pi, malformedLocalOutputsWarning as pl, getNestedRevertRun as pn, responsePresignClient as po, siblingRecordedSgRuleIds as pr, producerRegionsFromState as ps, CONTRIBUTOR_INSIGHTS_KEY as pt, missingStateBucketRemedy as pu, streamPolicyMatchesDeclared as q, lambdaPermissionMatchesDeclared as qa, refuseMalformedResourceEntriesForOrphan as qc, supersededResourcesOf as qi, PROPERTY_COVERAGE_BY_TYPE as ql, rollbackOrphanIds as qn, maskedSecretSegment as qo, recordUnderIdIsNotOwn as qr, namesRecreatedParent as qs, refuseRefactorMarker as qt, assertAssetBucketRegion as qu, keptWholeReasonText as r, green as ra, shownType as rc, defineOwnKey as rd, segmentCleanupOptions as ri, repairMalformedResourcePropertiesForReadOnly as rl, chunks as rn, ProviderRegistry as ro, propertiesChangedReason as rr, explicitRoleArnOrThrow as rs, isTtlAlreadyDisabled as rt, CrossPrefixScanCache as ru, checkNestedSsmNames as s, noEchoComparisonForTemplate as sa, renderStatefulReason as sc, ownValue as sd, nameGenerationHighWaterOf as si, malformedOrphansWarning as sl, pendingRequestCount as sn, WaitConditionSignalStore as so, stripSiblingOwnedParentMembers as sr, AWS_CREDENTIAL_ENV_KEYS as ss, sendTtlWaitingOutRateLimit as st, isNotImplemented as su, DeployEngine as t, cyan as ta, findReplacedReadersOfRecreateTargets as tc, getCdkdAssetBucketName as td, redactedDeleteAddressFields as ti, refuseMalformedResourcePropertiesForExport as tl, licensedNameHolder as tn, policyContentKey as to, mappingPairs as tr, assertFlagRoleArn as ts, tagsMatchDeclared as tt, rebuildClientForBucketRegion as tu, healSlashedSsmParameterNames as u, withAttemptedItemsMasked as ua, isWarmThroughputDecrease as uc, describeFileReadFailure as ud, retiredNameGenerationsAfter as ui, repairMalformedOrphansForReadOnly as ul, displacedOpClause as un, CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID as uo, sgRuleOwnershipIdentity as ur, envCredentialsAreAssumedRole as us, vectorIndexesForCreate as ut, isSecretValuedAttribute as uu, conditionInputsFrom as v, secretNamePrintingBags as va, movedMaskedProperties as vc, resourcesNamingDeclaredParameter as vi, refuseMalformedOutputsForDestroy as vl, withNestedRevertRun as vn, withPrintingSecrets as vo, sgProtocolKey as vr, s3BucketDualStackDomainName as vs, readContributorInsightsSpec as vt, templateIdentity as vu, pendingMovesRefusalMessage as w, ATOMIC_FINAL_SNAPSHOT_TYPES as wa, deployRefusesOrphanRowsReason as wc, secretSafeKeyDisplay as wi, malformedStateRefusalMessage as wl, dropFailedHint as wn, localCustomResourceRuntimeActive as wo, recordAfterRollbackUpdate as wr, AWS_NO_VALUE as ws, DYNAMODB_DELETE_POLL_COST_MS as wt, decodeListingKey as wu, childTemplateLoader as x, stateSecretNameNeedles as xa, passedParameterClassesOf as xc, exportAliasCollisionScrubWarning as xi, refuseDivergentRecordRegionForDestroy as xl, withNestedStackContext as xn, customResourcesFailedWithoutApp as xo, replayRollback as xr, coerceParameterTypedValue as xs, stripIndexContributorInsights as xt, ssmResolvedValueType as xu, parentSuppliedValues as y, secretNamedAttributeNamesOf as ya, parameterInputsFor as yc, WITHHELD_NAME_DISPLAY as yi, repairMalformedOutputsForReadOnly as yl, collectNestedChildUnaddressed as yn, NO_LOCAL_CUSTOM_RESOURCES_FLAG as yo, canonicalizeIpProtocolValue as yr, s3BucketRegionalDomainName as ys, reverseMapIndexContributorInsights as yt, SSM_PARAMETER_VALUE_PREFIX as yu, declaredStreamPolicyMember as z, withoutSiblingOwned as za, malformedResourceEntriesWarning as zc, getStackRecords as zi, findHandledUnwrittenCreateOnly as zl, noEchoMacVerdict as zn, IntrinsicFunctionResolver as zo, acquireIdempotencyToken as zr, referenceTokensIn as zs, hasCdkAutoDeleteTag as zt, isCfnTemplateAssetPath as zu };
|
|
55176
|
+
//# sourceMappingURL=deploy-engine-CkY2eTL9.js.map
|