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