@cdkd/cli 0.370.6 → 0.371.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-znFaZS6t.js → ambient-client-defaults-DzKSQvWN.js} +3 -3
- package/dist/{ambient-client-defaults-znFaZS6t.js.map → ambient-client-defaults-DzKSQvWN.js.map} +1 -1
- package/dist/{asg-provider-CxUpkiE0.js → asg-provider-BkR7gv40.js} +8 -8
- package/dist/{asg-provider-CxUpkiE0.js.map → asg-provider-BkR7gv40.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{created-resource-sink-_8-H2n_W.js → created-resource-sink-D7FufEaB.js} +4 -4
- package/dist/{created-resource-sink-_8-H2n_W.js.map → created-resource-sink-D7FufEaB.js.map} +1 -1
- package/dist/{custom-resource-runtime-8odRXut6.js → custom-resource-runtime-DyUvtovF.js} +6 -6
- package/dist/{custom-resource-runtime-8odRXut6.js.map → custom-resource-runtime-DyUvtovF.js.map} +1 -1
- package/dist/{db-associated-roles-D5lu-Ecp.js → db-associated-roles-Dq-VSmuu.js} +2 -2
- package/dist/{db-associated-roles-D5lu-Ecp.js.map → db-associated-roles-Dq-VSmuu.js.map} +1 -1
- package/dist/{delete-started-DU0_uilB.js → delete-started-C8fWcehI.js} +4 -4
- package/dist/{delete-started-DU0_uilB.js.map → delete-started-C8fWcehI.js.map} +1 -1
- package/dist/{deploy-engine-BfiEN_b4.js → deploy-engine-BsKzx9ys.js} +533 -76
- package/dist/deploy-engine-BsKzx9ys.js.map +1 -0
- package/dist/{ec2-termination-protection-dlIgSfnA.js → ec2-termination-protection-CJjU7OpO.js} +3 -3
- package/dist/{ec2-termination-protection-dlIgSfnA.js.map → ec2-termination-protection-CJjU7OpO.js.map} +1 -1
- package/dist/{ecr-uri-VJbNjmEC.js → ecr-uri-BYBZlAlS.js} +2 -2
- package/dist/{ecr-uri-VJbNjmEC.js.map → ecr-uri-BYBZlAlS.js.map} +1 -1
- package/dist/{emr-cluster-provider-B_wdviQS.js → emr-cluster-provider-Cz2_BHvv.js} +10 -10
- package/dist/{emr-cluster-provider-B_wdviQS.js.map → emr-cluster-provider-Cz2_BHvv.js.map} +1 -1
- package/dist/{expected-bucket-owner-DYvaQ-Zz.js → expected-bucket-owner-Dr7zxlJn.js} +2 -2
- package/dist/{expected-bucket-owner-DYvaQ-Zz.js.map → expected-bucket-owner-Dr7zxlJn.js.map} +1 -1
- package/dist/{iam-role-provider-NKcMOq1q.js → iam-role-provider-C27pVBaA.js} +12 -12
- package/dist/{iam-role-provider-NKcMOq1q.js.map → iam-role-provider-C27pVBaA.js.map} +1 -1
- package/dist/{identity-read-denied-HjFJxXlW.js → identity-read-denied-DHWVUHrX.js} +5 -5
- package/dist/{identity-read-denied-HjFJxXlW.js.map → identity-read-denied-DHWVUHrX.js.map} +1 -1
- package/dist/{image-plan-DiN9kLKu.js → image-plan-D2uTAfxX.js} +9 -9
- package/dist/{image-plan-DiN9kLKu.js.map → image-plan-D2uTAfxX.js.map} +1 -1
- package/dist/index.d.ts +32 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-DUAQ_JOi.js → logger-DVdLGob_.js} +2 -2
- package/dist/{logger-DUAQ_JOi.js.map → logger-DVdLGob_.js.map} +1 -1
- package/dist/{neptune-provider-rkdfjnF9.js → neptune-provider-CkbTF9aG.js} +9 -9
- package/dist/{neptune-provider-rkdfjnF9.js.map → neptune-provider-CkbTF9aG.js.map} +1 -1
- package/dist/{program-Bad-xRVI.js → program-BBg-9V23.js} +305 -49
- package/dist/program-BBg-9V23.js.map +1 -0
- package/dist/{provider-classes-DAF9XM-4.js → provider-classes-DWi0yjHc.js} +395 -174
- package/dist/provider-classes-DWi0yjHc.js.map +1 -0
- package/dist/{rds-provider-DlFaFEyf.js → rds-provider-BV4XW4wv.js} +91 -23
- package/dist/rds-provider-BV4XW4wv.js.map +1 -0
- package/dist/{read-replica-BZjPCmIl.js → read-replica-B08_DZNH.js} +3 -3
- package/dist/{read-replica-BZjPCmIl.js.map → read-replica-B08_DZNH.js.map} +1 -1
- package/dist/{redacted-delete-address-CRTZ9dGr.js → redacted-delete-address-Be4d3ZWA.js} +4 -4
- package/dist/{redacted-delete-address-CRTZ9dGr.js.map → redacted-delete-address-Be4d3ZWA.js.map} +1 -1
- package/dist/{replacement-rules-BYsfga8b.js → replacement-rules-DL9MZWSp.js} +416 -30
- package/dist/replacement-rules-DL9MZWSp.js.map +1 -0
- package/dist/{resource-deadline-Ke4EXyCI.js → resource-deadline-D65EA80y.js} +2 -2
- package/dist/{resource-deadline-Ke4EXyCI.js.map → resource-deadline-D65EA80y.js.map} +1 -1
- package/dist/{restore-source-guard-DijUNuPT.js → restore-source-guard-ClcpxInI.js} +4 -4
- package/dist/{restore-source-guard-DijUNuPT.js.map → restore-source-guard-ClcpxInI.js.map} +1 -1
- package/dist/{run-cli-CuKwf0wJ.js → run-cli-zFQkbzGk.js} +2 -2
- package/dist/{run-cli-CuKwf0wJ.js.map → run-cli-zFQkbzGk.js.map} +1 -1
- package/dist/{secret-reference-immutable-C0y2leSj.js → secret-reference-immutable-Bh9gCLFt.js} +6 -6
- package/dist/{secret-reference-immutable-C0y2leSj.js.map → secret-reference-immutable-Bh9gCLFt.js.map} +1 -1
- package/dist/{settle-own-write-members-BeMLFzws.js → settle-own-write-members-B-g5oflo.js} +13 -13
- package/dist/{settle-own-write-members-BeMLFzws.js.map → settle-own-write-members-B-g5oflo.js.map} +1 -1
- package/dist/{tag-list-k_7QY2-3.js → tag-list-DX_Ke9se.js} +4 -4
- package/dist/{tag-list-k_7QY2-3.js.map → tag-list-DX_Ke9se.js.map} +1 -1
- package/dist/{version-BrLstCqx.js → version-G1wdb4QW.js} +2 -2
- package/dist/{version-BrLstCqx.js.map → version-G1wdb4QW.js.map} +1 -1
- package/package.json +2 -2
- package/dist/deploy-engine-BfiEN_b4.js.map +0 -1
- package/dist/program-Bad-xRVI.js.map +0 -1
- package/dist/provider-classes-DAF9XM-4.js.map +0 -1
- package/dist/rds-provider-DlFaFEyf.js.map +0 -1
- package/dist/replacement-rules-BYsfga8b.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-G1wdb4QW.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-D2uTAfxX.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-D7FufEaB.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-DVdLGob_.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-DzKSQvWN.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 MIGRATE_TMP_PREFIX, A as formatDockerLoginError, B as resolveApp, C as redactDockerArgvValues, D as warnFinchArgvExposure, E as partitionSensitiveEnv, F as Synthesizer, G as resolveStateBucketWithDefaultAndSource, H as resolveCaptureObservedState, I as synthesisStatusMessage, J as resolveUseCdkBootstrapAssets, K as resolveStateBucketWithSource, L as getDefaultStateBucketName, M as runDockerForeground, N as runDockerStreaming, O as isDockerClientEnvKey, P as abortInFlightMultipartUploads, Q as CFN_TEMPLATE_URL_LIMIT, R as getLegacyStateBucketName, S as redactedDockerCause, T as finchSecretArgvRefusal, U as resolveSkipPrefix, V as resolveAutoAssetStorage, W as resolveStateBucketWithDefault, X as warnDeprecatedNoPrefixCliFlag, Y as stateBucketExistenceConfirmed, Z as CFN_TEMPLATE_BODY_LIMIT, _ as resolveDockerContextDirectory, at as bindLegacyStackAssetParameters, b as describeDockerFailure, ct as predictedAutoCreatedAssetMode, d as DagBuilder, dt as processStackMessages, et as findLargeInlineResources, f as LockManager, ft as setChildProcessAwsEnv, g as buildDockerImage, h as WorkGraph, i as mergeDeclaredEntries, it as StageLoadError, j as getDockerCmd, k as isMalformedEnvKey, l as DiffCalculator, lt as prepareLegacyStackAssets, m as AssetPublisher, n as declaredStringList, nt as refuseFailedLookups, ot as createLegacyAssetParameterBinder, p as isLockInfoExpired, q as resolveUpdatePolicy, r as inlinePoliciesAreDeclared, rt as AssemblyReader, s as stringListIsDeclared, st as legacyPlanAssetCount, t as declaredInlinePolicies, tt as uploadCfnTemplate, u as LEGACY_HANDLE_HEAL_REASON, ut as CdkToolkitBucketMissingError, w as dockerSpawnEnvWithSensitive, x as redactedCause, y as describeDockerExecFailure, z as loadCdkJson } from "./settle-own-write-members-
|
|
9
|
-
import { $a as secretNamedRecordNeedles, $c as secretSegmentsOfState, $d as hasPlainPrototype, $i as reachableDivergentParameters, $l as malformedExportNamesWarning, $n as getCurrentNestedStackContext, $o as customResourceResponseExpirationWarning, $u as crossPrefixDeniedWarning, A as diffSecurity, Aa as resolveReplacementOldType, Ac as withSharedDrainBudget, Ad as rewriteTemplateAssetReferences, Ai as planFailedOps, Al as refuseMalformedResourceEntries, An as removeSignalReceiverNamed, Ao as declaredMemberDocument, Ar as changedReferenceReason, As as stackIdTailOf, Ba as noEchoComparisonForTemplate, Bd as buildDenyExternalAccessPolicy, Bi as removeProtectionTypes, Bn as pendingRequestCount, Br as stripSiblingOwnedParentMembers, Bs as isIamRoleArn, C as slashedSsmNameHealNote, Ca as supersededDependentsFirst, Cc as withoutVersionAttestation, Cd as createLazyAssetModeContext, Ci as withCreateTokenLedger, Cl as unreadableOrphanRecords, Cn as refactorMarkerMovesOf, Co as revertStackRecordsView, Cr as findRefactorHints, Cs as getReadOnlyPropertyPaths, Cu as displayLogicalId, D as deferredServiceTokenWarning, Da as withoutSuperseded, Dc as isNamelessDynamicReferenceError, Dd as loadPublishableAssetManifest, Di as demoteSupersededOrphans, Dl as malformedResourceEntriesWarning, Dn as updateRefactorMarker, Do as LAMBDA_PERMISSION_STATEMENT_KEYS, Dr as withMovedTo, Ds as isSelectOutOfBounds, Du as findHandledUnwrittenCreateOnly, E as inRunStackKey, Ea as supersededResourcesOf, Ec as carriesFetchableDynamicReference, Ei as seedsDeleteFirstGuard, El as malformedLocalResourcesWarning, En as sameMove, Er as rollbackOrphanIds, Es as IntrinsicFunctionResolver, Eu as findActionableSdkUnwired, F as perType, Fa as gray, Fi as computeImplicitDeleteEdges, Fl as refuseMalformedResourceEntriesForOrphan, Fn as macWriteOnlyKeys, Fo as policyDocumentMatchesDeclared, Fr as parseMappingFile, Fs as refuseUnreadableCdkCrossAccountRefs, Fu as PROPERTY_COVERAGE_BY_TYPE, Ga as completedReplayEntries, Gc as renderStatefulReason, Gd as readBootstrapMarkerBody, Gi as retiredAfterRollback, Gl as repairMalformedResourcePropertiesForReadOnly, Gn as dropSettledNestedJournals, Go as isCustomResource, Gs as callerEnvCredentials, Ha as noEchoParameterNamesOf, Hc as MULTI_REGION_RECREATE_BLOCKED_TYPES, Hd as isCrossRegionRedirect, Hi as nameGenerationCarriedFrom, Hl as refuseMalformedResourcePropertiesForDrift, Hn as NESTED_PENDING_PARENT_REASON, Ho as CC_BROKEN_REASON, Hr as recordedRuleIdOf, Hs as sendableAssumeRoleCommand, Hu as TemplateParser, I as readProtection, Ia as green, Ii as attemptUsesCompletedCreate, Il as repairMalformedResourceEntriesForReadOnly, In as readsOnlyNoEchoParameters, Io as reReadUntilSettled, Ir as propertiesChangedReason, Is as applyRoleArnIfSet, J as streamPolicyMatchesDeclared, Ja as namingSecretsWithRecordedNoEcho, Jd as BOOTSTRAP_MARKER_PREFIX, Ji as withNameGenerationReached, Jl as malformedOrphansRefusalMessage, Jn as recordDisplacedSkips, Jo as classifyHandleUrl, Js as classifyReplaySecretRegion, Ju as hasUnverifiableParameterRefusal, Ka as journaledOrphanPrintingBag, Kd as validateAssetBucketName, Ki as retiredNameGenerationsAfter, Kl as UNREADABLE_ORPHANS_CONTAINER_ROW, Ko as wouldReturnToSdkProvider, Kr as siblingRecordedSgRuleIds, Ks as envCredentialsAreAssumedRole, Ku as readOnlyStateVersionOf, La as red, Li as readsRegeneratingSecret, Ll as unreadableResourceEntries, Lr as proposeRenames, Ls as assertFlagRoleArn, Lu as providerReplacementOldDeleted, M as recordedProtectionNote, Ma as findNestedStackTypeChanges, Mc as INTRINSIC_KEYS, Md as getDockerImageBySourceHash, Mi as recordUnderIdIsNotOwn, Ml as refuseMalformedResourceEntriesForDestroy, Mo as efsPolicyMatchesDeclared, Mr as isPairableType, N as PROTECTION_PROPERTY_BY_TYPE, Na as bold, Ni as replacementNeverSwapped, Nl as refuseMalformedResourceEntriesForImport, Nn as childStackTags, No as lambdaPermissionMatchesDeclared, Nr as looselyEqual, Ns as resolveDynamicReferences, Nt as tagsMatchDeclared, Nu as NO_CC_HANDLERS_REASON, O as findServiceTokenRefusals, Oc as carriesDynamicReference, Oi as isJournaledOrphan, Ol as malformedScrubResourceEntriesRefusalMessage, On as deleteSignalReceiver, Or as changedReferenceInDiff, Os as isAlwaysLiveAttribute, P as isProtectionValueActive, Pa as cyan, Pi as IMPLICIT_DELETE_DEPENDENCIES, Pl as refuseMalformedResourceEntriesForImportSave, Pn as literalRowTags, Po as memberReadFailure, Pr as mappingPairs, Ps as producerLookupOver, Pu as hasNoCloudControlHandlers, Qc as secretPhysicalIdSegment, Qd as hasOwnKey, Qi as namesAnyDeclaredParameter, Ql as repairMalformedOrphansForReadOnly, Qn as collectNestedChildUnaddressed, Qo as applyCustomResourceResponseExpiration, Qr as sgProtocolKey, Qu as applyCrossPrefixScan, Ra as yellow, Rd as AssetModeResolver, Ri as segmentCleanupOptions, Rl as malformedDriftResourcePropertiesWarning, Rn as formatResourceLine, Rr as referencedLogicalIds, Rs as assertSendableRoleArn, S as slashedSsmNameHealAdoptedNote, Sa as supersededAfterRollback, Sd as createAssetRedirectResolver, Sl as unpreviewableOrphanRecords, Sn as readRefactorMarkerOnce, Sr as formatDestructiveChange, Su as UNREADABLE_RESOURCES_MAP_ROW, T as scanActiveConsumers, Ta as supersededHolderOf, Tc as isImpossibleEmptyStoredAttribute, Ti as planRollback, Tl as malformedLocalResourceEntriesWarning, Tn as refuseRefactorMarker, To as withStackRecords, Tr as movedToHint, Tu as hasReadableResources, U as readStreamPolicy, Ua as withAttemptedItemsMasked, Uc as isStatefulRecreateTargetForReplace, Ud as getBootstrapMarkerKey, Ui as nameGenerationHighWaterOf, Ul as refuseMalformedResourcePropertiesForExport, Un as displacedOpClause, Uo as ProviderRegistry, Ur as sgRuleOwnershipIdentity, Us as AWS_CREDENTIAL_ENV_KEYS, Uu as S3StateBackend, Va as noEchoExactEchoLeavesOf, Vc as shownType, Vd as assertAssetBucketRegion, Vi as orphanNeedsIdentity, Vl as refuseMalformedResourcePropertiesForDestroy, Vn as resolvePendingCloudControlRequests, Vr as undeclaredGrantSiblingMembers, Vs as parseIamRoleArn, Wa as createReadOnlyAttributeHealerFactory, Wc as isStatefulRecreateTargetSync, Wd as parseBootstrapMarker, Wi as nameScopeOf, Wl as refuseMalformedResourcePropertiesForOrphan, Wn as displacedPhysicalIdShown, Wo as ccBrokenReason, Wr as sgSiblingDecidedById, Ws as applyCallerIdentityCredentials, Wu as splitImportedOps, Xa as secretNamePrintingBag, Xc as displayPhysicalId, Xi as inheritProducerRegions, Xl as refuseMalformedOrphans, Xn as revertedNestedRowIds, Xo as isSignalKey, Xr as recordedSgRuleId, Xs as regionLessSecretName, Xu as CrossPrefixReadError, Ya as orphanRecordsPrintingBag, Yl as malformedOrphansWarning, Yr as cfnIngressPortValue, Ys as producerRegionsFromState, Yu as rebuildClientForBucketRegion, Za as secretNamePrintingBags, Zd as defineOwnKey, Zi as computeParameterTaint, Zl as refuseMalformedOrphansForDestroy, Zn as withNestedRevertRun, Zo as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, Zr as sgCidrKey, Zs as isUnexposedRecordedIdentity, Zu as CrossPrefixScanCache, _ as hasPendingMovesOut, _a as DEFAULT_RESOURCE_WARN_AFTER_MS, _i as updatePartialReason, _l as previewableOrphanRecords, _r as noEchoMacParametersOf, _s as RollbackInlinePolicyWriters, _u as repairMalformedResourcesForReadOnly, a as mergeNoChangeOutputs, aa as secretBearingStateKeyWarning, ac as isUnboundTemplateParameter, ad as isSensitiveAttributeName, af as displayAssemblyPath, ai as PLANNED_EARLY_DELETE_CONSEQUENCE, al as maskedPropertyFingerprintsOf, ao as PRE_DELETE_SNAPSHOT_TYPES, ar as journaledOrphanLines, as as withPrintingSecrets, au as refuseMalformedOutputs, b as refusePendingMovesOut, ba as holdsSupersededResources, bc as recordedReferenceRegions, bl as refuseMalformedOrphansForOrphan, bn as recordRetainedForReadoption, br as constructPathOf$1, bs as deleteLeftInPlace, bu as withheldAccountClause, c as nestedSsmNameRowNote, ca as exportNameNoEchoParameters, cc as cfnRefValueFromPhysicalId, cd as findNestedTemplateTreeDefect, cf as resolveAssemblyPath, ci as buildReadCurrentStateContext, cl as maskedInputProof, co as effectiveDeletionPolicy, cr as makeForeignHolderScan, cs as customResourcesFailedWithoutApp, cu as STATE_REGION_DIVERGED, d as makeCanonicalizePropertiesFn, da as noEchoParameterValueSeed, dc as lacksRecordedRefArn, dd as renderNestedTemplateTreeDefect, di as withUnprovenUnsettled, dl as maskedPropertyFingerprint, do as unsupportedFinalSnapshotError, dr as DeploymentEventsReader, du as malformedResourcesWarning, ea as resourcesNamingDeclaredParameter, ed as isAccessDenied, ef as nullPrototypeRecord, ei as canonicalizeIpv4Cidr, el as withSecretPhysicalIdsMaskedInState, eo as stackSecretNamesMasker, er as withNestedStackContext, eu as malformedExportSourceWarning, f as conditionFingerprint, fa as collectDeclaredOutputNames, fc as lacksRecordedTableArn, fd as templateIdentity, fi as calculateResourceDrift, fl as deployRefusesOrphanRowsReason, fo as createPreDeleteFinalSnapshot, fr as DeploymentEventsStore, fs as setLocalCustomResourceRuntimeEnabled, fu as malformedStateRefusalMessage, g as childTemplateLoader, ga as DEFAULT_RESOURCE_TIMEOUT_MS, gc as keepHeldTokenProvenance, gd as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, gi as updatePartialMessage, gl as malformedOrphanRowsKeptWarning, gr as noEchoMacBinding, gu as refuseMalformedState, h as readRecordedConditionVerdicts, ha as bindingSkippedOutputs, hd as ssmResolvedValueType, hi as undeclaredEmptyObservedKeys, hl as malformedOrphanRecordsWarning, hr as createNoEchoValueMacs, hs as CloudControlProvider, hu as refuseMalformedResourcesForExport, i as keptWholeReasonText, ia as secretBearing, ic as coerceParameterTypedValue, id as isSecretValuedAttribute, if as describeFileReadFailure, ii as DELETED_RESOURCE_REMEDY, io as ATOMIC_FINAL_SNAPSHOT_TYPES, ir as isHandledOrphan, j as recordedProtectionEvidence, ja as withPreviousPolicies, jd as AssetManifestLoader, ji as recheckFailedPlan, jl as refuseMalformedResourceEntriesForDeploy, jn as settleStackTagChildRuns, jo as declaredPolicyDocument, jr as differingRemedy, k as serviceTokenBlockingReason, ka as snapshotSegmentSurvivors, kc as keepsSecretReferenceToken, ki as isReplacementOrphan, kl as refuseMalformedResourceAttributesForOrphan, kn as isReceiver, kr as changedReferencePath, ks as poisonRenderedSpellingsCollidingIn, kt as declaredTagsReadback, ku as unwrittenCreateOnlyReplacement, l as crossStackOutputProvenanceSource, la as exportNameSecretExposure, lc as isStalePlaceholderArnAttribute, ld as isAbsoluteAssetPath, li as recordAfterRollbackUpdate, lo as isFinalSnapshotError, lr as makeSiblingClaimReader, ls as customResourcesRunWithoutApp, lu as refuseDivergentRecordRegionForDestroy, m as parentSuppliedValues, ma as isExportAliasCollision, mi as equalModuloMask, ml as malformedOrphanRecordsRefusalMessage, mr as NOECHO_MAC_KEY_ALIAS, mu as refuseMalformedResourcesForDestroy, n as applyStackTagsToTemplate, na as displayTextOrWithheld, nd as stackInstanceIdOf, ni as replayFailedOperations, nl as getTopLevelKeysHoldingUnreadableCreateOnly, no as storedSecretNameNeedles, nr as dropFailedCommands, ns as readsNoEchoDeleteValues, nu as malformedOutputsRefusalMessage, o as checkNestedSsmNames, oa as secretSafeKeyDisplay, oc as parameterTypeMayLoseSecretIdentity, oi as earlyDeleteWhen, oo as ccRoutedFinalSnapshotError, or as loadJournaledOrphans, os as NO_LOCAL_CUSTOM_RESOURCES_FLAG, ou as refuseMalformedOutputsForDestroy, p as conditionInputsFrom, pa as collectPublishedOutputNames, pi as equalModuloMarkedMask, pl as isReadableOrphanRecord, po as buildFinalSnapshotIdentifier, pr as crossStackReadsForPartialSave, ps as withCustomResourceStack, pu as refuseMalformedResourcesForDeploy, qa as maskEventTextWithBoundBags, qd as validateContainerRepoName, qi as retiredNameGenerationsLeaving, ql as hasReadableOrphans, qn as nestedChildStackName$1, qo as WaitConditionSignalStore, qs as classifyRecordedSecretRegion, qu as hasReasonlessBaselineRefusal, r as isSecretBearingReferenceString, ra as exportAliasCollisionScrubWarning, rd as withStackInstanceIdWithheld, ri as replayRollback, rl as tryGetTopLevelWriteOnlyProperties, ro as extractDeploymentEventError, rr as dropFailedHint, rs as isCustomResourceType$1, ru as malformedOutputsWarning, s as nestedSsmNameDeferredNote, sa as carriedExportAliasExposure, sc as AWS_NO_VALUE, sf as renderAssemblyPathEscape, si as earlyDeletedOld, sl as parameterInputsFor, so as ccRoutedInstanceTakesNoSnapshot, sr as sameJournaledOrphans, su as repairMalformedOutputsForReadOnly, t as DeployEngine, ta as WITHHELD_NAME_DISPLAY, td as isNotImplemented, tf as ownValue, ti as canonicalizeIpProtocolValue, tl as getSettledWriteOnlyPropertyPaths, to as stateSecretNameNeedles, tr as deleteJournaledOrphans, ts as TemplateNoEchoReresolver, tu as malformedLocalOutputsWarning, u as inheritedProvenanceForChildDiff, ua as isWholeDynamicReferenceValue, uc as refStateLookupFromResource, ud as listNestedTemplateRows, uf as resolveBucketRegion, ui as settleUnsettledPrevious, ul as declaresNoEcho, uo as refusesFinalSnapshot, ur as planOrphanAdoption, us as localCustomResourceCommand, uu as malformedRenderedContainersWarning, v as pendingMovesOutOf, va as maskingRetryLogger, vc as recordedOutputReferenceRegions, vd as decodeListingKey, vi as findUpdatePolicyReplacementRefusals, vl as refuseMalformedOrphanRecords, vr as noEchoMacVerdict, vs as UNSPECIFIED_SKIP_REASON, vu as JSON_LISTING_HOLE_VALUE, w as slashedSsmNameHealPendingNote, wa as supersededHeldByOtherTypeWarning, wc as getAccountInfo, wl as isReadableResourceEntry, wn as refactorMarkerRefusalMessage, wr as hintSidesOf, ws as isWaitAbandonedError, wu as hasReadableOutputs, x as healSlashedSsmParameterNames, xa as isSupersededResourceRecord, xd as buildAssetRedirectMap, xi as ledgerForStack, xl as repairMalformedOrphanRecordsForReadOnly, xn as readRefactorMarker, xo as destroyStackRecordsView, xr as findDestructiveChanges, xs as deleteSkipReason, xu as STATE_RESOURCES_MALFORMED, y as pendingMovesRefusalMessage, ya as deleteSupersededEntry, yi as replacementCreateRoutesToCloudControl, yl as refuseMalformedOrphanRecordsForDestroy, yn as keptForRetainedRecord, yr as noEchoValueMacsOf, ys as deleteIndeterminateGuards, yu as accountArgs, za as noEchoAttributeNamesOf, zc as findReplacedReadersOfRecreateTargets, zd as ensureAssetStorage, zi as removeProtectionTypeList, zl as malformedResourcePropertiesWarning, zn as startForceQuitFlushes, zo as verbatimEchoDriftKeys, zr as siblingOwnedRevertDesired, zs as explicitRoleArnOrThrow } from "./deploy-engine-BfiEN_b4.js";
|
|
8
|
+
import { $ as MIGRATE_TMP_PREFIX, A as formatDockerLoginError, B as resolveApp, C as redactDockerArgvValues, D as warnFinchArgvExposure, E as partitionSensitiveEnv, F as Synthesizer, G as resolveStateBucketWithDefaultAndSource, H as resolveCaptureObservedState, I as synthesisStatusMessage, J as resolveUseCdkBootstrapAssets, K as resolveStateBucketWithSource, L as getDefaultStateBucketName, M as runDockerForeground, N as runDockerStreaming, O as isDockerClientEnvKey, P as abortInFlightMultipartUploads, Q as CFN_TEMPLATE_URL_LIMIT, R as getLegacyStateBucketName, S as redactedDockerCause, T as finchSecretArgvRefusal, U as resolveSkipPrefix, V as resolveAutoAssetStorage, W as resolveStateBucketWithDefault, X as warnDeprecatedNoPrefixCliFlag, Y as stateBucketExistenceConfirmed, Z as CFN_TEMPLATE_BODY_LIMIT, _ as resolveDockerContextDirectory, at as bindLegacyStackAssetParameters, b as describeDockerFailure, ct as predictedAutoCreatedAssetMode, d as DagBuilder, dt as processStackMessages, et as findLargeInlineResources, f as LockManager, ft as setChildProcessAwsEnv, g as buildDockerImage, h as WorkGraph, i as mergeDeclaredEntries, it as StageLoadError, j as getDockerCmd, k as isMalformedEnvKey, l as DiffCalculator, lt as prepareLegacyStackAssets, m as AssetPublisher, n as declaredStringList, nt as refuseFailedLookups, ot as createLegacyAssetParameterBinder, p as isLockInfoExpired, q as resolveUpdatePolicy, r as inlinePoliciesAreDeclared, rt as AssemblyReader, s as stringListIsDeclared, st as legacyPlanAssetCount, t as declaredInlinePolicies, tt as uploadCfnTemplate, u as LEGACY_HANDLE_HEAL_REASON, ut as CdkToolkitBucketMissingError, w as dockerSpawnEnvWithSensitive, x as redactedCause, y as describeDockerExecFailure, z as loadCdkJson } from "./settle-own-write-members-B-g5oflo.js";
|
|
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";
|
|
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 { At as withPhysicalNameCopies,
|
|
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-Bh9gCLFt.js";
|
|
12
|
+
import { l as setResolvedResourceTimeouts } from "./ec2-termination-protection-CJjU7OpO.js";
|
|
13
|
+
import { t as expectedOwnerParam } from "./expected-bucket-owner-Dr7zxlJn.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-C8fWcehI.js";
|
|
15
|
+
import { At as withPhysicalNameCopies, Bt as spelledKeysOf, D as recordedNoEchoValuesOf, Fn as recordNoEchoParameterFreshValue, Ft as DYNAMIC_REFERENCE_TOKEN_SCAN, In as recordProvenPublicExpression, Ln as wholeStringLeavesOf, Lt as dynamicReferenceTokens, Mn as recordMaskOnlyValue, Nn as recordMaskOnlyValuesIn, Nt as isUncertifiedBaselineMaskPosition, Pn as recordNoEchoAttributeValues, Qt as inheritNestedStackParameterAssociations, Rt as keepTemplateLiteralLeaves, T as readsNoEchoSource, Ut as identityKeyFor, Vn as isSingleDynamicReferenceToken, Vt as pathCrossesDottedKey, W as redactForState, _n as splitGetAttStringForm, _t as maskSecretsInError, at as literalSplitDelimitersOf, b as noEchoOutputsComparison, ct as printingCorpusOf, dt as recordLogOnlyValue, et as carryLogOnlyValues, f as isMarkedCoordinate, fn as recordPhysicalNameCopy, ft as shareLogOnlyValues, g as maskedLeafCoordinatesOf, h as maskWholeValue, ht as errorCauseChain, it as hasMaskableValues, j as liveMatchesUnresolvedTokenFrame, k as valueAtCoordinate, kn as provenPublicValue, kt as scrubResourceRecord, lt as recordLogOnlyParameterValue, m as maskReadbackAtCoordinates, mt as createSecretMasker, nt as createUnionSecretMasker, ot as logOnlyValueCount, p as maskAtCoordinates, pn as recordNestedStackParameterExpressions, pt as unionOfSecretBags, u as canonicalCoordinates, un as physicalNameCopiesOf, v as noEchoCoordinatesOf, vn as carriesSecretMask, vt as maskSecretsInText, y as noEchoLeavesOf, zn as WHOLE_DYNAMIC_REFERENCE_PATTERN } from "./replacement-rules-DL9MZWSp.js";
|
|
16
|
+
import { S as unsettledPropertiesOf, T as withoutUnsettledProperties, b as unsettledItemsOf, w as withUnsettledProperties, y as unsettledItemsField } from "./restore-source-guard-ClcpxInI.js";
|
|
17
|
+
import { u as differingIdentityWarning } from "./identity-read-denied-DHWVUHrX.js";
|
|
18
|
+
import { n as isRedactedRecordedValue } from "./redacted-delete-address-Be4d3ZWA.js";
|
|
19
|
+
import { a as withResourceDeadline } from "./resource-deadline-D65EA80y.js";
|
|
20
|
+
import { a as parseEcrRegistryHost, i as looksLikeEcrHostWithForeignSuffix, n as hasEcrRegistryHostLabels, t as ecrRegistryHostPattern } from "./ecr-uri-BYBZlAlS.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";
|
|
@@ -1248,8 +1248,10 @@ function renderApprovalRequest(request) {
|
|
|
1248
1248
|
for (const change of request.destructiveChanges) lines.push(` ${formatDestructiveChange(change)}`);
|
|
1249
1249
|
lines.push("");
|
|
1250
1250
|
}
|
|
1251
|
-
|
|
1252
|
-
|
|
1251
|
+
lines.push(request.outputsOnly ? `Stack ${displayIdent(request.stackName)}: no resource changes; its Outputs change.` : `Stack ${displayIdent(request.stackName)}: ${formatChangeCounts({
|
|
1252
|
+
orphan: 0,
|
|
1253
|
+
...request.counts
|
|
1254
|
+
})}.`);
|
|
1253
1255
|
lines.push(request.level === "destructive" ? `Stack includes destructive updates and "--require-approval" is set to 'destructive'.` : request.level === "broadening" ? `Stack includes security-sensitive updates and "--require-approval" is set to 'broadening'.` : `Stack includes updates and "--require-approval" is set to 'any-change'.`);
|
|
1254
1256
|
return `${lines.join("\n")}\n`;
|
|
1255
1257
|
}
|
|
@@ -1593,7 +1595,7 @@ function collectCrossStackRefs(node, onRef, unconditional) {
|
|
|
1593
1595
|
// src/provisioning/register-providers.ts
|
|
1594
1596
|
let providerClasses;
|
|
1595
1597
|
function loadProviderClasses() {
|
|
1596
|
-
providerClasses ??= import("./provider-classes-
|
|
1598
|
+
providerClasses ??= import("./provider-classes-DWi0yjHc.js");
|
|
1597
1599
|
return providerClasses;
|
|
1598
1600
|
}
|
|
1599
1601
|
function registerAllProviders(registry, classes) {
|
|
@@ -1766,6 +1768,90 @@ function registerAllProviders(registry, classes) {
|
|
|
1766
1768
|
registry.register("AWS::CloudFormation::WaitCondition", new WaitConditionProvider(registry.waitConditionSignals));
|
|
1767
1769
|
}
|
|
1768
1770
|
|
|
1771
|
+
// src/cli/commands/deploy/consumer-cleanup-hold.ts
|
|
1772
|
+
var ConsumerCleanupHold = class ConsumerCleanupHold {
|
|
1773
|
+
consumers;
|
|
1774
|
+
settled = /* @__PURE__ */ new Map();
|
|
1775
|
+
waiters = /* @__PURE__ */ new Set();
|
|
1776
|
+
releases = /* @__PURE__ */ new Map();
|
|
1777
|
+
constructor(consumers) {
|
|
1778
|
+
this.consumers = consumers;
|
|
1779
|
+
}
|
|
1780
|
+
static build(stacks, producersOf) {
|
|
1781
|
+
const inRun = new Set(stacks);
|
|
1782
|
+
const consumers = /* @__PURE__ */ new Map();
|
|
1783
|
+
for (const consumer of stacks) for (const producer of producersOf(consumer)) {
|
|
1784
|
+
if (producer === consumer || !inRun.has(producer)) continue;
|
|
1785
|
+
let set = consumers.get(producer);
|
|
1786
|
+
if (set === void 0) consumers.set(producer, set = /* @__PURE__ */ new Set());
|
|
1787
|
+
set.add(consumer);
|
|
1788
|
+
}
|
|
1789
|
+
return consumers.size === 0 ? void 0 : new ConsumerCleanupHold(consumers);
|
|
1790
|
+
}
|
|
1791
|
+
hasConsumers(producer) {
|
|
1792
|
+
return this.consumers.has(producer);
|
|
1793
|
+
}
|
|
1794
|
+
queueFor(producer) {
|
|
1795
|
+
return this.hasConsumers(producer) ? new NestedCleanupQueue() : void 0;
|
|
1796
|
+
}
|
|
1797
|
+
settle(stack, deployed) {
|
|
1798
|
+
if (this.settled.has(stack)) return;
|
|
1799
|
+
this.settled.set(stack, deployed);
|
|
1800
|
+
for (const wake of [...this.waiters]) wake();
|
|
1801
|
+
}
|
|
1802
|
+
settleRest() {
|
|
1803
|
+
for (const set of this.consumers.values()) for (const consumer of set) this.settle(consumer, false);
|
|
1804
|
+
}
|
|
1805
|
+
released(producer) {
|
|
1806
|
+
return this.releaseOf(producer).promise;
|
|
1807
|
+
}
|
|
1808
|
+
async waitForConsumers(producer) {
|
|
1809
|
+
this.releaseOf(producer).resolve();
|
|
1810
|
+
const consumers = [...this.consumers.get(producer) ?? []];
|
|
1811
|
+
while (consumers.some((consumer) => !this.settled.has(consumer))) await new Promise((resolve) => {
|
|
1812
|
+
const wake = () => {
|
|
1813
|
+
this.waiters.delete(wake);
|
|
1814
|
+
resolve();
|
|
1815
|
+
};
|
|
1816
|
+
this.waiters.add(wake);
|
|
1817
|
+
});
|
|
1818
|
+
return consumers.filter((consumer) => this.settled.get(consumer) !== true);
|
|
1819
|
+
}
|
|
1820
|
+
releaseOf(producer) {
|
|
1821
|
+
let release = this.releases.get(producer);
|
|
1822
|
+
if (release === void 0) {
|
|
1823
|
+
let resolve;
|
|
1824
|
+
release = {
|
|
1825
|
+
promise: new Promise((r) => resolve = r),
|
|
1826
|
+
resolve
|
|
1827
|
+
};
|
|
1828
|
+
this.releases.set(producer, release);
|
|
1829
|
+
}
|
|
1830
|
+
return release;
|
|
1831
|
+
}
|
|
1832
|
+
};
|
|
1833
|
+
async function runHeldProducerCleanup(hold, queue, producer, logger) {
|
|
1834
|
+
const notDeployed = await hold.waitForConsumers(producer);
|
|
1835
|
+
if (notDeployed.length > 0) {
|
|
1836
|
+
logger.info(safeMsg`Keeping the replaced resources of stack ${displayStackName(producer.stackName)}: ${notDeployed.map((c) => displayStackName(c.stackName)).join(", ")} (importing its outputs) did not deploy and may still use them. cdkd keeps them in state, and the next deploy deletes them`);
|
|
1837
|
+
queue.abandon("consumer-failed");
|
|
1838
|
+
return {
|
|
1839
|
+
updatePartial: 0,
|
|
1840
|
+
nestedUpdatePartial: 0
|
|
1841
|
+
};
|
|
1842
|
+
}
|
|
1843
|
+
let interrupted = false;
|
|
1844
|
+
const onSigint = () => {
|
|
1845
|
+
interrupted = true;
|
|
1846
|
+
};
|
|
1847
|
+
process.on("SIGINT", onSigint);
|
|
1848
|
+
try {
|
|
1849
|
+
return await queue.runAll({ interrupted: () => interrupted }, logger);
|
|
1850
|
+
} finally {
|
|
1851
|
+
process.removeListener("SIGINT", onSigint);
|
|
1852
|
+
}
|
|
1853
|
+
}
|
|
1854
|
+
|
|
1769
1855
|
// src/cli/commands/registry-release.ts
|
|
1770
1856
|
async function releaseRegistryMarkerQuietly(backend, stackName, region, logger, known) {
|
|
1771
1857
|
if (stackName.includes("~")) return;
|
|
@@ -3244,6 +3330,7 @@ async function deployStackInScope(ctx, stackInfo, stackRegion, stackAwsClients)
|
|
|
3244
3330
|
dryRun: options.dryRun
|
|
3245
3331
|
});
|
|
3246
3332
|
let runResult = "SUCCEEDED";
|
|
3333
|
+
const consumerCleanupQueue = ctx.consumerHold?.queueFor(stackInfo);
|
|
3247
3334
|
try {
|
|
3248
3335
|
const migrationGate = createPrefixMigrationGate({
|
|
3249
3336
|
stackName: stackInfo.stackName,
|
|
@@ -3368,10 +3455,11 @@ async function deployStackInScope(ctx, stackInfo, stackRegion, stackAwsClients)
|
|
|
3368
3455
|
},
|
|
3369
3456
|
...stackInfo.terminationProtection === true && { terminationProtection: true },
|
|
3370
3457
|
...stackTags !== void 0 && { stackTags },
|
|
3371
|
-
inRunStacks: ctx.inRunStacks
|
|
3458
|
+
inRunStacks: ctx.inRunStacks,
|
|
3459
|
+
...consumerCleanupQueue !== void 0 && { consumerCleanupQueue }
|
|
3372
3460
|
};
|
|
3373
3461
|
const stackDeployEngine = new DeployEngine(stackStateBackend, stackLockManager, dagBuilder, diffCalculator, stackProviderRegistry, deployEngineOptions, stackRegion, exportIndexStore);
|
|
3374
|
-
const
|
|
3462
|
+
const deployed = await withNestedStackContext({
|
|
3375
3463
|
stateBackend: stackStateBackend,
|
|
3376
3464
|
lockManager: stackLockManager,
|
|
3377
3465
|
providerRegistry: stackProviderRegistry,
|
|
@@ -3391,6 +3479,16 @@ async function deployStackInScope(ctx, stackInfo, stackRegion, stackAwsClients)
|
|
|
3391
3479
|
},
|
|
3392
3480
|
...assetRedirect && { assetRedirect }
|
|
3393
3481
|
}, () => stackDeployEngine.deploy(stackInfo.stackName, stackInfo.template));
|
|
3482
|
+
ctx.consumerHold?.settle(stackInfo, true);
|
|
3483
|
+
let deployResult = deployed;
|
|
3484
|
+
if (ctx.consumerHold !== void 0 && (consumerCleanupQueue?.size ?? 0) > 0) {
|
|
3485
|
+
const held = await runHeldProducerCleanup(ctx.consumerHold, consumerCleanupQueue, stackInfo, logger);
|
|
3486
|
+
deployResult = {
|
|
3487
|
+
...deployed,
|
|
3488
|
+
updatePartial: deployed.updatePartial + held.updatePartial,
|
|
3489
|
+
nestedUpdatePartial: (deployed.nestedUpdatePartial ?? 0) + held.nestedUpdatePartial
|
|
3490
|
+
};
|
|
3491
|
+
}
|
|
3394
3492
|
logger.info(`\n${bold("Deployment Summary:")}`);
|
|
3395
3493
|
logger.info(` Stack: ${bold(cyan(deployResult.stackName))}`);
|
|
3396
3494
|
logger.info(` Created: ${deployResult.created > 0 ? green(deployResult.created) : gray(deployResult.created)}`);
|
|
@@ -3432,6 +3530,7 @@ async function deployStackInScope(ctx, stackInfo, stackRegion, stackAwsClients)
|
|
|
3432
3530
|
recordRunFailed(eventRecorder, stackInfo.stackName, deployError);
|
|
3433
3531
|
throw deployError;
|
|
3434
3532
|
} finally {
|
|
3533
|
+
consumerCleanupQueue?.abandon("failed");
|
|
3435
3534
|
await Promise.all([eventRecorder?.finalize(runResult), stackLockManager.settleDeferredPurges()]);
|
|
3436
3535
|
stackAwsClients.destroy();
|
|
3437
3536
|
stateS3Client.destroy();
|
|
@@ -3709,6 +3808,12 @@ async function deployCommand(stacks, options) {
|
|
|
3709
3808
|
let totalCrossPrefixKept = 0;
|
|
3710
3809
|
let cancelledStacks = 0;
|
|
3711
3810
|
const stackOutputs = {};
|
|
3811
|
+
const consumerHold = options.dryRun ? void 0 : ConsumerCleanupHold.build(targetStacks, (s) => inferredCrossStackDeps.get(s) ?? []);
|
|
3812
|
+
const heldStacks = [];
|
|
3813
|
+
const flushStackRun = (outcome) => {
|
|
3814
|
+
if (outcome.lines.length > 0) process.stdout.write(outcome.lines.join("\n") + "\n");
|
|
3815
|
+
if (!outcome.ok) throw outcome.error;
|
|
3816
|
+
};
|
|
3712
3817
|
const runStack = async (stackInfo) => {
|
|
3713
3818
|
return withSkipPrefix(skipPrefix, () => runStackInner(stackInfo));
|
|
3714
3819
|
};
|
|
@@ -3751,11 +3856,13 @@ async function deployCommand(stacks, options) {
|
|
|
3751
3856
|
addCancelledStack: () => {
|
|
3752
3857
|
cancelledStacks++;
|
|
3753
3858
|
},
|
|
3754
|
-
inRunStacks: new Set(targetStacks.map((s) => inRunStackKey(s.stackName, stackRegions.get(s) ?? deployStackRegion(s, baseRegion))))
|
|
3859
|
+
inRunStacks: new Set(targetStacks.map((s) => inRunStackKey(s.stackName, stackRegions.get(s) ?? deployStackRegion(s, baseRegion)))),
|
|
3860
|
+
...consumerHold !== void 0 && { consumerHold }
|
|
3755
3861
|
};
|
|
3756
3862
|
checkPinCcApiOptions(options, targetStacks, logger);
|
|
3757
3863
|
runClock.lap("work graph build, recreate checks");
|
|
3758
3864
|
let workGraphCompleted = false;
|
|
3865
|
+
let heldFailure;
|
|
3759
3866
|
try {
|
|
3760
3867
|
await workGraph.execute({
|
|
3761
3868
|
"asset-build": options.imageBuildConcurrency,
|
|
@@ -3769,15 +3876,29 @@ async function deployCommand(stacks, options) {
|
|
|
3769
3876
|
await runStack(stackInfo);
|
|
3770
3877
|
return;
|
|
3771
3878
|
}
|
|
3772
|
-
const
|
|
3773
|
-
|
|
3774
|
-
|
|
3879
|
+
const run = runStackBuffered(() => runStack(stackInfo)).then((outcome) => {
|
|
3880
|
+
consumerHold?.settle(stackInfo, false);
|
|
3881
|
+
return outcome;
|
|
3882
|
+
});
|
|
3883
|
+
if (consumerHold?.hasConsumers(stackInfo) === true && await Promise.race([run.then(() => false), consumerHold.released(stackInfo).then(() => true)])) {
|
|
3884
|
+
heldStacks.push(run);
|
|
3885
|
+
return;
|
|
3886
|
+
}
|
|
3887
|
+
flushStackRun(await run);
|
|
3775
3888
|
}
|
|
3776
3889
|
});
|
|
3777
3890
|
workGraphCompleted = true;
|
|
3778
3891
|
} finally {
|
|
3892
|
+
consumerHold?.settleRest();
|
|
3893
|
+
for (const held of heldStacks) try {
|
|
3894
|
+
flushStackRun(await held);
|
|
3895
|
+
} catch (error) {
|
|
3896
|
+
workGraphCompleted = false;
|
|
3897
|
+
heldFailure ??= error;
|
|
3898
|
+
}
|
|
3779
3899
|
if (outputsFile !== void 0) writeStackOutputsFile(outputsFile, stackOutputs, { deployFailed: !workGraphCompleted });
|
|
3780
3900
|
}
|
|
3901
|
+
if (heldFailure !== void 0) throw heldFailure;
|
|
3781
3902
|
if (totalUnaddressed > 0 && !options.allowUnaddressed) throw new PartialFailureError(`Deploy left ${totalUnaddressed} resource(s) unaddressed, so they may still exist in AWS. The two cases differ in what happens next: a DELETE the provider could not issue KEEPS its state record, so the next 'cdkd deploy' re-attempts it, while a replacement's surviving predecessor is NOT tracked and will never be retried — delete it by hand. ` + (totalCrossPrefixKept > 0 ? "A replacement kept because another state prefix records the stack, or the check could not run, keeps its old resource and applies no new value — resolve the pair, or let the check run, and re-deploy. " : "") + "The per-stack summaries above give the breakdown, and each resource's own warning names its cause and remedy. " + (cancelledStacks > 0 ? `Note ${cancelledStacks} stack(s) were also cancelled and never deployed, so the template is not fully applied beyond the resources named above. ` : "") + `Pass --allow-unaddressed to exit 0 instead.`);
|
|
3782
3903
|
} finally {
|
|
3783
3904
|
runClock.lap("assets + stacks, summary");
|
|
@@ -6011,6 +6132,7 @@ async function computeStackDiff(loadedState, template, region, stackName, stateB
|
|
|
6011
6132
|
...options.inheritedReferenceProvenance && { inherited: options.inheritedReferenceProvenance },
|
|
6012
6133
|
crossStackOutputs: crossStackOutputProvenanceSource(crossStackReads, crossStackReads, stateBackend)
|
|
6013
6134
|
}, options.forcedNestedChildRuns, options.updatePolicy === true);
|
|
6135
|
+
warnLegacySpelling(changes, effectiveTemplate, stackName, logger);
|
|
6014
6136
|
const childStackTags = await settleStackTagChildRuns({
|
|
6015
6137
|
changes,
|
|
6016
6138
|
template: effectiveTemplate,
|
|
@@ -6617,10 +6739,11 @@ function renderDiffValue(own, filtered, indent, isNewSide) {
|
|
|
6617
6739
|
}
|
|
6618
6740
|
return (JSON.stringify(filtered, null, 2) ?? "undefined").replace(/\n/g, `\n${indent}`);
|
|
6619
6741
|
}
|
|
6620
|
-
function renderChangeLines(changes, logFn, ccApiRoutes, adoptedOrphans, refactorHints) {
|
|
6742
|
+
function renderChangeLines(changes, logFn, ccApiRoutes, adoptedOrphans, refactorHints, orphaned) {
|
|
6621
6743
|
let createCount = 0;
|
|
6622
6744
|
let updateCount = 0;
|
|
6623
6745
|
let deleteCount = 0;
|
|
6746
|
+
let orphanCount = 0;
|
|
6624
6747
|
const adopted = new Set(adoptedOrphans ?? []);
|
|
6625
6748
|
const annotateAdoption = (logicalId) => adopted.has(logicalId) ? " [adopted from a rollback orphan]" : "";
|
|
6626
6749
|
const annotateRouting = (logicalId) => {
|
|
@@ -6661,17 +6784,19 @@ function renderChangeLines(changes, logFn, ccApiRoutes, adoptedOrphans, refactor
|
|
|
6661
6784
|
if (change.nestedChildHeal === true) logFn(" - [nested stack deployed to re-spell an SSM parameter name; go-to-k/cdkd#6282]");
|
|
6662
6785
|
if (change.nestedStackTagsChanged === true) logFn(" - [nested stack deployed to apply its changed stack tags]");
|
|
6663
6786
|
break;
|
|
6664
|
-
case "DELETE":
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
}
|
|
6787
|
+
case "DELETE": {
|
|
6788
|
+
const orphan = orphaned?.has(logicalId) === true;
|
|
6789
|
+
if (orphan) orphanCount++;
|
|
6790
|
+
else deleteCount++;
|
|
6791
|
+
const movedTo = refactorHints?.get(logicalId);
|
|
6792
|
+
logFn(` [-] ${logicalId} (${change.resourceType})` + (orphan ? " [orphan: its DeletionPolicy keeps it in AWS]" : "") + (movedTo !== void 0 ? movedToHint(movedTo) : ""));
|
|
6793
|
+
}
|
|
6670
6794
|
}
|
|
6671
6795
|
return {
|
|
6672
6796
|
create: createCount,
|
|
6673
6797
|
update: updateCount,
|
|
6674
|
-
delete: deleteCount
|
|
6798
|
+
delete: deleteCount,
|
|
6799
|
+
orphan: orphanCount
|
|
6675
6800
|
};
|
|
6676
6801
|
}
|
|
6677
6802
|
const redactedLegacyPlaintext = () => `<redacted: may be legacy plaintext in state — run ${proseQuoted(cdkdRemedy("cdkd scrub"), "`")}>`;
|
|
@@ -6730,9 +6855,9 @@ function renderDiffTree(node, isRoot, logFn) {
|
|
|
6730
6855
|
const hasChanges = nodeHasChanges(node);
|
|
6731
6856
|
if (hasChanges || node.blocking.length > 0) logFn(isRoot ? `\nStack ${stripForDisplay(node.stackName)}:` : `\nNested stack: ${stripForDisplay(node.displayName)}`);
|
|
6732
6857
|
if (hasChanges) {
|
|
6733
|
-
const
|
|
6858
|
+
const counts = renderChangeLines(node.changes, logFn, node.ccApiRoutes, node.adoptedOrphans, node.refactorHints, orphanedLogicalIds(node.destructiveChanges));
|
|
6734
6859
|
const outputs = renderOutputChangeLines(node.outputChanges, logFn);
|
|
6735
|
-
logFn(`\n${
|
|
6860
|
+
logFn(`\n${formatChangeCounts(counts)}`);
|
|
6736
6861
|
if (outputs.add + outputs.change + outputs.remove > 0) logFn(`${outputs.add} output(s) to add, ${outputs.change} to change, ${outputs.remove} to remove`);
|
|
6737
6862
|
if (node.adoptedOrphans.length > 0) logFn(`${node.adoptedOrphans.length} resource(s) to adopt from a previous rollback: ${node.adoptedOrphans.map((id) => displayLogicalId(id)).join(", ")}`);
|
|
6738
6863
|
const unreadableTotal = unreadableCount(node);
|
|
@@ -13848,6 +13973,100 @@ function refuseCcGroupRevertChangingRules(logicalId, groupId, resourceType, prop
|
|
|
13848
13973
|
throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `its ${changed.join(" and ")} would change, and a security group provisioned through Cloud Control replaces the whole list, which would drop the rules this stack's standalone rule resources own. Nothing was changed; revert it by redeploying the stack`);
|
|
13849
13974
|
}
|
|
13850
13975
|
|
|
13976
|
+
// src/cli/commands/drift/revert-verify.ts
|
|
13977
|
+
function sentDiffPaths(sent, live, paths, provider, resourceType, recordedProperties) {
|
|
13978
|
+
const keys = new Set(paths.map((p) => p.split(".", 1)[0] ?? ""));
|
|
13979
|
+
const sentTargets = {};
|
|
13980
|
+
for (const key of keys) defineOwnKey(sentTargets, key, Object.prototype.hasOwnProperty.call(sent, key) ? sent[key] : void 0);
|
|
13981
|
+
const protocols = canonicalizeIpProtocols(sentTargets, live, resourceType);
|
|
13982
|
+
const canonical = provider.canonicalizeDriftProperties ? {
|
|
13983
|
+
baseline: provider.canonicalizeDriftProperties(resourceType, protocols.baseline),
|
|
13984
|
+
aws: provider.canonicalizeDriftProperties(resourceType, protocols.aws)
|
|
13985
|
+
} : protocols;
|
|
13986
|
+
return calculateResourceDrift(canonical.baseline, canonical.aws, {
|
|
13987
|
+
ignorePaths: provider.getDriftUnknownPaths?.(resourceType, recordedProperties) ?? [],
|
|
13988
|
+
unionWalkObjects: true,
|
|
13989
|
+
unorderedPaths: provider.getDriftUnorderedPaths?.(resourceType) ?? [],
|
|
13990
|
+
unionWalkPaths: verbatimEchoDriftKeys(resourceType),
|
|
13991
|
+
resourceType
|
|
13992
|
+
}).map((change) => change.path).filter((path) => paths.some((target) => overlaps(path, target)));
|
|
13993
|
+
}
|
|
13994
|
+
const REVERT_VERIFY_RETRY_DELAYS_MS = [5e3, 8e3];
|
|
13995
|
+
function overlaps(path, target) {
|
|
13996
|
+
return path === target || path.startsWith(`${target}.`) || target.startsWith(`${path}.`);
|
|
13997
|
+
}
|
|
13998
|
+
function unverifiableReason(outcome) {
|
|
13999
|
+
if (outcome === void 0) return "the re-read did not report it";
|
|
14000
|
+
return matchOutcome(outcome, {
|
|
14001
|
+
drifted: () => void 0,
|
|
14002
|
+
clean: () => void 0,
|
|
14003
|
+
notCompared: (o) => `the re-read could not compare it (${o.notComparedCause})`,
|
|
14004
|
+
unsupported: () => "no provider could read it back",
|
|
14005
|
+
skipped: () => "the re-read skipped it",
|
|
14006
|
+
deleted: () => "AWS reports it deleted"
|
|
14007
|
+
});
|
|
14008
|
+
}
|
|
14009
|
+
async function verifyRevertedStack(stackName, region, reverted, redetect, logger, delays = REVERT_VERIFY_RETRY_DELAYS_MS, sleep = (ms) => new Promise((r) => setTimeout(r, ms))) {
|
|
14010
|
+
let pending = [...reverted];
|
|
14011
|
+
let stillDiffering = /* @__PURE__ */ new Map();
|
|
14012
|
+
let unverified = 0;
|
|
14013
|
+
for (let attempt = 0; attempt <= delays.length && pending.length > 0; attempt++) {
|
|
14014
|
+
if (attempt > 0) await sleep(delays[attempt - 1]);
|
|
14015
|
+
const level = logger.getLevel();
|
|
14016
|
+
if (level !== "debug") logger.setLevel("error");
|
|
14017
|
+
let fresh;
|
|
14018
|
+
let failure;
|
|
14019
|
+
try {
|
|
14020
|
+
fresh = await redetect(stackName, region);
|
|
14021
|
+
} catch (err) {
|
|
14022
|
+
failure = err;
|
|
14023
|
+
} finally {
|
|
14024
|
+
logger.setLevel(level);
|
|
14025
|
+
}
|
|
14026
|
+
if (fresh === void 0) {
|
|
14027
|
+
for (const r of pending) logger.warn(safeMsg` ? ${stackName}/${r.logicalId} (${r.resourceType}): reverted, but cdkd could not verify it: the re-read failed (${describeAwsFailure(failure).detail}).`);
|
|
14028
|
+
return {
|
|
14029
|
+
notApplied: 0,
|
|
14030
|
+
unverified: unverified + pending.length
|
|
14031
|
+
};
|
|
14032
|
+
}
|
|
14033
|
+
const byId = new Map(fresh.outcomes.map((o) => [o.logicalId, o]));
|
|
14034
|
+
const next = [];
|
|
14035
|
+
stillDiffering = /* @__PURE__ */ new Map();
|
|
14036
|
+
for (const r of pending) {
|
|
14037
|
+
const outcome = byId.get(r.logicalId);
|
|
14038
|
+
const reason = unverifiableReason(outcome);
|
|
14039
|
+
if (reason !== void 0) {
|
|
14040
|
+
unverified++;
|
|
14041
|
+
logger.warn(safeMsg` ? ${stackName}/${r.logicalId} (${r.resourceType}): reverted, but cdkd could not verify it: ${reason}.`);
|
|
14042
|
+
continue;
|
|
14043
|
+
}
|
|
14044
|
+
if (outcome?.kind !== "drifted") continue;
|
|
14045
|
+
let notAsSent;
|
|
14046
|
+
try {
|
|
14047
|
+
notAsSent = r.differsFromSent(outcome.awsProperties);
|
|
14048
|
+
} catch {
|
|
14049
|
+
unverified++;
|
|
14050
|
+
logger.warn(safeMsg` ? ${stackName}/${r.logicalId} (${r.resourceType}): reverted, but cdkd could not verify it: comparing the re-read with the value sent failed.`);
|
|
14051
|
+
continue;
|
|
14052
|
+
}
|
|
14053
|
+
const differing = outcome.changes.map((c) => c.path).filter((p) => r.paths.some((target) => overlaps(p, target))).filter((p) => notAsSent.some((q) => overlaps(p, q)));
|
|
14054
|
+
if (differing.length === 0) continue;
|
|
14055
|
+
next.push(r);
|
|
14056
|
+
stillDiffering.set(r, differing.map((p) => reportPath(displayDriftPath(outcome, p))));
|
|
14057
|
+
}
|
|
14058
|
+
pending = next;
|
|
14059
|
+
}
|
|
14060
|
+
for (const r of pending) {
|
|
14061
|
+
const paths = (stillDiffering.get(r) ?? []).join(", ");
|
|
14062
|
+
logger.error(safeMsg` ✗ ${stackName}/${r.logicalId} (${r.resourceType}): not applied by AWS — AWS accepted the update without applying the reverted value; a re-read still differs from cdkd state at ${paths}.`);
|
|
14063
|
+
}
|
|
14064
|
+
return {
|
|
14065
|
+
notApplied: pending.length,
|
|
14066
|
+
unverified
|
|
14067
|
+
};
|
|
14068
|
+
}
|
|
14069
|
+
|
|
13851
14070
|
// src/cli/commands/drift/revert-apply.ts
|
|
13852
14071
|
function applyRevertUpdate(args) {
|
|
13853
14072
|
return withStackRecords(revertStackRecordsView(args.report.state.resources), () => applyRevertUpdateInScope(args));
|
|
@@ -13903,10 +14122,12 @@ async function applyRevertUpdateInScope(args) {
|
|
|
13903
14122
|
const revertPartial = updatePartialReason(updateResult);
|
|
13904
14123
|
if (revertPartial !== void 0) logger.warn(` ✓ ${report.stackName}/${outcome.logicalId} (${outcome.resourceType}): reverted, ${maskSecretsInText(updatePartialMessage(revertPartial), secrets)}`);
|
|
13905
14124
|
else logger.info(` ✓ ${report.stackName}/${outcome.logicalId} (${outcome.resourceType}): reverted.`);
|
|
14125
|
+
let narrowedKeys = [];
|
|
13906
14126
|
try {
|
|
13907
14127
|
if (updateResult?.effectiveProperties) {
|
|
13908
14128
|
const delta = collectNarrowedTopLevelKeys(newProperties, updateResult.effectiveProperties);
|
|
13909
|
-
|
|
14129
|
+
narrowedKeys = Object.keys(delta);
|
|
14130
|
+
if (narrowedKeys.length > 0) narrowedByLogicalId.set(outcome.logicalId, keepBaselineAtUncertifiedPaths(redactForState(delta, {
|
|
13910
14131
|
provenance: stateResource.observedProperties !== void 0 ? "state-baseline" : "state-readback",
|
|
13911
14132
|
secrets,
|
|
13912
14133
|
source: revertBaseline
|
|
@@ -13915,6 +14136,15 @@ async function applyRevertUpdateInScope(args) {
|
|
|
13915
14136
|
} catch (captureErr) {
|
|
13916
14137
|
logger.warn(` ${report.stackName}/${outcome.logicalId} (${outcome.resourceType}): reverted, but the provider's reported effective properties could not be read — ${maskSecretsInText(describeAwsFailure(captureErr).detail, secrets)}`);
|
|
13917
14138
|
}
|
|
14139
|
+
const verifiedPaths = outcome.changes.map((change) => change.path).filter((path) => !narrowedKeys.includes(path.split(".", 1)[0] ?? ""));
|
|
14140
|
+
tally.reverted.push({
|
|
14141
|
+
stackName: report.stackName,
|
|
14142
|
+
region: report.region,
|
|
14143
|
+
logicalId: outcome.logicalId,
|
|
14144
|
+
resourceType: outcome.resourceType,
|
|
14145
|
+
paths: verifiedPaths,
|
|
14146
|
+
differsFromSent: (live) => sentDiffPaths(newProperties, live, verifiedPaths, provider, outcome.resourceType, stateResource.properties ?? {})
|
|
14147
|
+
});
|
|
13918
14148
|
recordReturnedIdentity(args, updateResult, "reverted");
|
|
13919
14149
|
} catch (err) {
|
|
13920
14150
|
if (err instanceof ResourceUpdateNotSupportedError) {
|
|
@@ -14078,7 +14308,7 @@ async function revertDriftedOutcome(args) {
|
|
|
14078
14308
|
}
|
|
14079
14309
|
|
|
14080
14310
|
// src/cli/commands/drift/revert.ts
|
|
14081
|
-
async function runRevert(reports, regionScope, stateBackend, stateConfig, awsClients, options) {
|
|
14311
|
+
async function runRevert(reports, regionScope, stateBackend, stateConfig, awsClients, options, redetect) {
|
|
14082
14312
|
const logger = getLogger();
|
|
14083
14313
|
const out = humanTextSink(options.json);
|
|
14084
14314
|
const lockRecovery = {
|
|
@@ -14131,7 +14361,8 @@ async function runRevert(reports, regionScope, stateBackend, stateConfig, awsCli
|
|
|
14131
14361
|
totalFailed: 0,
|
|
14132
14362
|
totalUnsupported: 0,
|
|
14133
14363
|
totalSucceeded: 0,
|
|
14134
|
-
totalUnresolvable: 0
|
|
14364
|
+
totalUnresolvable: 0,
|
|
14365
|
+
reverted: []
|
|
14135
14366
|
};
|
|
14136
14367
|
const writeAheadFailedStacks = [];
|
|
14137
14368
|
for (const report of reports) {
|
|
@@ -14271,16 +14502,29 @@ async function runRevert(reports, regionScope, stateBackend, stateConfig, awsCli
|
|
|
14271
14502
|
}
|
|
14272
14503
|
});
|
|
14273
14504
|
}
|
|
14505
|
+
let totalNotApplied = 0;
|
|
14506
|
+
let totalUnverified = 0;
|
|
14507
|
+
for (const report of reports) {
|
|
14508
|
+
const reverted = tally.reverted.filter((r) => r.stackName === report.stackName && r.region === report.region);
|
|
14509
|
+
if (reverted.length === 0) continue;
|
|
14510
|
+
const verified = await verifyRevertedStack(report.stackName, report.region, reverted, redetect, logger);
|
|
14511
|
+
totalNotApplied += verified.notApplied;
|
|
14512
|
+
totalUnverified += verified.unverified;
|
|
14513
|
+
}
|
|
14274
14514
|
const { totalFailed, totalUnsupported, totalSucceeded, totalUnresolvable } = tally;
|
|
14275
14515
|
const summaryParts = [`${totalSucceeded} reverted`];
|
|
14516
|
+
if (totalNotApplied > 0) summaryParts.push(`${totalNotApplied} not applied by AWS`);
|
|
14517
|
+
if (totalUnverified > 0) summaryParts.push(`${totalUnverified} not verified`);
|
|
14276
14518
|
if (totalUnsupported > 0) summaryParts.push(`${totalUnsupported} update-not-supported`);
|
|
14277
14519
|
if (totalUnresolvable > 0) summaryParts.push(`${totalUnresolvable} reference-unresolvable`);
|
|
14278
14520
|
if (totalFailed > 0) summaryParts.push(`${totalFailed} failed`);
|
|
14279
14521
|
if (writeAheadFailedStacks.length > 0) summaryParts.push(`${writeAheadFailedStacks.length} stack(s) not reverted`);
|
|
14280
14522
|
logger.info(`\nRevert summary: ${summaryParts.join(", ")}.`);
|
|
14281
|
-
|
|
14523
|
+
const notAppliedSentence = totalNotApplied > 0 ? `${totalNotApplied} reverted resource(s) were not applied by AWS: the update was accepted, but a re-read still shows the drift on the paths named above. Re-running --revert sends the same update; this is usually a cdkd provider sending a value the service ignores, so please report it.` : "";
|
|
14524
|
+
if (writeAheadFailedStacks.length > 0) throw new PartialFailureError(`Nothing was reverted for ${writeAheadFailedStacks.join(", ")}: cdkd could not save state before sending secret values, so no AWS update ran there (the cause is logged above). Re-run ${pasteableCommand("cdkd drift", [{ hole: "stacks..." }, { literal: "--revert" }]).command} once state writes succeed.` + (totalFailed + totalUnsupported + totalUnresolvable > 0 ? ` Other stacks also reported ${totalFailed + totalUnsupported + totalUnresolvable} resource error(s) above.` : "") + (notAppliedSentence ? ` ${notAppliedSentence}` : ""));
|
|
14282
14525
|
if (totalUnsupported > 0) logger.warn(`${totalUnsupported} resource(s) cannot be reverted in place — re-deploy the stack with ${deployReplaceCommand()}, or destroy + redeploy to push the cdkd-state values back into AWS.`);
|
|
14283
|
-
if (totalFailed > 0 || totalUnsupported > 0 || totalUnresolvable > 0) throw new PartialFailureError(`Revert completed with ${totalFailed + totalUnsupported + totalUnresolvable} resource error(s) (${totalFailed} AWS update failure(s), ${totalUnsupported} update-not-supported, ${totalUnresolvable} refused or unresolvable — those never reached provider.update; each per-resource message above names its cause and remedy, e.g. missing secretsmanager:GetSecretValue / ssm:GetParameter grants for an unresolvable reference). Re-run ${pasteableCommand("cdkd drift", [{ hole: "stacks..." }]).command} to see the remaining drift, then ${pasteableCommand("cdkd drift", [{ hole: "stacks..." }, { literal: "--revert" }]).command} to retry.`);
|
|
14526
|
+
if (totalFailed > 0 || totalUnsupported > 0 || totalUnresolvable > 0) throw new PartialFailureError(`Revert completed with ${totalFailed + totalUnsupported + totalUnresolvable} resource error(s) (${totalFailed} AWS update failure(s), ${totalUnsupported} update-not-supported, ${totalUnresolvable} refused or unresolvable — those never reached provider.update; each per-resource message above names its cause and remedy, e.g. missing secretsmanager:GetSecretValue / ssm:GetParameter grants for an unresolvable reference). Re-run ${pasteableCommand("cdkd drift", [{ hole: "stacks..." }]).command} to see the remaining drift, then ${pasteableCommand("cdkd drift", [{ hole: "stacks..." }, { literal: "--revert" }]).command} to retry.` + (notAppliedSentence ? ` ${notAppliedSentence}` : ""));
|
|
14527
|
+
if (totalNotApplied > 0) throw new PartialFailureError(`${notAppliedSentence} Re-run ${pasteableCommand("cdkd drift", [{ hole: "stacks..." }]).command} to see what still differs.`);
|
|
14284
14528
|
}
|
|
14285
14529
|
|
|
14286
14530
|
// src/cli/commands/drift/command.ts
|
|
@@ -14414,7 +14658,10 @@ async function driftCommand(stacks, options) {
|
|
|
14414
14658
|
let outcome;
|
|
14415
14659
|
if (options.accept) outcome = await runAccept(reports, stackRegionScope, stateBackend, stateConfig, awsClients, options);
|
|
14416
14660
|
else try {
|
|
14417
|
-
outcome = await runRevert(reports, stackRegionScope, stateBackend, stateConfig, awsClients, options)
|
|
14661
|
+
outcome = await runRevert(reports, stackRegionScope, stateBackend, stateConfig, awsClients, options, (stackName, stackRegion) => {
|
|
14662
|
+
const scope = stackRegionScope(stackRegion);
|
|
14663
|
+
return runWithStackAwsClients(scope.clients, () => runDriftForStack(stackName, stackRegion, stateBackend, scope.registry, scope.ccApiFallback, resolvePrincipalUniqueId, "refuse", nestedChildRecord, refusalRecovery));
|
|
14664
|
+
});
|
|
14418
14665
|
} catch (err) {
|
|
14419
14666
|
if (anyRefusedDeleted && err instanceof PartialFailureError) throw new PartialFailureError(`${err.message} ${deletedRefusalError(refusedDeleted, mode).message}`, err);
|
|
14420
14667
|
throw err;
|
|
@@ -14590,7 +14837,7 @@ function recordDestroyEvent(recorder, event) {
|
|
|
14590
14837
|
const SKIPPED_REMEDY = "Each 'skipped (...)' line above names its cause, and its warning says whether repairing the record in state.json helps. Where it does, repair it and re-run. Otherwise (for example a custom-resource Delete handler that reported FAILED), delete the resources by hand, then drop the records.";
|
|
14591
14838
|
function countProtectedResources(state) {
|
|
14592
14839
|
let count = 0;
|
|
14593
|
-
const records = [...Object.values(state.resources ?? {}), ...supersededResourcesOf(state).map((entry) => entry.state)];
|
|
14840
|
+
const records = [...Object.values(state.resources ?? {}).filter((r) => !shouldRetainResource(r.deletionPolicy)), ...supersededResourcesOf(state).map((entry) => entry.state)];
|
|
14594
14841
|
for (const resource of records) {
|
|
14595
14842
|
const locator = perType(PROTECTION_PROPERTY_BY_TYPE, resource.resourceType);
|
|
14596
14843
|
if (locator) {
|
|
@@ -14794,7 +15041,7 @@ async function destroyEmptyStack({ stackName, ctx, logger, stackLockBase, region
|
|
|
14794
15041
|
result.skippedEmpty = true;
|
|
14795
15042
|
return result;
|
|
14796
15043
|
}
|
|
14797
|
-
async function announceOrphansAndConfirm({ state, logger, stackNoEchoValues, journaledOrphans, ctx, stackName, resourceCount, protectedCount, result }) {
|
|
15044
|
+
async function announceOrphansAndConfirm({ state, logger, stackNoEchoValues, journaledOrphans, ctx, stackName, resourceCount, keptCount, protectedCount, result }) {
|
|
14798
15045
|
const orphansAtDestroy = state.orphans ?? [];
|
|
14799
15046
|
if (orphansAtDestroy.length > 0) {
|
|
14800
15047
|
logger.info(`\n${orphansAtDestroy.length} resource(s) are still in AWS from an earlier failed deploy. cdkd left them there because their DeletionPolicy is Retain (CDK's RemovalPolicy.RETAIN), and has been tracking them so a later deploy of this stack could adopt them back instead of colliding with their names.`);
|
|
@@ -14816,8 +15063,9 @@ async function announceOrphansAndConfirm({ state, logger, stackNoEchoValues, jou
|
|
|
14816
15063
|
output: process.stdout
|
|
14817
15064
|
});
|
|
14818
15065
|
const journaledClause = journaledOrphans.count > 0 ? ` and ${journaledOrphans.count} recorded only in its rollback journal` : "";
|
|
15066
|
+
const keptClause = keptCount > 0 ? ` (${keptCount} kept in AWS by their DeletionPolicy)` : "";
|
|
14819
15067
|
const stackLabel = displayStackName(stackName) + (ctx.confirmationNote !== void 0 ? ` (${ctx.confirmationNote})` : "");
|
|
14820
|
-
const prompt = ctx.removeProtection ? `\nAbout to destroy ${resourceCount} resources${journaledClause} from stack ${stackLabel}, REMOVING DELETION PROTECTION on ${protectedCount} of them. Continue? (y/N): ` : `\nAre you sure you want to destroy stack ${stackLabel} and delete all ${resourceCount} resources${journaledClause}? (Y/n): `;
|
|
15068
|
+
const prompt = ctx.removeProtection ? `\nAbout to destroy ${resourceCount} resources${journaledClause} from stack ${stackLabel}${keptClause}, REMOVING DELETION PROTECTION on ${protectedCount} of them. Continue? (y/N): ` : `\nAre you sure you want to destroy stack ${stackLabel} and delete all ${resourceCount} resources${journaledClause}${keptClause}? (Y/n): `;
|
|
14821
15069
|
const answer = await rl.question(prompt);
|
|
14822
15070
|
rl.close();
|
|
14823
15071
|
const trimmed = answer.trim().toLowerCase();
|
|
@@ -15977,8 +16225,15 @@ async function destroyStackInRegion(stackName, state, ctx, stackScope) {
|
|
|
15977
16225
|
const consumers = await scanActiveConsumers(stackName, regionForState, ctx);
|
|
15978
16226
|
if (consumers.length > 0) throw new StackHasActiveImportsError(stackName, regionForState, consumers);
|
|
15979
16227
|
}
|
|
15980
|
-
|
|
15981
|
-
|
|
16228
|
+
const entries = Object.entries(state.resources);
|
|
16229
|
+
const toDelete = entries.filter(([, r]) => !shouldRetainResource(r.deletionPolicy));
|
|
16230
|
+
const toKeep = entries.filter(([, r]) => shouldRetainResource(r.deletionPolicy));
|
|
16231
|
+
logger.info(`\nResources to be deleted (${toDelete.length}):`);
|
|
16232
|
+
for (const [logicalId, resource] of toDelete) logger.info(` - ${displaySafe(logicalId)} (${displaySafe(resource.resourceType)})`);
|
|
16233
|
+
if (toKeep.length > 0) {
|
|
16234
|
+
logger.info(safeMsg`\nResources kept in AWS by their DeletionPolicy (${toKeep.length}):`);
|
|
16235
|
+
for (const [logicalId, resource] of toKeep) logger.info(safeMsg` - ${logicalId} (${resource.resourceType}), DeletionPolicy: ${resource.deletionPolicy}`);
|
|
16236
|
+
}
|
|
15982
16237
|
if (supersededCount > 0) {
|
|
15983
16238
|
logger.info(safeMsg`\nOld resources a replacement left to delete (${supersededCount}):`);
|
|
15984
16239
|
for (const entry of supersededResourcesOf(state)) logger.info(safeMsg` - ${entry.logicalId} (${entry.state.resourceType}), superseded`);
|
|
@@ -16009,7 +16264,8 @@ async function destroyStackInRegion(stackName, state, ctx, stackScope) {
|
|
|
16009
16264
|
journaledOrphans,
|
|
16010
16265
|
ctx,
|
|
16011
16266
|
stackName,
|
|
16012
|
-
resourceCount,
|
|
16267
|
+
resourceCount: toDelete.length,
|
|
16268
|
+
keptCount: toKeep.length,
|
|
16013
16269
|
protectedCount,
|
|
16014
16270
|
result
|
|
16015
16271
|
});
|
|
@@ -37486,4 +37742,4 @@ function collectVerbFlags(program) {
|
|
|
37486
37742
|
}
|
|
37487
37743
|
|
|
37488
37744
|
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 };
|
|
37489
|
-
//# sourceMappingURL=program-
|
|
37745
|
+
//# sourceMappingURL=program-BBg-9V23.js.map
|