@cdkd/cli 0.371.0 → 0.372.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ambient-client-defaults-DzKSQvWN.js → ambient-client-defaults-B9_o60dB.js} +3 -3
- package/dist/{ambient-client-defaults-DzKSQvWN.js.map → ambient-client-defaults-B9_o60dB.js.map} +1 -1
- package/dist/{asg-provider-BkR7gv40.js → asg-provider-D6gQPSZu.js} +8 -8
- package/dist/{asg-provider-BkR7gv40.js.map → asg-provider-D6gQPSZu.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{created-resource-sink-D7FufEaB.js → created-resource-sink-CxezDoaQ.js} +4 -4
- package/dist/{created-resource-sink-D7FufEaB.js.map → created-resource-sink-CxezDoaQ.js.map} +1 -1
- package/dist/{custom-resource-runtime-DyUvtovF.js → custom-resource-runtime-BiP0vn3W.js} +6 -6
- package/dist/{custom-resource-runtime-DyUvtovF.js.map → custom-resource-runtime-BiP0vn3W.js.map} +1 -1
- package/dist/{db-associated-roles-Dq-VSmuu.js → db-associated-roles-BfvrD9UK.js} +2 -2
- package/dist/{db-associated-roles-Dq-VSmuu.js.map → db-associated-roles-BfvrD9UK.js.map} +1 -1
- package/dist/{delete-started-C8fWcehI.js → delete-started-BtXSEHsh.js} +4 -4
- package/dist/{delete-started-C8fWcehI.js.map → delete-started-BtXSEHsh.js.map} +1 -1
- package/dist/{deploy-engine-BsKzx9ys.js → deploy-engine-D6iEbD4R.js} +1889 -301
- package/dist/deploy-engine-D6iEbD4R.js.map +1 -0
- package/dist/{ec2-termination-protection-CJjU7OpO.js → ec2-termination-protection-DXZyU3Q0.js} +3 -3
- package/dist/{ec2-termination-protection-CJjU7OpO.js.map → ec2-termination-protection-DXZyU3Q0.js.map} +1 -1
- package/dist/{ecr-uri-BYBZlAlS.js → ecr-uri-C0JbYdmm.js} +2 -2
- package/dist/{ecr-uri-BYBZlAlS.js.map → ecr-uri-C0JbYdmm.js.map} +1 -1
- package/dist/{emr-cluster-provider-Cz2_BHvv.js → emr-cluster-provider-BCu1qq9J.js} +10 -10
- package/dist/{emr-cluster-provider-Cz2_BHvv.js.map → emr-cluster-provider-BCu1qq9J.js.map} +1 -1
- package/dist/{expected-bucket-owner-Dr7zxlJn.js → expected-bucket-owner-C2OXO5oD.js} +2 -2
- package/dist/{expected-bucket-owner-Dr7zxlJn.js.map → expected-bucket-owner-C2OXO5oD.js.map} +1 -1
- package/dist/{iam-role-provider-C27pVBaA.js → iam-role-provider-DFBJRsvA.js} +12 -12
- package/dist/{iam-role-provider-C27pVBaA.js.map → iam-role-provider-DFBJRsvA.js.map} +1 -1
- package/dist/{identity-read-denied-DHWVUHrX.js → identity-read-denied-C17mECu-.js} +5 -5
- package/dist/{identity-read-denied-DHWVUHrX.js.map → identity-read-denied-C17mECu-.js.map} +1 -1
- package/dist/{image-plan-D2uTAfxX.js → image-plan-sEIpoR31.js} +18 -11
- package/dist/image-plan-sEIpoR31.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-DVdLGob_.js → logger-BoDS8cs5.js} +2 -2
- package/dist/{logger-DVdLGob_.js.map → logger-BoDS8cs5.js.map} +1 -1
- package/dist/{neptune-provider-CkbTF9aG.js → neptune-provider-CL5WtULJ.js} +9 -9
- package/dist/{neptune-provider-CkbTF9aG.js.map → neptune-provider-CL5WtULJ.js.map} +1 -1
- package/dist/{program-BBg-9V23.js → program-BBXUa34K.js} +530 -59
- package/dist/program-BBXUa34K.js.map +1 -0
- package/dist/{provider-classes-DWi0yjHc.js → provider-classes-BiWcIBLc.js} +32 -25
- package/dist/{provider-classes-DWi0yjHc.js.map → provider-classes-BiWcIBLc.js.map} +1 -1
- package/dist/{rds-provider-BV4XW4wv.js → rds-provider--XBD_TS8.js} +25 -14
- package/dist/{rds-provider-BV4XW4wv.js.map → rds-provider--XBD_TS8.js.map} +1 -1
- package/dist/{read-replica-B08_DZNH.js → read-replica-apcXpKN9.js} +3 -3
- package/dist/{read-replica-B08_DZNH.js.map → read-replica-apcXpKN9.js.map} +1 -1
- package/dist/{redacted-delete-address-Be4d3ZWA.js → redacted-delete-address-S_A40Diz.js} +4 -4
- package/dist/{redacted-delete-address-Be4d3ZWA.js.map → redacted-delete-address-S_A40Diz.js.map} +1 -1
- package/dist/{replacement-rules-DL9MZWSp.js → replacement-rules-BArdRPgU.js} +125 -26
- package/dist/replacement-rules-BArdRPgU.js.map +1 -0
- package/dist/{resource-deadline-D65EA80y.js → resource-deadline-DWvjidOS.js} +2 -2
- package/dist/{resource-deadline-D65EA80y.js.map → resource-deadline-DWvjidOS.js.map} +1 -1
- package/dist/{restore-source-guard-ClcpxInI.js → restore-source-guard-k9BQAviV.js} +4 -4
- package/dist/{restore-source-guard-ClcpxInI.js.map → restore-source-guard-k9BQAviV.js.map} +1 -1
- package/dist/{run-cli-zFQkbzGk.js → run-cli-DEVVmR3v.js} +2 -2
- package/dist/{run-cli-zFQkbzGk.js.map → run-cli-DEVVmR3v.js.map} +1 -1
- package/dist/{secret-reference-immutable-Bh9gCLFt.js → secret-reference-immutable-0mb2D0J5.js} +20 -11
- package/dist/secret-reference-immutable-0mb2D0J5.js.map +1 -0
- package/dist/{settle-own-write-members-B-g5oflo.js → settle-own-write-members-DPTK_vVK.js} +13 -684
- package/dist/settle-own-write-members-DPTK_vVK.js.map +1 -0
- package/dist/{tag-list-DX_Ke9se.js → tag-list-B19O4m3W.js} +4 -4
- package/dist/{tag-list-DX_Ke9se.js.map → tag-list-B19O4m3W.js.map} +1 -1
- package/dist/{version-G1wdb4QW.js → version-Byf_RTiH.js} +2 -2
- package/dist/{version-G1wdb4QW.js.map → version-Byf_RTiH.js.map} +1 -1
- package/package.json +1 -1
- package/dist/deploy-engine-BsKzx9ys.js.map +0 -1
- package/dist/image-plan-D2uTAfxX.js.map +0 -1
- package/dist/program-BBg-9V23.js.map +0 -1
- package/dist/replacement-rules-DL9MZWSp.js.map +0 -1
- package/dist/secret-reference-immutable-Bh9gCLFt.js.map +0 -1
- package/dist/settle-own-write-members-B-g5oflo.js.map +0 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { A as displayStackName, C as STACK_REF_MAX_CODE_POINTS, D as displayAwsMessage, E as cutMarker, F as stringifyJsonPayload, 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, b as setPasteableVerbFlags, c as deployReplaceCommand, d as pasteableCommand, 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, x as SAFE_MSG_ALTERED_CHAR, y as setPasteableRunFlags } from "./version-
|
|
2
|
-
import { $ as renderStacksNoLongerSelected, $t as contextOptions, A as followContainerLogs, At as namedEnvAwsRegion, B as resolveRuntimeCodeMountPath, Bt as regionNeedsReconciliation, C as waitForRieReady, Cn as LOCK_FILE_SUFFIX, Ct as resolveContainerRegion, Dn as listAllLockKeys, Dt as warnAwsEmulatorStateSourceHint, E as SENSITIVE_ENV_KEYS, En as describeStateKey, Et as taskRoleAssumedInRealAws, F as removeContainer, Ft as legacyStateBucketFallbackRegion, G as nestedOwnerOfLogicalId, Gt as withOtherIndexRemoval, H as resolveRuntimeImage, Ht as resolveEffectiveRegion, It as namedCliRegion, J as renderAllLeftOutStageStacks, Jt as annotationMessageOptions, K as partitionTopLevel, Kt as strandedProfileCredentialsNotice, L as runDetached, Lt as rawCliRegion, M as killAndDrainContainerLogs, Mt as adoptRegionFlag, N as pickFreePort, Nt as exportInferredRegionForSdk, O as ensureDockerAvailable, On as listAllStateKeys, Ot as workloadGetsEmulatorKeysOnly, P as pullImage, Pt as foldRegionOption, Q as renderNotInAppWarning, Qt as commonOptions, Rt as reconcileExportIndexRegion, S as invokeRie, Sn as parsePositiveIntegerOption, St as realAwsException, T as DockerRunnerError, Tn as STATE_KEY_MAX_CODE_POINTS, Tt as stateRoleRecordIsEmulatorSide, U as describeStack, Ut as stackRegionResolver, V as resolveRuntimeFileExtension, Vt as regionShown, W as matchStacks, Wt as stateWithRegion, X as renderAmbiguousTargetStack, Xt as applyWaitFlagEnv, Y as renderAllNoTopLevelStacks, Yt as appOptions, Z as renderNoStackMatch, Zt as collectRepeated, _ as probeHostGatewaySupport, _n as allowUnsupportedTypesOption, _t as localAwsEmulatorCredentials, a as materializeLayerFromArn, an as noCfnFallbackOption, at as unmatchedPatterns, b as substituteImagePlaceholders, bn as validateResourceTimeouts, bt as prepareLocalLoopbackForwarder, cn as parseStackRegion, ct as resolveCdkPathToLogicalIds, d as resolveAssetCodeDirectory, dn as stackOptions, dt as activateLocalAwsAndRoleArn, en as deployOptions, et as renderUnmatchedPatternsWarning, f as architectureToPlatform, fn as stateOptions, ft as assertAwsEmulatorValue, g as HOST_GATEWAY_MIN_VERSION, gn as parseAssumeRoleToken, gt as localAwsEmulatorActive, h as layerAssetDirectory, hn as normalizeStartApiAssumeRole, ht as keepEmulatorIssuedCredentials, i as resolveInlineCodeFilePath, in as guardStackRegionOptions, it as stacksNoLongerSelected, jt as recordEmulatorDefaultRegion, k as flushStdio, kn as parseStateKey, kt as emulatorDefaultRegion, l as resolveLambdaLayers, ln as regionOption, lt as stackForConstructPath, m as copyLayerTreeLastWins, mn as effectiveAssumeRoleArn, mt as getActiveWorkloadAwsWiring$1, n as resolveTmpfsForLambda, nn as diffUpdatePolicyOptions, nt as stackMatchesPattern, o as resolveLambdaTarget, on as noLocalCustomResourcesOption, ot as buildCdkPathIndex, p as buildContainerImage$1, pn as useCdkBootstrapAssetsOption, pt as attachLocalLoopbackForwarder, q as refuseStackNameRegionCollisions, qt as writeProfileCredentialsFile, r as resolveZipImagePlan, rn as exclusivelyOption, rt as stacksForDependency, s as extractEphemeralStorageMb, sn as parseContextOptions, st as readCdkPathOrUndefined, t as resolveLocalBuildPlan$1, tn as destroyOptions, tt as selectTargetStack, u as assetPathDirs, un as skipFinalSnapshotOption, ut as stackForPathFormTarget, v as resolveHostGatewayExtraHosts, vn as parseDuration, vt as mixedModeActive, w as CONTAINER_LOG_DRAIN_TIMEOUT_MS, wn as STATE_FILE_SUFFIX, wt as setContainerRegion, x as tryResolveImageFnJoin, xn as cliArgParser, xt as profileCredentialsForWorkload, y as derivePseudoParametersFromRegion$1, yn as resourceTimeoutOptions, yt as mixedModeEmulatorOverride, z as streamLogs, zt as reconcileMarkerRegionWithLegacyDefault } from "./image-plan-
|
|
3
|
-
import { $t as buildLockContentionMessage, At as resourceTypeShown, C as VALUE_NOT_SHOWN, It as maskDeep, M as remedyLogicalId, Ot as logicalIdShown, P as isMarkedNotGone, Q as runDeleteAttempt, Qt as buildForceUnlockCommand, St as isInterruptedWaitError, Zt as UNREPRODUCIBLE_LOCK_CLAUSE, at as isAwsCliLiteral, b as assertRegionMatch, bt as endCommandInterruptScope, cn as WAIT_CONDITION_SIGNAL_PREFIX, ct as renderDisableCommand, dn as withPasteableAwsProfile, en as forceQuitRecoveryClause, fn as injectiveKey, gt as readRecordedPrincipals, hn as producerRecordKey, ln as setPasteableAwsCaBundle, lt as IAM_PRINCIPAL_NAME, mn as producerCoordinateKey, nn as formatLockOperation, on as CUSTOM_RESOURCE_RESPONSE_PREFIX, rn as formatLockOwner, sn as DEFAULT_STATE_PREFIX, tn as formatLockExpiry, un as setPasteableAwsProfile, ut as RESOLVED_PREVIOUS_PRINCIPAL_KEYS, v as DriftReadRefusedError, xt as interruptWatchListenerCount, y as RESOURCE_NOT_FOUND, yt as beginCommandInterruptScope } from "./created-resource-sink-
|
|
1
|
+
import { A as displayStackName, C as STACK_REF_MAX_CODE_POINTS, D as displayAwsMessage, E as cutMarker, F as stringifyJsonPayload, 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, b as setPasteableVerbFlags, c as deployReplaceCommand, d as pasteableCommand, 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, x as SAFE_MSG_ALTERED_CHAR, y as setPasteableRunFlags } from "./version-Byf_RTiH.js";
|
|
2
|
+
import { $ as renderStacksNoLongerSelected, $t as contextOptions, A as followContainerLogs, At as namedEnvAwsRegion, B as resolveRuntimeCodeMountPath, Bt as regionNeedsReconciliation, C as waitForRieReady, Cn as LOCK_FILE_SUFFIX, Ct as resolveContainerRegion, Dn as listAllLockKeys, Dt as warnAwsEmulatorStateSourceHint, E as SENSITIVE_ENV_KEYS, En as describeStateKey, Et as taskRoleAssumedInRealAws, F as removeContainer, Ft as legacyStateBucketFallbackRegion, G as nestedOwnerOfLogicalId, Gt as withOtherIndexRemoval, H as resolveRuntimeImage, Ht as resolveEffectiveRegion, It as namedCliRegion, J as renderAllLeftOutStageStacks, Jt as annotationMessageOptions, K as partitionTopLevel, Kt as strandedProfileCredentialsNotice, L as runDetached, Lt as rawCliRegion, M as killAndDrainContainerLogs, Mt as adoptRegionFlag, N as pickFreePort, Nt as exportInferredRegionForSdk, O as ensureDockerAvailable, On as listAllStateKeys, Ot as workloadGetsEmulatorKeysOnly, P as pullImage, Pt as foldRegionOption, Q as renderNotInAppWarning, Qt as commonOptions, Rt as reconcileExportIndexRegion, S as invokeRie, Sn as parsePositiveIntegerOption, St as realAwsException, T as DockerRunnerError, Tn as STATE_KEY_MAX_CODE_POINTS, Tt as stateRoleRecordIsEmulatorSide, U as describeStack, Ut as stackRegionResolver, V as resolveRuntimeFileExtension, Vt as regionShown, W as matchStacks, Wt as stateWithRegion, X as renderAmbiguousTargetStack, Xt as applyWaitFlagEnv, Y as renderAllNoTopLevelStacks, Yt as appOptions, Z as renderNoStackMatch, Zt as collectRepeated, _ as probeHostGatewaySupport, _n as allowUnsupportedTypesOption, _t as localAwsEmulatorCredentials, a as materializeLayerFromArn, an as noCfnFallbackOption, at as unmatchedPatterns, b as substituteImagePlaceholders, bn as validateResourceTimeouts, bt as prepareLocalLoopbackForwarder, cn as parseStackRegion, ct as resolveCdkPathToLogicalIds, d as resolveAssetCodeDirectory, dn as stackOptions, dt as activateLocalAwsAndRoleArn, en as deployOptions, et as renderUnmatchedPatternsWarning, f as architectureToPlatform, fn as stateOptions, ft as assertAwsEmulatorValue, g as HOST_GATEWAY_MIN_VERSION, gn as parseAssumeRoleToken, gt as localAwsEmulatorActive, h as layerAssetDirectory, hn as normalizeStartApiAssumeRole, ht as keepEmulatorIssuedCredentials, i as resolveInlineCodeFilePath, in as guardStackRegionOptions, it as stacksNoLongerSelected, jt as recordEmulatorDefaultRegion, k as flushStdio, kn as parseStateKey, kt as emulatorDefaultRegion, l as resolveLambdaLayers, ln as regionOption, lt as stackForConstructPath, m as copyLayerTreeLastWins, mn as effectiveAssumeRoleArn, mt as getActiveWorkloadAwsWiring$1, n as resolveTmpfsForLambda, nn as diffUpdatePolicyOptions, nt as stackMatchesPattern, o as resolveLambdaTarget, on as noLocalCustomResourcesOption, ot as buildCdkPathIndex, p as buildContainerImage$1, pn as useCdkBootstrapAssetsOption, pt as attachLocalLoopbackForwarder, q as refuseStackNameRegionCollisions, qt as writeProfileCredentialsFile, r as resolveZipImagePlan, rn as exclusivelyOption, rt as stacksForDependency, s as extractEphemeralStorageMb, sn as parseContextOptions, st as readCdkPathOrUndefined, t as resolveLocalBuildPlan$1, tn as destroyOptions, tt as selectTargetStack, u as assetPathDirs, un as skipFinalSnapshotOption, ut as stackForPathFormTarget, v as resolveHostGatewayExtraHosts, vn as parseDuration, vt as mixedModeActive, w as CONTAINER_LOG_DRAIN_TIMEOUT_MS, wn as STATE_FILE_SUFFIX, wt as setContainerRegion, x as tryResolveImageFnJoin, xn as cliArgParser, xt as profileCredentialsForWorkload, y as derivePseudoParametersFromRegion$1, yn as resourceTimeoutOptions, yt as mixedModeEmulatorOverride, z as streamLogs, zt as reconcileMarkerRegionWithLegacyDefault } from "./image-plan-sEIpoR31.js";
|
|
3
|
+
import { $t as buildLockContentionMessage, At as resourceTypeShown, C as VALUE_NOT_SHOWN, It as maskDeep, M as remedyLogicalId, Ot as logicalIdShown, P as isMarkedNotGone, Q as runDeleteAttempt, Qt as buildForceUnlockCommand, St as isInterruptedWaitError, Zt as UNREPRODUCIBLE_LOCK_CLAUSE, at as isAwsCliLiteral, b as assertRegionMatch, bt as endCommandInterruptScope, cn as WAIT_CONDITION_SIGNAL_PREFIX, ct as renderDisableCommand, dn as withPasteableAwsProfile, en as forceQuitRecoveryClause, fn as injectiveKey, gt as readRecordedPrincipals, hn as producerRecordKey, ln as setPasteableAwsCaBundle, lt as IAM_PRINCIPAL_NAME, mn as producerCoordinateKey, nn as formatLockOperation, on as CUSTOM_RESOURCE_RESPONSE_PREFIX, rn as formatLockOwner, sn as DEFAULT_STATE_PREFIX, tn as formatLockExpiry, un as setPasteableAwsProfile, ut as RESOLVED_PREVIOUS_PRINCIPAL_KEYS, v as DriftReadRefusedError, xt as interruptWatchListenerCount, y as RESOURCE_NOT_FOUND, yt as beginCommandInterruptScope } from "./created-resource-sink-CxezDoaQ.js";
|
|
4
4
|
import { a as runWithStackAwsClients, i as resetAwsClients, l as s3ClientDefaults, o as setAwsClients, s as resolveS3ClientDefaults, t as AwsClients, u as setS3ClientDefaultsDebugLog } from "./aws-clients-DOkPjjAW.js";
|
|
5
|
-
import { $ as withStackScope, A as configStringRefusal, B as generateResourceName, E as coerceCfnBoolean, F as requireConfigString, I as PATTERN_B_NAME_OPTIONS, L as PATTERN_B_NAME_PROPERTIES, N as requireConfigArray, O as configBooleanRefusal, P as requireConfigObject, Q as withSkipPrefix, R as PATTERN_B_RESOURCE_TYPES, S as explicitNamePropertyFor, X as isNameGeneration, a as reserveStdoutForPayload, f as isAwsAuthoredFailure, i as releaseStdoutForPayload, m as verboseAwareText, n as getLogger, p as safeStringify, r as isStdoutReservedForPayload, s as runStackBuffered, u as describeAwsFailure, y as getLiveRenderer, z as derivesPatternBName } from "./logger-
|
|
6
|
-
import { A as stripControlChars, B as retryClassificationText, F as isAmbiguousOutcomeError, H as isMarkedNonRetryable, J as DynamicReferenceRegionAmbiguousError, Q as AccountIdUnavailableError, R as isRetryableTransientError, U as isThrottlingError, V as THROTTLING_ERROR_NAMES, W as markNonRetryable, X as MalformedProducerRecordRefusalError, Y as IntrinsicResolutionRefusalError, _ as ResourceUpdateNotSupportedError, a as normalizeAwsError, at as ProvisioningError, ct as SynthesisError, et as CdkdError, g as PartialFailureError, h as NestedStackChildDirectDestroyError, i as credentialFingerprint, j as stripForDisplay, k as escapeRegExp, l as withErrorHandling, n as ambientCredentialConfig, o as formatError, ot as ResourceTimeoutError, q as CrossAccountSecretRefusalError, r as clientDefaultsFor, rt as LocalInvokeBuildError$1, s as handleError, st as StateError, t as ambientClientDefaults, tt as DeployCancelledError, u as LocalStartServiceError, v as StackHasActiveImportsError, y as StackTerminationProtectionError, z as isTransientServerError } from "./ambient-client-defaults-
|
|
5
|
+
import { $ as withStackScope, A as configStringRefusal, B as generateResourceName, E as coerceCfnBoolean, F as requireConfigString, I as PATTERN_B_NAME_OPTIONS, L as PATTERN_B_NAME_PROPERTIES, N as requireConfigArray, O as configBooleanRefusal, P as requireConfigObject, Q as withSkipPrefix, R as PATTERN_B_RESOURCE_TYPES, S as explicitNamePropertyFor, X as isNameGeneration, a as reserveStdoutForPayload, f as isAwsAuthoredFailure, i as releaseStdoutForPayload, m as verboseAwareText, n as getLogger, p as safeStringify, r as isStdoutReservedForPayload, s as runStackBuffered, u as describeAwsFailure, y as getLiveRenderer, z as derivesPatternBName } from "./logger-BoDS8cs5.js";
|
|
6
|
+
import { A as stripControlChars, B as retryClassificationText, F as isAmbiguousOutcomeError, H as isMarkedNonRetryable, J as DynamicReferenceRegionAmbiguousError, Q as AccountIdUnavailableError, R as isRetryableTransientError, U as isThrottlingError, V as THROTTLING_ERROR_NAMES, W as markNonRetryable, X as MalformedProducerRecordRefusalError, Y as IntrinsicResolutionRefusalError, _ as ResourceUpdateNotSupportedError, a as normalizeAwsError, at as ProvisioningError, ct as SynthesisError, et as CdkdError, g as PartialFailureError, h as NestedStackChildDirectDestroyError, i as credentialFingerprint, j as stripForDisplay, k as escapeRegExp, l as withErrorHandling, n as ambientCredentialConfig, o as formatError, ot as ResourceTimeoutError, q as CrossAccountSecretRefusalError, r as clientDefaultsFor, rt as LocalInvokeBuildError$1, s as handleError, st as StateError, t as ambientClientDefaults, tt as DeployCancelledError, u as LocalStartServiceError, v as StackHasActiveImportsError, y as StackTerminationProtectionError, z as isTransientServerError } from "./ambient-client-defaults-B9_o60dB.js";
|
|
7
7
|
import { a as getAssumedRoleCredentials, c as setAssumedRoleCredentials, h as formatAuthority, l as setAwsEndpointOverrideSource, m as runInStackAwsScope, n as awsClientDefaults, r as awsEndpointOverrideActive, s as runWithRealAws } from "./aws-client-defaults-DAebi99J.js";
|
|
8
|
-
import { $ as
|
|
9
|
-
import { $a as orphanRecordsPrintingBag, $l as malformedOrphansWarning, $n as withNestedRevertRun, $r as cfnIngressPortValue, $s as producerRegionsFromState, $u as rebuildClientForBucketRegion, A as serviceTokenBlockingReason, Aa as supersededResourcesOf, Ac as carriesFetchableDynamicReference, Ai as seedsDeleteFirstGuard, Al as malformedLocalResourcesWarning, An as deleteSignalReceiver, Ar as rollbackOrphanIds, As as IntrinsicFunctionResolver, At as declaredTagsReadback, Au as findActionableSdkUnwired, Ba as green, Bi as attemptUsesCompletedCreate, Bl as repairMalformedResourceEntriesForReadOnly, Bn as formatResourceLine, Bo as reReadUntilSettled, Br as propertiesChangedReason, Bs as applyRoleArnIfSet, C as slashedSsmNameHealAdoptedNote, Ca as deleteSupersededEntry, Ci as replacementCreateRoutesToCloudControl, Cl as refuseMalformedOrphanRecordsForDestroy, Cn as readRefactorMarker, Cr as findDestructiveChanges, Cs as deleteIndeterminateGuards, Cu as accountArgs, D as inRunStackKey, Da as supersededDependentsFirst, Dc as withoutVersionAttestation, Dd as createLazyAssetModeContext, Di as withCreateTokenLedger, Dl as unreadableOrphanRecords, Dn as refuseRefactorMarker, Do as revertStackRecordsView, Dr as findRefactorHints, Ds as getReadOnlyPropertyPaths, Du as displayLogicalId, E as scanActiveConsumers, Ea as supersededAfterRollback, Ed as createAssetRedirectResolver, El as unpreviewableOrphanRecords, En as refactorMarkerRefusalMessage, Er as orphanedLogicalIds, Eu as UNREADABLE_RESOURCES_MAP_ROW, F as isProtectionValueActive, Fa as withPreviousPolicies, Fd as AssetManifestLoader, Fi as recheckFailedPlan, Fl as refuseMalformedResourceEntriesForDeploy, Fn as childStackTags, Fo as declaredPolicyDocument, Fr as differingRemedy, Ga as noEchoExactEchoLeavesOf, Gc as shownType, Gd as assertAssetBucketRegion, Gi as orphanNeedsIdentity, Gl as refuseMalformedResourcePropertiesForDestroy, Gn as displacedOpClause, Gr as undeclaredGrantSiblingMembers, Gs as parseIamRoleArn, Ha as yellow, Hd as AssetModeResolver, Hi as segmentCleanupOptions, Hl as malformedDriftResourcePropertiesWarning, Hn as pendingRequestCount, Hr as referencedLogicalIds, Hs as assertSendableRoleArn, I as perType, Ia as findNestedStackTypeChanges, Ic as INTRINSIC_KEYS, Id as getDockerImageBySourceHash, Ii as recordUnderIdIsNotOwn, Il as refuseMalformedResourceEntriesForDestroy, In as literalRowTags, Io as efsPolicyMatchesDeclared, Ir as isPairableType, Ja as createReadOnlyAttributeHealerFactory, Jc as isStatefulRecreateTargetSync, Jd as parseBootstrapMarker, Ji as nameScopeOf, Jl as refuseMalformedResourcePropertiesForOrphan, Jo as ccBrokenReason, Jr as sgSiblingDecidedById, Js as applyCallerIdentityCredentials, Ju as splitImportedOps, Ka as noEchoParameterNamesOf, Kc as MULTI_REGION_RECREATE_BLOCKED_TYPES, Kd as isCrossRegionRedirect, Ki as nameGenerationCarriedFrom, Kl as refuseMalformedResourcePropertiesForDrift, Kn as displacedPhysicalIdShown, Ko as CC_BROKEN_REASON, Kr as recordedRuleIdOf, Ks as sendableAssumeRoleCommand, Ku as TemplateParser, L as readProtection, La as bold, Li as replacementNeverSwapped, Ll as refuseMalformedResourceEntriesForImport, Ln as macWriteOnlyKeys, Lo as lambdaPermissionMatchesDeclared, Lr as looselyEqual, Ls as resolveDynamicReferences, Lu as NO_CC_HANDLERS_REASON, M as recordedProtectionEvidence, Mc as carriesDynamicReference, Mi as isJournaledOrphan, Ml as malformedScrubResourceEntriesRefusalMessage, Mn as removeSignalReceiverNamed, Mr as changedReferenceInDiff, Ms as isAlwaysLiveAttribute, N as recordedProtectionNote, Na as snapshotSegmentSurvivors, Nc as keepsSecretReferenceToken, Ni as isReplacementOrphan, Nl as refuseMalformedResourceAttributesForOrphan, Nn as settleStackTagChildRuns, Nr as changedReferencePath, Ns as poisonRenderedSpellingsCollidingIn, Nu as unwrittenCreateOnlyReplacement, O as deferredServiceTokenWarning, Oa as supersededHeldByOtherTypeWarning, Oc as getAccountInfo, Ol as isReadableResourceEntry, On as sameMove, Or as hintSidesOf, Os as isWaitAbandonedError, Ou as hasReadableOutputs, P as PROTECTION_PROPERTY_BY_TYPE, Pa as resolveReplacementOldType, Pc as withSharedDrainBudget, Pd as rewriteTemplateAssetReferences, Pi as planFailedOps, Pl as refuseMalformedResourceEntries, Po as declaredMemberDocument, Pr as changedReferenceReason, Ps as stackIdTailOf, Pt as tagsMatchDeclared, Qa as namingSecretsWithRecordedNoEcho, Qd as BOOTSTRAP_MARKER_PREFIX, Qi as withNameGenerationReached, Ql as malformedOrphansRefusalMessage, Qn as revertedNestedRowIds, Qo as classifyHandleUrl, Qs as classifyReplaySecretRegion, Qu as hasUnverifiableParameterRefusal, Ra as cyan, Ri as IMPLICIT_DELETE_DEPENDENCIES, Rl as refuseMalformedResourceEntriesForImportSave, Rn as readsOnlyNoEchoParameters, Ro as memberReadFailure, Rr as mappingPairs, Rs as producerLookupOver, Ru as hasNoCloudControlHandlers, S as healSlashedSsmParameterNames, Sa as maskingRetryLogger, Sc as recordedOutputReferenceRegions, Sd as decodeListingKey, Si as findUpdatePolicyReplacementRefusals, Sl as refuseMalformedOrphanRecords, Sn as recordRetainedForReadoption, Sr as constructPathOf$1, Ss as UNSPECIFIED_SKIP_REASON, Su as JSON_LISTING_HOLE_VALUE, T as slashedSsmNameHealPendingNote, Ta as isSupersededResourceRecord, Td as buildAssetRedirectMap, Ti as ledgerForStack, Tl as repairMalformedOrphanRecordsForReadOnly, Tn as refactorMarkerMovesOf, To as destroyStackRecordsView, Tr as formatDestructiveChange, Ts as deleteSkipReason, Tu as STATE_RESOURCES_MALFORMED, Ua as noEchoAttributeNamesOf, Uc as findReplacedReadersOfRecreateTargets, Ud as ensureAssetStorage, Ui as removeProtectionTypeList, Ul as malformedResourcePropertiesWarning, Un as resolvePendingCloudControlRequests, Uo as verbatimEchoDriftKeys, Ur as siblingOwnedRevertDesired, Us as explicitRoleArnOrThrow, Va as red, Vi as readsRegeneratingSecret, Vl as unreadableResourceEntries, Vn as startForceQuitFlushes, Vr as proposeRenames, Vs as assertFlagRoleArn, Vu as providerReplacementOldDeleted, W as readStreamPolicy, Wa as noEchoComparisonForTemplate, Wd as buildDenyExternalAccessPolicy, Wi as removeProtectionTypes, Wn as NESTED_PENDING_PARENT_REASON, Wr as stripSiblingOwnedParentMembers, Ws as isIamRoleArn, Xa as journaledOrphanPrintingBag, Xd as validateAssetBucketName, Xi as retiredNameGenerationsAfter, Xl as UNREADABLE_ORPHANS_CONTAINER_ROW, Xn as recordDisplacedSkips, Xo as wouldReturnToSdkProvider, Xr as siblingRecordedSgRuleIds, Xs as envCredentialsAreAssumedRole, Xu as readOnlyStateVersionOf, Y as streamPolicyMatchesDeclared, Ya as completedReplayEntries, Yc as renderStatefulReason, Yd as readBootstrapMarkerBody, Yi as retiredAfterRollback, Yl as repairMalformedResourcePropertiesForReadOnly, Yn as nestedChildStackName$1, Yo as isCustomResource, Ys as callerEnvCredentials, Za as maskEventTextWithBoundBags, Zd as validateContainerRepoName, Zi as retiredNameGenerationsLeaving, Zl as hasReadableOrphans, Zo as WaitConditionSignalStore, Zs as classifyRecordedSecretRegion, Zu as hasReasonlessBaselineRefusal, _ as hasPendingMovesOut, _a as collectPublishedOutputNames, _i as equalModuloMarkedMask, _l as isReadableOrphanRecord, _o as buildFinalSnapshotIdentifier, _r as createNoEchoValueMacs, _s as withCustomResourceStack, _u as refuseMalformedResourcesForDeploy, a as mergeNoChangeOutputs, aa as WITHHELD_NAME_DISPLAY, ad as isNotImplemented, af as ownValue, ai as canonicalizeIpProtocolValue, al as getSettledWriteOnlyPropertyPaths, ao as stateSecretNameNeedles, ar as dropFailedHint, as as TemplateNoEchoReresolver, au as malformedLocalOutputsWarning, b as refusePendingMovesOut, ba as DEFAULT_RESOURCE_TIMEOUT_MS, bc as keepHeldTokenProvenance, bd as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, bi as updatePartialMessage, bl as malformedOrphanRowsKeptWarning, bn as NestedCleanupQueue, br as noEchoMacVerdict, bu as refuseMalformedState, c as nestedSsmNameRowNote, ca as secretBearing, cc as coerceParameterTypedValue, cd as isSecretValuedAttribute, cf as describeFileReadFailure, ci as DELETED_RESOURCE_REMEDY, co as ATOMIC_FINAL_SNAPSHOT_TYPES, cr as loadJournaledOrphans, d as makeCanonicalizePropertiesFn, da as carriedExportAliasExposure, dc as AWS_NO_VALUE, df as renderAssemblyPathEscape, di as earlyDeletedOld, dl as parameterInputsFor, do as ccRoutedInstanceTakesNoSnapshot, dr as makeSiblingClaimReader, du as repairMalformedOutputsForReadOnly, ea as inheritProducerRegions, ec as regionLessSecretName, ed as CrossPrefixReadError, ei as recordedSgRuleId, el as displayPhysicalId, eo as secretNamePrintingBag, er as collectNestedChildUnaddressed, es as isSignalKey, eu as refuseMalformedOrphans, f as conditionFingerprint, fa as exportNameNoEchoParameters, fc as cfnRefValueFromPhysicalId, fd as findNestedTemplateTreeDefect, ff as resolveAssemblyPath, fi as buildReadCurrentStateContext, fl as maskedInputProof, fo as effectiveDeletionPolicy, fr as planOrphanAdoption, fs as customResourcesFailedWithoutApp, fu as STATE_REGION_DIVERGED, g as childTemplateLoader, ga as collectDeclaredOutputNames, gc as lacksRecordedTableArn, gd as templateIdentity, gi as calculateResourceDrift, gl as deployRefusesOrphanRowsReason, go as createPreDeleteFinalSnapshot, gr as NOECHO_MAC_KEY_ALIAS, gs as setLocalCustomResourceRuntimeEnabled, gu as malformedStateRefusalMessage, h as readRecordedConditionVerdicts, ha as noEchoParameterValueSeed, hc as lacksRecordedRefArn, hd as renderNestedTemplateTreeDefect, hi as withUnprovenUnsettled, hl as maskedPropertyFingerprint, ho as unsupportedFinalSnapshotError, hr as crossStackReadsForPartialSave, hu as malformedResourcesWarning, i as keptWholeReasonText, ia as resourcesNamingDeclaredParameter, id as isAccessDenied, if as nullPrototypeRecord, ii as canonicalizeIpv4Cidr, il as withSecretPhysicalIdsMaskedInState, io as stackSecretNamesMasker, ir as dropFailedCommands, iu as malformedExportSourceWarning, j as diffSecurity, ja as withoutSuperseded, jc as isNamelessDynamicReferenceError, jd as loadPublishableAssetManifest, ji as demoteSupersededOrphans, jl as malformedResourceEntriesWarning, jn as isReceiver, jo as LAMBDA_PERMISSION_STATEMENT_KEYS, jr as withMovedTo, js as isSelectOutOfBounds, ju as findHandledUnwrittenCreateOnly, k as findServiceTokenRefusals, ka as supersededHolderOf, kc as isImpossibleEmptyStoredAttribute, ki as planRollback, kl as malformedLocalResourceEntriesWarning, kn as updateRefactorMarker, ko as withStackRecords, kr as movedToHint, ku as hasReadableResources, l as crossStackOutputProvenanceSource, la as secretBearingStateKeyWarning, lc as isUnboundTemplateParameter, ld as isSensitiveAttributeName, lf as displayAssemblyPath, li as PLANNED_EARLY_DELETE_CONSEQUENCE, ll as maskedPropertyFingerprintsOf, lo as PRE_DELETE_SNAPSHOT_TYPES, lr as sameJournaledOrphans, ls as withPrintingSecrets, lu as refuseMalformedOutputs, m as parentSuppliedValues, ma as isWholeDynamicReferenceValue, mc as refStateLookupFromResource, md as listNestedTemplateRows, mf as resolveBucketRegion, mi as settleUnsettledPrevious, ml as declaresNoEcho, mo as refusesFinalSnapshot, mr as DeploymentEventsStore, ms as localCustomResourceCommand, mu as malformedRenderedContainersWarning, n as applyStackTagsToTemplate, na as namesAnyDeclaredParameter, nd as applyCrossPrefixScan, nf as hasOwnKey, ni as sgProtocolKey, nl as secretPhysicalIdSegment, nr as withNestedStackContext, ns as applyCustomResourceResponseExpiration, nu as repairMalformedOrphansForReadOnly, o as checkNestedSsmNames, oa as displayTextOrWithheld, od as stackInstanceIdOf, oi as replayFailedOperations, ol as getTopLevelKeysHoldingUnreadableCreateOnly, oo as storedSecretNameNeedles, or as isHandledOrphan, os as readsNoEchoDeleteValues, ou as malformedOutputsRefusalMessage, p as conditionInputsFrom, pa as exportNameSecretExposure, pc as isStalePlaceholderArnAttribute, pd as isAbsoluteAssetPath, pi as recordAfterRollbackUpdate, po as isFinalSnapshotError, pr as DeploymentEventsReader, ps as customResourcesRunWithoutApp, pu as refuseDivergentRecordRegionForDestroy, qa as withAttemptedItemsMasked, qc as isStatefulRecreateTargetForReplace, qd as getBootstrapMarkerKey, qi as nameGenerationHighWaterOf, ql as refuseMalformedResourcePropertiesForExport, qn as dropSettledNestedJournals, qo as ProviderRegistry, qr as sgRuleOwnershipIdentity, qs as AWS_CREDENTIAL_ENV_KEYS, qu as S3StateBackend, r as isSecretBearingReferenceString, ra as reachableDivergentParameters, rd as crossPrefixDeniedWarning, rf as hasPlainPrototype, rl as secretSegmentsOfState, ro as secretNamedRecordNeedles, rr as deleteJournaledOrphans, rs as customResourceResponseExpirationWarning, ru as malformedExportNamesWarning, s as nestedSsmNameDeferredNote, sa as exportAliasCollisionScrubWarning, sd as withStackInstanceIdWithheld, si as replayRollback, sl as tryGetTopLevelWriteOnlyProperties, so as extractDeploymentEventError, sr as journaledOrphanLines, ss as isCustomResourceType$1, su as malformedOutputsWarning, t as DeployEngine, ta as computeParameterTaint, tc as isUnexposedRecordedIdentity, td as CrossPrefixScanCache, tf as defineOwnKey, ti as sgCidrKey, to as secretNamePrintingBags, tr as getCurrentNestedStackContext, ts as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, tu as refuseMalformedOrphansForDestroy, u as inheritedProvenanceForChildDiff, ua as secretSafeKeyDisplay, uc as parameterTypeMayLoseSecretIdentity, ui as earlyDeleteWhen, uo as ccRoutedFinalSnapshotError, ur as makeForeignHolderScan, us as NO_LOCAL_CUSTOM_RESOURCES_FLAG, uu as refuseMalformedOutputsForDestroy, v as pendingMovesOutOf, va as isExportAliasCollision, vi as equalModuloMask, vl as malformedOrphanRecordsRefusalMessage, vr as noEchoMacBinding, vu as refuseMalformedResourcesForDestroy, w as slashedSsmNameHealNote, wa as holdsSupersededResources, wc as recordedReferenceRegions, wl as refuseMalformedOrphansForOrphan, wn as readRefactorMarkerOnce, wr as formatChangeCounts, ws as deleteLeftInPlace, wu as withheldAccountClause, x as warnLegacySpelling, xa as DEFAULT_RESOURCE_WARN_AFTER_MS, xi as updatePartialReason, xl as previewableOrphanRecords, xn as keptForRetainedRecord, xr as noEchoValueMacsOf, xs as RollbackInlinePolicyWriters, xu as repairMalformedResourcesForReadOnly, y as pendingMovesRefusalMessage, ya as bindingSkippedOutputs, yd as ssmResolvedValueType, yi as undeclaredEmptyObservedKeys, yl as malformedOrphanRecordsWarning, yr as noEchoMacParametersOf, ys as CloudControlProvider, yu as refuseMalformedResourcesForExport, za as gray, zi as computeImplicitDeleteEdges, zl as refuseMalformedResourceEntriesForOrphan, zo as policyDocumentMatchesDeclared, zr as parseMappingFile, zs as refuseUnreadableCdkCrossAccountRefs, zu as PROPERTY_COVERAGE_BY_TYPE } from "./deploy-engine-BsKzx9ys.js";
|
|
8
|
+
import { $ as uploadCfnTemplate, A as runDockerForeground, B as resolveCaptureObservedState, C as finchSecretArgvRefusal, D as isMalformedEnvKey, E as isDockerClientEnvKey, F as getDefaultStateBucketName, G as resolveUpdatePolicy, H as resolveStateBucketWithDefault, I as getLegacyStateBucketName, J as warnDeprecatedNoPrefixCliFlag, K as resolveUseCdkBootstrapAssets, L as loadCdkJson, M as abortInFlightMultipartUploads, N as Synthesizer, O as formatDockerLoginError, P as synthesisStatusMessage, Q as findLargeInlineResources, R as resolveApp, S as dockerSpawnEnvWithSensitive, T as warnFinchArgvExposure, U as resolveStateBucketWithDefaultAndSource, V as resolveSkipPrefix, W as resolveStateBucketWithSource, X as CFN_TEMPLATE_URL_LIMIT, Y as CFN_TEMPLATE_BODY_LIMIT, Z as MIGRATE_TMP_PREFIX, _ as describeDockerExecFailure, at as legacyPlanAssetCount, b as redactedDockerCause, ct as CdkToolkitBucketMissingError, d as isLockInfoExpired, et as refuseFailedLookups, f as AssetPublisher, h as resolveDockerContextDirectory, i as mergeDeclaredEntries, it as createLegacyAssetParameterBinder, j as runDockerStreaming, k as getDockerCmd, l as DagBuilder, lt as processStackMessages, m as buildDockerImage, n as declaredStringList, nt as StageLoadError, ot as predictedAutoCreatedAssetMode, p as WorkGraph, q as stateBucketExistenceConfirmed, r as inlinePoliciesAreDeclared, rt as bindLegacyStackAssetParameters, s as stringListIsDeclared, st as prepareLegacyStackAssets, t as declaredInlinePolicies, tt as AssemblyReader, u as LockManager, ut as setChildProcessAwsEnv, v as describeDockerFailure, w as partitionSensitiveEnv, x as redactDockerArgvValues, y as redactedCause, z as resolveAutoAssetStorage } from "./settle-own-write-members-DPTK_vVK.js";
|
|
9
|
+
import { $a as journaledOrphanPrintingBag, $c as withSecretPhysicalIdsMaskedInState, $d as resolveAssemblyPath, $i as resourcesNamingDeclaredParameter, $l as malformedOutputsWarning, $n as recordDisplacedSkips, $o as wouldReturnToSdkProvider, $r as siblingRecordedSgRuleIds, $s as callerEnvCredentials, $u as findNestedTemplateTreeDefect, A as deferredServiceTokenWarning, Aa as withPreviousPolicies, Ac as carriesFetchableDynamicReference, Ad as ensureAssetStorage, Ai as recheckFailedPlan, Al as refuseMalformedResourceEntriesForImport, An as refuseRefactorMarker, Ao as revertStackRecordsView, Ar as findRefactorHints, As as getReadOnlyPropertyPaths, Au as providerReplacementOldDeleted, B as readProtection, Ba as bold, Bc as shownType, Bi as orphanNeedsIdentity, Bl as refuseMalformedResourcePropertiesForOrphan, Bn as macWriteOnlyKeys, Bo as lambdaPermissionMatchesDeclared, Br as looselyEqual, Bu as rebuildClientForBucketRegion, C as warnLegacySpelling, Ca as supersededHeldByOtherTypeWarning, Cc as keepHeldTokenProvenance, Cd as getDockerImageBySourceHash, Cl as malformedLocalResourcesWarning, Cn as NestedCleanupQueue, Cr as noEchoMacVerdict, Cu as findHandledUnwrittenCreateOnly, D as slashedSsmNameHealPendingNote, Dc as withoutVersionAttestation, Di as isJournaledOrphan, Dl as refuseMalformedResourceEntries, Dn as readRefactorMarkerOnce, Dr as formatChangeCounts, Ds as deleteLeftInPlace, Du as NO_CC_HANDLERS_REASON, E as slashedSsmNameHealNote, Ea as withoutSuperseded, Ec as recordedReferenceRegions, Ei as demoteSupersededOrphans, El as refuseMalformedResourceAttributesForOrphan, En as readRefactorMarker, Er as findDestructiveChanges, Es as deleteIndeterminateGuards, F as recordedProtectionEvidence, Fa as sgCidrKey, Fc as INTRINSIC_KEYS, Fd as parseBootstrapMarker, Fi as attemptUsesCompletedCreate, Fl as malformedDriftResourcePropertiesWarning, Fn as removeSignalReceiverNamed, Fr as changedReferenceInDiff, Fs as isSelectOutOfBounds, Fu as S3StateBackend, Ga as yellow, Gd as nullPrototypeRecord, Gi as retiredNameGenerationsAfter, Gl as malformedOrphansWarning, Gn as pendingRequestCount, Gr as referencedLogicalIds, Gs as assertFlagRoleArn, Gu as isAccessDenied, Ha as gray, Hc as isStatefulRecreateTargetForReplace, Hd as defineOwnKey, Hi as nameGenerationHighWaterOf, Hl as UNREADABLE_ORPHANS_CONTAINER_ROW, Ho as policyDocumentMatchesDeclared, Hr as parseMappingFile, Hs as producerLookupOver, Hu as CrossPrefixScanCache, I as recordedProtectionNote, Ia as sgProtocolKey, Ic as LEGACY_HANDLE_HEAL_REASON, Id as readBootstrapMarkerBody, Ii as readsRegeneratingSecret, Il as malformedResourcePropertiesWarning, In as settleStackTagChildRuns, Ir as changedReferencePath, Is as isAlwaysLiveAttribute, Iu as splitImportedOps, Ja as noEchoExactEchoLeavesOf, Jl as repairMalformedOrphansForReadOnly, Jn as displacedOpClause, Jr as undeclaredGrantSiblingMembers, Js as isIamRoleArn, Ju as withStackInstanceIdWithheld, Ka as noEchoAttributeNamesOf, Kd as ownValue, Ki as retiredNameGenerationsLeaving, Kl as refuseMalformedOrphans, Kn as resolvePendingCloudControlRequests, Ko as verbatimEchoDriftKeys, Kr as siblingOwnedRevertDesired, Ks as assertSendableRoleArn, Ku as isNotImplemented, L as PROTECTION_PROPERTY_BY_TYPE, Ld as validateAssetBucketName, Li as segmentCleanupOptions, Ll as refuseMalformedResourcePropertiesForDestroy, Lo as declaredMemberDocument, Lr as changedReferenceReason, Ls as poisonRenderedSpellingsCollidingIn, Lt as tagsMatchDeclared, Lu as readOnlyStateVersionOf, M as serviceTokenBlockingReason, Mc as carriesDynamicReference, Md as assertAssetBucketRegion, Mi as replacementNeverSwapped, Ml as refuseMalformedResourceEntriesForOrphan, Mn as updateRefactorMarker, Mo as withStackRecords, Mr as movedToHint, N as diffSecurity, Na as cfnIngressPortValue, Nc as keepsSecretReferenceToken, Nd as isCrossRegionRedirect, Ni as IMPLICIT_DELETE_DEPENDENCIES, Nl as repairMalformedResourceEntriesForReadOnly, Nn as deleteSignalReceiver, Nr as rollbackOrphanIds, Ns as DiffCalculator, Nt as declaredTagsReadback, O as scanActiveConsumers, Oa as snapshotSegmentSurvivors, Oc as getAccountInfo, Oi as isReplacementOrphan, Ol as refuseMalformedResourceEntriesForDeploy, On as refactorMarkerMovesOf, Oo as destroyStackRecordsView, Or as formatDestructiveChange, Os as deleteSkipReason, Ou as hasNoCloudControlHandlers, P as isScrutinizedProperty, Pa as recordedSgRuleId, Pc as withSharedDrainBudget, Pd as getBootstrapMarkerKey, Pi as computeImplicitDeleteEdges, Pl as unreadableResourceEntries, Pn as isReceiver, Po as LAMBDA_PERMISSION_STATEMENT_KEYS, Pr as withMovedTo, Ps as IntrinsicFunctionResolver, Pu as TemplateParser, Q as streamPolicyMatchesDeclared, Qa as completedReplayEntries, Qc as secretSegmentsOfState, Qd as renderAssemblyPathEscape, Qi as reachableDivergentParameters, Ql as malformedOutputsRefusalMessage, Qn as nestedChildStackName$1, Qo as isCustomResource, Qs as applyCallerIdentityCredentials, R as isProtectionValueActive, Ra as canonicalizeIpv4Cidr, Rd as validateContainerRepoName, Ri as removeProtectionTypeList, Rl as refuseMalformedResourcePropertiesForDrift, Rn as childStackTags, Ro as declaredPolicyDocument, Rr as differingRemedy, Rs as stackIdTailOf, Ru as hasReasonlessBaselineRefusal, S as refusePendingMovesOut, Sa as supersededDependentsFirst, Sd as AssetManifestLoader, Si as withCreateTokenLedger, Sl as malformedLocalResourceEntriesWarning, Sr as noEchoMacParametersOf, Ss as CloudControlProvider, Su as findActionableSdkUnwired, T as slashedSsmNameHealAdoptedNote, Ta as supersededResourcesOf, Tc as recordedOutputReferenceRegions, Ti as seedsDeleteFirstGuard, Tl as malformedScrubResourceEntriesRefusalMessage, Tn as recordRetainedForReadoption, Tr as constructPathOf$1, Ts as UNSPECIFIED_SKIP_REASON, Tu as unwrittenCreateOnlyReplacement, Ua as green, Uc as isStatefulRecreateTargetSync, Ud as hasOwnKey, Ui as nameScopeOf, Ul as hasReadableOrphans, Un as formatResourceLine, Uo as reReadUntilSettled, Ur as propertiesChangedReason, Us as refuseUnreadableCdkCrossAccountRefs, Uu as applyCrossPrefixScan, Va as cyan, Vc as MULTI_REGION_RECREATE_BLOCKED_TYPES, Vi as nameGenerationCarriedFrom, Vl as repairMalformedResourcePropertiesForReadOnly, Vn as readsOnlyNoEchoParameters, Vo as memberReadFailure, Vr as mappingPairs, Vs as resolveDynamicReferences, Vu as CrossPrefixReadError, Wa as red, Wc as renderStatefulReason, Wd as hasPlainPrototype, Wi as retiredAfterRollback, Wl as malformedOrphansRefusalMessage, Wn as startForceQuitFlushes, Wr as proposeRenames, Ws as applyRoleArnIfSet, Wu as crossPrefixDeniedWarning, Xa as withAttemptedItemsMasked, Xd as displayAssemblyPath, Xi as computeParameterTaint, Xl as malformedExportSourceWarning, Xn as dropSettledNestedJournals, Xo as ProviderRegistry, Xr as sgRuleOwnershipIdentity, Xs as sendableAssumeRoleCommand, Xu as isSensitiveAttributeName, Ya as noEchoParameterNamesOf, Yc as displayPhysicalId, Yd as describeFileReadFailure, Yi as inheritProducerRegions, Yl as malformedExportNamesWarning, Yn as displacedPhysicalIdShown, Yo as CC_BROKEN_REASON, Yr as recordedRuleIdOf, Ys as parseIamRoleArn, Yu as isSecretValuedAttribute, Za as createReadOnlyAttributeHealerFactory, Zc as secretPhysicalIdSegment, Zi as namesAnyDeclaredParameter, Zl as malformedLocalOutputsWarning, Zo as ccBrokenReason, Zr as sgSiblingDecidedById, Zs as AWS_CREDENTIAL_ENV_KEYS, _ as readRecordedConditionVerdicts, _a as maskingRetryLogger, _c as cfnRefValueFromPhysicalId, _i as findUpdatePolicyReplacementRefusals, _l as refuseMalformedOrphansForOrphan, _o as refusesFinalSnapshot, _r as DeploymentEventsStore, _s as localCustomResourceCommand, _u as STATE_RESOURCES_MALFORMED, a as mergeNoChangeOutputs, aa as secretSafeKeyDisplay, ac as withoutLapsedStaleShapeStamp, ai as earlyDeleteWhen, al as maskedInputProof, ar as withNestedStackContext, as as applyCustomResourceResponseExpiration, au as refuseDivergentRecordRegionForDestroy, b as pendingMovesOutOf, ba as isSupersededResourceRecord, bc as lacksRecordedRefArn, bi as ledgerForStack, bl as unreadableOrphanRecords, bo as buildFinalSnapshotIdentifier, br as createNoEchoValueMacs, bs as withCustomResourceStack, bu as hasReadableOutputs, c as nestedSsmNameRowNote, ca as exportNameSecretExposure, ci as recordAfterRollbackUpdate, cl as maskedPropertyFingerprint, co as stateSecretNameNeedles, cr as dropFailedHint, cs as TemplateNoEchoReresolver, cu as malformedStateRefusalMessage, d as makeCanonicalizePropertiesFn, da as collectDeclaredOutputNames, di as calculateResourceDrift, dl as malformedOrphanRecordsRefusalMessage, do as ATOMIC_FINAL_SNAPSHOT_TYPES, dr as loadJournaledOrphans, du as refuseMalformedResourcesForExport, ea as WITHHELD_NAME_DISPLAY, ec as envCredentialsAreAssumedRole, ed as isAbsoluteAssetPath, el as getSettledWriteOnlyPropertyPaths, eo as maskEventTextWithBoundBags, es as WaitConditionSignalStore, f as readDbInstanceAvailabilityZone, fa as collectPublishedOutputNames, fd as buildAssetRedirectMap, fi as equalModuloMarkedMask, fl as malformedOrphanRecordsWarning, fo as PRE_DELETE_SNAPSHOT_TYPES, fr as sameJournaledOrphans, fs as withPrintingSecrets, fu as refuseMalformedState, g as parentSuppliedValues, ga as DEFAULT_RESOURCE_WARN_AFTER_MS, gc as AWS_NO_VALUE, gi as updatePartialReason, gl as refuseMalformedOrphanRecordsForDestroy, go as isFinalSnapshotError, gr as DeploymentEventsReader, gs as customResourcesRunWithoutApp, gu as withheldAccountClause, h as conditionInputsFrom, ha as DEFAULT_RESOURCE_TIMEOUT_MS, hc as parameterTypeMayLoseSecretIdentity, hi as updatePartialMessage, hl as refuseMalformedOrphanRecords, ho as effectiveDeletionPolicy, hr as planOrphanAdoption, hs as customResourcesFailedWithoutApp, hu as accountArgs, i as keptWholeReasonText, ia as secretBearingStateKeyWarning, ic as regionLessSecretName, ii as PLANNED_EARLY_DELETE_CONSEQUENCE, il as parameterInputsFor, io as secretNamePrintingBags, ir as getCurrentNestedStackContext, is as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, iu as STATE_REGION_DIVERGED, j as findServiceTokenRefusals, ja as findNestedStackTypeChanges, jc as isNamelessDynamicReferenceError, jd as buildDenyExternalAccessPolicy, ji as recordUnderIdIsNotOwn, jl as refuseMalformedResourceEntriesForImportSave, jn as sameMove, jr as hintSidesOf, js as isWaitAbandonedError, k as inRunStackKey, ka as resolveReplacementOldType, kc as isImpossibleEmptyStoredAttribute, kd as AssetModeResolver, ki as planFailedOps, kl as refuseMalformedResourceEntriesForDestroy, kn as refactorMarkerRefusalMessage, kr as orphanedLogicalIds, ku as PROPERTY_COVERAGE_BY_TYPE, l as crossStackOutputProvenanceSource, la as isWholeDynamicReferenceValue, ld as decodeListingKey, li as settleUnsettledPrevious, ll as deployRefusesOrphanRowsReason, lo as storedSecretNameNeedles, lr as isHandledOrphan, ls as readsNoEchoDeleteValues, lu as refuseMalformedResourcesForDeploy, m as conditionFingerprint, ma as bindingSkippedOutputs, mc as isUnboundTemplateParameter, md as createLazyAssetModeContext, mi as undeclaredEmptyObservedKeys, ml as previewableOrphanRecords, mo as ccRoutedInstanceTakesNoSnapshot, mr as makeSiblingClaimReader, mu as JSON_LISTING_HOLE_VALUE, n as applyStackTagsToTemplate, na as exportAliasCollisionScrubWarning, nc as classifyReplaySecretRegion, nd as renderNestedTemplateTreeDefect, ni as replayRollback, nl as tryGetTopLevelWriteOnlyProperties, no as orphanRecordsPrintingBag, nr as withNestedRevertRun, nu as refuseMalformedOutputsForDestroy, o as checkNestedSsmNames, oa as carriedExportAliasExposure, oc as isUnexposedRecordedIdentity, od as ssmResolvedValueType, oi as earlyDeletedOld, oo as secretNamedRecordNeedles, or as deleteJournaledOrphans, os as customResourceResponseExpirationWarning, ou as malformedRenderedContainersWarning, p as healZonelessDbInstanceRecords, pa as isExportAliasCollision, pc as coerceParameterTypedValue, pd as createAssetRedirectResolver, pi as equalModuloMask, pl as malformedOrphanRowsKeptWarning, po as ccRoutedFinalSnapshotError, pr as makeForeignHolderScan, ps as NO_LOCAL_CUSTOM_RESOURCES_FLAG, pu as repairMalformedResourcesForReadOnly, q as readStreamPolicy, qa as noEchoComparisonForTemplate, qi as withNameGenerationReached, ql as refuseMalformedOrphansForDestroy, qn as NESTED_PENDING_PARENT_REASON, qr as stripSiblingOwnedParentMembers, qs as explicitRoleArnOrThrow, qu as stackInstanceIdOf, r as isSecretBearingReferenceString, ra as secretBearing, rc as producerRegionsFromState, rd as templateIdentity, ri as DELETED_RESOURCE_REMEDY, rl as maskedPropertyFingerprintsOf, ro as secretNamePrintingBag, rr as collectNestedChildUnaddressed, rs as isSignalKey, ru as repairMalformedOutputsForReadOnly, s as nestedSsmNameDeferredNote, sa as exportNameNoEchoParameters, sd as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, si as buildReadCurrentStateContext, sl as declaresNoEcho, so as stackSecretNamesMasker, sr as dropFailedCommands, su as malformedResourcesWarning, t as DeployEngine, ta as displayTextOrWithheld, tc as classifyRecordedSecretRegion, td as listNestedTemplateRows, tf as resolveBucketRegion, ti as replayFailedOperations, tl as getTopLevelKeysHoldingUnreadableCreateOnly, to as namingSecretsWithRecordedNoEcho, tr as revertedNestedRowIds, ts as classifyHandleUrl, tu as refuseMalformedOutputs, u as inheritedProvenanceForChildDiff, ua as noEchoParameterValueSeed, ui as withUnprovenUnsettled, ul as isReadableOrphanRecord, uo as extractDeploymentEventError, ur as journaledOrphanLines, us as isCustomResourceType$1, uu as refuseMalformedResourcesForDestroy, v as childTemplateLoader, va as deleteSupersededEntry, vc as isStalePlaceholderArnAttribute, vd as loadPublishableAssetManifest, vi as replacementCreateRoutesToCloudControl, vl as repairMalformedOrphanRecordsForReadOnly, vo as unsupportedFinalSnapshotError, vr as crossStackReadsForPartialSave, vu as UNREADABLE_RESOURCES_MAP_ROW, w as healSlashedSsmParameterNames, wa as supersededHolderOf, wi as planRollback, wl as malformedResourceEntriesWarning, wn as keptForRetainedRecord, wr as noEchoValueMacsOf, ws as RollbackInlinePolicyWriters, x as pendingMovesRefusalMessage, xa as supersededAfterRollback, xc as lacksRecordedTableArn, xd as rewriteTemplateAssetReferences, xl as isReadableResourceEntry, xr as noEchoMacBinding, xu as hasReadableResources, y as hasPendingMovesOut, ya as holdsSupersededResources, yc as refStateLookupFromResource, yl as unpreviewableOrphanRecords, yo as createPreDeleteFinalSnapshot, yr as NOECHO_MAC_KEY_ALIAS, ys as setLocalCustomResourceRuntimeEnabled, yu as displayLogicalId, z as perType, za as canonicalizeIpProtocolValue, zc as findReplacedReadersOfRecreateTargets, zd as BOOTSTRAP_MARKER_PREFIX, zi as removeProtectionTypes, zl as refuseMalformedResourcePropertiesForExport, zn as literalRowTags, zo as efsPolicyMatchesDeclared, zr as isPairableType, zu as hasUnverifiableParameterRefusal } from "./deploy-engine-D6iEbD4R.js";
|
|
10
10
|
import { n as canonicalizeRegion, r as derivePartitionAndUrlSuffix, t as PARTITION_TABLE } from "./aws-partition-DA0r2sr-.js";
|
|
11
|
-
import { C as timePhase, D as parseFailureDebugDetail, S as renderPhaseTimings, T as describeJsonParseFailure, a as getCreateOnlyPropertyPaths, c as templateResourceTypes, g as withRetry, k as utf8ByteLength, s as prefetchCreateOnlyPropertyPaths, u as describeTypeWithThrottleRetry, v as PhaseClock } from "./secret-reference-immutable-
|
|
12
|
-
import { l as setResolvedResourceTimeouts } from "./ec2-termination-protection-
|
|
13
|
-
import { t as expectedOwnerParam } from "./expected-bucket-owner-
|
|
14
|
-
import { Ct as isReadableBag, Et as shouldRetainResource, Ot as stackInstanceIdCarriedFrom, St as importableOutputs, Tt as orphansCarriedFrom, _t as acceptedCreateOnlyDropsOf, bt as hasReadableExportSet, gt as slowCcOperationTimeoutMs, vt as describeRegionValueKind, wt as orphansAfterRollback, xt as importableOutputKeys, yt as exportNamesCarriedFrom } from "./delete-started-
|
|
15
|
-
import {
|
|
16
|
-
import { S as unsettledPropertiesOf, T as withoutUnsettledProperties, b as unsettledItemsOf, w as withUnsettledProperties, y as unsettledItemsField } from "./restore-source-guard-
|
|
17
|
-
import { u as differingIdentityWarning } from "./identity-read-denied-
|
|
18
|
-
import { n as isRedactedRecordedValue } from "./redacted-delete-address-
|
|
19
|
-
import { a as withResourceDeadline } from "./resource-deadline-
|
|
20
|
-
import { a as parseEcrRegistryHost, i as looksLikeEcrHostWithForeignSuffix, n as hasEcrRegistryHostLabels, t as ecrRegistryHostPattern } from "./ecr-uri-
|
|
11
|
+
import { C as timePhase, D as parseFailureDebugDetail, S as renderPhaseTimings, T as describeJsonParseFailure, a as getCreateOnlyPropertyPaths, c as templateResourceTypes, g as withRetry, k as utf8ByteLength, s as prefetchCreateOnlyPropertyPaths, u as describeTypeWithThrottleRetry, v as PhaseClock } from "./secret-reference-immutable-0mb2D0J5.js";
|
|
12
|
+
import { l as setResolvedResourceTimeouts } from "./ec2-termination-protection-DXZyU3Q0.js";
|
|
13
|
+
import { t as expectedOwnerParam } from "./expected-bucket-owner-C2OXO5oD.js";
|
|
14
|
+
import { Ct as isReadableBag, Et as shouldRetainResource, Ot as stackInstanceIdCarriedFrom, St as importableOutputs, Tt as orphansCarriedFrom, _t as acceptedCreateOnlyDropsOf, bt as hasReadableExportSet, gt as slowCcOperationTimeoutMs, vt as describeRegionValueKind, wt as orphansAfterRollback, xt as importableOutputKeys, yt as exportNamesCarriedFrom } from "./delete-started-BtXSEHsh.js";
|
|
15
|
+
import { Bn as recordNoEchoAttributeValues, Cn as splitGetAttStringForm, Ct as maskSecretsInError, E as noEchoOutputsComparison, F as valueAtCoordinate, Fn as provenPublicValue, Ft as scrubResourceRecord, Gn as WHOLE_DYNAMIC_REFERENCE_PATTERN, Hn as recordProvenPublicExpression, It as withPhysicalNameCopies, Kt as spelledKeysOf, L as liveMatchesUnresolvedTokenFrame, N as recordedNoEchoValuesOf, Rn as recordMaskOnlyValue, S as maskedLeafCoordinatesOf, T as noEchoLeavesOf, Un as wholeStringLeavesOf, Ut as dynamicReferenceTokens, Vn as recordNoEchoParameterFreshValue, Vt as DYNAMIC_REFERENCE_TOKEN_SCAN, Wt as keepTemplateLiteralLeaves, X as redactForState, Yt as identityKeyFor, _t as recordLogOnlyValue, b as maskReadbackAtCoordinates, bt as createSecretMasker, ct as createUnionSecretMasker, dt as literalSplitDelimitersOf, ft as logOnlyValueCount, g as canonicalCoordinates, gn as physicalNameCopiesOf, ht as recordLogOnlyParameterValue, in as inheritNestedStackParameterAssociations, j as readsNoEchoSource, mt as printingCorpusOf, ot as carryLogOnlyValues, qn as isSingleDynamicReferenceToken, qt as pathCrossesDottedKey, ut as hasMaskableValues, v as isMarkedCoordinate, vn as recordPhysicalNameCopy, vt as shareLogOnlyValues, w as noEchoCoordinatesOf, wn as carriesSecretMask, wt as maskSecretsInText, x as maskWholeValue, xt as errorCauseChain, y as maskAtCoordinates, yn as recordNestedStackParameterExpressions, yt as unionOfSecretBags, zn as recordMaskOnlyValuesIn, zt as isUncertifiedBaselineMaskPosition } from "./replacement-rules-BArdRPgU.js";
|
|
16
|
+
import { S as unsettledPropertiesOf, T as withoutUnsettledProperties, b as unsettledItemsOf, w as withUnsettledProperties, y as unsettledItemsField } from "./restore-source-guard-k9BQAviV.js";
|
|
17
|
+
import { u as differingIdentityWarning } from "./identity-read-denied-C17mECu-.js";
|
|
18
|
+
import { n as isRedactedRecordedValue } from "./redacted-delete-address-S_A40Diz.js";
|
|
19
|
+
import { a as withResourceDeadline } from "./resource-deadline-DWvjidOS.js";
|
|
20
|
+
import { a as parseEcrRegistryHost, i as looksLikeEcrHostWithForeignSuffix, n as hasEcrRegistryHostLabels, t as ecrRegistryHostPattern } from "./ecr-uri-C0JbYdmm.js";
|
|
21
21
|
import { t as cdkdCacheHome } from "./cache-home-BVYKj3de.js";
|
|
22
22
|
import { randomBytes, randomUUID } from "node:crypto";
|
|
23
23
|
import { CopyObjectCommand, CreateBucketCommand, DeleteBucketCommand, DeleteObjectsCommand, GetBucketLocationCommand, GetObjectCommand, HeadBucketCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchBucket, NotFound, PutBucketEncryptionCommand, PutBucketPolicyCommand, PutBucketVersioningCommand, PutObjectCommand, S3Client, S3ServiceException } from "@aws-sdk/client-s3";
|
|
@@ -1595,7 +1595,7 @@ function collectCrossStackRefs(node, onRef, unconditional) {
|
|
|
1595
1595
|
// src/provisioning/register-providers.ts
|
|
1596
1596
|
let providerClasses;
|
|
1597
1597
|
function loadProviderClasses() {
|
|
1598
|
-
providerClasses ??= import("./provider-classes-
|
|
1598
|
+
providerClasses ??= import("./provider-classes-BiWcIBLc.js");
|
|
1599
1599
|
return providerClasses;
|
|
1600
1600
|
}
|
|
1601
1601
|
function registerAllProviders(registry, classes) {
|
|
@@ -2626,6 +2626,29 @@ async function addStacksToWorkGraph(args) {
|
|
|
2626
2626
|
}
|
|
2627
2627
|
}
|
|
2628
2628
|
|
|
2629
|
+
// src/cli/commands/deploy/replace-resource-checks.ts
|
|
2630
|
+
function checkReplaceResourceOptions(options, targetStacks) {
|
|
2631
|
+
const ids = options.replaceResource ?? [];
|
|
2632
|
+
if (ids.length === 0) return;
|
|
2633
|
+
const problems = [];
|
|
2634
|
+
const recreate = new Set([options.recreateViaCcApi ?? [], options.recreateViaSdkProvider ?? []].flat());
|
|
2635
|
+
for (const id of new Set(ids)) {
|
|
2636
|
+
const declaring = targetStacks.filter((stack) => Object.hasOwn(stack.template.Resources ?? {}, id)).map((stack) => stack.stackName);
|
|
2637
|
+
if (declaring.length === 0) problems.push(safeMsg` - ${id}: no stack of this deploy declares it (the flag reaches a top-level stack's resources only, not a nested stack's)`);
|
|
2638
|
+
else if (declaring.length > 1) problems.push(safeMsg` - ${id}: declared by ${declaring.join(", ")}; deploy one of them alone to replace it there`);
|
|
2639
|
+
if (recreate.has(id)) problems.push(safeMsg` - ${id}: also named by --recreate-via-*, which destroys and recreates it already; pass one`);
|
|
2640
|
+
}
|
|
2641
|
+
if (problems.length === 0) return;
|
|
2642
|
+
throw new CdkdError(`--replace-resource must name exactly one resource of this deploy:\n${problems.join("\n")}`, "REPLACE_RESOURCE_INVALID");
|
|
2643
|
+
}
|
|
2644
|
+
function replaceResourcesForStack(ids, stackName, template) {
|
|
2645
|
+
const own = (ids ?? []).filter((id) => Object.hasOwn(template.Resources ?? {}, id));
|
|
2646
|
+
return own.length > 0 ? {
|
|
2647
|
+
stackName,
|
|
2648
|
+
logicalIds: new Set(own)
|
|
2649
|
+
} : void 0;
|
|
2650
|
+
}
|
|
2651
|
+
|
|
2629
2652
|
// src/deployment/recreate-targets/validate.ts
|
|
2630
2653
|
const EMPTY_ALLOW_SET$1 = /* @__PURE__ */ new Set();
|
|
2631
2654
|
const NESTED_STACK_RESOURCE_TYPE$1 = "AWS::CloudFormation::Stack";
|
|
@@ -3345,6 +3368,7 @@ async function deployStackInScope(ctx, stackInfo, stackRegion, stackAwsClients)
|
|
|
3345
3368
|
guard: crossPrefixGuard,
|
|
3346
3369
|
backend: preflightStateBackend
|
|
3347
3370
|
});
|
|
3371
|
+
const replaceResources = replaceResourcesForStack(options.replaceResource, stackInfo.stackName, stackInfo.template);
|
|
3348
3372
|
let recreateTargets;
|
|
3349
3373
|
if (options.recreateViaCcApi?.length || options.recreateViaSdkProvider?.length) {
|
|
3350
3374
|
const stateForRecreateCheck = await stackStateBackend.getState(stackInfo.stackName, stackRegion);
|
|
@@ -3436,6 +3460,7 @@ async function deployStackInScope(ctx, stackInfo, stackRegion, stackAwsClients)
|
|
|
3436
3460
|
} },
|
|
3437
3461
|
...recreateTargets && (recreateTargets.viaCcApi.size > 0 || recreateTargets.viaSdkProvider.size > 0) && { recreateTargets },
|
|
3438
3462
|
...options.replace && { replace: true },
|
|
3463
|
+
...replaceResources && { replaceResources },
|
|
3439
3464
|
...options.forceStatefulRecreation && { forceStatefulRecreation: true },
|
|
3440
3465
|
...options.skipFinalSnapshot && { skipFinalSnapshot: true },
|
|
3441
3466
|
finalSnapshotClients: stackAwsClients,
|
|
@@ -3860,6 +3885,7 @@ async function deployCommand(stacks, options) {
|
|
|
3860
3885
|
...consumerHold !== void 0 && { consumerHold }
|
|
3861
3886
|
};
|
|
3862
3887
|
checkPinCcApiOptions(options, targetStacks, logger);
|
|
3888
|
+
checkReplaceResourceOptions(options, targetStacks);
|
|
3863
3889
|
runClock.lap("work graph build, recreate checks");
|
|
3864
3890
|
let workGraphCompleted = false;
|
|
3865
3891
|
let heldFailure;
|
|
@@ -5349,6 +5375,39 @@ function computeOutputsDiff(current, desired, exportNames, secretSourceKeys = /*
|
|
|
5349
5375
|
// src/cli/commands/diff-recursive/logger.ts
|
|
5350
5376
|
const logger = getLogger().child("DiffRecursive");
|
|
5351
5377
|
|
|
5378
|
+
// src/cli/commands/diff-recursive/preview-record-heals.ts
|
|
5379
|
+
function previewSsmNameHeal(state, template, stackName, mode) {
|
|
5380
|
+
const healed = healSlashedSsmParameterNames(state, template, stackName);
|
|
5381
|
+
if (healed.heals.length === 0) return state;
|
|
5382
|
+
for (const heal of healed.heals) if (mode === "apply") logger.info(slashedSsmNameHealNote(heal));
|
|
5383
|
+
else logger.info(slashedSsmNameHealPendingNote(heal, stackName));
|
|
5384
|
+
return mode === "apply" ? {
|
|
5385
|
+
...state,
|
|
5386
|
+
resources: healed.resources
|
|
5387
|
+
} : state;
|
|
5388
|
+
}
|
|
5389
|
+
function noteAdoptedSsmNameHeals(state, adoptedRecords, template, stackName) {
|
|
5390
|
+
if (Object.keys(adoptedRecords ?? {}).length === 0) return;
|
|
5391
|
+
const adopted = {
|
|
5392
|
+
...state,
|
|
5393
|
+
resources: adoptedRecords ?? {}
|
|
5394
|
+
};
|
|
5395
|
+
for (const heal of healSlashedSsmParameterNames(adopted, template, stackName).heals) logger.info(slashedSsmNameHealAdoptedNote(heal));
|
|
5396
|
+
}
|
|
5397
|
+
async function previewZonelessDbInstanceHeal(state, template, resolve, readLiveZone) {
|
|
5398
|
+
const resources = { ...state.resources };
|
|
5399
|
+
return (await healZonelessDbInstanceRecords({
|
|
5400
|
+
resources,
|
|
5401
|
+
template,
|
|
5402
|
+
resolve,
|
|
5403
|
+
readLiveZone,
|
|
5404
|
+
log: (line, level) => logger[level](line)
|
|
5405
|
+
})).length === 0 ? state : {
|
|
5406
|
+
...state,
|
|
5407
|
+
resources
|
|
5408
|
+
};
|
|
5409
|
+
}
|
|
5410
|
+
|
|
5352
5411
|
// src/cli/commands/diff-recursive/trust.ts
|
|
5353
5412
|
const STABLE_PSEUDO_PARAMETERS = /* @__PURE__ */ new Set([
|
|
5354
5413
|
"AWS::Region",
|
|
@@ -5957,18 +6016,8 @@ async function previewNoEchoMacChanges(args) {
|
|
|
5957
6016
|
|
|
5958
6017
|
// src/cli/commands/diff-recursive/compute-stack-diff.ts
|
|
5959
6018
|
async function computeStackDiff(loadedState, template, region, stackName, stateBackend, diffCalculator, options = {}) {
|
|
5960
|
-
const { parameters, canonicalizeProperties, ccRouteUnavailableReason, cfnFallback, producerLookup, consumerAccount, noEchoMacCache, macWriteOnlyLookups, inheritSecretBearingTemplate, inheritedSecrets, inheritedSecretTokens, inheritedDerivedNames, attributeHealer: unboundAttributeHealer, parentUnresolvedParameters, inheritedNoEchoParameters, inheritedNoEchoParametersAnyVerdict, ssmNameHeal = "apply", crossStackPreview, recordCrossStackPreview } = options;
|
|
5961
|
-
const
|
|
5962
|
-
const healed = healSlashedSsmParameterNames(state, template, stackName);
|
|
5963
|
-
if (healed.heals.length === 0) return state;
|
|
5964
|
-
for (const heal of healed.heals) if (ssmNameHeal === "apply") logger.info(slashedSsmNameHealNote(heal));
|
|
5965
|
-
else logger.info(slashedSsmNameHealPendingNote(heal, stackName));
|
|
5966
|
-
return ssmNameHeal === "apply" ? {
|
|
5967
|
-
...state,
|
|
5968
|
-
resources: healed.resources
|
|
5969
|
-
} : state;
|
|
5970
|
-
};
|
|
5971
|
-
const currentState = healSsmNames(loadedState);
|
|
6019
|
+
const { parameters, canonicalizeProperties, ccRouteUnavailableReason, cfnFallback, producerLookup, consumerAccount, noEchoMacCache, macWriteOnlyLookups, inheritSecretBearingTemplate, inheritedSecrets, inheritedSecretTokens, inheritedDerivedNames, attributeHealer: unboundAttributeHealer, readLiveDbInstanceZone, parentUnresolvedParameters, inheritedNoEchoParameters, inheritedNoEchoParametersAnyVerdict, ssmNameHeal = "apply", crossStackPreview, recordCrossStackPreview } = options;
|
|
6020
|
+
const currentState = previewSsmNameHeal(loadedState, template, stackName, ssmNameHeal);
|
|
5972
6021
|
let healResources = currentState.resources ?? {};
|
|
5973
6022
|
let healNamingSecrets;
|
|
5974
6023
|
const attributeHealer = unboundAttributeHealer && healerUnderRecordPrintingBag(unboundAttributeHealer, () => healResources, (map) => healNamingSecrets?.(map));
|
|
@@ -6082,14 +6131,8 @@ async function computeStackDiff(loadedState, template, region, stackName, stateB
|
|
|
6082
6131
|
}
|
|
6083
6132
|
});
|
|
6084
6133
|
const { adoptedOrphans, adoptedRecords, deployRefusals, unreadableOrphans } = orphanSplice;
|
|
6085
|
-
const
|
|
6086
|
-
|
|
6087
|
-
const adopted = {
|
|
6088
|
-
...currentState,
|
|
6089
|
-
resources: adoptedRecords
|
|
6090
|
-
};
|
|
6091
|
-
for (const heal of healSlashedSsmParameterNames(adopted, template, stackName).heals) logger.info(slashedSsmNameHealAdoptedNote(heal));
|
|
6092
|
-
}
|
|
6134
|
+
const stateForDiff = await previewZonelessDbInstanceHeal(orphanSplice.stateForDiff, effectiveTemplate, resolveFn, readLiveDbInstanceZone);
|
|
6135
|
+
noteAdoptedSsmNameHeals(currentState, adoptedRecords, template, stackName);
|
|
6093
6136
|
let { blocking } = orphanSplice;
|
|
6094
6137
|
let maskedInputs;
|
|
6095
6138
|
if (options.previewMaskedInputs === true) {
|
|
@@ -6355,6 +6398,337 @@ async function loadStateOrEmpty(stackName, region, stateBackend, refusalRecovery
|
|
|
6355
6398
|
};
|
|
6356
6399
|
}
|
|
6357
6400
|
|
|
6401
|
+
// src/cli/commands/diff-recursive/passed-secret-display.ts
|
|
6402
|
+
function isRecord$2(value) {
|
|
6403
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
6404
|
+
}
|
|
6405
|
+
function isIntrinsic$2(value) {
|
|
6406
|
+
const keys = Object.keys(value);
|
|
6407
|
+
return keys.length === 1 && (keys[0] === "Ref" || keys[0].startsWith("Fn::"));
|
|
6408
|
+
}
|
|
6409
|
+
const SIDES = [
|
|
6410
|
+
"oldValue",
|
|
6411
|
+
"newValue",
|
|
6412
|
+
"newValueTemplate"
|
|
6413
|
+
];
|
|
6414
|
+
function recordOf(value) {
|
|
6415
|
+
return isRecord$2(value) ? value : {};
|
|
6416
|
+
}
|
|
6417
|
+
function mixesDynamicReference(value) {
|
|
6418
|
+
return typeof value === "string" && value.includes("{{resolve:") && !isSingleDynamicReferenceToken(value);
|
|
6419
|
+
}
|
|
6420
|
+
function holdsMixedDynamicReference(value) {
|
|
6421
|
+
const pending = [value];
|
|
6422
|
+
const seen = /* @__PURE__ */ new Set();
|
|
6423
|
+
while (pending.length > 0) {
|
|
6424
|
+
const next = pending.pop();
|
|
6425
|
+
if (mixesDynamicReference(next)) return true;
|
|
6426
|
+
if (next === null || typeof next !== "object" || seen.has(next)) continue;
|
|
6427
|
+
seen.add(next);
|
|
6428
|
+
if (Array.isArray(next)) pending.push(...next);
|
|
6429
|
+
else for (const [key, leaf] of Object.entries(next)) pending.push(key, leaf);
|
|
6430
|
+
}
|
|
6431
|
+
return false;
|
|
6432
|
+
}
|
|
6433
|
+
function holdsDynamicReference(value) {
|
|
6434
|
+
const pending = [value];
|
|
6435
|
+
const seen = /* @__PURE__ */ new Set();
|
|
6436
|
+
while (pending.length > 0) {
|
|
6437
|
+
const next = pending.pop();
|
|
6438
|
+
if (typeof next === "string" && next.includes("{{resolve:")) return true;
|
|
6439
|
+
if (next === null || typeof next !== "object" || seen.has(next)) continue;
|
|
6440
|
+
seen.add(next);
|
|
6441
|
+
pending.push(...Object.values(next));
|
|
6442
|
+
}
|
|
6443
|
+
return false;
|
|
6444
|
+
}
|
|
6445
|
+
function templateMixesDynamicReference(value, depth = 0) {
|
|
6446
|
+
if (typeof value === "string") return mixesDynamicReference(value);
|
|
6447
|
+
if (!isRecord$2(value) || depth > 64) return holdsDynamicReference(value);
|
|
6448
|
+
const branches = value["Fn::If"];
|
|
6449
|
+
if (isIntrinsic$2(value) && Array.isArray(branches) && branches.length === 3) return templateMixesDynamicReference(branches[1], depth + 1) || templateMixesDynamicReference(branches[2], depth + 1);
|
|
6450
|
+
return holdsDynamicReference(value);
|
|
6451
|
+
}
|
|
6452
|
+
function rowEntries(rowProperties) {
|
|
6453
|
+
const entries = Object.entries(recordOf(rowProperties["Parameters"]));
|
|
6454
|
+
const tags = rowProperties["Tags"];
|
|
6455
|
+
if (Array.isArray(tags)) for (const tag of tags) entries.push([recordOf(tag)["Key"], recordOf(tag)["Value"]]);
|
|
6456
|
+
else entries.push(...Object.entries(recordOf(tags)));
|
|
6457
|
+
return entries;
|
|
6458
|
+
}
|
|
6459
|
+
const ANY_TAG_KEY = "*";
|
|
6460
|
+
const TAG_KEYS_TAINTED = "*key*";
|
|
6461
|
+
function readsTainted(node, tainted) {
|
|
6462
|
+
if (tainted.size === 0) return false;
|
|
6463
|
+
return readsNoEchoSource(node, {
|
|
6464
|
+
parameters: tainted,
|
|
6465
|
+
attributeIsNoEcho: (logicalId) => tainted.has(logicalId)
|
|
6466
|
+
});
|
|
6467
|
+
}
|
|
6468
|
+
function mixedSecretRowKeys(rowProperties, resolvedChildParameters, tainted) {
|
|
6469
|
+
const keys = /* @__PURE__ */ new Set();
|
|
6470
|
+
for (const [key, value] of Object.entries(recordOf(rowProperties?.["Parameters"]))) if (readsTainted(value, tainted)) keys.add(key);
|
|
6471
|
+
for (const [key, value] of Object.entries(resolvedChildParameters)) if (mixesDynamicReference(value)) keys.add(key);
|
|
6472
|
+
return keys;
|
|
6473
|
+
}
|
|
6474
|
+
function taintedNamesOf(template, passed) {
|
|
6475
|
+
const tainted = new Set(passed ?? []);
|
|
6476
|
+
const resources = recordOf(template.Resources);
|
|
6477
|
+
for (const [logicalId, raw] of Object.entries(resources)) {
|
|
6478
|
+
const resource = recordOf(raw);
|
|
6479
|
+
if (resource["Type"] !== "AWS::CloudFormation::Stack") continue;
|
|
6480
|
+
if (rowEntries(recordOf(resource["Properties"])).some(([, value]) => templateMixesDynamicReference(value))) tainted.add(logicalId);
|
|
6481
|
+
}
|
|
6482
|
+
if (tainted.size === 0) return tainted;
|
|
6483
|
+
let grew = true;
|
|
6484
|
+
while (grew) {
|
|
6485
|
+
grew = false;
|
|
6486
|
+
for (const [logicalId, resource] of Object.entries(resources)) {
|
|
6487
|
+
if (tainted.has(logicalId)) continue;
|
|
6488
|
+
if (readsTainted(recordOf(resource)["Properties"], tainted)) {
|
|
6489
|
+
tainted.add(logicalId);
|
|
6490
|
+
grew = true;
|
|
6491
|
+
}
|
|
6492
|
+
}
|
|
6493
|
+
}
|
|
6494
|
+
return tainted;
|
|
6495
|
+
}
|
|
6496
|
+
function mixedSecretTagKeys(rowProperties, resolvedTags, tainted, inherited) {
|
|
6497
|
+
const keys = new Set(inherited ?? []);
|
|
6498
|
+
const tags = rowProperties?.["Tags"];
|
|
6499
|
+
const pairs = Array.isArray(tags) ? tags.map((tag) => [recordOf(tag)["Key"], recordOf(tag)["Value"]]) : Object.entries(recordOf(tags));
|
|
6500
|
+
const derived = (node) => templateMixesDynamicReference(node) || readsTainted(node, tainted);
|
|
6501
|
+
for (const [key, value] of pairs) if (typeof key === "string" ? mixesDynamicReference(key) : derived(key)) keys.add("*").add(TAG_KEYS_TAINTED);
|
|
6502
|
+
else if (derived(value)) keys.add(typeof key === "string" ? key : "*");
|
|
6503
|
+
for (const [key, value] of Object.entries(resolvedTags ?? {})) if (mixesDynamicReference(key)) keys.add("*").add(TAG_KEYS_TAINTED);
|
|
6504
|
+
else if (mixesDynamicReference(value)) keys.add(key);
|
|
6505
|
+
return keys;
|
|
6506
|
+
}
|
|
6507
|
+
function maskTagValues(value, keys, isMap) {
|
|
6508
|
+
const named = (key) => keys.has("*") || typeof key === "string" && keys.has(key);
|
|
6509
|
+
if (Array.isArray(value)) {
|
|
6510
|
+
const shown = value.map((element) => maskTagValues(element, keys, false));
|
|
6511
|
+
return shown.every((element, index) => element === value[index]) ? value : shown;
|
|
6512
|
+
}
|
|
6513
|
+
if (!isRecord$2(value)) return value;
|
|
6514
|
+
const isEntry = Object.hasOwn(value, "Key") && Object.hasOwn(value, "Value");
|
|
6515
|
+
if (!isEntry && isMap && keys.has("*key*")) return "***";
|
|
6516
|
+
let changed = false;
|
|
6517
|
+
const shown = {};
|
|
6518
|
+
for (const [key, leaf] of Object.entries(value)) {
|
|
6519
|
+
let next;
|
|
6520
|
+
if (isEntry && key === "Key" && keys.has("*key*")) next = "***";
|
|
6521
|
+
else if (isEntry && key === "Value" && named(value["Key"])) next = "***";
|
|
6522
|
+
else if (isMap && named(key) && !isRecord$2(leaf) && !Array.isArray(leaf)) next = "***";
|
|
6523
|
+
else next = maskTagValues(leaf, keys, /tag/i.test(key));
|
|
6524
|
+
if (next !== leaf) changed = true;
|
|
6525
|
+
shown[key] = next;
|
|
6526
|
+
}
|
|
6527
|
+
return changed ? shown : value;
|
|
6528
|
+
}
|
|
6529
|
+
function maskTagProperty(change, keys) {
|
|
6530
|
+
if (keys.size === 0 || !/tag/i.test(change.path)) return change;
|
|
6531
|
+
const next = { ...change };
|
|
6532
|
+
let changed = false;
|
|
6533
|
+
for (const side of SIDES) {
|
|
6534
|
+
if (!Object.prototype.hasOwnProperty.call(change, side) || change[side] === void 0) continue;
|
|
6535
|
+
const shown = maskTagValues(change[side], keys, true);
|
|
6536
|
+
if (shown !== change[side]) {
|
|
6537
|
+
next[side] = shown;
|
|
6538
|
+
changed = true;
|
|
6539
|
+
}
|
|
6540
|
+
}
|
|
6541
|
+
return changed ? next : change;
|
|
6542
|
+
}
|
|
6543
|
+
function labelledWhenMaskedAlike(real, shown) {
|
|
6544
|
+
const alike = (change) => JSON.stringify(change.oldValue) === JSON.stringify(change.newValue);
|
|
6545
|
+
return alike(shown) && !alike(real) ? {
|
|
6546
|
+
...shown,
|
|
6547
|
+
maskedExpressionChanged: true
|
|
6548
|
+
} : shown;
|
|
6549
|
+
}
|
|
6550
|
+
function maskedSides(change) {
|
|
6551
|
+
const masked = { ...change };
|
|
6552
|
+
if (masked.oldValue !== void 0) masked.oldValue = "***";
|
|
6553
|
+
if (masked.newValue !== void 0) masked.newValue = "***";
|
|
6554
|
+
if (masked.newValueTemplate !== void 0) masked.newValueTemplate = "***";
|
|
6555
|
+
return masked;
|
|
6556
|
+
}
|
|
6557
|
+
function maskParameterKeys(side, flagged) {
|
|
6558
|
+
let changed = false;
|
|
6559
|
+
const shown = {};
|
|
6560
|
+
for (const [key, value] of Object.entries(side)) if (value !== "***" && flagged.has(key)) {
|
|
6561
|
+
shown[key] = "***";
|
|
6562
|
+
changed = true;
|
|
6563
|
+
} else shown[key] = value;
|
|
6564
|
+
return changed ? shown : side;
|
|
6565
|
+
}
|
|
6566
|
+
function maskRowParameters(change, templateValue, tainted) {
|
|
6567
|
+
const present = SIDES.filter((side) => Object.prototype.hasOwnProperty.call(change, side) && change[side] !== void 0);
|
|
6568
|
+
if ((!isRecord$2(templateValue) || isIntrinsic$2(templateValue)) && readsTainted(templateValue, tainted) || present.some((side) => !isRecord$2(change[side]) && holdsMixedDynamicReference(change[side]))) return maskedSides(change);
|
|
6569
|
+
const raw = recordOf(templateValue);
|
|
6570
|
+
const flagged = /* @__PURE__ */ new Set();
|
|
6571
|
+
for (const [key, value] of Object.entries(raw)) if (readsTainted(value, tainted)) flagged.add(key);
|
|
6572
|
+
for (const side of present) for (const [key, value] of Object.entries(recordOf(change[side]))) if (holdsMixedDynamicReference(value)) flagged.add(key);
|
|
6573
|
+
if (flagged.size === 0) return change;
|
|
6574
|
+
const next = { ...change };
|
|
6575
|
+
let changed = false;
|
|
6576
|
+
for (const side of present) {
|
|
6577
|
+
const value = change[side];
|
|
6578
|
+
if (!isRecord$2(value)) continue;
|
|
6579
|
+
const shown = maskParameterKeys(value, flagged);
|
|
6580
|
+
if (shown !== value) {
|
|
6581
|
+
next[side] = shown;
|
|
6582
|
+
changed = true;
|
|
6583
|
+
}
|
|
6584
|
+
}
|
|
6585
|
+
return changed ? next : change;
|
|
6586
|
+
}
|
|
6587
|
+
function maskPassedSecretChanges(changes, template, tainted, tagKeys = /* @__PURE__ */ new Set()) {
|
|
6588
|
+
const resources = recordOf(template.Resources);
|
|
6589
|
+
let anyChanged = false;
|
|
6590
|
+
const shown = /* @__PURE__ */ new Map();
|
|
6591
|
+
for (const [logicalId, change] of changes) {
|
|
6592
|
+
const resource = recordOf(Object.hasOwn(resources, logicalId) ? resources[logicalId] : void 0);
|
|
6593
|
+
const properties = recordOf(resource["Properties"]);
|
|
6594
|
+
const isNestedRow = change.resourceType === "AWS::CloudFormation::Stack" || resource["Type"] === "AWS::CloudFormation::Stack";
|
|
6595
|
+
let changed = false;
|
|
6596
|
+
const propertyChanges = change.propertyChanges?.map((propertyChange) => {
|
|
6597
|
+
const templateValue = Object.hasOwn(properties, propertyChange.path) ? properties[propertyChange.path] : void 0;
|
|
6598
|
+
const next = isNestedRow && propertyChange.path === "Parameters" ? maskRowParameters(propertyChange, templateValue, tainted) : readsTainted(templateValue, tainted) || isNestedRow && SIDES.some((side) => holdsMixedDynamicReference(propertyChange[side])) ? maskedSides(propertyChange) : maskTagProperty(propertyChange, tagKeys);
|
|
6599
|
+
if (next === propertyChange) return next;
|
|
6600
|
+
changed = true;
|
|
6601
|
+
return labelledWhenMaskedAlike(propertyChange, next);
|
|
6602
|
+
});
|
|
6603
|
+
if (changed && propertyChanges !== void 0) {
|
|
6604
|
+
anyChanged = true;
|
|
6605
|
+
shown.set(logicalId, {
|
|
6606
|
+
...change,
|
|
6607
|
+
propertyChanges
|
|
6608
|
+
});
|
|
6609
|
+
} else shown.set(logicalId, change);
|
|
6610
|
+
}
|
|
6611
|
+
return anyChanged ? shown : changes;
|
|
6612
|
+
}
|
|
6613
|
+
function maskPassedSecretOutputs(outputChanges, template, tainted) {
|
|
6614
|
+
if (tainted.size === 0 || outputChanges.length === 0) return outputChanges;
|
|
6615
|
+
const outputs = recordOf(template.Outputs);
|
|
6616
|
+
const taintedValues = /* @__PURE__ */ new Set();
|
|
6617
|
+
let taintedExportValue = false;
|
|
6618
|
+
let taintedExportName = false;
|
|
6619
|
+
for (const [name, rawOutput] of Object.entries(outputs)) {
|
|
6620
|
+
const output = recordOf(rawOutput);
|
|
6621
|
+
const exported = isRecord$2(output["Export"]) ? output["Export"] : void 0;
|
|
6622
|
+
if (readsTainted(output["Value"], tainted)) {
|
|
6623
|
+
taintedValues.add(name);
|
|
6624
|
+
if (exported !== void 0) taintedExportValue = true;
|
|
6625
|
+
}
|
|
6626
|
+
if (exported !== void 0 && readsTainted(exported["Name"], tainted)) taintedExportName = true;
|
|
6627
|
+
}
|
|
6628
|
+
let anyChanged = false;
|
|
6629
|
+
const shown = outputChanges.map((change) => {
|
|
6630
|
+
const maskValues = Object.hasOwn(outputs, change.name) && taintedValues.has(change.name) || change.isExport && taintedExportValue;
|
|
6631
|
+
const withholdName = change.isExport && taintedExportName;
|
|
6632
|
+
if (!maskValues && !withholdName) return change;
|
|
6633
|
+
const next = { ...change };
|
|
6634
|
+
if (maskValues) {
|
|
6635
|
+
if (next.oldValue !== void 0) next.oldValue = "***";
|
|
6636
|
+
if (next.newValue !== void 0) next.newValue = "***";
|
|
6637
|
+
}
|
|
6638
|
+
if (withholdName) next.nameDisplay = { kind: "withheld" };
|
|
6639
|
+
anyChanged = true;
|
|
6640
|
+
return next;
|
|
6641
|
+
});
|
|
6642
|
+
return anyChanged ? shown : outputChanges;
|
|
6643
|
+
}
|
|
6644
|
+
function calculatorMaskingPassedSecretLines(calculator, template, tainted) {
|
|
6645
|
+
if (tainted.size === 0) return calculator;
|
|
6646
|
+
const prefixes = [];
|
|
6647
|
+
for (const rawResource of Object.values(recordOf(template.Resources))) {
|
|
6648
|
+
const resource = recordOf(rawResource);
|
|
6649
|
+
if (typeof resource["Type"] !== "string") continue;
|
|
6650
|
+
for (const [key, value] of Object.entries(recordOf(resource["Properties"]))) if (readsTainted(value, tainted)) prefixes.push(`Property ${key} of ${resource["Type"]} requires replacement (from `);
|
|
6651
|
+
}
|
|
6652
|
+
if (prefixes.length === 0) return calculator;
|
|
6653
|
+
const inner = calculator.logger;
|
|
6654
|
+
const logger = Object.create(inner);
|
|
6655
|
+
logger.debug = (message, ...args) => {
|
|
6656
|
+
const prefix = prefixes.find((candidate) => message.startsWith(candidate));
|
|
6657
|
+
inner.debug(prefix === void 0 ? message : `${prefix}${"***"} to ${"***"})`, ...args);
|
|
6658
|
+
};
|
|
6659
|
+
const wrapped = Object.create(calculator);
|
|
6660
|
+
Object.defineProperty(wrapped, "logger", {
|
|
6661
|
+
value: logger,
|
|
6662
|
+
enumerable: true
|
|
6663
|
+
});
|
|
6664
|
+
return wrapped;
|
|
6665
|
+
}
|
|
6666
|
+
function recordedValuesOf(resources, tainted) {
|
|
6667
|
+
const needles = /* @__PURE__ */ new Map();
|
|
6668
|
+
for (const name of tainted) {
|
|
6669
|
+
const record = Object.hasOwn(resources, name) ? resources[name] : void 0;
|
|
6670
|
+
if (record === void 0) continue;
|
|
6671
|
+
const pending = [record.physicalId, record.attributes];
|
|
6672
|
+
const seen = /* @__PURE__ */ new Set();
|
|
6673
|
+
while (pending.length > 0) {
|
|
6674
|
+
const next = pending.pop();
|
|
6675
|
+
if (typeof next === "string") {
|
|
6676
|
+
if (next.length > 0 && next !== "***") recordLogOnlyValue(needles, next);
|
|
6677
|
+
} else if (next !== null && typeof next === "object" && !seen.has(next)) {
|
|
6678
|
+
seen.add(next);
|
|
6679
|
+
pending.push(...Object.values(next));
|
|
6680
|
+
}
|
|
6681
|
+
}
|
|
6682
|
+
}
|
|
6683
|
+
return needles;
|
|
6684
|
+
}
|
|
6685
|
+
function securityDiffWithPassedSecretWithheld(securityDiff, changes, template, tainted) {
|
|
6686
|
+
const resources = recordOf(template.Resources);
|
|
6687
|
+
if (![...changes.values()].some((change) => {
|
|
6688
|
+
if (change.changeType === "NO_CHANGE" || !tainted.has(change.logicalId)) return false;
|
|
6689
|
+
const properties = recordOf(recordOf(Object.hasOwn(resources, change.logicalId) ? resources[change.logicalId] : void 0)["Properties"]);
|
|
6690
|
+
return (change.propertyChanges ?? []).some((propertyChange) => isScrutinizedProperty(change.resourceType, propertyChange.path) && Object.hasOwn(properties, propertyChange.path) && readsTainted(properties[propertyChange.path], tainted));
|
|
6691
|
+
})) return securityDiff;
|
|
6692
|
+
return async () => {
|
|
6693
|
+
const shown = await securityDiff();
|
|
6694
|
+
if (shown.rendered === "") return shown;
|
|
6695
|
+
return {
|
|
6696
|
+
...shown,
|
|
6697
|
+
rendered: SECURITY_TABLE_WITHHELD
|
|
6698
|
+
};
|
|
6699
|
+
};
|
|
6700
|
+
}
|
|
6701
|
+
const SECURITY_TABLE_WITHHELD = "IAM / security-group changes found; their table is withheld because this stack reads a parameter passed with a secret dynamic reference (go-to-k/cdkd#7068).";
|
|
6702
|
+
function maskPassedSecretReasons(reasons, template, tainted, orphans) {
|
|
6703
|
+
if (tainted.size === 0 || reasons.length === 0) return reasons;
|
|
6704
|
+
const resources = recordOf(template.Resources);
|
|
6705
|
+
const tokenPrefixes = [];
|
|
6706
|
+
for (const logicalId of tainted) {
|
|
6707
|
+
if (!Object.hasOwn(resources, logicalId)) continue;
|
|
6708
|
+
if (readsTainted(recordOf(recordOf(resources[logicalId])["Properties"])["ServiceToken"], tainted)) tokenPrefixes.push(`${displayIdent(logicalId)}: ServiceToken changes to `);
|
|
6709
|
+
}
|
|
6710
|
+
const shownIds = [];
|
|
6711
|
+
for (const orphan of Array.isArray(orphans) ? orphans : []) {
|
|
6712
|
+
const entry = recordOf(orphan);
|
|
6713
|
+
const record = recordOf(entry["state"]);
|
|
6714
|
+
if (typeof entry["logicalId"] !== "string" || !tainted.has(entry["logicalId"])) continue;
|
|
6715
|
+
if (typeof record["physicalId"] !== "string" || record["physicalId"] === "") continue;
|
|
6716
|
+
shownIds.push(displaySafe(String(displayPhysicalId(record["resourceType"], record["physicalId"]))));
|
|
6717
|
+
}
|
|
6718
|
+
let changed = false;
|
|
6719
|
+
const shown = reasons.map((reason) => {
|
|
6720
|
+
let next = reason;
|
|
6721
|
+
const prefix = tokenPrefixes.find((candidate) => next.startsWith(candidate));
|
|
6722
|
+
const end = next.indexOf(SERVICE_TOKEN_REASON_TAIL);
|
|
6723
|
+
if (prefix !== void 0 && end > prefix.length) next = `${prefix}${"***"}${next.slice(end)}`;
|
|
6724
|
+
for (const id of shownIds) next = next.split(id).join("***");
|
|
6725
|
+
if (next !== reason) changed = true;
|
|
6726
|
+
return next;
|
|
6727
|
+
});
|
|
6728
|
+
return changed ? shown : reasons;
|
|
6729
|
+
}
|
|
6730
|
+
const SERVICE_TOKEN_REASON_TAIL = ", away from the handler its record names.";
|
|
6731
|
+
|
|
6358
6732
|
// src/cli/commands/diff-recursive/routes.ts
|
|
6359
6733
|
const SDK_MIGRATION_TOKEN = "returning to SDK provider";
|
|
6360
6734
|
function diffReplaces(change, record) {
|
|
@@ -6394,7 +6768,7 @@ function childRowRunsEngine(row) {
|
|
|
6394
6768
|
return row?.changeType === "UPDATE" && (row.propertyChanges?.length ?? 0) > 0;
|
|
6395
6769
|
}
|
|
6396
6770
|
async function buildDiffTree(args) {
|
|
6397
|
-
const { stackName, displayName, region, template: synthTemplate, nestedTemplates, recursive, stateBackend, diffCalculator, parentHasSecretReference, parameters, parentUnresolvedParameters, canonicalizeProperties, ccRouteUnavailableReason, assetRedirect, cfnFallback, updatePolicy, createRouteOf, producerLookup, crossStackPreview, consumerAccount, previewOrphanAdoption, attributeHealerFor, ancestorTemplatePaths, isNestedChild, ssmNameHeal, inheritedSecrets, inheritedDerivedNames, inheritedNoEchoParameters, inheritedNoEchoParametersAnyVerdict, refusalRecovery, inheritedReferenceProvenance, inheritedSecretTokens, stackTags } = args;
|
|
6771
|
+
const { stackName, displayName, region, template: synthTemplate, nestedTemplates, recursive, stateBackend, diffCalculator, parentHasSecretReference, parameters, parentUnresolvedParameters, canonicalizeProperties, ccRouteUnavailableReason, assetRedirect, cfnFallback, updatePolicy, createRouteOf, producerLookup, crossStackPreview, consumerAccount, previewOrphanAdoption, attributeHealerFor, liveDbInstanceZoneReaderFor, ancestorTemplatePaths, isNestedChild, ssmNameHeal, inheritedSecrets, inheritedDerivedNames, inheritedNoEchoParameters, inheritedNoEchoParametersAnyVerdict, refusalRecovery, inheritedReferenceProvenance, inheritedSecretTokens, stackTags, inheritedMixedSecretParameters, inheritedMixedSecretTagKeys } = args;
|
|
6398
6772
|
const unboundHealer = attributeHealerFor?.(stackName, region);
|
|
6399
6773
|
const stackTagged = applyStackTagsToTemplate(synthTemplate, stackTags, (line) => logger.warn(line));
|
|
6400
6774
|
const { state, unreadable, unreadableContainers, deployRefusals, found } = await loadStateOrEmpty(stackName, region, stateBackend, refusalRecovery);
|
|
@@ -6412,9 +6786,12 @@ async function buildDiffTree(args) {
|
|
|
6412
6786
|
});
|
|
6413
6787
|
for (const row of nestedSsmCheck?.forcedRows ?? []) logger.info(nestedSsmNameRowNote(row));
|
|
6414
6788
|
for (const row of nestedSsmCheck?.deferredRows ?? []) logger.info(nestedSsmNameDeferredNote(row));
|
|
6789
|
+
const passedSecretNames = taintedNamesOf(template, inheritedMixedSecretParameters);
|
|
6790
|
+
const passedSecretRecordNeedles = recordedValuesOf(state.resources ?? {}, passedSecretNames);
|
|
6791
|
+
const runComputeStackDiff = (run) => hasMaskableValues(passedSecretRecordNeedles) ? withPrintingSecrets(passedSecretRecordNeedles, run) : run();
|
|
6415
6792
|
let stackDiff;
|
|
6416
6793
|
try {
|
|
6417
|
-
stackDiff = await computeStackDiff(state, template, region, stackName, stateBackend, diffCalculator, {
|
|
6794
|
+
stackDiff = await runComputeStackDiff(() => computeStackDiff(state, template, region, stackName, stateBackend, calculatorMaskingPassedSecretLines(diffCalculator, template, passedSecretNames), {
|
|
6418
6795
|
...parameters && { parameters },
|
|
6419
6796
|
...parentUnresolvedParameters && { parentUnresolvedParameters },
|
|
6420
6797
|
...canonicalizeProperties && { canonicalizeProperties },
|
|
@@ -6436,6 +6813,7 @@ async function buildDiffTree(args) {
|
|
|
6436
6813
|
...inheritedReferenceProvenance && { inheritedReferenceProvenance },
|
|
6437
6814
|
...inheritedSecretTokens && { inheritedSecretTokens },
|
|
6438
6815
|
...attributeHealer && { attributeHealer },
|
|
6816
|
+
...liveDbInstanceZoneReaderFor && { readLiveDbInstanceZone: liveDbInstanceZoneReaderFor(region) },
|
|
6439
6817
|
...refusalRecovery && { refusalRecovery },
|
|
6440
6818
|
inheritSecretBearingTemplate: false,
|
|
6441
6819
|
previewMaskedInputs: !isNestedChild,
|
|
@@ -6443,7 +6821,7 @@ async function buildDiffTree(args) {
|
|
|
6443
6821
|
...nestedSsmCheck && { forcedNestedChildRuns: nestedSsmCheck.forcedRows },
|
|
6444
6822
|
...stackTags && { stackTags },
|
|
6445
6823
|
nestedTemplates
|
|
6446
|
-
});
|
|
6824
|
+
}));
|
|
6447
6825
|
} finally {
|
|
6448
6826
|
createOnlyPrefetch.cancel();
|
|
6449
6827
|
}
|
|
@@ -6455,20 +6833,21 @@ async function buildDiffTree(args) {
|
|
|
6455
6833
|
...adoptedRecords
|
|
6456
6834
|
}
|
|
6457
6835
|
} : state;
|
|
6836
|
+
const ccApiRoutes = collectCcApiRoutes(effectiveTemplate, stateAfterAdoption, changes, ccRouteUnavailableReason ?? (() => void 0));
|
|
6458
6837
|
const node = {
|
|
6459
6838
|
stackName,
|
|
6460
6839
|
displayName,
|
|
6461
6840
|
region,
|
|
6462
|
-
changes,
|
|
6463
|
-
securityDiff,
|
|
6464
|
-
ccApiRoutes
|
|
6465
|
-
outputChanges,
|
|
6841
|
+
changes: maskPassedSecretChanges(changes, template, passedSecretNames, inheritedMixedSecretTagKeys),
|
|
6842
|
+
securityDiff: securityDiffWithPassedSecretWithheld(securityDiff, changes, template, passedSecretNames),
|
|
6843
|
+
ccApiRoutes,
|
|
6844
|
+
outputChanges: maskPassedSecretOutputs(outputChanges, template, passedSecretNames),
|
|
6466
6845
|
adoptedOrphans,
|
|
6467
|
-
blocking: isNestedChild ? blocking : [
|
|
6846
|
+
blocking: maskPassedSecretReasons(isNestedChild ? blocking : [
|
|
6468
6847
|
...deployRefusals,
|
|
6469
6848
|
...adoptedDeployRefusals,
|
|
6470
6849
|
...blocking
|
|
6471
|
-
],
|
|
6850
|
+
], template, passedSecretNames, state.orphans),
|
|
6472
6851
|
unreadable,
|
|
6473
6852
|
unreadableContainers,
|
|
6474
6853
|
unreadableOrphans,
|
|
@@ -6504,10 +6883,18 @@ async function buildDiffTree(args) {
|
|
|
6504
6883
|
inherited: inheritedSecretTokens,
|
|
6505
6884
|
child: childSecretTokens
|
|
6506
6885
|
});
|
|
6886
|
+
const childMixedSecretParameters = mixedSecretRowKeys(resource.Properties, childParameters, passedSecretNames);
|
|
6887
|
+
const childMixedSecretTagKeys = mixedSecretTagKeys(resource.Properties, stackDiff.childStackTags?.get(logicalId), passedSecretNames, inheritedMixedSecretTagKeys);
|
|
6888
|
+
const passedSecretNeedles = /* @__PURE__ */ new Map();
|
|
6889
|
+
for (const key of childMixedSecretParameters) {
|
|
6890
|
+
const value = Object.hasOwn(childParameters, key) ? childParameters[key] : void 0;
|
|
6891
|
+
if (typeof value === "string" && value.length > 0) recordLogOnlyValue(passedSecretNeedles, value);
|
|
6892
|
+
}
|
|
6507
6893
|
const childDerivedNames = diffPrintingSecrets([
|
|
6508
6894
|
inheritedDerivedNames,
|
|
6509
6895
|
rowDerivedNames,
|
|
6510
|
-
nodeStateNames
|
|
6896
|
+
nodeStateNames,
|
|
6897
|
+
passedSecretNeedles
|
|
6511
6898
|
]);
|
|
6512
6899
|
const childReferenceProvenance = inheritedProvenanceForChildDiff({
|
|
6513
6900
|
row: resource,
|
|
@@ -6538,6 +6925,7 @@ async function buildDiffTree(args) {
|
|
|
6538
6925
|
...crossStackPreview && { crossStackPreview },
|
|
6539
6926
|
...previewOrphanAdoption && { previewOrphanAdoption },
|
|
6540
6927
|
...attributeHealerFor && { attributeHealerFor },
|
|
6928
|
+
...liveDbInstanceZoneReaderFor && { liveDbInstanceZoneReaderFor },
|
|
6541
6929
|
ancestorTemplatePaths: childAncestorTemplatePaths,
|
|
6542
6930
|
isNestedChild: true,
|
|
6543
6931
|
ssmNameHeal: ssmNameHeal !== "pending" && childRowRunsEngine(changes.get(logicalId)) ? "apply" : "pending",
|
|
@@ -6549,7 +6937,9 @@ async function buildDiffTree(args) {
|
|
|
6549
6937
|
...refusalRecovery && { refusalRecovery },
|
|
6550
6938
|
...childReferenceProvenance && { inheritedReferenceProvenance: childReferenceProvenance },
|
|
6551
6939
|
...childSecretTokens.size > 0 && { inheritedSecretTokens: childSecretTokens },
|
|
6552
|
-
stackTags: stackDiff.childStackTags?.get(logicalId) ?? childStackTags(stackTags, {})
|
|
6940
|
+
stackTags: stackDiff.childStackTags?.get(logicalId) ?? childStackTags(stackTags, {}),
|
|
6941
|
+
...childMixedSecretParameters.size > 0 && { inheritedMixedSecretParameters: childMixedSecretParameters },
|
|
6942
|
+
...childMixedSecretTagKeys.size > 0 && { inheritedMixedSecretTagKeys: childMixedSecretTagKeys }
|
|
6553
6943
|
});
|
|
6554
6944
|
node.children.push(await (hasMaskableValues(childDerivedNames) ? withPrintingSecrets(childDerivedNames, buildChild) : buildChild()));
|
|
6555
6945
|
}
|
|
@@ -7061,6 +7451,7 @@ async function diffCommand(stacks, options) {
|
|
|
7061
7451
|
}).provider,
|
|
7062
7452
|
inRegion: (healRegion, fn) => runWithStackAwsClients(stackRegionScope(healRegion).clients, fn)
|
|
7063
7453
|
});
|
|
7454
|
+
const liveDbInstanceZoneReaderFor = (zoneRegion) => (identifier) => runWithStackAwsClients(stackRegionScope(zoneRegion).clients, () => readDbInstanceAvailabilityZone(identifier, zoneRegion));
|
|
7064
7455
|
const recursive = (options.recursive ?? false) || failOn === "destructive" || failOn === "broadening" || securityOnly;
|
|
7065
7456
|
const assetModeOptions = {
|
|
7066
7457
|
stateBackend,
|
|
@@ -7115,6 +7506,7 @@ async function diffCommand(stacks, options) {
|
|
|
7115
7506
|
...stackInfo.account && { consumerAccount: stackInfo.account },
|
|
7116
7507
|
previewOrphanAdoption,
|
|
7117
7508
|
attributeHealerFor,
|
|
7509
|
+
liveDbInstanceZoneReaderFor,
|
|
7118
7510
|
isNestedChild: false,
|
|
7119
7511
|
refusalRecovery
|
|
7120
7512
|
}));
|
|
@@ -9100,7 +9492,8 @@ async function scrubStackRewritePass({ stack, region, stateBackend, opts, logger
|
|
|
9100
9492
|
properties: "unproven",
|
|
9101
9493
|
observed: "unproven"
|
|
9102
9494
|
});
|
|
9103
|
-
const
|
|
9495
|
+
const rewritten = keepHeldTokenProvenance(applyScrubNoEcho(migrated, record, plan));
|
|
9496
|
+
const written = JSON.stringify(rewritten) === JSON.stringify(record) ? rewritten : withoutLapsedStaleShapeStamp(rewritten);
|
|
9104
9497
|
if (JSON.stringify(written) !== JSON.stringify(record)) recordsChanged++;
|
|
9105
9498
|
newResources[logicalId] = written;
|
|
9106
9499
|
}
|
|
@@ -9117,7 +9510,7 @@ async function scrubStackRewritePass({ stack, region, stateBackend, opts, logger
|
|
|
9117
9510
|
recordsChanged++;
|
|
9118
9511
|
return {
|
|
9119
9512
|
...record,
|
|
9120
|
-
state: scrubbed
|
|
9513
|
+
state: withoutLapsedStaleShapeStamp(scrubbed)
|
|
9121
9514
|
};
|
|
9122
9515
|
});
|
|
9123
9516
|
const newSuperseded = Array.isArray(state.supersededResources) ? state.supersededResources.map((entry) => {
|
|
@@ -9132,7 +9525,7 @@ async function scrubStackRewritePass({ stack, region, stateBackend, opts, logger
|
|
|
9132
9525
|
recordsChanged++;
|
|
9133
9526
|
return {
|
|
9134
9527
|
...entry,
|
|
9135
|
-
state: scrubbed
|
|
9528
|
+
state: withoutLapsedStaleShapeStamp(scrubbed)
|
|
9136
9529
|
};
|
|
9137
9530
|
}) : void 0;
|
|
9138
9531
|
const crossStackNeedles = allRecordedSecrets(outputSecrets, perResourceSecrets, orphanSecrets);
|
|
@@ -15294,6 +15687,82 @@ function resolvablePrincipalLists(resource) {
|
|
|
15294
15687
|
return keys.map((key) => props[key]).filter((value) => isResolvableSecretPrincipalList(value));
|
|
15295
15688
|
}
|
|
15296
15689
|
|
|
15690
|
+
// src/cli/commands/destroy-runner/superseded-schedule.ts
|
|
15691
|
+
function mustDeleteBefore(type) {
|
|
15692
|
+
return hasOwnKey(IMPLICIT_DELETE_DEPENDENCIES, type) ? IMPLICIT_DELETE_DEPENDENCIES[type] : [];
|
|
15693
|
+
}
|
|
15694
|
+
function scheduleSupersededDeletes(state, executionLevels, retryLate) {
|
|
15695
|
+
const rows = supersededResourcesOf(state).filter((row) => !isCustomResourceType$1(row.state.resourceType) || retryLate.has(row));
|
|
15696
|
+
if (rows.length === 0) return [];
|
|
15697
|
+
const { resources } = state;
|
|
15698
|
+
const last = executionLevels.length;
|
|
15699
|
+
const stepOf = /* @__PURE__ */ new Map();
|
|
15700
|
+
executionLevels.forEach((level, index) => {
|
|
15701
|
+
for (const logicalId of level) stepOf.set(logicalId, last - 1 - index);
|
|
15702
|
+
});
|
|
15703
|
+
const slot = /* @__PURE__ */ new Map();
|
|
15704
|
+
const lowerOf = /* @__PURE__ */ new Map();
|
|
15705
|
+
const atEnd = /* @__PURE__ */ new Set();
|
|
15706
|
+
for (const row of rows) {
|
|
15707
|
+
const rowType = row.state.resourceType;
|
|
15708
|
+
let upper = last;
|
|
15709
|
+
let lower = 0;
|
|
15710
|
+
const deps = row.state.dependencies;
|
|
15711
|
+
if (Array.isArray(deps)) for (const dep of deps) {
|
|
15712
|
+
if (typeof dep !== "string" || dep === row.logicalId) continue;
|
|
15713
|
+
const step = stepOf.get(dep);
|
|
15714
|
+
if (step !== void 0) upper = Math.min(upper, step);
|
|
15715
|
+
}
|
|
15716
|
+
const mustFollow = mustDeleteBefore(rowType);
|
|
15717
|
+
for (const [logicalId, step] of stepOf) {
|
|
15718
|
+
const record = resources[logicalId];
|
|
15719
|
+
if (typeof record !== "object" || record === null) continue;
|
|
15720
|
+
if (mustDeleteBefore(record.resourceType).includes(rowType)) upper = Math.min(upper, step);
|
|
15721
|
+
if (mustFollow.includes(record.resourceType)) lower = Math.max(lower, step + 1);
|
|
15722
|
+
const its = record.dependencies;
|
|
15723
|
+
if (Array.isArray(its) && its.includes(row.logicalId)) lower = Math.max(lower, step + 1);
|
|
15724
|
+
}
|
|
15725
|
+
const own = stepOf.get(row.logicalId);
|
|
15726
|
+
if (own !== void 0) lower = Math.max(lower, own);
|
|
15727
|
+
lowerOf.set(row, lower);
|
|
15728
|
+
slot.set(row, lower <= upper ? upper : last);
|
|
15729
|
+
if (lower > upper) atEnd.add(row);
|
|
15730
|
+
}
|
|
15731
|
+
let changed = true;
|
|
15732
|
+
const holdAtEnd = (row) => {
|
|
15733
|
+
if (atEnd.has(row)) return;
|
|
15734
|
+
atEnd.add(row);
|
|
15735
|
+
slot.set(row, last);
|
|
15736
|
+
changed = true;
|
|
15737
|
+
};
|
|
15738
|
+
while (changed) {
|
|
15739
|
+
changed = false;
|
|
15740
|
+
for (const row of rows) {
|
|
15741
|
+
const deps = row.state.dependencies;
|
|
15742
|
+
if (!Array.isArray(deps)) continue;
|
|
15743
|
+
for (const other of rows) {
|
|
15744
|
+
if (other.logicalId === row.logicalId || !deps.includes(other.logicalId)) continue;
|
|
15745
|
+
if (atEnd.has(row)) {
|
|
15746
|
+
holdAtEnd(other);
|
|
15747
|
+
continue;
|
|
15748
|
+
}
|
|
15749
|
+
const target = slot.get(other);
|
|
15750
|
+
if (target >= slot.get(row)) continue;
|
|
15751
|
+
if (target >= lowerOf.get(row)) {
|
|
15752
|
+
slot.set(row, target);
|
|
15753
|
+
changed = true;
|
|
15754
|
+
} else {
|
|
15755
|
+
holdAtEnd(row);
|
|
15756
|
+
holdAtEnd(other);
|
|
15757
|
+
}
|
|
15758
|
+
}
|
|
15759
|
+
}
|
|
15760
|
+
}
|
|
15761
|
+
const slots = Array.from({ length: last + 1 }, () => []);
|
|
15762
|
+
for (const row of supersededDependentsFirst(rows)) slots[slot.get(row)].push(row);
|
|
15763
|
+
return slots;
|
|
15764
|
+
}
|
|
15765
|
+
|
|
15297
15766
|
// src/cli/commands/destroy-runner/under-lock-steps.ts
|
|
15298
15767
|
async function recheckUnderLock({ ctx, stackName, state, regionForState, refusalRecovery, lock, restoreBaseRegionAndClients, needsStrongRefCheck }) {
|
|
15299
15768
|
try {
|
|
@@ -16008,7 +16477,7 @@ async function destroyStackUnderLock({ stackName, state, ctx, logger, result, re
|
|
|
16008
16477
|
const replacement = outcome.kind === "failed" ? outcome.replacement : void 0;
|
|
16009
16478
|
if (replacement !== void 0) remainingSuperseded = (remainingSuperseded ?? []).map((row) => row === entry ? replacement : row);
|
|
16010
16479
|
if (early) {
|
|
16011
|
-
logger.info(safeMsg` ${logicalId}'s superseded ${resourceType} (${shownId}) was not deleted yet; retrying
|
|
16480
|
+
logger.info(safeMsg` ${logicalId}'s superseded ${resourceType} (${shownId}) was not deleted yet; retrying it in dependency order`);
|
|
16012
16481
|
return true;
|
|
16013
16482
|
}
|
|
16014
16483
|
const why = outcome.kind === "notDeleted" ? outcome.reason : maskSecretsInText(describeAwsFailure(outcome.error).detail, bag);
|
|
@@ -16030,7 +16499,12 @@ async function destroyStackUnderLock({ stackName, state, ctx, logger, result, re
|
|
|
16030
16499
|
if (!isCustomResourceType$1(entry.state.resourceType)) continue;
|
|
16031
16500
|
if (await deleteSupersededRow(entry, true)) retryLate.add(entry);
|
|
16032
16501
|
}
|
|
16502
|
+
const slots = scheduleSupersededDeletes(state, executionLevels, retryLate);
|
|
16503
|
+
const deleteSupersededSlot = async (step) => {
|
|
16504
|
+
for (const entry of slots[step] ?? []) if (!lock.interrupted) await deleteSupersededRow(entry);
|
|
16505
|
+
};
|
|
16033
16506
|
for (let levelIndex = executionLevels.length - 1; levelIndex >= 0; levelIndex--) {
|
|
16507
|
+
await deleteSupersededSlot(executionLevels.length - 1 - levelIndex);
|
|
16034
16508
|
if (lock.interrupted) {
|
|
16035
16509
|
logger.debug("Interrupted (draining) — not scheduling further deletion levels");
|
|
16036
16510
|
break;
|
|
@@ -16042,11 +16516,7 @@ async function destroyStackUnderLock({ stackName, state, ctx, logger, result, re
|
|
|
16042
16516
|
const deletePromises = level.map((logicalId) => withPrintingSecrets(printingBagOf(logicalId), () => deleteStackResource(resourceFrame, logicalId, stackRegion)));
|
|
16043
16517
|
await Promise.all(deletePromises);
|
|
16044
16518
|
}
|
|
16045
|
-
|
|
16046
|
-
if (lock.interrupted) break;
|
|
16047
|
-
if (isCustomResourceType$1(entry.state.resourceType) && !retryLate.has(entry)) continue;
|
|
16048
|
-
await deleteSupersededRow(entry);
|
|
16049
|
-
}
|
|
16519
|
+
await deleteSupersededSlot(executionLevels.length);
|
|
16050
16520
|
const unreadableSuperseded = Array.isArray(state.supersededResources) ? state.supersededResources.filter((row) => !isSupersededResourceRecord(row)).length : holdsSupersededResources(state) ? 1 : 0;
|
|
16051
16521
|
if (unreadableSuperseded > 0) {
|
|
16052
16522
|
result.skippedCount += unreadableSuperseded;
|
|
@@ -26437,6 +26907,7 @@ async function refactorCommand(stacks, options) {
|
|
|
26437
26907
|
...stackInfo.account && { consumerAccount: stackInfo.account },
|
|
26438
26908
|
noEchoMacCache,
|
|
26439
26909
|
macWriteOnlyLookups,
|
|
26910
|
+
readLiveDbInstanceZone: (id) => readDbInstanceAvailabilityZone(id, stackRegion),
|
|
26440
26911
|
refusalRecovery: recovery,
|
|
26441
26912
|
inheritSecretBearingTemplate: false,
|
|
26442
26913
|
previewMaskedInputs: true,
|
|
@@ -37742,4 +38213,4 @@ function collectVerbFlags(program) {
|
|
|
37742
38213
|
}
|
|
37743
38214
|
|
|
37744
38215
|
export { effectiveInventoryItem as $, withRecordedCidrSpelling as A, LIFECYCLE_DEFAULT_STATUS as B, securityGroupReadbackDelays as C, stackIngressRuleHolder as D, singleSecurityGroupRuleId as E, clearLifecycleWritesOf as F, canonicalizeItemList as G, LIFECYCLE_RULE_PATH as H, lifecycleSettleTarget as I, lifecycleUsesFilterForm as J, effectiveLifecycleConfiguration as K, recordLifecycleWrite as L, sgRemovalRuleKey as M, sgRuleListMember as N, survivingRecordOfRuleId as O, LIFECYCLE_BASELINE_REREAD_DELAYS_MS as P, effectiveIntelligentTieringItem as Q, settleLifecycleRead as R, reconcileSgRules as S, sgRuleKey as T, LIFECYCLE_TAG_FILTERS_PATH as U, LIFECYCLE_FILTER_PATH as V, canonicalizeBlock as W, EVENTBRIDGE_CONFIG_PATH as X, parseCfnTimestamp as Y, effectiveAnalyticsItem as Z, ingressRuleIdentity as _, refuseRevertRevokingSiblingRules as a, declaresBucketObjectLock as at, isResendableSocketFailure as b, buildProgram, siblingIdOwnedSgRules as c, isPlainObject as ct, authorizeDefinitelyNotApplied as d, shownLifecycleRuleId as dt, effectiveNotificationConfiguration as et, canonicalizeSgInlineRuleProtocols as f, flattenIpPermissions as g, descriptionKey as h, resolveSecretDerivedPrincipals as i, configItemId as it, markCopiesAgreed as j, tagListsMatch as k, SG_READBACK_RETRY_DELAY_MS as l, manualBucketDeletionClause as lt, comparableIngressIdentity as m, holdsUnprovenSecretPrincipalToken as n, caughtErrorName as nt, sgRuleDiffKey as o, declaresNestedObjectLock as ot, canonicalizeSgRuleProtocol as p, lifecycleRuleScope as q, isResolvableSecretPrincipalList as r, coerceCfnNumber as rt, readSgIngressById as s, describeValue as st, runDestroyForStack as t, eventBridgeEnabledOf as tt, SG_RULE_PAGE_SIZE$1 as u, mergeLegacySingular as ut, isConnectTimeout as v, securityGroupRuleMatchesCfnIngress as w, narrowIngressIpProtocol as x, isDefaultEgressRule as y, takeLifecycleWrite as z };
|
|
37745
|
-
//# sourceMappingURL=program-
|
|
38216
|
+
//# sourceMappingURL=program-BBXUa34K.js.map
|