@cdkd/cli 0.366.0 → 0.366.1
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-DGlgLkLA.js → ambient-client-defaults-CvOlhm1d.js} +4 -3
- package/dist/ambient-client-defaults-CvOlhm1d.js.map +1 -0
- package/dist/{asg-provider-BYDJF4aP.js → asg-provider-CBS6w9nU.js} +6 -6
- package/dist/{asg-provider-BYDJF4aP.js.map → asg-provider-CBS6w9nU.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{custom-resource-runtime-Dwdx83HD.js → custom-resource-runtime-nKBSJ8xg.js} +6 -6
- package/dist/{custom-resource-runtime-Dwdx83HD.js.map → custom-resource-runtime-nKBSJ8xg.js.map} +1 -1
- package/dist/{db-associated-roles-CHCg0hfT.js → db-associated-roles-B1qNCxK9.js} +2 -2
- package/dist/{db-associated-roles-CHCg0hfT.js.map → db-associated-roles-B1qNCxK9.js.map} +1 -1
- package/dist/{delete-started-B1pjTEWL.js → delete-started-BdH7k4V-.js} +6 -6
- package/dist/{delete-started-B1pjTEWL.js.map → delete-started-BdH7k4V-.js.map} +1 -1
- package/dist/{deploy-engine-C1OMmZo7.js → deploy-engine-BrbeNr1n.js} +252 -73
- package/dist/deploy-engine-BrbeNr1n.js.map +1 -0
- package/dist/{ec2-termination-protection-ndoL1mf5.js → ec2-termination-protection-C-QH13lG.js} +6 -6
- package/dist/{ec2-termination-protection-ndoL1mf5.js.map → ec2-termination-protection-C-QH13lG.js.map} +1 -1
- package/dist/{ecr-uri-B8gIqzvr.js → ecr-uri-7-3D0mhp.js} +2 -2
- package/dist/{ecr-uri-B8gIqzvr.js.map → ecr-uri-7-3D0mhp.js.map} +1 -1
- package/dist/{expected-bucket-owner-DqlNitge.js → expected-bucket-owner-C9e1dPk6.js} +2 -2
- package/dist/{expected-bucket-owner-DqlNitge.js.map → expected-bucket-owner-C9e1dPk6.js.map} +1 -1
- package/dist/{iam-role-provider-Y-OvXXLi.js → iam-role-provider-ChwJY8pn.js} +9 -9
- package/dist/{iam-role-provider-Y-OvXXLi.js.map → iam-role-provider-ChwJY8pn.js.map} +1 -1
- package/dist/{image-plan-QGSDHbZb.js → image-plan-B1aW8zVe.js} +8 -8
- package/dist/{image-plan-QGSDHbZb.js.map → image-plan-B1aW8zVe.js.map} +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-DtNR12g9.js → logger-0WCzMnXc.js} +2 -2
- package/dist/{logger-DtNR12g9.js.map → logger-0WCzMnXc.js.map} +1 -1
- package/dist/{neptune-provider-DkqUzNAQ.js → neptune-provider-BEkpYrGj.js} +7 -7
- package/dist/{neptune-provider-DkqUzNAQ.js.map → neptune-provider-BEkpYrGj.js.map} +1 -1
- package/dist/{program-CnVw8I_o.js → program-73k0SoOP.js} +340 -39
- package/dist/program-73k0SoOP.js.map +1 -0
- package/dist/{provider-classes-p7pdWDAx.js → provider-classes-COU3GAT5.js} +65 -23
- package/dist/provider-classes-COU3GAT5.js.map +1 -0
- package/dist/{rds-provider-DINaS0eX.js → rds-provider-D_ypFjdI.js} +10 -10
- package/dist/{rds-provider-DINaS0eX.js.map → rds-provider-D_ypFjdI.js.map} +1 -1
- package/dist/{read-replica-CsBlH9Uj.js → read-replica-D012SPdT.js} +3 -3
- package/dist/{read-replica-CsBlH9Uj.js.map → read-replica-D012SPdT.js.map} +1 -1
- package/dist/{replacement-rules-BfJA0Tv-.js → replacement-rules-S9fm3-4G.js} +3 -3
- package/dist/{replacement-rules-BfJA0Tv-.js.map → replacement-rules-S9fm3-4G.js.map} +1 -1
- package/dist/{resource-deadline-Bi1vjvil.js → resource-deadline-BiWaN52w.js} +4 -4
- package/dist/{resource-deadline-Bi1vjvil.js.map → resource-deadline-BiWaN52w.js.map} +1 -1
- package/dist/{restore-source-guard-yKdDVYcc.js → restore-source-guard-BeTKRtrT.js} +4 -4
- package/dist/{restore-source-guard-yKdDVYcc.js.map → restore-source-guard-BeTKRtrT.js.map} +1 -1
- package/dist/{run-cli-B7LQ5-nX.js → run-cli-CF35Yn-t.js} +2 -2
- package/dist/{run-cli-B7LQ5-nX.js.map → run-cli-CF35Yn-t.js.map} +1 -1
- package/dist/{settle-own-write-members-CX9PE0nB.js → settle-own-write-members-B4QcneiO.js} +12 -12
- package/dist/{settle-own-write-members-CX9PE0nB.js.map → settle-own-write-members-B4QcneiO.js.map} +1 -1
- package/dist/{version-vwWFWlIH.js → version-Df9DK8jT.js} +2 -2
- package/dist/{version-vwWFWlIH.js.map → version-Df9DK8jT.js.map} +1 -1
- package/package.json +1 -1
- package/dist/ambient-client-defaults-DGlgLkLA.js.map +0 -1
- package/dist/deploy-engine-C1OMmZo7.js.map +0 -1
- package/dist/program-CnVw8I_o.js.map +0 -1
- package/dist/provider-classes-p7pdWDAx.js.map +0 -1
|
@@ -1,19 +1,19 @@
|
|
|
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 deployOptions, A as followContainerLogs, At as namedEnvAwsRegion, B as resolveRuntimeCodeMountPath, Bt as regionNeedsReconciliation, C as waitForRieReady, Cn as STATE_FILE_SUFFIX, Ct as resolveContainerRegion, Dn as listAllStateKeys, Dt as warnAwsEmulatorStateSourceHint, E as SENSITIVE_ENV_KEYS, En as listAllLockKeys, 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 parseStateKey, Ot as workloadGetsEmulatorKeysOnly, P as pullImage, Pt as foldRegionOption, Q as renderNotInAppWarning, Qt as contextOptions, Rt as reconcileExportIndexRegion, S as invokeRie, Sn as LOCK_FILE_SUFFIX, St as realAwsException, T as DockerRunnerError, Tn as describeStateKey, 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 commonOptions, _ as probeHostGatewaySupport, _n as parseDuration, _t as localAwsEmulatorCredentials, a as materializeLayerFromArn, an as noLocalCustomResourcesOption, at as unmatchedPatterns, b as substituteImagePlaceholders, bn as cliArgParser, bt as prepareLocalLoopbackForwarder, cn as regionOption, ct as resolveCdkPathToLogicalIds, d as resolveAssetCodeDirectory, dn as stateOptions, dt as activateLocalAwsAndRoleArn, en as destroyOptions, et as renderUnmatchedPatternsWarning, f as architectureToPlatform, fn as useCdkBootstrapAssetsOption, ft as assertAwsEmulatorValue, g as HOST_GATEWAY_MIN_VERSION, gn as allowUnsupportedTypesOption, gt as localAwsEmulatorActive, h as layerAssetDirectory, hn as parseAssumeRoleToken, ht as keepEmulatorIssuedCredentials, i as resolveInlineCodeFilePath, in as noCfnFallbackOption, it as stacksNoLongerSelected, jt as recordEmulatorDefaultRegion, k as flushStdio, kt as emulatorDefaultRegion, l as resolveLambdaLayers, ln as skipFinalSnapshotOption, lt as stackForConstructPath, m as copyLayerTreeLastWins, mn as normalizeStartApiAssumeRole, mt as getActiveWorkloadAwsWiring$1, n as resolveTmpfsForLambda, nn as exclusivelyOption, nt as stackMatchesPattern, o as resolveLambdaTarget, on as parseContextOptions, ot as buildCdkPathIndex, p as buildContainerImage$1, pn as effectiveAssumeRoleArn, pt as attachLocalLoopbackForwarder, q as refuseStackNameRegionCollisions, qt as writeProfileCredentialsFile, r as resolveZipImagePlan, rn as guardStackRegionOptions, rt as stacksForDependency, s as extractEphemeralStorageMb, sn as parseStackRegion, st as readCdkPathOrUndefined, t as resolveLocalBuildPlan$1, tn as diffUpdatePolicyOptions, tt as selectTargetStack, u as assetPathDirs, un as stackOptions, ut as stackForPathFormTarget, v as resolveHostGatewayExtraHosts, vn as resourceTimeoutOptions, vt as mixedModeActive, w as CONTAINER_LOG_DRAIN_TIMEOUT_MS, wn as STATE_KEY_MAX_CODE_POINTS, wt as setContainerRegion, x as tryResolveImageFnJoin, xn as parsePositiveIntegerOption, xt as profileCredentialsForWorkload, y as derivePseudoParametersFromRegion$1, yn as validateResourceTimeouts, yt as mixedModeEmulatorOverride, z as streamLogs, zt as reconcileMarkerRegionWithLegacyDefault } from "./image-plan-
|
|
3
|
-
import { A as assertRegionMatch, At as readRecordedPrincipals, Cn as producerCoordinateKey, Ct as IAM_PRINCIPAL_NAME, Gt as maskDeep, Lt as logicalIdShown, N as VALUE_NOT_SHOWN, O as DriftReadRefusedError, U as isMarkedNotGone, V as remedyLogicalId, _n as WAIT_CONDITION_SIGNAL_PREFIX, _t as renderDisableCommand, bn as withPasteableAwsProfile, bt as interruptWatchListenerCount, cn as buildLockContentionMessage, dn as formatLockOperation, fn as formatLockOwner, gn as DEFAULT_STATE_PREFIX, hn as CUSTOM_RESOURCE_RESPONSE_PREFIX, i as withResourceDeadline, k as RESOURCE_NOT_FOUND, ln as forceQuitRecoveryClause, mt as isAwsCliLiteral, on as UNREPRODUCIBLE_LOCK_CLAUSE, sn as buildForceUnlockCommand, st as runDeleteAttempt, un as formatLockExpiry, vn as setPasteableAwsCaBundle, vt as beginCommandInterruptScope, wn as producerRecordKey, wt as RESOLVED_PREVIOUS_PRINCIPAL_KEYS, xn as injectiveKey, xt as isInterruptedWaitError, yn as setPasteableAwsProfile, yt as endCommandInterruptScope, zt as resourceTypeShown } from "./resource-deadline-
|
|
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-Df9DK8jT.js";
|
|
2
|
+
import { $ as renderStacksNoLongerSelected, $t as deployOptions, A as followContainerLogs, At as namedEnvAwsRegion, B as resolveRuntimeCodeMountPath, Bt as regionNeedsReconciliation, C as waitForRieReady, Cn as STATE_FILE_SUFFIX, Ct as resolveContainerRegion, Dn as listAllStateKeys, Dt as warnAwsEmulatorStateSourceHint, E as SENSITIVE_ENV_KEYS, En as listAllLockKeys, 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 parseStateKey, Ot as workloadGetsEmulatorKeysOnly, P as pullImage, Pt as foldRegionOption, Q as renderNotInAppWarning, Qt as contextOptions, Rt as reconcileExportIndexRegion, S as invokeRie, Sn as LOCK_FILE_SUFFIX, St as realAwsException, T as DockerRunnerError, Tn as describeStateKey, 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 commonOptions, _ as probeHostGatewaySupport, _n as parseDuration, _t as localAwsEmulatorCredentials, a as materializeLayerFromArn, an as noLocalCustomResourcesOption, at as unmatchedPatterns, b as substituteImagePlaceholders, bn as cliArgParser, bt as prepareLocalLoopbackForwarder, cn as regionOption, ct as resolveCdkPathToLogicalIds, d as resolveAssetCodeDirectory, dn as stateOptions, dt as activateLocalAwsAndRoleArn, en as destroyOptions, et as renderUnmatchedPatternsWarning, f as architectureToPlatform, fn as useCdkBootstrapAssetsOption, ft as assertAwsEmulatorValue, g as HOST_GATEWAY_MIN_VERSION, gn as allowUnsupportedTypesOption, gt as localAwsEmulatorActive, h as layerAssetDirectory, hn as parseAssumeRoleToken, ht as keepEmulatorIssuedCredentials, i as resolveInlineCodeFilePath, in as noCfnFallbackOption, it as stacksNoLongerSelected, jt as recordEmulatorDefaultRegion, k as flushStdio, kt as emulatorDefaultRegion, l as resolveLambdaLayers, ln as skipFinalSnapshotOption, lt as stackForConstructPath, m as copyLayerTreeLastWins, mn as normalizeStartApiAssumeRole, mt as getActiveWorkloadAwsWiring$1, n as resolveTmpfsForLambda, nn as exclusivelyOption, nt as stackMatchesPattern, o as resolveLambdaTarget, on as parseContextOptions, ot as buildCdkPathIndex, p as buildContainerImage$1, pn as effectiveAssumeRoleArn, pt as attachLocalLoopbackForwarder, q as refuseStackNameRegionCollisions, qt as writeProfileCredentialsFile, r as resolveZipImagePlan, rn as guardStackRegionOptions, rt as stacksForDependency, s as extractEphemeralStorageMb, sn as parseStackRegion, st as readCdkPathOrUndefined, t as resolveLocalBuildPlan$1, tn as diffUpdatePolicyOptions, tt as selectTargetStack, u as assetPathDirs, un as stackOptions, ut as stackForPathFormTarget, v as resolveHostGatewayExtraHosts, vn as resourceTimeoutOptions, vt as mixedModeActive, w as CONTAINER_LOG_DRAIN_TIMEOUT_MS, wn as STATE_KEY_MAX_CODE_POINTS, wt as setContainerRegion, x as tryResolveImageFnJoin, xn as parsePositiveIntegerOption, xt as profileCredentialsForWorkload, y as derivePseudoParametersFromRegion$1, yn as validateResourceTimeouts, yt as mixedModeEmulatorOverride, z as streamLogs, zt as reconcileMarkerRegionWithLegacyDefault } from "./image-plan-B1aW8zVe.js";
|
|
3
|
+
import { A as assertRegionMatch, At as readRecordedPrincipals, Cn as producerCoordinateKey, Ct as IAM_PRINCIPAL_NAME, Gt as maskDeep, Lt as logicalIdShown, N as VALUE_NOT_SHOWN, O as DriftReadRefusedError, U as isMarkedNotGone, V as remedyLogicalId, _n as WAIT_CONDITION_SIGNAL_PREFIX, _t as renderDisableCommand, bn as withPasteableAwsProfile, bt as interruptWatchListenerCount, cn as buildLockContentionMessage, dn as formatLockOperation, fn as formatLockOwner, gn as DEFAULT_STATE_PREFIX, hn as CUSTOM_RESOURCE_RESPONSE_PREFIX, i as withResourceDeadline, k as RESOURCE_NOT_FOUND, ln as forceQuitRecoveryClause, mt as isAwsCliLiteral, on as UNREPRODUCIBLE_LOCK_CLAUSE, sn as buildForceUnlockCommand, st as runDeleteAttempt, un as formatLockExpiry, vn as setPasteableAwsCaBundle, vt as beginCommandInterruptScope, wn as producerRecordKey, wt as RESOLVED_PREVIOUS_PRINCIPAL_KEYS, xn as injectiveKey, xt as isInterruptedWaitError, yn as setPasteableAwsProfile, yt as endCommandInterruptScope, zt as resourceTypeShown } from "./resource-deadline-BiWaN52w.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, 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, 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-0WCzMnXc.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-CvOlhm1d.js";
|
|
7
7
|
import { a as getAssumedRoleCredentials, c as setAssumedRoleCredentials, h as formatAuthority, l as setAwsEndpointOverrideSource, m as runInStackAwsScope, n as awsClientDefaults, r as awsEndpointOverrideActive, s as runWithRealAws } from "./aws-client-defaults-DAebi99J.js";
|
|
8
|
-
import { $ as MIGRATE_TMP_PREFIX, A as formatDockerLoginError, B as resolveApp, C as redactDockerArgvValues, D as warnFinchArgvExposure, E as partitionSensitiveEnv, F as Synthesizer, G as resolveStateBucketWithDefaultAndSource, H as resolveCaptureObservedState, I as synthesisStatusMessage, J as resolveUseCdkBootstrapAssets, K as resolveStateBucketWithSource, L as getDefaultStateBucketName, M as runDockerForeground, N as runDockerStreaming, O as isDockerClientEnvKey, P as abortInFlightMultipartUploads, Q as CFN_TEMPLATE_URL_LIMIT, R as getLegacyStateBucketName, S as redactedDockerCause, T as finchSecretArgvRefusal, U as resolveSkipPrefix, V as resolveAutoAssetStorage, W as resolveStateBucketWithDefault, X as warnDeprecatedNoPrefixCliFlag, Y as stateBucketExistenceConfirmed, Z as CFN_TEMPLATE_BODY_LIMIT, _ as resolveDockerContextDirectory, at as bindLegacyStackAssetParameters, b as describeDockerFailure, ct as predictedAutoCreatedAssetMode, d as DagBuilder, dt as processStackMessages, et as findLargeInlineResources, f as LockManager, ft as setChildProcessAwsEnv, g as buildDockerImage, h as WorkGraph, i as mergeDeclaredEntries, it as StageLoadError, j as getDockerCmd, k as isMalformedEnvKey, l as DiffCalculator, lt as prepareLegacyStackAssets, m as AssetPublisher, n as declaredStringList, nt as refuseFailedLookups, ot as createLegacyAssetParameterBinder, p as isLockInfoExpired, q as resolveUpdatePolicy, r as inlinePoliciesAreDeclared, rt as AssemblyReader, s as stringListIsDeclared, st as legacyPlanAssetCount, t as declaredInlinePolicies, tt as uploadCfnTemplate, u as LEGACY_HANDLE_HEAL_REASON, ut as CdkToolkitBucketMissingError, w as dockerSpawnEnvWithSensitive, x as redactedCause, y as describeDockerExecFailure, z as loadCdkJson } from "./settle-own-write-members-
|
|
9
|
-
import { $a as policyDocumentMatchesDeclared, $c as repairMalformedResourceEntriesForReadOnly, $i as gray, $n as parseMappingFile, $o as applyRoleArnIfSet, $t as removeSignalReceiverNamed, A as recordedProtectionEvidence, Aa as createPreDeleteFinalSnapshot, Ac as isReadableOrphanRecord, Ai as collectDeclaredOutputNames, Al as refuseMalformedResourcesForDeploy, An as DeploymentEventsStore, Ao as setLocalCustomResourceRuntimeEnabled, Ar as undeclaredEmptyObservedKeys, Bc as unreadableOrphanRecords, Bi as supersededAfterRollback, Bl as displayLogicalId, Bn as formatDestructiveChange, Br as planRollback, Bs as isImpossibleEmptyStoredAttribute, C as pendingMovesOutOf, Ca as PRE_DELETE_SNAPSHOT_TYPES, Cd as renderAssemblyPathEscape, Ci as secretBearingStateKeyWarning, Cl as refuseMalformedOutputsForDestroy, Cn as journaledOrphanLines, Co as withPrintingSecrets, Cr as buildReadCurrentStateContext, Cs as AWS_NO_VALUE, D as findServiceTokenRefusals, Da as isFinalSnapshotError, Dc as declaresNoEcho, Di as exportNameSecretExposure, Dl as malformedRenderedContainersWarning, Dn as makeSiblingClaimReader, Do as customResourcesRunWithoutApp, Dr as calculateResourceDrift, Ds as lacksRecordedRefArn, Du as renderNestedTemplateTreeDefect, E as deferredServiceTokenWarning, Ea as effectiveDeletionPolicy, Ed as resolveBucketRegion, Ei as exportNameNoEchoParameters, El as refuseDivergentRecordRegionForDestroy, En as makeForeignHolderScan, Eo as customResourcesFailedWithoutApp, Er as withUnprovenUnsettled, Es as refStateLookupFromResource, Eu as listNestedTemplateRows, F as readProtection, Fc as refuseMalformedOrphanRecords, Fi as DEFAULT_RESOURCE_WARN_AFTER_MS, Fl as JSON_LISTING_HOLE_VALUE, Fn as noEchoMacParametersOf, Fo as RollbackInlinePolicyWriters, Ga as LAMBDA_PERMISSION_STATEMENT_KEYS, Gc as malformedScrubResourceEntriesRefusalMessage, Gi as withoutSuperseded, Gn as withMovedTo, Go as isSelectOutOfBounds, Gr as planFailedOps, Gs as withSharedDrainBudget, Gt as readRefactorMarkerOnce, H as readStreamPolicy, Hc as malformedLocalResourceEntriesWarning, Hi as supersededHeldByOtherTypeWarning, Hl as hasReadableResources, Hn as hintSidesOf, Ho as isWaitAbandonedError, Hr as demoteSupersededOrphans, Hs as isNamelessDynamicReferenceError, Ht as keptForRetainedRecord, Ic as refuseMalformedOrphanRecordsForDestroy, Ii as maskingRetryLogger, Il as accountArgs, In as noEchoMacVerdict, Io as UNSPECIFIED_SKIP_REASON, Ir as ledgerForStack, Is as recordedReferenceRegions, Ja as declaredMemberDocument, Jc as refuseMalformedResourceEntriesForDeploy, Ji as resolveReplacementOldType, Jn as changedReferenceReason, Jo as stackIdTailOf, Jr as replacementNeverSwapped, Jt as refuseRefactorMarker, Ju as getDockerImageBySourceHash, Kc as refuseMalformedResourceAttributesForOrphan, Kl as unwrittenCreateOnlyReplacement, Kn as changedReferenceInDiff, Ko as isAlwaysLiveAttribute, Kr as recheckFailedPlan, Kt as refactorMarkerMovesOf, Ku as rewriteTemplateAssetReferences, Lc as refuseMalformedOrphansForOrphan, Li as deleteSupersededEntry, Ll as withheldAccountClause, Ln as noEchoValueMacsOf, Lo as deleteIndeterminateGuards, Lu as buildAssetRedirectMap, M as PROTECTION_PROPERTY_BY_TYPE, Mc as malformedOrphanRecordsWarning, Mi as isExportAliasCollision, Ml as refuseMalformedResourcesForExport, Mn as NOECHO_MAC_KEY_ALIAS, Mr as updatePartialReason, Ms as keepHeldTokenProvenance, Mu as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, N as isProtectionValueActive, Nc as malformedOrphanRowsKeptWarning, Ni as bindingSkippedOutputs, Nl as refuseMalformedState, Nn as createNoEchoValueMacs, No as CloudControlProvider, Nr as findUpdatePolicyReplacementRefusals, O as serviceTokenBlockingReason, Oa as refusesFinalSnapshot, Oc as maskedPropertyFingerprint, Oi as isWholeDynamicReferenceValue, Ol as malformedResourcesWarning, On as planOrphanAdoption, Oo as localCustomResourceCommand, Or as equalModuloMarkedMask, Os as lacksRecordedTableArn, Ou as templateIdentity, P as perType, Pc as previewableOrphanRecords, Pi as DEFAULT_RESOURCE_TIMEOUT_MS, Pl as repairMalformedResourcesForReadOnly, Pn as noEchoMacBinding, Pr as replacementCreateRoutesToCloudControl, Ps as recordedOutputReferenceRegions, Pu as decodeListingKey, Qa as memberReadFailure, Qc as refuseMalformedResourceEntriesForOrphan, Qi as cyan, Ql as PROPERTY_COVERAGE_BY_TYPE, Qn as mappingPairs, Qo as refuseUnreadableCdkCrossAccountRefs, Qr as readsRegeneratingSecret, Qt as isReceiver, Rc as repairMalformedOrphanRecordsForReadOnly, Ri as holdsSupersededResources, Rl as STATE_RESOURCES_MALFORMED, Rn as constructPathOf$1, Ro as deleteLeftInPlace, Rr as withCreateTokenLedger, Ru as createAssetRedirectResolver, S as hasPendingMovesOut, Sa as ATOMIC_FINAL_SNAPSHOT_TYPES, Sc as maskedPropertyFingerprintsOf, Si as secretBearing, Sl as refuseMalformedOutputs, Sn as isHandledOrphan, Sr as earlyDeletedOld, Ss as parameterTypeMayLoseSecretIdentity, T as refusePendingMovesOut, Ta as ccRoutedInstanceTakesNoSnapshot, Tc as maskedInputProof, Ti as carriedExportAliasExposure, Tl as STATE_REGION_DIVERGED, Tn as sameJournaledOrphans, Tr as settleUnsettledPrevious, Ts as isStalePlaceholderArnAttribute, Tu as isAbsoluteAssetPath, Ua as withStackRecords, Uc as malformedLocalResourcesWarning, Ui as supersededHolderOf, Ul as findActionableSdkUnwired, Un as movedToHint, Ur as isJournaledOrphan, Us as carriesDynamicReference, Ut as recordRetainedForReadoption, Uu as loadPublishableAssetManifest, Va as revertStackRecordsView, Vc as isReadableResourceEntry, Vi as supersededDependentsFirst, Vl as hasReadableOutputs, Vn as findRefactorHints, Vo as getReadOnlyPropertyPaths, Vr as seedsDeleteFirstGuard, Vs as carriesFetchableDynamicReference, Wc as malformedResourceEntriesWarning, Wi as supersededResourcesOf, Wl as findHandledUnwrittenCreateOnly, Wn as rollbackOrphanIds, Wo as IntrinsicFunctionResolver, Wr as isReplacementOrphan, Ws as keepsSecretReferenceToken, Wt as readRefactorMarker, Xa as efsPolicyMatchesDeclared, Xc as refuseMalformedResourceEntriesForImport, Xi as findNestedStackTypeChanges, Xl as NO_CC_HANDLERS_REASON, Xn as isPairableType, Xo as resolveDynamicReferences, Xr as computeImplicitDeleteEdges, Xt as updateRefactorMarker, Ya as declaredPolicyDocument, Yc as refuseMalformedResourceEntriesForDestroy, Yi as withPreviousPolicies, Yn as differingRemedy, Yr as IMPLICIT_DELETE_DEPENDENCIES, Yt as sameMove, Z as declaredTagsReadback, Za as lambdaPermissionMatchesDeclared, Zc as refuseMalformedResourceEntriesForImportSave, Zi as bold, Zl as hasNoCloudControlHandlers, Zn as looselyEqual, Zo as producerLookupOver, Zr as attemptUsesCompletedCreate, Zt as deleteSignalReceiver, _ as conditionFingerprint, _a as secretNamedRecordNeedles, _c as withSecretPhysicalIdsMaskedInState, _d as ownValue, _i as reachableDivergentParameters, _l as malformedExportSourceWarning, _n as getCurrentNestedStackContext, _o as customResourceResponseExpirationWarning, _r as replayFailedOperations, _u as isNotImplemented, a as scanActiveConsumers, aa as noEchoExactEchoLeavesOf, ac as isStatefulRecreateTargetSync, ad as getBootstrapMarkerKey, ai as orphanNeedsIdentity, al as refuseMalformedResourcePropertiesForDrift, an as resolvePendingCloudControlRequests, ar as undeclaredGrantSiblingMembers, as as sendableAssumeRoleCommand, au as S3StateBackend, b as readRecordedConditionVerdicts, ba as storedSecretNameNeedles, bc as tryGetTopLevelWriteOnlyProperties, bd as describeFileReadFailure, bi as displayTextOrWithheld, bl as malformedOutputsWarning, bn as dropFailedCommands, bo as readsNoEchoDeleteValues, br as PLANNED_EARLY_DELETE_CONSEQUENCE, bs as coerceParameterTypedValue, bu as isSecretValuedAttribute, c as nestedSsmNameDeferredNote, ca as createReadOnlyAttributeHealerFactory, cd as validateAssetBucketName, ci as nameScopeOf, cl as repairMalformedResourcePropertiesForReadOnly, cn as displacedPhysicalIdShown, co as ccBrokenReason, cr as sgSiblingDecidedById, cs as callerEnvCredentials, cu as readOnlyStateVersionOf, d as slashedSsmNameHealAdoptedNote, da as maskEventTextWithBoundBags, di as retiredNameGenerationsLeaving, dl as malformedOrphansRefusalMessage, dn as nestedChildStackName$1, do as WaitConditionSignalStore, ds as classifyReplaySecretRegion, du as rebuildClientForBucketRegion, ea as green, ec as findReplacedReadersOfRecreateTargets, ed as AssetModeResolver, ei as isRedactedRecordedValue, el as unreadableResourceEntries, en as macWriteOnlyKeys, eo as reReadUntilSettled, er as propertiesChangedReason, es as assertFlagRoleArn, eu as providerReplacementOldDeleted, f as slashedSsmNameHealNote, fa as namingSecretsWithRecordedNoEcho, fi as withNameGenerationReached, fl as malformedOrphansWarning, fn as recordDisplacedSkips, fo as classifyHandleUrl, fs as producerRegionsFromState, fu as CrossPrefixReadError, g as makeCanonicalizePropertiesFn, gc as secretSegmentsOfState, gd as nullPrototypeRecord, gi as namesAnyDeclaredParameter, gl as malformedExportNamesWarning, gn as collectNestedChildUnaddressed, go as applyCustomResourceResponseExpiration, gr as canonicalizeIpProtocolValue, gu as isAccessDenied, h as inheritedProvenanceForChildDiff, ha as secretNamePrintingBags, hc as secretPhysicalIdSegment, hd as hasPlainPrototype, hi as computeParameterTaint, hl as repairMalformedOrphansForReadOnly, hn as withNestedRevertRun, ho as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, hr as sgProtocolKey, hu as crossPrefixDeniedWarning, i as mergeNoChangeOutputs, ia as noEchoComparisonForTemplate, ic as isStatefulRecreateTargetForReplace, id as isCrossRegionRedirect, ii as removeProtectionTypeList, il as refuseMalformedResourcePropertiesForDestroy, in as pendingRequestCount, ir as stripSiblingOwnedParentMembers, is as parseIamRoleArn, iu as TemplateParser, j as recordedProtectionNote, ja as buildFinalSnapshotIdentifier, jc as malformedOrphanRecordsRefusalMessage, ji as collectPublishedOutputNames, jl as refuseMalformedResourcesForDestroy, jn as crossStackReadsForPartialSave, jo as withCustomResourceStack, jr as updatePartialMessage, ju as ssmResolvedValueType, k as diffSecurity, ka as unsupportedFinalSnapshotError, kc as deployRefusesOrphanRowsReason, ki as noEchoParameterValueSeed, kl as malformedStateRefusalMessage, kn as DeploymentEventsReader, kr as equalModuloMask, l as nestedSsmNameRowNote, la as completedReplayEntries, ld as validateContainerRepoName, li as retiredAfterRollback, ll as UNREADABLE_ORPHANS_CONTAINER_ROW, ln as dropSettledNestedJournals, lo as isCustomResource, ls as envCredentialsAreAssumedRole, lu as hasReasonlessBaselineRefusal, m as crossStackOutputProvenanceSource, ma as secretNamePrintingBag, md as hasOwnKey, mi as inheritProducerRegions, ml as refuseMalformedOrphansForDestroy, mn as revertedNestedRowIds, mo as isSignalKey, mr as recordedSgRuleId, ms as isUnexposedRecordedIdentity, mu as applyCrossPrefixScan, n as isSecretBearingReferenceString, na as yellow, nc as shownType, nd as buildDenyExternalAccessPolicy, nl as malformedResourcePropertiesWarning, nr as referencedLogicalIds, ns as explicitRoleArnOrThrow, o as inRunStackKey, oa as noEchoParameterNamesOf, oc as renderStatefulReason, od as parseBootstrapMarker, oi as nameGenerationCarriedFrom, ol as refuseMalformedResourcePropertiesForExport, on as NESTED_PENDING_PARENT_REASON, oo as CC_BROKEN_REASON, or as recordedRuleIdOf, os as AWS_CREDENTIAL_ENV_KEYS, ou as splitImportedOps, p as slashedSsmNameHealPendingNote, pa as orphanRecordsPrintingBag, pc as displayPhysicalId, pd as defineOwnKey, pl as refuseMalformedOrphans, pr as cfnIngressPortValue, ps as regionLessSecretName, pu as CrossPrefixScanCache, q as streamPolicyMatchesDeclared, qc as refuseMalformedResourceEntries, qi as snapshotSegmentSurvivors, qn as changedReferencePath, qo as poisonRenderedSpellingsCollidingIn, qr as recordUnderIdIsNotOwn, qs as INTRINSIC_KEYS, qt as refactorMarkerRefusalMessage, qu as AssetManifestLoader, r as keptWholeReasonText, ra as noEchoAttributeNamesOf, rc as MULTI_REGION_RECREATE_BLOCKED_TYPES, rd as assertAssetBucketRegion, ri as segmentCleanupOptions, rn as formatResourceLine, ro as verbatimEchoDriftKeys, rr as siblingOwnedRevertDesired, rs as isIamRoleArn, s as checkNestedSsmNames, sa as withAttemptedItemsMasked, sd as readBootstrapMarkerBody, si as nameGenerationHighWaterOf, sl as refuseMalformedResourcePropertiesForOrphan, sn as displacedOpClause, so as ProviderRegistry, sr as sgRuleOwnershipIdentity, ss as applyCallerIdentityCredentials, t as DeployEngine, ta as red, td as ensureAssetStorage, tl as malformedDriftResourcePropertiesWarning, tn as readsOnlyNoEchoParameters, tr as proposeRenames, ts as assertSendableRoleArn, tt as tagsMatchDeclared, u as healSlashedSsmParameterNames, ua as journaledOrphanPrintingBag, ud as BOOTSTRAP_MARKER_PREFIX, ui as retiredNameGenerationsAfter, ul as hasReadableOrphans, uo as wouldReturnToSdkProvider, ur as siblingRecordedSgRuleIds, us as classifyRecordedSecretRegion, uu as hasUnverifiableParameterRefusal, v as conditionInputsFrom, va as stackSecretNamesMasker, vc as getSettledWriteOnlyPropertyPaths, vi as resourcesNamingDeclaredParameter, vl as malformedLocalOutputsWarning, vn as withNestedStackContext, vr as replayRollback, vu as stackInstanceIdOf, w as pendingMovesRefusalMessage, wa as ccRoutedFinalSnapshotError, wc as parameterInputsFor, wd as resolveAssemblyPath, wi as secretSafeKeyDisplay, wl as repairMalformedOutputsForReadOnly, wn as loadJournaledOrphans, wo as NO_LOCAL_CUSTOM_RESOURCES_FLAG, wr as recordAfterRollbackUpdate, ws as cfnRefValueFromPhysicalId, wu as findNestedTemplateTreeDefect, x as childTemplateLoader, xa as extractDeploymentEventError, xd as displayAssemblyPath, xi as exportAliasCollisionScrubWarning, xn as dropFailedHint, xo as isCustomResourceType$1, xr as earlyDeleteWhen, xs as isUnboundTemplateParameter, xu as isSensitiveAttributeName, y as parentSuppliedValues, ya as stateSecretNameNeedles, yc as getTopLevelKeysHoldingUnreadableCreateOnly, yi as WITHHELD_NAME_DISPLAY, yl as malformedOutputsRefusalMessage, yn as deleteJournaledOrphans, yo as TemplateNoEchoReresolver, yr as DELETED_RESOURCE_REMEDY, yu as withStackInstanceIdWithheld, za as destroyStackRecordsView, zc as unpreviewableOrphanRecords, zi as isSupersededResourceRecord, zl as UNREADABLE_RESOURCES_MAP_ROW, zn as findDestructiveChanges, zo as deleteSkipReason, zs as getAccountInfo, zu as createLazyAssetModeContext } from "./deploy-engine-C1OMmZo7.js";
|
|
8
|
+
import { $ as MIGRATE_TMP_PREFIX, A as formatDockerLoginError, B as resolveApp, C as redactDockerArgvValues, D as warnFinchArgvExposure, E as partitionSensitiveEnv, F as Synthesizer, G as resolveStateBucketWithDefaultAndSource, H as resolveCaptureObservedState, I as synthesisStatusMessage, J as resolveUseCdkBootstrapAssets, K as resolveStateBucketWithSource, L as getDefaultStateBucketName, M as runDockerForeground, N as runDockerStreaming, O as isDockerClientEnvKey, P as abortInFlightMultipartUploads, Q as CFN_TEMPLATE_URL_LIMIT, R as getLegacyStateBucketName, S as redactedDockerCause, T as finchSecretArgvRefusal, U as resolveSkipPrefix, V as resolveAutoAssetStorage, W as resolveStateBucketWithDefault, X as warnDeprecatedNoPrefixCliFlag, Y as stateBucketExistenceConfirmed, Z as CFN_TEMPLATE_BODY_LIMIT, _ as resolveDockerContextDirectory, at as bindLegacyStackAssetParameters, b as describeDockerFailure, ct as predictedAutoCreatedAssetMode, d as DagBuilder, dt as processStackMessages, et as findLargeInlineResources, f as LockManager, ft as setChildProcessAwsEnv, g as buildDockerImage, h as WorkGraph, i as mergeDeclaredEntries, it as StageLoadError, j as getDockerCmd, k as isMalformedEnvKey, l as DiffCalculator, lt as prepareLegacyStackAssets, m as AssetPublisher, n as declaredStringList, nt as refuseFailedLookups, ot as createLegacyAssetParameterBinder, p as isLockInfoExpired, q as resolveUpdatePolicy, r as inlinePoliciesAreDeclared, rt as AssemblyReader, s as stringListIsDeclared, st as legacyPlanAssetCount, t as declaredInlinePolicies, tt as uploadCfnTemplate, u as LEGACY_HANDLE_HEAL_REASON, ut as CdkToolkitBucketMissingError, w as dockerSpawnEnvWithSensitive, x as redactedCause, y as describeDockerExecFailure, z as loadCdkJson } from "./settle-own-write-members-B4QcneiO.js";
|
|
9
|
+
import { $a as policyDocumentMatchesDeclared, $c as refuseMalformedResourceEntriesForOrphan, $i as gray, $l as PROPERTY_COVERAGE_BY_TYPE, $n as parseMappingFile, $o as applyRoleArnIfSet, $t as removeSignalReceiverNamed, A as recordedProtectionEvidence, Aa as createPreDeleteFinalSnapshot, Ac as deployRefusesOrphanRowsReason, Ai as collectDeclaredOutputNames, Al as malformedStateRefusalMessage, An as DeploymentEventsStore, Ao as setLocalCustomResourceRuntimeEnabled, Ar as undeclaredEmptyObservedKeys, Au as templateIdentity, Bc as unpreviewableOrphanRecords, Bi as supersededAfterRollback, Bl as UNREADABLE_RESOURCES_MAP_ROW, Bn as formatDestructiveChange, Br as planRollback, Bs as getAccountInfo, Bu as createAssetRedirectResolver, C as pendingMovesOutOf, Ca as PRE_DELETE_SNAPSHOT_TYPES, Cc as maskedPropertyFingerprintsOf, Cd as displayAssemblyPath, Ci as secretBearingStateKeyWarning, Cl as refuseMalformedOutputs, Cn as journaledOrphanLines, Co as withPrintingSecrets, Cr as buildReadCurrentStateContext, Cs as AWS_NO_VALUE, Cu as isSensitiveAttributeName, D as findServiceTokenRefusals, Da as isFinalSnapshotError, Di as exportNameSecretExposure, Dl as refuseDivergentRecordRegionForDestroy, Dn as makeSiblingClaimReader, Do as customResourcesRunWithoutApp, Dr as calculateResourceDrift, Ds as lacksRecordedRefArn, Du as isAbsoluteAssetPath, E as deferredServiceTokenWarning, Ea as effectiveDeletionPolicy, Ec as maskedInputProof, Ed as resolveAssemblyPath, Ei as exportNameNoEchoParameters, El as STATE_REGION_DIVERGED, En as makeForeignHolderScan, Eo as customResourcesFailedWithoutApp, Er as withUnprovenUnsettled, Es as refStateLookupFromResource, Eu as findNestedTemplateTreeDefect, F as readProtection, Fc as previewableOrphanRecords, Fi as DEFAULT_RESOURCE_WARN_AFTER_MS, Fl as repairMalformedResourcesForReadOnly, Fn as noEchoMacParametersOf, Fo as RollbackInlinePolicyWriters, Ga as LAMBDA_PERMISSION_STATEMENT_KEYS, Gc as malformedResourceEntriesWarning, Gi as withoutSuperseded, Gl as findHandledUnwrittenCreateOnly, Gn as withMovedTo, Go as isSelectOutOfBounds, Gr as planFailedOps, Gs as keepsSecretReferenceToken, Gt as readRefactorMarkerOnce, Gu as loadPublishableAssetManifest, H as readStreamPolicy, Hc as isReadableResourceEntry, Hi as supersededHeldByOtherTypeWarning, Hl as hasReadableOutputs, Hn as hintSidesOf, Ho as isWaitAbandonedError, Hr as demoteSupersededOrphans, Hs as carriesFetchableDynamicReference, Ht as keptForRetainedRecord, Ic as refuseMalformedOrphanRecords, Ii as maskingRetryLogger, Il as JSON_LISTING_HOLE_VALUE, In as noEchoMacVerdict, Io as UNSPECIFIED_SKIP_REASON, Ir as ledgerForStack, Is as recordedReferenceRegions, Iu as decodeListingKey, Ja as declaredMemberDocument, Jc as refuseMalformedResourceEntries, Ji as resolveReplacementOldType, Jn as changedReferenceReason, Jo as stackIdTailOf, Jr as replacementNeverSwapped, Js as INTRINSIC_KEYS, Jt as refuseRefactorMarker, Ju as rewriteTemplateAssetReferences, Kc as malformedScrubResourceEntriesRefusalMessage, Kn as changedReferenceInDiff, Ko as isAlwaysLiveAttribute, Kr as recheckFailedPlan, Ks as withSharedDrainBudget, Kt as refactorMarkerMovesOf, Lc as refuseMalformedOrphanRecordsForDestroy, Li as deleteSupersededEntry, Ll as accountArgs, Ln as noEchoValueMacsOf, Lo as deleteIndeterminateGuards, M as PROTECTION_PROPERTY_BY_TYPE, Mc as malformedOrphanRecordsRefusalMessage, Mi as isExportAliasCollision, Ml as refuseMalformedResourcesForDestroy, Mn as NOECHO_MAC_KEY_ALIAS, Mr as updatePartialReason, Ms as keepHeldTokenProvenance, N as isProtectionValueActive, Nc as malformedOrphanRecordsWarning, Ni as bindingSkippedOutputs, Nl as refuseMalformedResourcesForExport, Nn as createNoEchoValueMacs, No as CloudControlProvider, Nr as findUpdatePolicyReplacementRefusals, Nu as ssmResolvedValueType, O as serviceTokenBlockingReason, Oa as refusesFinalSnapshot, Oc as declaresNoEcho, Od as resolveBucketRegion, Oi as isWholeDynamicReferenceValue, Ol as malformedRenderedContainersWarning, On as planOrphanAdoption, Oo as localCustomResourceCommand, Or as equalModuloMarkedMask, Os as lacksRecordedTableArn, Ou as listNestedTemplateRows, P as perType, Pc as malformedOrphanRowsKeptWarning, Pi as DEFAULT_RESOURCE_TIMEOUT_MS, Pl as refuseMalformedState, Pn as noEchoMacBinding, Pr as replacementCreateRoutesToCloudControl, Ps as recordedOutputReferenceRegions, Pu as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, Qa as memberReadFailure, Qc as refuseMalformedResourceEntriesForImportSave, Qi as cyan, Ql as hasNoCloudControlHandlers, Qn as mappingPairs, Qo as refuseUnreadableCdkCrossAccountRefs, Qr as readsRegeneratingSecret, Qt as isReceiver, Rc as refuseMalformedOrphansForOrphan, Ri as holdsSupersededResources, Rl as withheldAccountClause, Rn as constructPathOf$1, Ro as deleteLeftInPlace, Rr as withCreateTokenLedger, S as hasPendingMovesOut, Sa as ATOMIC_FINAL_SNAPSHOT_TYPES, Sd as describeFileReadFailure, Si as secretBearing, Sn as isHandledOrphan, Sr as earlyDeletedOld, Ss as parameterTypeMayLoseSecretIdentity, Su as isSecretValuedAttribute, T as refusePendingMovesOut, Ta as ccRoutedInstanceTakesNoSnapshot, Tc as parameterInputsFor, Td as renderAssemblyPathEscape, Ti as carriedExportAliasExposure, Tl as repairMalformedOutputsForReadOnly, Tn as sameJournaledOrphans, Tr as settleUnsettledPrevious, Ts as isStalePlaceholderArnAttribute, Ua as withStackRecords, Uc as malformedLocalResourceEntriesWarning, Ui as supersededHolderOf, Ul as hasReadableResources, Un as movedToHint, Ur as isJournaledOrphan, Us as isNamelessDynamicReferenceError, Ut as recordRetainedForReadoption, Va as revertStackRecordsView, Vc as unreadableOrphanRecords, Vi as supersededDependentsFirst, Vl as displayLogicalId, Vn as findRefactorHints, Vo as getReadOnlyPropertyPaths, Vr as seedsDeleteFirstGuard, Vs as isImpossibleEmptyStoredAttribute, Vu as createLazyAssetModeContext, Wc as malformedLocalResourcesWarning, Wi as supersededResourcesOf, Wl as findActionableSdkUnwired, Wn as rollbackOrphanIds, Wo as IntrinsicFunctionResolver, Wr as isReplacementOrphan, Ws as carriesDynamicReference, Wt as readRefactorMarker, Xa as efsPolicyMatchesDeclared, Xc as refuseMalformedResourceEntriesForDestroy, Xi as findNestedStackTypeChanges, Xn as isPairableType, Xo as resolveDynamicReferences, Xr as computeImplicitDeleteEdges, Xt as updateRefactorMarker, Xu as getDockerImageBySourceHash, Ya as declaredPolicyDocument, Yc as refuseMalformedResourceEntriesForDeploy, Yi as withPreviousPolicies, Yn as differingRemedy, Yr as IMPLICIT_DELETE_DEPENDENCIES, Yt as sameMove, Yu as AssetManifestLoader, Z as declaredTagsReadback, Za as lambdaPermissionMatchesDeclared, Zc as refuseMalformedResourceEntriesForImport, Zi as bold, Zl as NO_CC_HANDLERS_REASON, Zn as looselyEqual, Zo as producerLookupOver, Zr as attemptUsesCompletedCreate, Zt as deleteSignalReceiver, _ as conditionFingerprint, _a as secretNamedRecordNeedles, _c as secretSegmentsOfState, _d as hasPlainPrototype, _i as reachableDivergentParameters, _l as malformedExportNamesWarning, _n as getCurrentNestedStackContext, _o as customResourceResponseExpirationWarning, _r as replayFailedOperations, _u as crossPrefixDeniedWarning, a as scanActiveConsumers, aa as noEchoExactEchoLeavesOf, ac as isStatefulRecreateTargetForReplace, ad as assertAssetBucketRegion, ai as orphanNeedsIdentity, al as refuseMalformedResourcePropertiesForDestroy, an as resolvePendingCloudControlRequests, ar as undeclaredGrantSiblingMembers, as as sendableAssumeRoleCommand, b as readRecordedConditionVerdicts, ba as storedSecretNameNeedles, bc as getTopLevelKeysHoldingUnreadableCreateOnly, bi as displayTextOrWithheld, bl as malformedOutputsRefusalMessage, bn as dropFailedCommands, bo as readsNoEchoDeleteValues, br as PLANNED_EARLY_DELETE_CONSEQUENCE, bs as coerceParameterTypedValue, bu as stackInstanceIdOf, c as nestedSsmNameDeferredNote, ca as createReadOnlyAttributeHealerFactory, cd as parseBootstrapMarker, ci as nameScopeOf, cl as refuseMalformedResourcePropertiesForOrphan, cn as displacedPhysicalIdShown, co as ccBrokenReason, cr as sgSiblingDecidedById, cs as callerEnvCredentials, cu as splitImportedOps, d as slashedSsmNameHealAdoptedNote, da as maskEventTextWithBoundBags, dd as validateContainerRepoName, di as retiredNameGenerationsLeaving, dl as hasReadableOrphans, dn as nestedChildStackName$1, do as WaitConditionSignalStore, ds as classifyReplaySecretRegion, du as hasReasonlessBaselineRefusal, ea as green, ei as isRedactedRecordedValue, el as repairMalformedResourceEntriesForReadOnly, en as macWriteOnlyKeys, eo as reReadUntilSettled, er as propertiesChangedReason, es as assertFlagRoleArn, f as slashedSsmNameHealNote, fa as namingSecretsWithRecordedNoEcho, fd as BOOTSTRAP_MARKER_PREFIX, fi as withNameGenerationReached, fl as malformedOrphansRefusalMessage, fn as recordDisplacedSkips, fo as classifyHandleUrl, fs as producerRegionsFromState, fu as hasUnverifiableParameterRefusal, g as makeCanonicalizePropertiesFn, gc as secretPhysicalIdSegment, gd as hasOwnKey, gi as namesAnyDeclaredParameter, gl as repairMalformedOrphansForReadOnly, gn as collectNestedChildUnaddressed, go as applyCustomResourceResponseExpiration, gr as canonicalizeIpProtocolValue, gu as applyCrossPrefixScan, h as inheritedProvenanceForChildDiff, ha as secretNamePrintingBags, hd as defineOwnKey, hi as computeParameterTaint, hl as refuseMalformedOrphansForDestroy, hn as withNestedRevertRun, ho as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, hr as sgProtocolKey, hu as CrossPrefixScanCache, i as mergeNoChangeOutputs, ia as noEchoComparisonForTemplate, ic as MULTI_REGION_RECREATE_BLOCKED_TYPES, id as buildDenyExternalAccessPolicy, ii as removeProtectionTypeList, in as pendingRequestCount, ir as stripSiblingOwnedParentMembers, is as parseIamRoleArn, j as recordedProtectionNote, ja as buildFinalSnapshotIdentifier, jc as isReadableOrphanRecord, ji as collectPublishedOutputNames, jl as refuseMalformedResourcesForDeploy, jn as crossStackReadsForPartialSave, jo as withCustomResourceStack, jr as updatePartialMessage, k as diffSecurity, ka as unsupportedFinalSnapshotError, kc as maskedPropertyFingerprint, ki as noEchoParameterValueSeed, kl as malformedResourcesWarning, kn as DeploymentEventsReader, kr as equalModuloMask, ku as renderNestedTemplateTreeDefect, l as nestedSsmNameRowNote, la as completedReplayEntries, ld as readBootstrapMarkerBody, li as retiredAfterRollback, ll as repairMalformedResourcePropertiesForReadOnly, ln as dropSettledNestedJournals, lo as isCustomResource, ls as envCredentialsAreAssumedRole, m as crossStackOutputProvenanceSource, ma as secretNamePrintingBag, mc as displayPhysicalId, mi as inheritProducerRegions, ml as refuseMalformedOrphans, mn as revertedNestedRowIds, mo as isSignalKey, mr as recordedSgRuleId, ms as isUnexposedRecordedIdentity, mu as CrossPrefixReadError, n as isSecretBearingReferenceString, na as yellow, nd as AssetModeResolver, nl as malformedDriftResourcePropertiesWarning, nr as referencedLogicalIds, ns as explicitRoleArnOrThrow, o as inRunStackKey, oa as noEchoParameterNamesOf, oc as isStatefulRecreateTargetSync, od as isCrossRegionRedirect, oi as nameGenerationCarriedFrom, ol as refuseMalformedResourcePropertiesForDrift, on as NESTED_PENDING_PARENT_REASON, oo as CC_BROKEN_REASON, or as recordedRuleIdOf, os as AWS_CREDENTIAL_ENV_KEYS, ou as TemplateParser, p as slashedSsmNameHealPendingNote, pa as orphanRecordsPrintingBag, pl as malformedOrphansWarning, pr as cfnIngressPortValue, ps as regionLessSecretName, pu as rebuildClientForBucketRegion, q as streamPolicyMatchesDeclared, qc as refuseMalformedResourceAttributesForOrphan, qi as snapshotSegmentSurvivors, ql as unwrittenCreateOnlyReplacement, qn as changedReferencePath, qo as poisonRenderedSpellingsCollidingIn, qr as recordUnderIdIsNotOwn, qt as refactorMarkerRefusalMessage, r as keptWholeReasonText, ra as noEchoAttributeNamesOf, rc as shownType, rd as ensureAssetStorage, ri as segmentCleanupOptions, rl as malformedResourcePropertiesWarning, rn as formatResourceLine, ro as verbatimEchoDriftKeys, rr as siblingOwnedRevertDesired, rs as isIamRoleArn, s as checkNestedSsmNames, sa as withAttemptedItemsMasked, sc as renderStatefulReason, sd as getBootstrapMarkerKey, si as nameGenerationHighWaterOf, sl as refuseMalformedResourcePropertiesForExport, sn as displacedOpClause, so as ProviderRegistry, sr as sgRuleOwnershipIdentity, ss as applyCallerIdentityCredentials, su as S3StateBackend, t as DeployEngine, ta as red, tc as findReplacedReadersOfRecreateTargets, tl as unreadableResourceEntries, tn as readsOnlyNoEchoParameters, tr as proposeRenames, ts as assertSendableRoleArn, tt as tagsMatchDeclared, tu as providerReplacementOldDeleted, u as healSlashedSsmParameterNames, ua as journaledOrphanPrintingBag, ud as validateAssetBucketName, ui as retiredNameGenerationsAfter, ul as UNREADABLE_ORPHANS_CONTAINER_ROW, uo as wouldReturnToSdkProvider, ur as siblingRecordedSgRuleIds, us as classifyRecordedSecretRegion, uu as readOnlyStateVersionOf, v as conditionInputsFrom, va as stackSecretNamesMasker, vc as withSecretPhysicalIdsMaskedInState, vd as nullPrototypeRecord, vi as resourcesNamingDeclaredParameter, vl as malformedExportSourceWarning, vn as withNestedStackContext, vr as replayRollback, vu as isAccessDenied, w as pendingMovesRefusalMessage, wa as ccRoutedFinalSnapshotError, wi as secretSafeKeyDisplay, wl as refuseMalformedOutputsForDestroy, wn as loadJournaledOrphans, wo as NO_LOCAL_CUSTOM_RESOURCES_FLAG, wr as recordAfterRollbackUpdate, ws as cfnRefValueFromPhysicalId, x as childTemplateLoader, xa as extractDeploymentEventError, xc as tryGetTopLevelWriteOnlyProperties, xi as exportAliasCollisionScrubWarning, xl as malformedOutputsWarning, xn as dropFailedHint, xo as isCustomResourceType$1, xr as earlyDeleteWhen, xs as isUnboundTemplateParameter, xu as withStackInstanceIdWithheld, y as parentSuppliedValues, ya as stateSecretNameNeedles, yc as getSettledWriteOnlyPropertyPaths, yd as ownValue, yi as WITHHELD_NAME_DISPLAY, yl as malformedLocalOutputsWarning, yn as deleteJournaledOrphans, yo as TemplateNoEchoReresolver, yr as DELETED_RESOURCE_REMEDY, yu as isNotImplemented, za as destroyStackRecordsView, zc as repairMalformedOrphanRecordsForReadOnly, zi as isSupersededResourceRecord, zl as STATE_RESOURCES_MALFORMED, zn as findDestructiveChanges, zo as deleteSkipReason, zs as withoutVersionAttestation, zu as buildAssetRedirectMap } from "./deploy-engine-BrbeNr1n.js";
|
|
10
10
|
import { n as canonicalizeRegion, r as derivePartitionAndUrlSuffix, t as PARTITION_TABLE } from "./aws-partition-DA0r2sr-.js";
|
|
11
|
-
import { C as prefetchCreateOnlyPropertyPaths, E as describeTypeWithThrottleRetry, J as parseFailureDebugDetail, K as describeJsonParseFailure, U as renderPhaseTimings, W as timePhase, X as utf8ByteLength, j as withRetry, l as setResolvedResourceTimeouts, w as templateResourceTypes, x as getCreateOnlyPropertyPaths, z as PhaseClock } from "./ec2-termination-protection-
|
|
12
|
-
import { t as expectedOwnerParam } from "./expected-bucket-owner-
|
|
13
|
-
import { Bt as describeRegionValueKind, Gt as isReadableBag, Ht as hasReadableExportSet, Jt as shouldRetainResource, Kt as orphansAfterRollback, Tt as differingIdentityWarning, Ut as importableOutputKeys, Vt as exportNamesCarriedFrom, Wt as importableOutputs, Xt as stackInstanceIdCarriedFrom, kt as slowCcOperationTimeoutMs, qt as orphansCarriedFrom, zt as acceptedCreateOnlyDropsOf } from "./delete-started-
|
|
14
|
-
import { An as recordNoEchoAttributeValues, Bt as identityKeyFor, D as recordedNoEchoValuesOf, Fn as WHOLE_DYNAMIC_REFERENCE_PATTERN, Ft as keepTemplateLiteralLeaves, Ln as isSingleDynamicReferenceToken, Lt as spelledKeysOf, Mn as recordProvenPublicExpression, Mt as DYNAMIC_REFERENCE_TOKEN_SCAN, Nn as wholeStringLeavesOf, Nt as dynamicReferenceTokens, On as recordMaskOnlyValue, Ot as scrubResourceRecord, Pt as isUncertifiedBaselineMaskPosition, Rt as pathCrossesDottedKey, T as readsNoEchoSource, Tn as provenPublicValue, W as redactForState, Yt as inheritNestedStackParameterAssociations, _t as maskSecretsInText, at as literalSplitDelimitersOf, b as noEchoOutputsComparison, ct as recordLogOnlyParameterValue, dt as shareLogOnlyValues, et as carryLogOnlyValues, f as isMarkedCoordinate, ft as unionOfSecretBags, g as maskedLeafCoordinatesOf, gt as maskSecretsInError, h as maskWholeValue, it as hasMaskableValues, j as liveMatchesUnresolvedTokenFrame, jn as recordNoEchoParameterFreshValue, k as valueAtCoordinate, kn as recordMaskOnlyValuesIn, kt as withPhysicalNameCopies, ln as recordPhysicalNameCopy, m as maskReadbackAtCoordinates, mn as carriesSecretMask, mt as errorCauseChain, nt as createUnionSecretMasker, ot as logOnlyValueCount, p as maskAtCoordinates, pn as splitGetAttStringForm, pt as createSecretMasker, sn as physicalNameCopiesOf, st as printingCorpusOf, u as canonicalCoordinates, un as recordNestedStackParameterExpressions, ut as recordLogOnlyValue, v as noEchoCoordinatesOf, y as noEchoLeavesOf } from "./replacement-rules-
|
|
15
|
-
import { S as unsettledPropertiesOf, T as withoutUnsettledProperties, b as unsettledItemsOf, w as withUnsettledProperties, y as unsettledItemsField } from "./restore-source-guard-
|
|
16
|
-
import { a as parseEcrRegistryHost, i as looksLikeEcrHostWithForeignSuffix, n as hasEcrRegistryHostLabels, t as ecrRegistryHostPattern } from "./ecr-uri-
|
|
11
|
+
import { C as prefetchCreateOnlyPropertyPaths, E as describeTypeWithThrottleRetry, J as parseFailureDebugDetail, K as describeJsonParseFailure, U as renderPhaseTimings, W as timePhase, X as utf8ByteLength, j as withRetry, l as setResolvedResourceTimeouts, w as templateResourceTypes, x as getCreateOnlyPropertyPaths, z as PhaseClock } from "./ec2-termination-protection-C-QH13lG.js";
|
|
12
|
+
import { t as expectedOwnerParam } from "./expected-bucket-owner-C9e1dPk6.js";
|
|
13
|
+
import { Bt as describeRegionValueKind, Gt as isReadableBag, Ht as hasReadableExportSet, Jt as shouldRetainResource, Kt as orphansAfterRollback, Tt as differingIdentityWarning, Ut as importableOutputKeys, Vt as exportNamesCarriedFrom, Wt as importableOutputs, Xt as stackInstanceIdCarriedFrom, kt as slowCcOperationTimeoutMs, qt as orphansCarriedFrom, zt as acceptedCreateOnlyDropsOf } from "./delete-started-BdH7k4V-.js";
|
|
14
|
+
import { An as recordNoEchoAttributeValues, Bt as identityKeyFor, D as recordedNoEchoValuesOf, Fn as WHOLE_DYNAMIC_REFERENCE_PATTERN, Ft as keepTemplateLiteralLeaves, Ln as isSingleDynamicReferenceToken, Lt as spelledKeysOf, Mn as recordProvenPublicExpression, Mt as DYNAMIC_REFERENCE_TOKEN_SCAN, Nn as wholeStringLeavesOf, Nt as dynamicReferenceTokens, On as recordMaskOnlyValue, Ot as scrubResourceRecord, Pt as isUncertifiedBaselineMaskPosition, Rt as pathCrossesDottedKey, T as readsNoEchoSource, Tn as provenPublicValue, W as redactForState, Yt as inheritNestedStackParameterAssociations, _t as maskSecretsInText, at as literalSplitDelimitersOf, b as noEchoOutputsComparison, ct as recordLogOnlyParameterValue, dt as shareLogOnlyValues, et as carryLogOnlyValues, f as isMarkedCoordinate, ft as unionOfSecretBags, g as maskedLeafCoordinatesOf, gt as maskSecretsInError, h as maskWholeValue, it as hasMaskableValues, j as liveMatchesUnresolvedTokenFrame, jn as recordNoEchoParameterFreshValue, k as valueAtCoordinate, kn as recordMaskOnlyValuesIn, kt as withPhysicalNameCopies, ln as recordPhysicalNameCopy, m as maskReadbackAtCoordinates, mn as carriesSecretMask, mt as errorCauseChain, nt as createUnionSecretMasker, ot as logOnlyValueCount, p as maskAtCoordinates, pn as splitGetAttStringForm, pt as createSecretMasker, sn as physicalNameCopiesOf, st as printingCorpusOf, u as canonicalCoordinates, un as recordNestedStackParameterExpressions, ut as recordLogOnlyValue, v as noEchoCoordinatesOf, y as noEchoLeavesOf } from "./replacement-rules-S9fm3-4G.js";
|
|
15
|
+
import { S as unsettledPropertiesOf, T as withoutUnsettledProperties, b as unsettledItemsOf, w as withUnsettledProperties, y as unsettledItemsField } from "./restore-source-guard-BeTKRtrT.js";
|
|
16
|
+
import { a as parseEcrRegistryHost, i as looksLikeEcrHostWithForeignSuffix, n as hasEcrRegistryHostLabels, t as ecrRegistryHostPattern } from "./ecr-uri-7-3D0mhp.js";
|
|
17
17
|
import { t as cdkdCacheHome } from "./cache-home-BVYKj3de.js";
|
|
18
18
|
import { randomBytes, randomUUID } from "node:crypto";
|
|
19
19
|
import { CopyObjectCommand, CreateBucketCommand, DeleteBucketCommand, DeleteObjectsCommand, GetBucketLocationCommand, GetObjectCommand, HeadBucketCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchBucket, NotFound, PutBucketEncryptionCommand, PutBucketPolicyCommand, PutBucketVersioningCommand, PutObjectCommand, S3Client, S3ServiceException } from "@aws-sdk/client-s3";
|
|
@@ -1541,7 +1541,7 @@ function collectCrossStackRefs(node, onRef, unconditional) {
|
|
|
1541
1541
|
// src/provisioning/register-providers.ts
|
|
1542
1542
|
let providerClasses;
|
|
1543
1543
|
function loadProviderClasses() {
|
|
1544
|
-
providerClasses ??= import("./provider-classes-
|
|
1544
|
+
providerClasses ??= import("./provider-classes-COU3GAT5.js");
|
|
1545
1545
|
return providerClasses;
|
|
1546
1546
|
}
|
|
1547
1547
|
function registerAllProviders(registry, classes) {
|
|
@@ -3184,7 +3184,7 @@ async function deployStackInScope(ctx, stackInfo, stackRegion, stackAwsClients)
|
|
|
3184
3184
|
const syncValidation = validateRecreateTargets({
|
|
3185
3185
|
template: stackInfo.template,
|
|
3186
3186
|
state: stateForRecreateCheck?.state ?? {
|
|
3187
|
-
version:
|
|
3187
|
+
version: 18,
|
|
3188
3188
|
stackName: stackInfo.stackName,
|
|
3189
3189
|
region: stackRegion,
|
|
3190
3190
|
resources: {},
|
|
@@ -3219,7 +3219,7 @@ async function deployStackInScope(ctx, stackInfo, stackRegion, stackAwsClients)
|
|
|
3219
3219
|
const replacedReaders = await findReplacedReadersOfRecreateTargets({
|
|
3220
3220
|
template: stackInfo.template,
|
|
3221
3221
|
state: stateForRecreateCheck?.state ?? {
|
|
3222
|
-
version:
|
|
3222
|
+
version: 18,
|
|
3223
3223
|
stackName: stackInfo.stackName,
|
|
3224
3224
|
region: stackRegion,
|
|
3225
3225
|
resources: {},
|
|
@@ -6123,7 +6123,7 @@ async function loadStateOrEmpty(stackName, region, stateBackend, refusalRecovery
|
|
|
6123
6123
|
region,
|
|
6124
6124
|
resources: {},
|
|
6125
6125
|
outputs: {},
|
|
6126
|
-
version:
|
|
6126
|
+
version: 18,
|
|
6127
6127
|
lastModified: Date.now()
|
|
6128
6128
|
},
|
|
6129
6129
|
unreadable: [],
|
|
@@ -13011,6 +13011,33 @@ async function runDriftForStack(stackName, region, stateBackend, providerRegistr
|
|
|
13011
13011
|
});
|
|
13012
13012
|
}
|
|
13013
13013
|
|
|
13014
|
+
// src/cli/commands/drift/revert-attestation.ts
|
|
13015
|
+
async function writeAheadRevertAttestations(report, logicalIds, stateBackend) {
|
|
13016
|
+
const resources = { ...report.state.resources };
|
|
13017
|
+
let changed = false;
|
|
13018
|
+
for (const logicalId of logicalIds) {
|
|
13019
|
+
if (!Object.hasOwn(resources, logicalId)) continue;
|
|
13020
|
+
const record = resources[logicalId];
|
|
13021
|
+
const stripped = withoutVersionAttestation(record);
|
|
13022
|
+
if (stripped === record) continue;
|
|
13023
|
+
resources[logicalId] = stripped;
|
|
13024
|
+
changed = true;
|
|
13025
|
+
}
|
|
13026
|
+
if (!changed) return;
|
|
13027
|
+
const state = {
|
|
13028
|
+
...report.state,
|
|
13029
|
+
resources,
|
|
13030
|
+
lastModified: Date.now()
|
|
13031
|
+
};
|
|
13032
|
+
const etag = await stateBackend.saveState(report.stackName, report.region, state, {
|
|
13033
|
+
expectedEtag: report.etag,
|
|
13034
|
+
...report.migrationPending && { migrateLegacy: true }
|
|
13035
|
+
});
|
|
13036
|
+
report.state = state;
|
|
13037
|
+
report.etag = etag;
|
|
13038
|
+
report.migrationPending = false;
|
|
13039
|
+
}
|
|
13040
|
+
|
|
13014
13041
|
// src/cli/commands/drift/revert-write-only.ts
|
|
13015
13042
|
function revertWriteOnlyResendNames(resourceType, properties, writeOnlyNames) {
|
|
13016
13043
|
if (!writeOnlyNames || writeOnlyNames.size === 0 || !isPlainRecord$2(properties)) return [];
|
|
@@ -13968,6 +13995,7 @@ async function runRevert(reports, regionScope, stateBackend, stateConfig, awsCli
|
|
|
13968
13995
|
totalSucceeded: 0,
|
|
13969
13996
|
totalUnresolvable: 0
|
|
13970
13997
|
};
|
|
13998
|
+
const writeAheadFailedStacks = [];
|
|
13971
13999
|
for (const report of reports) {
|
|
13972
14000
|
const driftedOutcomes = report.outcomes.flatMap((o) => matchOutcome(o, {
|
|
13973
14001
|
drifted: (d) => [d],
|
|
@@ -13990,6 +14018,14 @@ async function runRevert(reports, regionScope, stateBackend, stateConfig, awsCli
|
|
|
13990
14018
|
const reRecordedByLogicalId = /* @__PURE__ */ new Map();
|
|
13991
14019
|
const settledByRevert = /* @__PURE__ */ new Map();
|
|
13992
14020
|
try {
|
|
14021
|
+
try {
|
|
14022
|
+
await writeAheadRevertAttestations(report, driftedOutcomes.map((o) => o.logicalId), stateBackend);
|
|
14023
|
+
} catch (err) {
|
|
14024
|
+
const refused = new CdkdError(`${report.stackName} (${report.region}): nothing reverted -- cdkd could not save state before sending secret values (${describeAwsFailure(err).detail}). Re-run once state writes succeed.`, "DRIFT_REVERT_WRITE_AHEAD_FAILED", err instanceof Error ? err : void 0);
|
|
14025
|
+
logger.error(refused.message);
|
|
14026
|
+
writeAheadFailedStacks.push(`${report.stackName} (${report.region})`);
|
|
14027
|
+
return;
|
|
14028
|
+
}
|
|
13993
14029
|
const revertSecretResolvers = new DriftSecretResolvers(report.region);
|
|
13994
14030
|
const revertProducerRegions = report.producerRegions;
|
|
13995
14031
|
const tasks = driftedOutcomes.map((outcome) => () => withPrintingSecrets(secretNamePrintingBag(outcome.logicalId, report.state.resources), async () => {
|
|
@@ -14102,7 +14138,9 @@ async function runRevert(reports, regionScope, stateBackend, stateConfig, awsCli
|
|
|
14102
14138
|
if (totalUnsupported > 0) summaryParts.push(`${totalUnsupported} update-not-supported`);
|
|
14103
14139
|
if (totalUnresolvable > 0) summaryParts.push(`${totalUnresolvable} reference-unresolvable`);
|
|
14104
14140
|
if (totalFailed > 0) summaryParts.push(`${totalFailed} failed`);
|
|
14141
|
+
if (writeAheadFailedStacks.length > 0) summaryParts.push(`${writeAheadFailedStacks.length} stack(s) not reverted`);
|
|
14105
14142
|
logger.info(`\nRevert summary: ${summaryParts.join(", ")}.`);
|
|
14143
|
+
if (writeAheadFailedStacks.length > 0) throw new PartialFailureError(`Nothing was reverted for ${writeAheadFailedStacks.join(", ")}: cdkd could not save state before sending secret values, so no AWS update ran there (the cause is logged above). Re-run ${pasteableCommand("cdkd drift", [{ hole: "stacks..." }, { literal: "--revert" }]).command} once state writes succeed.` + (totalFailed + totalUnsupported + totalUnresolvable > 0 ? ` Other stacks also reported ${totalFailed + totalUnsupported + totalUnresolvable} resource error(s) above.` : ""));
|
|
14106
14144
|
if (totalUnsupported > 0) logger.warn(`${totalUnsupported} resource(s) cannot be reverted in place — re-deploy the stack with ${deployReplaceCommand()}, or destroy + redeploy to push the cdkd-state values back into AWS.`);
|
|
14107
14145
|
if (totalFailed > 0 || totalUnsupported > 0 || totalUnresolvable > 0) throw new PartialFailureError(`Revert completed with ${totalFailed + totalUnsupported + totalUnresolvable} resource error(s) (${totalFailed} AWS update failure(s), ${totalUnsupported} update-not-supported, ${totalUnresolvable} refused or unresolvable — those never reached provider.update; each per-resource message above names its cause and remedy, e.g. missing secretsmanager:GetSecretValue / ssm:GetParameter grants for an unresolvable reference). Re-run ${pasteableCommand("cdkd drift", [{ hole: "stacks..." }]).command} to see the remaining drift, then ${pasteableCommand("cdkd drift", [{ hole: "stacks..." }, { literal: "--revert" }]).command} to retry.`);
|
|
14108
14146
|
}
|
|
@@ -23566,7 +23604,7 @@ async function runRollbackReplay(ctx) {
|
|
|
23566
23604
|
...carriedState,
|
|
23567
23605
|
...stackInstanceIdCarriedFrom(withoutSuperseded(baseState)),
|
|
23568
23606
|
...supersededAfterRollback(baseState, supersededHost, stateResources),
|
|
23569
|
-
version:
|
|
23607
|
+
version: 18,
|
|
23570
23608
|
region,
|
|
23571
23609
|
resources: { ...stateResources },
|
|
23572
23610
|
...orphansAfterRollback(baseState, mintedOrphans),
|
|
@@ -26594,7 +26632,7 @@ function collectImportableResources(template) {
|
|
|
26594
26632
|
}
|
|
26595
26633
|
|
|
26596
26634
|
// src/cli/commands/import/discarded-subtree.ts
|
|
26597
|
-
const DYNAMIC_REFERENCE_OPENER = "{{resolve:";
|
|
26635
|
+
const DYNAMIC_REFERENCE_OPENER$1 = "{{resolve:";
|
|
26598
26636
|
function countDynamicReferenceOpeners(bag) {
|
|
26599
26637
|
let text;
|
|
26600
26638
|
try {
|
|
@@ -26604,7 +26642,7 @@ function countDynamicReferenceOpeners(bag) {
|
|
|
26604
26642
|
}
|
|
26605
26643
|
let count = 0;
|
|
26606
26644
|
for (let from = 0;;) {
|
|
26607
|
-
const at = text.indexOf(DYNAMIC_REFERENCE_OPENER, from);
|
|
26645
|
+
const at = text.indexOf(DYNAMIC_REFERENCE_OPENER$1, from);
|
|
26608
26646
|
if (at === -1) return count;
|
|
26609
26647
|
count++;
|
|
26610
26648
|
from = at + 10;
|
|
@@ -26614,7 +26652,7 @@ function isIntrinsicShapedKey(key) {
|
|
|
26614
26652
|
return key === "Ref" || key.startsWith("Fn::");
|
|
26615
26653
|
}
|
|
26616
26654
|
function isInertDiscardedSubtree(node) {
|
|
26617
|
-
if (typeof node === "string") return !node.includes(DYNAMIC_REFERENCE_OPENER);
|
|
26655
|
+
if (typeof node === "string") return !node.includes(DYNAMIC_REFERENCE_OPENER$1);
|
|
26618
26656
|
if (node === null || typeof node !== "object") return true;
|
|
26619
26657
|
if (Array.isArray(node)) return node.every((element) => isInertDiscardedSubtree(element));
|
|
26620
26658
|
const record = node;
|
|
@@ -26627,7 +26665,7 @@ function isStaticSelectIndex(value) {
|
|
|
26627
26665
|
return typeof value === "string" && /^(0|[1-9]\d*)$/.test(value);
|
|
26628
26666
|
}
|
|
26629
26667
|
function isStaticLookupKey(value) {
|
|
26630
|
-
if (typeof value === "string") return !value.includes(DYNAMIC_REFERENCE_OPENER);
|
|
26668
|
+
if (typeof value === "string") return !value.includes(DYNAMIC_REFERENCE_OPENER$1);
|
|
26631
26669
|
return typeof value === "number" || typeof value === "boolean";
|
|
26632
26670
|
}
|
|
26633
26671
|
function resolveDiscardsNonInertSubtree(node, conditions, mappings) {
|
|
@@ -26788,7 +26826,7 @@ function shownPhysicalId(physicalId, bag) {
|
|
|
26788
26826
|
}
|
|
26789
26827
|
async function importOne(task) {
|
|
26790
26828
|
const logger = getLogger();
|
|
26791
|
-
const { logicalId, resource, stackName, region, providerRegistry, override, overrides } = task;
|
|
26829
|
+
const { logicalId, resource, stackName, region, providerRegistry, override, overrides, overrideFromCloudFormation, cloudFormationDeployedProperties } = task;
|
|
26792
26830
|
if (!providerRegistry.hasProvider(resource.Type)) return {
|
|
26793
26831
|
logicalId,
|
|
26794
26832
|
resourceType: resource.Type,
|
|
@@ -26820,7 +26858,9 @@ async function importOne(task) {
|
|
|
26820
26858
|
stackName,
|
|
26821
26859
|
region,
|
|
26822
26860
|
properties,
|
|
26823
|
-
...override !== void 0 && { knownPhysicalId: override }
|
|
26861
|
+
...override !== void 0 && { knownPhysicalId: override },
|
|
26862
|
+
...override !== void 0 && overrideFromCloudFormation === true && { knownPhysicalIdFromCloudFormation: true },
|
|
26863
|
+
...cloudFormationDeployedProperties !== void 0 && { cloudFormationDeployedProperties }
|
|
26824
26864
|
};
|
|
26825
26865
|
const result = await withPrintingSecrets(readBag, () => provider.import(input));
|
|
26826
26866
|
if (!result) return {
|
|
@@ -27287,6 +27327,241 @@ function persistCrossStackReads(stackState, recordedImports, recordedOutputReads
|
|
|
27287
27327
|
}));
|
|
27288
27328
|
}
|
|
27289
27329
|
|
|
27330
|
+
// src/cli/commands/import/deployed-properties.ts
|
|
27331
|
+
async function readDeployedTemplate(cfnClient, stackName, consequence) {
|
|
27332
|
+
const refuse = (reason) => /* @__PURE__ */ new Error(`--migrate-from-cloudformation: ${reason} ${consequence}`);
|
|
27333
|
+
let body;
|
|
27334
|
+
try {
|
|
27335
|
+
body = (await cfnClient.send(new GetTemplateCommand({
|
|
27336
|
+
StackName: stackName,
|
|
27337
|
+
TemplateStage: "Processed"
|
|
27338
|
+
}))).TemplateBody;
|
|
27339
|
+
} catch (err) {
|
|
27340
|
+
throw refuse(safeMsg`reading the template CloudFormation last deployed failed: ${cfnFailureText(err)}.`);
|
|
27341
|
+
}
|
|
27342
|
+
if (!body) throw refuse("CloudFormation returned no template body for the stack being migrated.");
|
|
27343
|
+
let parsed;
|
|
27344
|
+
try {
|
|
27345
|
+
parsed = parseCfnTemplate(body);
|
|
27346
|
+
} catch (err) {
|
|
27347
|
+
throw refuse(safeMsg`the template CloudFormation last deployed could not be parsed: ${describeAwsFailure(err).detail}.`);
|
|
27348
|
+
}
|
|
27349
|
+
const resources = parsed["Resources"];
|
|
27350
|
+
if (resources === null || typeof resources !== "object" || Array.isArray(resources)) throw refuse("the template CloudFormation last deployed has no Resources section.");
|
|
27351
|
+
return parsed;
|
|
27352
|
+
}
|
|
27353
|
+
function newNames() {
|
|
27354
|
+
return {
|
|
27355
|
+
targets: /* @__PURE__ */ new Set(),
|
|
27356
|
+
conditions: /* @__PURE__ */ new Set(),
|
|
27357
|
+
mappings: /* @__PURE__ */ new Set(),
|
|
27358
|
+
anyMapping: false,
|
|
27359
|
+
conditionKeys: /* @__PURE__ */ new Set(),
|
|
27360
|
+
external: []
|
|
27361
|
+
};
|
|
27362
|
+
}
|
|
27363
|
+
const STACK_LOCAL_INTRINSICS = /* @__PURE__ */ new Set([
|
|
27364
|
+
"Fn::GetAtt",
|
|
27365
|
+
"Fn::Join",
|
|
27366
|
+
"Fn::Sub",
|
|
27367
|
+
"Fn::Select",
|
|
27368
|
+
"Fn::Split",
|
|
27369
|
+
"Fn::If",
|
|
27370
|
+
"Fn::Equals",
|
|
27371
|
+
"Fn::And",
|
|
27372
|
+
"Fn::Or",
|
|
27373
|
+
"Fn::Not",
|
|
27374
|
+
"Fn::FindInMap",
|
|
27375
|
+
"Fn::Base64",
|
|
27376
|
+
"Fn::GetAZs",
|
|
27377
|
+
"Fn::Cidr"
|
|
27378
|
+
]);
|
|
27379
|
+
function subTargets(text, localVariables, out) {
|
|
27380
|
+
for (const match of text.matchAll(/\$\{([^}]*)\}/g)) {
|
|
27381
|
+
const inner = match[1] ?? "";
|
|
27382
|
+
if (inner.startsWith("!")) continue;
|
|
27383
|
+
const name = inner.split(".")[0].trim();
|
|
27384
|
+
if (name.length === 0 || localVariables.has(name)) continue;
|
|
27385
|
+
out.add(name);
|
|
27386
|
+
}
|
|
27387
|
+
}
|
|
27388
|
+
function collectNames(value, out) {
|
|
27389
|
+
if (value === null || typeof value !== "object") return;
|
|
27390
|
+
if (Array.isArray(value)) {
|
|
27391
|
+
for (const item of value) collectNames(item, out);
|
|
27392
|
+
return;
|
|
27393
|
+
}
|
|
27394
|
+
const obj = value;
|
|
27395
|
+
const keys = Object.keys(obj);
|
|
27396
|
+
if (keys.length === 1) {
|
|
27397
|
+
const key = keys[0];
|
|
27398
|
+
const arg = obj[key];
|
|
27399
|
+
if (key === "Ref" && typeof arg === "string") {
|
|
27400
|
+
out.targets.add(arg);
|
|
27401
|
+
return;
|
|
27402
|
+
}
|
|
27403
|
+
if (key === "Condition" && typeof arg === "string") {
|
|
27404
|
+
out.conditionKeys.add(arg);
|
|
27405
|
+
return;
|
|
27406
|
+
}
|
|
27407
|
+
if (key === "Fn::GetAtt") {
|
|
27408
|
+
if (typeof arg === "string") {
|
|
27409
|
+
out.targets.add(arg.split(".")[0]);
|
|
27410
|
+
return;
|
|
27411
|
+
}
|
|
27412
|
+
if (Array.isArray(arg) && typeof arg[0] === "string") {
|
|
27413
|
+
out.targets.add(arg[0]);
|
|
27414
|
+
collectNames(arg.slice(1), out);
|
|
27415
|
+
return;
|
|
27416
|
+
}
|
|
27417
|
+
}
|
|
27418
|
+
if (key === "Fn::Sub") {
|
|
27419
|
+
if (typeof arg === "string") {
|
|
27420
|
+
subTargets(arg, /* @__PURE__ */ new Set(), out.targets);
|
|
27421
|
+
return;
|
|
27422
|
+
}
|
|
27423
|
+
if (Array.isArray(arg) && typeof arg[0] === "string") {
|
|
27424
|
+
const variables = arg[1] !== null && typeof arg[1] === "object" && !Array.isArray(arg[1]) ? arg[1] : {};
|
|
27425
|
+
subTargets(arg[0], new Set(Object.keys(variables)), out.targets);
|
|
27426
|
+
collectNames(arg.slice(1), out);
|
|
27427
|
+
return;
|
|
27428
|
+
}
|
|
27429
|
+
}
|
|
27430
|
+
if (key === "Fn::If" && Array.isArray(arg) && typeof arg[0] === "string") {
|
|
27431
|
+
out.conditions.add(arg[0]);
|
|
27432
|
+
collectNames(arg.slice(1), out);
|
|
27433
|
+
return;
|
|
27434
|
+
}
|
|
27435
|
+
if (key === "Fn::FindInMap" && Array.isArray(arg)) {
|
|
27436
|
+
if (typeof arg[0] === "string") out.mappings.add(arg[0]);
|
|
27437
|
+
else out.anyMapping = true;
|
|
27438
|
+
collectNames(arg, out);
|
|
27439
|
+
return;
|
|
27440
|
+
}
|
|
27441
|
+
if (key.startsWith("Fn::") && !STACK_LOCAL_INTRINSICS.has(key)) {
|
|
27442
|
+
out.external.push(obj);
|
|
27443
|
+
collectNames(arg, out);
|
|
27444
|
+
return;
|
|
27445
|
+
}
|
|
27446
|
+
}
|
|
27447
|
+
for (const child of Object.values(obj)) collectNames(child, out);
|
|
27448
|
+
}
|
|
27449
|
+
const DYNAMIC_REFERENCE_OPENER = "{{resolve:";
|
|
27450
|
+
function dynamicReferenceDowngradePath(synth, deployed, path) {
|
|
27451
|
+
if (typeof synth === "string") {
|
|
27452
|
+
if (!synth.includes(DYNAMIC_REFERENCE_OPENER)) return void 0;
|
|
27453
|
+
return typeof deployed === "string" && deployed.includes(DYNAMIC_REFERENCE_OPENER) ? void 0 : path || "(the whole bag)";
|
|
27454
|
+
}
|
|
27455
|
+
if (synth === null || typeof synth !== "object") return void 0;
|
|
27456
|
+
const deployedNode = deployed !== null && typeof deployed === "object" ? deployed : {};
|
|
27457
|
+
for (const [key, child] of Object.entries(synth)) {
|
|
27458
|
+
const childPath = path ? `${path}.${key}` : key;
|
|
27459
|
+
const found = dynamicReferenceDowngradePath(child, hasOwn(deployedNode, key) ? deployedNode[key] : void 0, childPath);
|
|
27460
|
+
if (found !== void 0) return found;
|
|
27461
|
+
}
|
|
27462
|
+
}
|
|
27463
|
+
function section(template, name) {
|
|
27464
|
+
const value = template[name];
|
|
27465
|
+
return value !== null && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
27466
|
+
}
|
|
27467
|
+
function hasOwn(record, key) {
|
|
27468
|
+
return Object.prototype.hasOwnProperty.call(record, key);
|
|
27469
|
+
}
|
|
27470
|
+
function deployedPropertiesBlocker(deployedProperties, synthProperties, synthTemplate, deployedTemplate) {
|
|
27471
|
+
const downgraded = dynamicReferenceDowngradePath(synthProperties, deployedProperties, "");
|
|
27472
|
+
if (downgraded !== void 0) return safeMsg`the synthesized properties hold a dynamic reference at ${downgraded} where the deployed ones do not`;
|
|
27473
|
+
const names = newNames();
|
|
27474
|
+
collectNames(deployedProperties, names);
|
|
27475
|
+
const synthParameters = section(synthTemplate, "Parameters");
|
|
27476
|
+
const synthResources = section(synthTemplate, "Resources");
|
|
27477
|
+
const deployedResources = section(deployedTemplate, "Resources");
|
|
27478
|
+
const deployedParameters = section(deployedTemplate, "Parameters");
|
|
27479
|
+
for (const target of names.targets) {
|
|
27480
|
+
if (target.startsWith("AWS::")) continue;
|
|
27481
|
+
if (hasOwn(synthParameters, target) && hasOwn(deployedResources, target) || hasOwn(synthResources, target) && hasOwn(deployedParameters, target)) return safeMsg`they reference ${logicalIdShown(target)}, which changed between a parameter and a resource`;
|
|
27482
|
+
if (hasOwn(synthParameters, target)) continue;
|
|
27483
|
+
if (hasOwn(synthResources, target)) {
|
|
27484
|
+
const was = hasOwn(deployedResources, target) ? deployedResources[target]?.Type : void 0;
|
|
27485
|
+
const now = synthResources[target]?.Type;
|
|
27486
|
+
if (was === void 0 || was === now) continue;
|
|
27487
|
+
return safeMsg`they reference ${logicalIdShown(target)}, whose type changed in the synthesized template`;
|
|
27488
|
+
}
|
|
27489
|
+
return safeMsg`they reference ${logicalIdShown(target)}, which the synthesized template does not declare`;
|
|
27490
|
+
}
|
|
27491
|
+
if (names.external.length > 0) {
|
|
27492
|
+
const synthNames = newNames();
|
|
27493
|
+
collectNames(synthProperties, synthNames);
|
|
27494
|
+
for (const node of names.external) if (!synthNames.external.some((other) => isDeepStrictEqual(node, other))) return "they read a value from another stack that the synthesized properties no longer read";
|
|
27495
|
+
}
|
|
27496
|
+
const synthConditions = section(synthTemplate, "Conditions");
|
|
27497
|
+
const deployedConditions = section(deployedTemplate, "Conditions");
|
|
27498
|
+
for (const name of names.conditionKeys) if (hasOwn(synthConditions, name) || hasOwn(deployedConditions, name)) names.conditions.add(name);
|
|
27499
|
+
const pending = [...names.conditions];
|
|
27500
|
+
const seen = /* @__PURE__ */ new Set();
|
|
27501
|
+
while (pending.length > 0) {
|
|
27502
|
+
const condition = pending.pop();
|
|
27503
|
+
if (seen.has(condition)) continue;
|
|
27504
|
+
seen.add(condition);
|
|
27505
|
+
if (!hasOwn(synthConditions, condition) || !hasOwn(deployedConditions, condition) || !isDeepStrictEqual(synthConditions[condition], deployedConditions[condition])) return safeMsg`they use condition ${logicalIdShown(condition)}, which the synthesized template defines differently`;
|
|
27506
|
+
const inner = newNames();
|
|
27507
|
+
collectNames(deployedConditions[condition], inner);
|
|
27508
|
+
pending.push(...inner.conditions, ...inner.conditionKeys);
|
|
27509
|
+
}
|
|
27510
|
+
const synthMappings = section(synthTemplate, "Mappings");
|
|
27511
|
+
const deployedMappings = section(deployedTemplate, "Mappings");
|
|
27512
|
+
if (names.anyMapping) {
|
|
27513
|
+
if (!isDeepStrictEqual(synthMappings, deployedMappings)) return "they look up a mapping by a computed name, and the mappings differ from the synthesized template";
|
|
27514
|
+
} else for (const mapping of names.mappings) if (!hasOwn(synthMappings, mapping) || !hasOwn(deployedMappings, mapping) || !isDeepStrictEqual(synthMappings[mapping], deployedMappings[mapping])) return safeMsg`they use mapping ${logicalIdShown(mapping)}, which the synthesized template defines differently`;
|
|
27515
|
+
}
|
|
27516
|
+
function overlayDeployedProperties(synthTemplate, deployedTemplate, logger, stackLabel) {
|
|
27517
|
+
const deployedResources = section(deployedTemplate, "Resources");
|
|
27518
|
+
const resources = {};
|
|
27519
|
+
const pending = [];
|
|
27520
|
+
for (const [logicalId, resource] of Object.entries(synthTemplate.Resources)) {
|
|
27521
|
+
defineOwnKey(resources, logicalId, resource);
|
|
27522
|
+
if (resource.Type === "AWS::CloudFormation::Stack") continue;
|
|
27523
|
+
if (!hasOwn(deployedResources, logicalId)) continue;
|
|
27524
|
+
const deployed = deployedResources[logicalId];
|
|
27525
|
+
if (deployed === null || typeof deployed !== "object") continue;
|
|
27526
|
+
const synthProperties = resource.Properties ?? {};
|
|
27527
|
+
const deployedProperties = deployed.Properties ?? {};
|
|
27528
|
+
if (isDeepStrictEqual(synthProperties, deployedProperties)) continue;
|
|
27529
|
+
const blocker = deployed.Type !== resource.Type ? safeMsg`CloudFormation deployed it as ${resourceTypeShown(String(deployed.Type))}` : deployedPropertiesBlocker(deployedProperties, synthProperties, synthTemplate, deployedTemplate);
|
|
27530
|
+
if (blocker !== void 0) {
|
|
27531
|
+
logger.warn(safeMsg`--migrate-from-cloudformation: ${logicalIdShown(logicalId)} (${resourceTypeShown(resource.Type)}) ` + safeMsg`in ${stackLabel} is recorded with the synthesized template's properties, not the ones ` + safeMsg`CloudFormation last deployed, because ${blocker}. If the code changed this resource after the ` + "last 'cdk deploy', the next 'cdkd diff' does not show that change and 'cdkd deploy' does not apply it: compare the resource in AWS with the template before relying on the record.");
|
|
27532
|
+
continue;
|
|
27533
|
+
}
|
|
27534
|
+
defineOwnKey(resources, logicalId, {
|
|
27535
|
+
...resource,
|
|
27536
|
+
Properties: structuredClone(deployedProperties)
|
|
27537
|
+
});
|
|
27538
|
+
pending.push(logicalId);
|
|
27539
|
+
}
|
|
27540
|
+
if (pending.length > 0) logger.info(safeMsg`${pending.length} resource(s) in ${stackLabel} differ from the template CloudFormation last ` + safeMsg`deployed (${pending.map((id) => logicalIdShown(id)).join(", ")}): state records what ` + `CloudFormation deployed, so the next 'cdkd diff' shows the change and 'cdkd deploy' applies it.`);
|
|
27541
|
+
return {
|
|
27542
|
+
template: {
|
|
27543
|
+
...synthTemplate,
|
|
27544
|
+
Resources: resources
|
|
27545
|
+
},
|
|
27546
|
+
overlaid: new Set(pending)
|
|
27547
|
+
};
|
|
27548
|
+
}
|
|
27549
|
+
function deployedPropertiesOf(deployedTemplate, logicalId) {
|
|
27550
|
+
if (deployedTemplate === void 0) return void 0;
|
|
27551
|
+
const rows = section(deployedTemplate, "Resources");
|
|
27552
|
+
if (!hasOwn(rows, logicalId)) return void 0;
|
|
27553
|
+
const row = rows[logicalId];
|
|
27554
|
+
if (row === null || typeof row !== "object") return void 0;
|
|
27555
|
+
const props = row.Properties;
|
|
27556
|
+
return props !== null && typeof props === "object" && !Array.isArray(props) ? props : {};
|
|
27557
|
+
}
|
|
27558
|
+
function withDeployedDefinitions(resources, overlay) {
|
|
27559
|
+
return resources.map((entry) => overlay.overlaid.has(entry.logicalId) ? {
|
|
27560
|
+
...entry,
|
|
27561
|
+
resource: overlay.template.Resources[entry.logicalId]
|
|
27562
|
+
} : entry);
|
|
27563
|
+
}
|
|
27564
|
+
|
|
27290
27565
|
// src/cli/commands/import/stack-state.ts
|
|
27291
27566
|
async function claimRegistryMarkerAfterImport(backend, stackName, region, logger) {
|
|
27292
27567
|
const answer = await new CrossPrefixGuard(backend).full(stackName, region);
|
|
@@ -27445,7 +27720,7 @@ function buildStackState(stackName, region, rows, templateParser, template, exis
|
|
|
27445
27720
|
}
|
|
27446
27721
|
if (namesParameter?.failedClosed !== void 0) getLogger().debug(`The template's parameter dependence could not be judged (${namesParameter.failedClosed}): every prior observed-baseline refusal recorded without a reason is carried as an unverifiable-parameter refusal.`);
|
|
27447
27722
|
return {
|
|
27448
|
-
version:
|
|
27723
|
+
version: 18,
|
|
27449
27724
|
stackName,
|
|
27450
27725
|
region,
|
|
27451
27726
|
resources,
|
|
@@ -27527,8 +27802,11 @@ async function importNestedStackChildrenRecursive(args) {
|
|
|
27527
27802
|
templateLogicalIds: childTemplateLogicalIds,
|
|
27528
27803
|
overrides: childOverrides
|
|
27529
27804
|
});
|
|
27805
|
+
const childDeployedTemplate = await readDeployedTemplate(args.cfnClient, childTreeNode.stackName, safeMsg`cdkd state for nested stack ${displaySafe(childStackName)} was not written ` + "(the parent's and earlier nested stacks' were), and the CloudFormation stack was not deleted; the re-run needs --force.");
|
|
27806
|
+
const childOverlay = overlayDeployedProperties(childStateTemplate, childDeployedTemplate, logger, displaySafe(childStackName));
|
|
27807
|
+
const childRecordTemplate = childOverlay.template;
|
|
27530
27808
|
const rows = [];
|
|
27531
|
-
for (const { logicalId, resource } of childResources) {
|
|
27809
|
+
for (const { logicalId, resource } of withDeployedDefinitions(childResources, childOverlay)) {
|
|
27532
27810
|
if (resource.Type === "AWS::CloudFormation::Stack" && childTreeNode.nested.has(logicalId)) {
|
|
27533
27811
|
rows.push({
|
|
27534
27812
|
logicalId,
|
|
@@ -27545,7 +27823,9 @@ async function importNestedStackChildrenRecursive(args) {
|
|
|
27545
27823
|
region: childRegion,
|
|
27546
27824
|
providerRegistry,
|
|
27547
27825
|
override: childOverrides.get(logicalId),
|
|
27548
|
-
overrides: childOverrides
|
|
27826
|
+
overrides: childOverrides,
|
|
27827
|
+
overrideFromCloudFormation: true,
|
|
27828
|
+
cloudFormationDeployedProperties: deployedPropertiesOf(childDeployedTemplate, logicalId)
|
|
27549
27829
|
});
|
|
27550
27830
|
rows.push(outcome);
|
|
27551
27831
|
}
|
|
@@ -27553,7 +27833,7 @@ async function importNestedStackChildrenRecursive(args) {
|
|
|
27553
27833
|
const childImported = new Set(rows.filter((r) => r.outcome === "imported").map((r) => r.logicalId));
|
|
27554
27834
|
refuseLostReplacedRows(args.replaced.filter((r) => r.nestedPath.length === childPath.length && r.nestedPath.every((p, i) => p === childPath[i]) && childTemplateLogicalIds.has(r.logicalId) && !childImported.has(r.logicalId)).map((r) => r.logicalId), safeMsg`cdkd state for nested stack ${displaySafe(childStackName)} was not written ` + "(the parent's and earlier nested stacks' were), and the CloudFormation stack was not deleted; the re-run needs --force.");
|
|
27555
27835
|
warnMigrationOrphans(logger, childResources.length, childImported.size, childStackName);
|
|
27556
|
-
const childStackState = buildStackState(childStackName, childRegion, rows, templateParser,
|
|
27836
|
+
const childStackState = buildStackState(childStackName, childRegion, rows, templateParser, childRecordTemplate, null, false);
|
|
27557
27837
|
childStackState.parentStack = parentStackName;
|
|
27558
27838
|
childStackState.parentLogicalId = childLogicalId;
|
|
27559
27839
|
childStackState.parentRegion = parentRegion;
|
|
@@ -27565,9 +27845,9 @@ async function importNestedStackChildrenRecursive(args) {
|
|
|
27565
27845
|
if (imports !== void 0) childStackState.imports = imports;
|
|
27566
27846
|
if (outputReads !== void 0) childStackState.outputReads = outputReads;
|
|
27567
27847
|
} else if (childStackInstanceId !== void 0) childStackState.stackInstanceId = childStackInstanceId;
|
|
27568
|
-
const childDeployedParameters = namesAnyDeclaredParameter(
|
|
27569
|
-
const childUnsafeObservedBaselineLogicalIds = await withSharedDrainBudget(() => resolveImportedProperties(childStackState,
|
|
27570
|
-
await captureObservedForImportedResources(childStackState, providerRegistry, logger, childUnsafeObservedBaselineLogicalIds, rebuiltLogicalIdsFrom(rows,
|
|
27848
|
+
const childDeployedParameters = namesAnyDeclaredParameter(childRecordTemplate) ? await readDeployedParameters(childTreeNode.stackName, args.cfnClient, logger, displaySafe(childStackName)) : void 0;
|
|
27849
|
+
const childUnsafeObservedBaselineLogicalIds = await withSharedDrainBudget(() => resolveImportedProperties(childStackState, childRecordTemplate, childRegion, stateBackend, logger, childDeployedParameters));
|
|
27850
|
+
await captureObservedForImportedResources(childStackState, providerRegistry, logger, childUnsafeObservedBaselineLogicalIds, rebuiltLogicalIdsFrom(rows, childRecordTemplate));
|
|
27571
27851
|
await recordImportOnRollbackJournal(stateBackend, childStackName, childRegion, rows.filter((r) => r.outcome === "imported").map((r) => r.logicalId), childStackState.resources, logger);
|
|
27572
27852
|
await stateBackend.saveState(childStackName, childRegion, childStackState);
|
|
27573
27853
|
logger.info(`✓ Nested stack state written: ${childStackName} (${childRegion}) — ${rows.filter((r) => r.outcome === "imported").length} resource(s) imported.`);
|
|
@@ -27690,9 +27970,23 @@ async function dispatchInRefOrder(resources, overrides, importRow) {
|
|
|
27690
27970
|
|
|
27691
27971
|
// src/cli/commands/import/locked-import.ts
|
|
27692
27972
|
async function runLockedImport(ctx) {
|
|
27693
|
-
const { options, logger, stateBucket, lockRecovery, stateBackend, lockManager, stackInfo, targetRegion, regionClients, providerRegistry, assetRedirect, stateTemplate, overrides, migrationCfnStackName, template, templateParser, resources, templateLogicalIds, accountIdForNestedSynth, selectiveMode, existingState, existingEtag, migrationPending, owner } = ctx;
|
|
27973
|
+
const { options, logger, stateBucket, lockRecovery, stateBackend, lockManager, stackInfo, targetRegion, regionClients, providerRegistry, assetRedirect, stateTemplate, overrides, userOverrideIds, autoModeCfnStackName, migrationCfnStackName, template, templateParser, resources, templateLogicalIds, accountIdForNestedSynth, selectiveMode, existingState, existingEtag, migrationPending, owner } = ctx;
|
|
27694
27974
|
let { migrationTree } = ctx;
|
|
27695
|
-
|
|
27975
|
+
let recordTemplate = stateTemplate;
|
|
27976
|
+
let dispatchResources = resources;
|
|
27977
|
+
let deployedTemplate;
|
|
27978
|
+
if (migrationCfnStackName === void 0 && autoModeCfnStackName !== void 0) try {
|
|
27979
|
+
deployedTemplate = await readDeployedTemplate(regionClients.cloudFormation, autoModeCfnStackName, "Continuing without it.");
|
|
27980
|
+
} catch (err) {
|
|
27981
|
+
logger.debug(`Reading the deployed template of the same-named CloudFormation stack failed (${err instanceof Error ? err.name : typeof err}); continuing without it.`);
|
|
27982
|
+
}
|
|
27983
|
+
if (migrationCfnStackName !== void 0) {
|
|
27984
|
+
deployedTemplate = await readDeployedTemplate(regionClients.cloudFormation, migrationCfnStackName, "cdkd state was not written and the CloudFormation stack was not changed.");
|
|
27985
|
+
const overlay = overlayDeployedProperties(stateTemplate, deployedTemplate, logger, displaySafe(stackInfo.stackName));
|
|
27986
|
+
recordTemplate = overlay.template;
|
|
27987
|
+
dispatchResources = withDeployedDefinitions(resources, overlay);
|
|
27988
|
+
}
|
|
27989
|
+
const collectRows = () => dispatchInRefOrder(dispatchResources, overrides, async ({ logicalId, resource }, refValues) => {
|
|
27696
27990
|
if (selectiveMode && !overrides.has(logicalId)) return {
|
|
27697
27991
|
logicalId,
|
|
27698
27992
|
resourceType: resource.Type,
|
|
@@ -27712,14 +28006,16 @@ async function runLockedImport(ctx) {
|
|
|
27712
28006
|
region: targetRegion,
|
|
27713
28007
|
providerRegistry,
|
|
27714
28008
|
override: overrides.get(logicalId),
|
|
27715
|
-
overrides: refValues
|
|
28009
|
+
overrides: refValues,
|
|
28010
|
+
overrideFromCloudFormation: !userOverrideIds.has(logicalId),
|
|
28011
|
+
...deployedTemplate !== void 0 && { cloudFormationDeployedProperties: deployedPropertiesOf(deployedTemplate, logicalId) }
|
|
27716
28012
|
});
|
|
27717
28013
|
});
|
|
27718
28014
|
let rows = await collectRows();
|
|
27719
28015
|
printSummary(rows);
|
|
27720
28016
|
if (options.recordResourceMapping) writeRecordedMapping(options.recordResourceMapping, rows);
|
|
27721
28017
|
const assembleStackState = () => {
|
|
27722
|
-
const assembled = buildStackState(stackInfo.stackName, targetRegion, rows, templateParser,
|
|
28018
|
+
const assembled = buildStackState(stackInfo.stackName, targetRegion, rows, templateParser, recordTemplate, existingState, selectiveMode);
|
|
27723
28019
|
refuseMalformedResourceEntriesForImportSave(assembled, stackInfo.stackName, targetRegion, lockRecovery);
|
|
27724
28020
|
return assembled;
|
|
27725
28021
|
};
|
|
@@ -27788,7 +28084,7 @@ async function runLockedImport(ctx) {
|
|
|
27788
28084
|
}
|
|
27789
28085
|
}
|
|
27790
28086
|
}
|
|
27791
|
-
const deployedParameters = !namesAnyDeclaredParameter(
|
|
28087
|
+
const deployedParameters = !namesAnyDeclaredParameter(recordTemplate) ? void 0 : migrationCfnStackName !== void 0 ? await readDeployedParameters(migrationCfnStackName, regionClients.cloudFormation, logger, displaySafe(migrationCfnStackName)) : await readDeployedParameters(stackInfo.stackName, regionClients.cloudFormation, logger, displaySafe(stackInfo.stackName), { absentStackIsNoSource: true });
|
|
27792
28088
|
if (existingState === null && typeof stateBackend.peekStackInstanceSibling === "function") {
|
|
27793
28089
|
const sibling = await stateBackend.peekStackInstanceSibling(stackInfo.stackName, targetRegion);
|
|
27794
28090
|
if (sibling?.stackIdFromInstance === true) stackState = {
|
|
@@ -27797,8 +28093,8 @@ async function runLockedImport(ctx) {
|
|
|
27797
28093
|
stackIdFromInstance: true
|
|
27798
28094
|
};
|
|
27799
28095
|
}
|
|
27800
|
-
const unsafeObservedBaselineLogicalIds = await withSharedDrainBudget(() => resolveImportedProperties(stackState,
|
|
27801
|
-
await captureObservedForImportedResources(stackState, providerRegistry, logger, unsafeObservedBaselineLogicalIds, rebuiltLogicalIdsFrom(rows,
|
|
28096
|
+
const unsafeObservedBaselineLogicalIds = await withSharedDrainBudget(() => resolveImportedProperties(stackState, recordTemplate, targetRegion, stateBackend, logger, deployedParameters));
|
|
28097
|
+
await captureObservedForImportedResources(stackState, providerRegistry, logger, unsafeObservedBaselineLogicalIds, rebuiltLogicalIdsFrom(rows, recordTemplate));
|
|
27802
28098
|
const saveOptions = {};
|
|
27803
28099
|
if (existingEtag) saveOptions.expectedEtag = existingEtag;
|
|
27804
28100
|
if (migrationPending) saveOptions.migrateLegacy = true;
|
|
@@ -27958,6 +28254,7 @@ async function importCommand(stackArg, options) {
|
|
|
27958
28254
|
}
|
|
27959
28255
|
const overrides = parseResourceOverrides(options.resource, options.resourceMapping, options.resourceMappingInline);
|
|
27960
28256
|
if (overrides.size > 0) logger.debug(`User-supplied physical IDs: ${[...overrides.keys()].join(", ")}`);
|
|
28257
|
+
const userOverrideIds = new Set(overrides.keys());
|
|
27961
28258
|
const migrationCfnStackName = options.migrateFromCloudformation ? typeof options.migrateFromCloudformation === "string" && options.migrateFromCloudformation.length > 0 ? options.migrateFromCloudformation : stackInfo.stackName : void 0;
|
|
27962
28259
|
if (options.migrateFromCloudformation && options.dryRun) throw new Error(`--migrate-from-cloudformation is not compatible with --dry-run: the post-state-write retirement (UpdateStack + DeleteStack) issues real AWS calls. Use plain ${proseQuoted(cdkdRemedy("cdkd import", "--dry-run"), "`")} to preview the import in isolation.`);
|
|
27963
28260
|
const template = stackInfo.template;
|
|
@@ -27987,9 +28284,11 @@ async function importCommand(stackArg, options) {
|
|
|
27987
28284
|
}
|
|
27988
28285
|
const selectiveMode = overrides.size > 0 && !options.auto && !options.migrateFromCloudformation;
|
|
27989
28286
|
if (selectiveMode) logger.info(`Selective mode: only importing the ${overrides.size} resource(s) you listed (${[...overrides.keys()].join(", ")}). Pass --auto to also auto-resolve the rest.`);
|
|
28287
|
+
let autoModeCfnStackName;
|
|
27990
28288
|
if (!selectiveMode && !migrationCfnStackName) {
|
|
27991
28289
|
const cfnResources = await tryGetCloudFormationResourceMap(stackInfo.stackName, regionClients.cloudFormation);
|
|
27992
28290
|
if (cfnResources) {
|
|
28291
|
+
autoModeCfnStackName = stackInfo.stackName;
|
|
27993
28292
|
const mergeStats = mergeCfnDerivedOverrides({
|
|
27994
28293
|
cfnMapping: cfnResources,
|
|
27995
28294
|
template,
|
|
@@ -28048,6 +28347,8 @@ async function importCommand(stackArg, options) {
|
|
|
28048
28347
|
assetRedirect,
|
|
28049
28348
|
stateTemplate,
|
|
28050
28349
|
overrides,
|
|
28350
|
+
userOverrideIds,
|
|
28351
|
+
autoModeCfnStackName,
|
|
28051
28352
|
migrationCfnStackName,
|
|
28052
28353
|
template,
|
|
28053
28354
|
templateParser,
|
|
@@ -36898,4 +37199,4 @@ function collectVerbFlags(program) {
|
|
|
36898
37199
|
}
|
|
36899
37200
|
|
|
36900
37201
|
export { effectiveInventoryItem as $, tagListsMatch as A, LIFECYCLE_DEFAULT_STATUS as B, reconcileSgRules as C, singleSecurityGroupRuleId as D, sgRuleKey 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, stackIngressRuleHolder as O, LIFECYCLE_BASELINE_REREAD_DELAYS_MS as P, effectiveIntelligentTieringItem as Q, settleLifecycleRead as R, narrowIngressIpProtocol as S, securityGroupRuleMatchesCfnIngress 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, flattenIpPermissions as _, resolveSecretDerivedPrincipals as a, declaresBucketObjectLock as at, isDefaultEgressRule as b, buildProgram, readSgIngressById as c, isPlainObject as ct, SG_RULE_PAGE_SIZE$1 as d, shownLifecycleRuleId as dt, effectiveNotificationConfiguration as et, authorizeDefinitelyNotApplied as f, descriptionKey as g, comparableIngressIdentity as h, isResolvableSecretPrincipalList as i, configItemId as it, markCopiesAgreed as j, survivingRecordOfRuleId as k, siblingIdOwnedSgRules as l, manualBucketDeletionClause as lt, canonicalizeSgRuleProtocol as m, runDestroyForStack as n, caughtErrorName as nt, refuseRevertRevokingSiblingRules as o, declaresNestedObjectLock as ot, canonicalizeSgInlineRuleProtocols as p, lifecycleRuleScope as q, holdsUnprovenSecretPrincipalToken as r, coerceCfnNumber as rt, sgRuleDiffKey as s, describeValue as st, canonicalizeIpv4Cidr as t, eventBridgeEnabledOf as tt, SG_READBACK_RETRY_DELAY_MS as u, mergeLegacySingular as ut, ingressRuleIdentity as v, securityGroupReadbackDelays as w, isResendableSocketFailure as x, isConnectTimeout as y, takeLifecycleWrite as z };
|
|
36901
|
-
//# sourceMappingURL=program-
|
|
37202
|
+
//# sourceMappingURL=program-73k0SoOP.js.map
|