@cdkd/cli 0.365.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-AnEvWPy0.js → ambient-client-defaults-CvOlhm1d.js} +16 -3
- package/dist/ambient-client-defaults-CvOlhm1d.js.map +1 -0
- package/dist/{asg-provider-BzCU3XtA.js → asg-provider-CBS6w9nU.js} +6 -6
- package/dist/{asg-provider-BzCU3XtA.js.map → asg-provider-CBS6w9nU.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{custom-resource-runtime-SB_NsQMH.js → custom-resource-runtime-nKBSJ8xg.js} +6 -6
- package/dist/{custom-resource-runtime-SB_NsQMH.js.map → custom-resource-runtime-nKBSJ8xg.js.map} +1 -1
- package/dist/{db-associated-roles-D1wmFO_Y.js → db-associated-roles-B1qNCxK9.js} +2 -2
- package/dist/{db-associated-roles-D1wmFO_Y.js.map → db-associated-roles-B1qNCxK9.js.map} +1 -1
- package/dist/{delete-started-BJNrzLUk.js → delete-started-BdH7k4V-.js} +6 -6
- package/dist/{delete-started-BJNrzLUk.js.map → delete-started-BdH7k4V-.js.map} +1 -1
- package/dist/{deploy-engine-BSqVfcSN.js → deploy-engine-BrbeNr1n.js} +370 -120
- package/dist/deploy-engine-BrbeNr1n.js.map +1 -0
- package/dist/{ec2-termination-protection-ekOvhSp9.js → ec2-termination-protection-C-QH13lG.js} +11 -6
- package/dist/ec2-termination-protection-C-QH13lG.js.map +1 -0
- package/dist/{ecr-uri-VpDi19pi.js → ecr-uri-7-3D0mhp.js} +2 -2
- package/dist/{ecr-uri-VpDi19pi.js.map → ecr-uri-7-3D0mhp.js.map} +1 -1
- package/dist/{expected-bucket-owner-CmPtCsrQ.js → expected-bucket-owner-C9e1dPk6.js} +2 -2
- package/dist/{expected-bucket-owner-CmPtCsrQ.js.map → expected-bucket-owner-C9e1dPk6.js.map} +1 -1
- package/dist/{iam-role-provider-Ct6UbKFo.js → iam-role-provider-ChwJY8pn.js} +11 -10
- package/dist/iam-role-provider-ChwJY8pn.js.map +1 -0
- package/dist/{image-plan-gTOaUUbI.js → image-plan-B1aW8zVe.js} +8 -8
- package/dist/{image-plan-gTOaUUbI.js.map → image-plan-B1aW8zVe.js.map} +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-IBUeRw1z.js → logger-0WCzMnXc.js} +6 -2
- package/dist/logger-0WCzMnXc.js.map +1 -0
- package/dist/{neptune-provider-QgaV_sKy.js → neptune-provider-BEkpYrGj.js} +7 -7
- package/dist/{neptune-provider-QgaV_sKy.js.map → neptune-provider-BEkpYrGj.js.map} +1 -1
- package/dist/{program-tHhew1Z5.js → program-73k0SoOP.js} +368 -55
- package/dist/program-73k0SoOP.js.map +1 -0
- package/dist/{provider-classes-DTMnDVMz.js → provider-classes-COU3GAT5.js} +310 -27
- package/dist/provider-classes-COU3GAT5.js.map +1 -0
- package/dist/{rds-provider-D2dkhl8m.js → rds-provider-D_ypFjdI.js} +10 -10
- package/dist/{rds-provider-D2dkhl8m.js.map → rds-provider-D_ypFjdI.js.map} +1 -1
- package/dist/{read-replica-CfbVMoYV.js → read-replica-D012SPdT.js} +3 -3
- package/dist/{read-replica-CfbVMoYV.js.map → read-replica-D012SPdT.js.map} +1 -1
- package/dist/{replacement-rules-BiIOJMA-.js → replacement-rules-S9fm3-4G.js} +3 -3
- package/dist/{replacement-rules-BiIOJMA-.js.map → replacement-rules-S9fm3-4G.js.map} +1 -1
- package/dist/{resource-deadline-BSpNiiNd.js → resource-deadline-BiWaN52w.js} +9 -5
- package/dist/{resource-deadline-BSpNiiNd.js.map → resource-deadline-BiWaN52w.js.map} +1 -1
- package/dist/{restore-source-guard-Be6A_rNB.js → restore-source-guard-BeTKRtrT.js} +4 -4
- package/dist/{restore-source-guard-Be6A_rNB.js.map → restore-source-guard-BeTKRtrT.js.map} +1 -1
- package/dist/{run-cli-BkrNHPD5.js → run-cli-CF35Yn-t.js} +2 -2
- package/dist/{run-cli-BkrNHPD5.js.map → run-cli-CF35Yn-t.js.map} +1 -1
- package/dist/{settle-own-write-members-BqAKt1e7.js → settle-own-write-members-B4QcneiO.js} +12 -12
- package/dist/{settle-own-write-members-BqAKt1e7.js.map → settle-own-write-members-B4QcneiO.js.map} +1 -1
- package/dist/{version-0AMFL2lR.js → version-Df9DK8jT.js} +2 -2
- package/dist/{version-0AMFL2lR.js.map → version-Df9DK8jT.js.map} +1 -1
- package/package.json +2 -1
- package/dist/ambient-client-defaults-AnEvWPy0.js.map +0 -1
- package/dist/deploy-engine-BSqVfcSN.js.map +0 -1
- package/dist/ec2-termination-protection-ekOvhSp9.js.map +0 -1
- package/dist/iam-role-provider-Ct6UbKFo.js.map +0 -1
- package/dist/logger-IBUeRw1z.js.map +0 -1
- package/dist/program-tHhew1Z5.js.map +0 -1
- package/dist/provider-classes-DTMnDVMz.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,
|
|
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 reReadUntilSettled, $c as unreadableResourceEntries, $i as gray, $l as providerReplacementOldDeleted, $n as parseMappingFile, $o as assertFlagRoleArn, $s as findReplacedReadersOfRecreateTargets, $t as removeSignalReceiverNamed, $u as AssetModeResolver, A as recordedProtectionEvidence, Aa as buildFinalSnapshotIdentifier, Ac as malformedOrphanRecordsRefusalMessage, Ai as collectDeclaredOutputNames, Al as refuseMalformedResourcesForDestroy, An as DeploymentEventsStore, Ao as withCustomResourceStack, Ar as undeclaredEmptyObservedKeys, Au as ssmResolvedValueType, Ba as revertStackRecordsView, Bc as isReadableResourceEntry, Bi as supersededAfterRollback, Bl as hasReadableOutputs, Bn as formatDestructiveChange, Bo as getReadOnlyPropertyPaths, Br as planRollback, Bs as carriesFetchableDynamicReference, C as pendingMovesOutOf, Ca as ccRoutedFinalSnapshotError, Cc as parameterInputsFor, Cd as resolveAssemblyPath, Ci as secretBearingStateKeyWarning, Cl as repairMalformedOutputsForReadOnly, Cn as journaledOrphanLines, Co as NO_LOCAL_CUSTOM_RESOURCES_FLAG, Cr as buildReadCurrentStateContext, Cs as cfnRefValueFromPhysicalId, Cu as findNestedTemplateTreeDefect, D as findServiceTokenRefusals, Da as refusesFinalSnapshot, Dc as maskedPropertyFingerprint, Di as exportNameSecretExposure, Dl as malformedResourcesWarning, Dn as makeSiblingClaimReader, Do as localCustomResourceCommand, Dr as calculateResourceDrift, Ds as lacksRecordedTableArn, Du as templateIdentity, E as deferredServiceTokenWarning, Ea as isFinalSnapshotError, Ec as declaresNoEcho, Ei as exportNameNoEchoParameters, El as malformedRenderedContainersWarning, En as makeForeignHolderScan, Eo as customResourcesRunWithoutApp, Er as withUnprovenUnsettled, Es as lacksRecordedRefArn, Eu as renderNestedTemplateTreeDefect, F as readProtection, Fc as refuseMalformedOrphanRecordsForDestroy, Fi as DEFAULT_RESOURCE_WARN_AFTER_MS, Fl as accountArgs, Fn as noEchoMacParametersOf, Fo as UNSPECIFIED_SKIP_REASON, Fs as recordedReferenceRegions, Gc as refuseMalformedResourceAttributesForOrphan, Gi as withoutSuperseded, Gl as unwrittenCreateOnlyReplacement, Gn as withMovedTo, Go as isAlwaysLiveAttribute, Gr as planFailedOps, Gt as readRefactorMarkerOnce, Gu as rewriteTemplateAssetReferences, H as readStreamPolicy, Ha as withStackRecords, Hc as malformedLocalResourcesWarning, Hi as supersededHeldByOtherTypeWarning, Hl as findActionableSdkUnwired, Hn as hintSidesOf, Hr as demoteSupersededOrphans, Hs as carriesDynamicReference, Ht as keptForRetainedRecord, Hu as loadPublishableAssetManifest, Ic as refuseMalformedOrphansForOrphan, Ii as maskingRetryLogger, Il as withheldAccountClause, In as noEchoMacVerdict, Io as deleteIndeterminateGuards, Ir as ledgerForStack, Iu as buildAssetRedirectMap, Ja as declaredPolicyDocument, Jc as refuseMalformedResourceEntriesForDestroy, Ji as resolveReplacementOldType, Jn as changedReferenceReason, Jr as replacementNeverSwapped, Jt as refuseRefactorMarker, Kc as refuseMalformedResourceEntries, Kn as changedReferenceInDiff, Ko as poisonRenderedSpellingsCollidingIn, Kr as recheckFailedPlan, Ks as INTRINSIC_KEYS, Kt as refactorMarkerMovesOf, Ku as AssetManifestLoader, Lc as repairMalformedOrphanRecordsForReadOnly, Li as deleteSupersededEntry, Ll as STATE_RESOURCES_MALFORMED, Ln as noEchoValueMacsOf, Lo as deleteLeftInPlace, Lu as createAssetRedirectResolver, M as PROTECTION_PROPERTY_BY_TYPE, Mc as malformedOrphanRowsKeptWarning, Mi as isExportAliasCollision, Ml as refuseMalformedState, Mn as NOECHO_MAC_KEY_ALIAS, Mo as CloudControlProvider, Mr as updatePartialReason, N as isProtectionValueActive, Nc as previewableOrphanRecords, Ni as bindingSkippedOutputs, Nl as repairMalformedResourcesForReadOnly, Nn as createNoEchoValueMacs, Nr as findUpdatePolicyReplacementRefusals, Ns as recordedOutputReferenceRegions, Nu as decodeListingKey, O as serviceTokenBlockingReason, Oa as unsupportedFinalSnapshotError, Oc as deployRefusesOrphanRowsReason, Oi as isWholeDynamicReferenceValue, Ol as malformedStateRefusalMessage, On as planOrphanAdoption, Or as equalModuloMarkedMask, P as perType, Pc as refuseMalformedOrphanRecords, Pi as DEFAULT_RESOURCE_TIMEOUT_MS, Pl as JSON_LISTING_HOLE_VALUE, Pn as noEchoMacBinding, Po as RollbackInlinePolicyWriters, Pr as replacementCreateRoutesToCloudControl, Qa as policyDocumentMatchesDeclared, Qc as repairMalformedResourceEntriesForReadOnly, Qi as cyan, Qn as mappingPairs, Qo as applyRoleArnIfSet, Qr as readsRegeneratingSecret, Qt as isReceiver, Ra as destroyStackRecordsView, Rc as unpreviewableOrphanRecords, Ri as holdsSupersededResources, Rl as UNREADABLE_RESOURCES_MAP_ROW, Rn as constructPathOf$1, Ro as deleteSkipReason, Rr as withCreateTokenLedger, Rs as getAccountInfo, Ru as createLazyAssetModeContext, S as hasPendingMovesOut, Sa as PRE_DELETE_SNAPSHOT_TYPES, Sd as renderAssemblyPathEscape, Si as secretBearing, Sl as refuseMalformedOutputsForDestroy, Sn as isHandledOrphan, So as withPrintingSecrets, Sr as earlyDeletedOld, Ss as AWS_NO_VALUE, T as refusePendingMovesOut, Ta as effectiveDeletionPolicy, Td as resolveBucketRegion, Ti as carriedExportAliasExposure, Tl as refuseDivergentRecordRegionForDestroy, Tn as sameJournaledOrphans, To as customResourcesFailedWithoutApp, Tr as settleUnsettledPrevious, Ts as refStateLookupFromResource, Tu as listNestedTemplateRows, Uc as malformedResourceEntriesWarning, Ui as supersededHolderOf, Ul as findHandledUnwrittenCreateOnly, Un as movedToHint, Uo as IntrinsicFunctionResolver, Ur as isJournaledOrphan, Us as keepsSecretReferenceToken, Ut as recordRetainedForReadoption, Vc as malformedLocalResourceEntriesWarning, Vi as supersededDependentsFirst, Vl as hasReadableResources, Vn as findRefactorHints, Vo as isWaitAbandonedError, Vr as seedsDeleteFirstGuard, Vs as isNamelessDynamicReferenceError, Wa as LAMBDA_PERMISSION_STATEMENT_KEYS, Wc as malformedScrubResourceEntriesRefusalMessage, Wi as supersededResourcesOf, Wn as rollbackOrphanIds, Wo as isSelectOutOfBounds, Wr as isReplacementOrphan, Ws as withSharedDrainBudget, Wt as readRefactorMarker, Xa as lambdaPermissionMatchesDeclared, Xc as refuseMalformedResourceEntriesForImportSave, Xi as findNestedStackTypeChanges, Xl as hasNoCloudControlHandlers, Xn as isPairableType, Xo as producerLookupOver, Xr as computeImplicitDeleteEdges, Xt as updateRefactorMarker, Ya as efsPolicyMatchesDeclared, Yc as refuseMalformedResourceEntriesForImport, Yi as withPreviousPolicies, Yl as NO_CC_HANDLERS_REASON, Yn as differingRemedy, Yo as resolveDynamicReferences, Yr as IMPLICIT_DELETE_DEPENDENCIES, Yt as sameMove, Z as declaredTagsReadback, Za as memberReadFailure, Zc as refuseMalformedResourceEntriesForOrphan, Zi as bold, Zl as PROPERTY_COVERAGE_BY_TYPE, Zn as looselyEqual, Zo as refuseUnreadableCdkCrossAccountRefs, Zr as attemptUsesCompletedCreate, Zt as deleteSignalReceiver, _ as conditionFingerprint, _a as secretNamedRecordNeedles, _c as getSettledWriteOnlyPropertyPaths, _i as reachableDivergentParameters, _l as malformedLocalOutputsWarning, _n as getCurrentNestedStackContext, _r as replayFailedOperations, _u as stackInstanceIdOf, a as scanActiveConsumers, aa as noEchoExactEchoLeavesOf, ac as renderStatefulReason, ad as parseBootstrapMarker, ai as orphanNeedsIdentity, al as refuseMalformedResourcePropertiesForExport, an as resolvePendingCloudControlRequests, ao as CC_BROKEN_REASON, ar as undeclaredGrantSiblingMembers, as as AWS_CREDENTIAL_ENV_KEYS, au as splitImportedOps, b as readRecordedConditionVerdicts, ba as extractDeploymentEventError, bd as displayAssemblyPath, bi as displayTextOrWithheld, bn as dropFailedCommands, bo as isCustomResourceType$1, br as PLANNED_EARLY_DELETE_CONSEQUENCE, bs as isUnboundTemplateParameter, bu as isSensitiveAttributeName, c as nestedSsmNameDeferredNote, ca as createReadOnlyAttributeHealerFactory, cd as validateContainerRepoName, ci as nameScopeOf, cl as UNREADABLE_ORPHANS_CONTAINER_ROW, cn as displacedPhysicalIdShown, co as isCustomResource, cr as sgSiblingDecidedById, cs as envCredentialsAreAssumedRole, cu as hasReasonlessBaselineRefusal, d as slashedSsmNameHealAdoptedNote, da as maskEventTextWithBoundBags, di as retiredNameGenerationsLeaving, dl as malformedOrphansWarning, dn as nestedChildStackName$1, do as classifyHandleUrl, ds as producerRegionsFromState, du as CrossPrefixReadError, ea as green, ed as ensureAssetStorage, ei as isRedactedRecordedValue, el as malformedDriftResourcePropertiesWarning, en as macWriteOnlyKeys, er as propertiesChangedReason, es as assertSendableRoleArn, f as slashedSsmNameHealNote, fa as namingSecretsWithRecordedNoEcho, fc as displayPhysicalId, fd as defineOwnKey, fi as withNameGenerationReached, fl as refuseMalformedOrphans, fn as recordDisplacedSkips, fs as regionLessSecretName, fu as CrossPrefixScanCache, g as makeCanonicalizePropertiesFn, gc as withSecretPhysicalIdsMaskedInState, gd as ownValue, gi as namesAnyDeclaredParameter, gl as malformedExportSourceWarning, gn as collectNestedChildUnaddressed, go as customResourceResponseExpirationWarning, gr as canonicalizeIpProtocolValue, gu as isNotImplemented, h as inheritedProvenanceForChildDiff, ha as secretNamePrintingBags, hc as secretSegmentsOfState, hd as nullPrototypeRecord, hi as computeParameterTaint, hl as malformedExportNamesWarning, hn as withNestedRevertRun, ho as applyCustomResourceResponseExpiration, hr as sgProtocolKey, hu as isAccessDenied, i as mergeNoChangeOutputs, ia as noEchoComparisonForTemplate, ic as isStatefulRecreateTargetSync, id as getBootstrapMarkerKey, ii as removeProtectionTypeList, il as refuseMalformedResourcePropertiesForDrift, in as pendingRequestCount, ir as stripSiblingOwnedParentMembers, is as sendableAssumeRoleCommand, iu as S3StateBackend, j as recordedProtectionNote, jc as malformedOrphanRecordsWarning, ji as collectPublishedOutputNames, jl as refuseMalformedResourcesForExport, jn as crossStackReadsForPartialSave, jr as updatePartialMessage, js as keepHeldTokenProvenance, ju as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, k as diffSecurity, ka as createPreDeleteFinalSnapshot, kc as isReadableOrphanRecord, ki as noEchoParameterValueSeed, kl as refuseMalformedResourcesForDeploy, kn as DeploymentEventsReader, ko as setLocalCustomResourceRuntimeEnabled, kr as equalModuloMask, l as nestedSsmNameRowNote, la as completedReplayEntries, ld as BOOTSTRAP_MARKER_PREFIX, li as retiredAfterRollback, ll as hasReadableOrphans, ln as dropSettledNestedJournals, lo as wouldReturnToSdkProvider, ls as classifyRecordedSecretRegion, lu as hasUnverifiableParameterRefusal, m as crossStackOutputProvenanceSource, ma as secretNamePrintingBag, mc as secretPhysicalIdSegment, md as hasPlainPrototype, mi as inheritProducerRegions, ml as repairMalformedOrphansForReadOnly, mn as revertedNestedRowIds, mo as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, mr as recordedSgRuleId, mu as crossPrefixDeniedWarning, n as isSecretBearingReferenceString, na as yellow, nc as MULTI_REGION_RECREATE_BLOCKED_TYPES, nd as assertAssetBucketRegion, no as verbatimEchoDriftKeys, nr as referencedLogicalIds, ns as isIamRoleArn, o as inRunStackKey, oa as noEchoParameterNamesOf, od as readBootstrapMarkerBody, oi as nameGenerationCarriedFrom, ol as refuseMalformedResourcePropertiesForOrphan, on as NESTED_PENDING_PARENT_REASON, oo as ProviderRegistry, or as recordedRuleIdOf, os as applyCallerIdentityCredentials, p as slashedSsmNameHealPendingNote, pa as orphanRecordsPrintingBag, pd as hasOwnKey, pl as refuseMalformedOrphansForDestroy, po as isSignalKey, pr as cfnIngressPortValue, ps as isUnexposedRecordedIdentity, pu as applyCrossPrefixScan, q as streamPolicyMatchesDeclared, qa as declaredMemberDocument, qc as refuseMalformedResourceEntriesForDeploy, qi as snapshotSegmentSurvivors, qn as changedReferencePath, qo as stackIdTailOf, qr as recordUnderIdIsNotOwn, qt as refactorMarkerRefusalMessage, qu as getDockerImageBySourceHash, r as keptWholeReasonText, ra as noEchoAttributeNamesOf, rc as isStatefulRecreateTargetForReplace, rd as isCrossRegionRedirect, ri as segmentCleanupOptions, rl as refuseMalformedResourcePropertiesForDestroy, rn as formatResourceLine, rr as siblingOwnedRevertDesired, rs as parseIamRoleArn, ru as TemplateParser, s as checkNestedSsmNames, sa as withAttemptedItemsMasked, sd as validateAssetBucketName, si as nameGenerationHighWaterOf, sl as repairMalformedResourcePropertiesForReadOnly, sn as displacedOpClause, so as ccBrokenReason, sr as sgRuleOwnershipIdentity, ss as callerEnvCredentials, su as readOnlyStateVersionOf, t as DeployEngine, ta as red, tc as shownType, td as buildDenyExternalAccessPolicy, tl as malformedResourcePropertiesWarning, tn as readsOnlyNoEchoParameters, tr as proposeRenames, ts as explicitRoleArnOrThrow, tt as tagsMatchDeclared, u as healSlashedSsmParameterNames, ua as journaledOrphanPrintingBag, ui as retiredNameGenerationsAfter, ul as malformedOrphansRefusalMessage, uo as WaitConditionSignalStore, ur as siblingRecordedSgRuleIds, us as classifyReplaySecretRegion, uu as rebuildClientForBucketRegion, v as conditionInputsFrom, va as stateSecretNameNeedles, vc as getTopLevelKeysHoldingUnreadableCreateOnly, vi as resourcesNamingDeclaredParameter, vl as malformedOutputsRefusalMessage, vn as withNestedStackContext, vo as TemplateNoEchoReresolver, vr as replayRollback, vu as withStackInstanceIdWithheld, w as pendingMovesRefusalMessage, wa as ccRoutedInstanceTakesNoSnapshot, wc as maskedInputProof, wi as secretSafeKeyDisplay, wl as STATE_REGION_DIVERGED, wn as loadJournaledOrphans, wr as recordAfterRollbackUpdate, ws as isStalePlaceholderArnAttribute, wu as isAbsoluteAssetPath, x as childTemplateLoader, xa as ATOMIC_FINAL_SNAPSHOT_TYPES, xc as maskedPropertyFingerprintsOf, xi as exportAliasCollisionScrubWarning, xl as refuseMalformedOutputs, xn as dropFailedHint, xr as earlyDeleteWhen, xs as parameterTypeMayLoseSecretIdentity, y as parentSuppliedValues, ya as storedSecretNameNeedles, yc as tryGetTopLevelWriteOnlyProperties, yd as describeFileReadFailure, yi as WITHHELD_NAME_DISPLAY, yl as malformedOutputsWarning, yn as deleteJournaledOrphans, yo as readsNoEchoDeleteValues, yr as DELETED_RESOURCE_REMEDY, ys as coerceParameterTypedValue, yu as isSecretValuedAttribute, zc as unreadableOrphanRecords, zi as isSupersededResourceRecord, zl as displayLogicalId, zn as findDestructiveChanges, zs as isImpossibleEmptyStoredAttribute } from "./deploy-engine-BSqVfcSN.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,11 +1541,11 @@ 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) {
|
|
1548
|
-
const { IAMRoleProvider, IAMPolicyProvider, IAMManagedPolicyProvider, IAMInstanceProfileProvider, IAMAccessKeyProvider, IAMUserGroupProvider, S3BucketProvider, S3BucketPolicyProvider, SQSQueueProvider, SQSQueuePolicyProvider, SNSTopicProvider, SNSSubscriptionProvider, SNSTopicPolicyProvider, LambdaFunctionProvider, LambdaPermissionProvider, LambdaUrlProvider, LambdaEventSourceMappingProvider, LambdaLayerVersionProvider, LambdaEventInvokeConfigProvider, LambdaMicrovmImageProvider, LambdaWebFunctionRevisionProvider, LambdaWebFunctionEndpointProvider, LambdaNetworkConnectorProvider, DynamoDBTableProvider, DynamoDBGlobalTableProvider, LogsLogGroupProvider, LogsDeliverySourceProvider, LogsDeliveryDestinationProvider, LogsDeliveryProvider, CloudWatchAlarmProvider, CloudWatchAnomalyDetectorProvider, SecretsManagerSecretProvider, SSMParameterProvider, EventBridgeRuleProvider, EventBridgeBusProvider, EventBridgeArchiveProvider, EC2Provider, ApiGatewayProvider, ApiGatewayV2Provider, CloudFrontOAIProvider, CloudFrontOACProvider, CloudFrontDistributionProvider, AgentCoreRuntimeProvider, AgentCoreBrowserProvider, AgentCoreCodeInterpreterProvider, AgentCoreEvaluatorProvider, StepFunctionsProvider, ECSProvider, ELBv2Provider, RDSProvider, RDSDBProxyProvider, RDSDBProxyEndpointProvider, RDSDBProxyTargetGroupProvider, DocDBProvider, DocDBSubnetGroupProvider, AppConfigEnvironmentProvider, NeptuneProvider, Route53Provider, WAFv2WebACLProvider, CognitoUserPoolProvider, ElastiCacheProvider, ServiceDiscoveryProvider, AppSyncProvider, GlueProvider, GlueWorkflowProvider, GlueSecurityConfigurationProvider, GlueJobProvider, GlueCrawlerProvider, GlueConnectionProvider, GlueTriggerProvider, KMSProvider, BudgetsBudgetProvider, KinesisStreamProvider, KinesisStreamConsumerProvider, SchedulerScheduleProvider, PipesPipeProvider, EFSProvider, FSxFileSystemProvider, EMRClusterProvider, EMRInstanceGroupConfigProvider, EMRInstanceFleetConfigProvider, FirehoseProvider, CloudTrailProvider, CodeBuildProvider, CodeCommitRepositoryProvider, DLMLifecyclePolicyProvider, S3VectorsProvider, S3DirectoryBucketProvider, S3TablesProvider, ECRProvider, ASGProvider, NestedStackProvider, WaitConditionHandleProvider, WaitConditionProvider, ACMCertificateProvider } = classes;
|
|
1548
|
+
const { IAMRoleProvider, IAMPolicyProvider, IAMManagedPolicyProvider, IAMInstanceProfileProvider, IAMAccessKeyProvider, IAMUserGroupProvider, S3BucketProvider, S3BucketPolicyProvider, SQSQueueProvider, SQSQueuePolicyProvider, SNSTopicProvider, SNSSubscriptionProvider, SNSTopicPolicyProvider, LambdaFunctionProvider, LambdaPermissionProvider, LambdaUrlProvider, LambdaEventSourceMappingProvider, LambdaLayerVersionProvider, LambdaEventInvokeConfigProvider, LambdaMicrovmImageProvider, LambdaWebFunctionRevisionProvider, LambdaWebFunctionEndpointProvider, LambdaNetworkConnectorProvider, DynamoDBTableProvider, DynamoDBGlobalTableProvider, LogsLogGroupProvider, LogsDeliverySourceProvider, LogsDeliveryDestinationProvider, LogsDeliveryProvider, CloudWatchAlarmProvider, LightsailAlarmProvider, CloudWatchAnomalyDetectorProvider, SecretsManagerSecretProvider, SSMParameterProvider, EventBridgeRuleProvider, EventBridgeBusProvider, EventBridgeArchiveProvider, EC2Provider, ApiGatewayProvider, ApiGatewayV2Provider, CloudFrontOAIProvider, CloudFrontOACProvider, CloudFrontDistributionProvider, AgentCoreRuntimeProvider, AgentCoreBrowserProvider, AgentCoreCodeInterpreterProvider, AgentCoreEvaluatorProvider, StepFunctionsProvider, ECSProvider, ELBv2Provider, RDSProvider, RDSDBProxyProvider, RDSDBProxyEndpointProvider, RDSDBProxyTargetGroupProvider, DocDBProvider, DocDBSubnetGroupProvider, AppConfigEnvironmentProvider, NeptuneProvider, Route53Provider, WAFv2WebACLProvider, CognitoUserPoolProvider, ElastiCacheProvider, ServiceDiscoveryProvider, AppSyncProvider, GlueProvider, GlueWorkflowProvider, GlueSecurityConfigurationProvider, GlueJobProvider, GlueCrawlerProvider, GlueConnectionProvider, GlueTriggerProvider, KMSProvider, BudgetsBudgetProvider, KinesisStreamProvider, KinesisStreamConsumerProvider, SchedulerScheduleProvider, PipesPipeProvider, EFSProvider, FSxFileSystemProvider, EMRClusterProvider, EMRInstanceGroupConfigProvider, EMRInstanceFleetConfigProvider, FirehoseProvider, CloudTrailProvider, CodeBuildProvider, CodeCommitRepositoryProvider, DLMLifecyclePolicyProvider, S3VectorsProvider, S3DirectoryBucketProvider, S3TablesProvider, ECRProvider, ASGProvider, NestedStackProvider, WaitConditionHandleProvider, WaitConditionProvider, ACMCertificateProvider } = classes;
|
|
1549
1549
|
registry.register("AWS::IAM::Role", new IAMRoleProvider());
|
|
1550
1550
|
registry.register("AWS::IAM::Policy", new IAMPolicyProvider());
|
|
1551
1551
|
registry.register("AWS::IAM::ManagedPolicy", new IAMManagedPolicyProvider());
|
|
@@ -1580,6 +1580,7 @@ function registerAllProviders(registry, classes) {
|
|
|
1580
1580
|
registry.register("AWS::Logs::DeliveryDestination", new LogsDeliveryDestinationProvider());
|
|
1581
1581
|
registry.register("AWS::Logs::Delivery", new LogsDeliveryProvider());
|
|
1582
1582
|
registry.register("AWS::CloudWatch::Alarm", new CloudWatchAlarmProvider());
|
|
1583
|
+
registry.register("AWS::Lightsail::Alarm", new LightsailAlarmProvider());
|
|
1583
1584
|
registry.register("AWS::CloudWatch::AnomalyDetector", new CloudWatchAnomalyDetectorProvider());
|
|
1584
1585
|
registry.register("AWS::SecretsManager::Secret", new SecretsManagerSecretProvider());
|
|
1585
1586
|
registry.register("AWS::SSM::Parameter", new SSMParameterProvider());
|
|
@@ -3183,7 +3184,7 @@ async function deployStackInScope(ctx, stackInfo, stackRegion, stackAwsClients)
|
|
|
3183
3184
|
const syncValidation = validateRecreateTargets({
|
|
3184
3185
|
template: stackInfo.template,
|
|
3185
3186
|
state: stateForRecreateCheck?.state ?? {
|
|
3186
|
-
version:
|
|
3187
|
+
version: 18,
|
|
3187
3188
|
stackName: stackInfo.stackName,
|
|
3188
3189
|
region: stackRegion,
|
|
3189
3190
|
resources: {},
|
|
@@ -3218,7 +3219,7 @@ async function deployStackInScope(ctx, stackInfo, stackRegion, stackAwsClients)
|
|
|
3218
3219
|
const replacedReaders = await findReplacedReadersOfRecreateTargets({
|
|
3219
3220
|
template: stackInfo.template,
|
|
3220
3221
|
state: stateForRecreateCheck?.state ?? {
|
|
3221
|
-
version:
|
|
3222
|
+
version: 18,
|
|
3222
3223
|
stackName: stackInfo.stackName,
|
|
3223
3224
|
region: stackRegion,
|
|
3224
3225
|
resources: {},
|
|
@@ -6122,7 +6123,7 @@ async function loadStateOrEmpty(stackName, region, stateBackend, refusalRecovery
|
|
|
6122
6123
|
region,
|
|
6123
6124
|
resources: {},
|
|
6124
6125
|
outputs: {},
|
|
6125
|
-
version:
|
|
6126
|
+
version: 18,
|
|
6126
6127
|
lastModified: Date.now()
|
|
6127
6128
|
},
|
|
6128
6129
|
unreadable: [],
|
|
@@ -13010,6 +13011,33 @@ async function runDriftForStack(stackName, region, stateBackend, providerRegistr
|
|
|
13010
13011
|
});
|
|
13011
13012
|
}
|
|
13012
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
|
+
|
|
13013
13041
|
// src/cli/commands/drift/revert-write-only.ts
|
|
13014
13042
|
function revertWriteOnlyResendNames(resourceType, properties, writeOnlyNames) {
|
|
13015
13043
|
if (!writeOnlyNames || writeOnlyNames.size === 0 || !isPlainRecord$2(properties)) return [];
|
|
@@ -13967,6 +13995,7 @@ async function runRevert(reports, regionScope, stateBackend, stateConfig, awsCli
|
|
|
13967
13995
|
totalSucceeded: 0,
|
|
13968
13996
|
totalUnresolvable: 0
|
|
13969
13997
|
};
|
|
13998
|
+
const writeAheadFailedStacks = [];
|
|
13970
13999
|
for (const report of reports) {
|
|
13971
14000
|
const driftedOutcomes = report.outcomes.flatMap((o) => matchOutcome(o, {
|
|
13972
14001
|
drifted: (d) => [d],
|
|
@@ -13989,6 +14018,14 @@ async function runRevert(reports, regionScope, stateBackend, stateConfig, awsCli
|
|
|
13989
14018
|
const reRecordedByLogicalId = /* @__PURE__ */ new Map();
|
|
13990
14019
|
const settledByRevert = /* @__PURE__ */ new Map();
|
|
13991
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
|
+
}
|
|
13992
14029
|
const revertSecretResolvers = new DriftSecretResolvers(report.region);
|
|
13993
14030
|
const revertProducerRegions = report.producerRegions;
|
|
13994
14031
|
const tasks = driftedOutcomes.map((outcome) => () => withPrintingSecrets(secretNamePrintingBag(outcome.logicalId, report.state.resources), async () => {
|
|
@@ -14101,7 +14138,9 @@ async function runRevert(reports, regionScope, stateBackend, stateConfig, awsCli
|
|
|
14101
14138
|
if (totalUnsupported > 0) summaryParts.push(`${totalUnsupported} update-not-supported`);
|
|
14102
14139
|
if (totalUnresolvable > 0) summaryParts.push(`${totalUnresolvable} reference-unresolvable`);
|
|
14103
14140
|
if (totalFailed > 0) summaryParts.push(`${totalFailed} failed`);
|
|
14141
|
+
if (writeAheadFailedStacks.length > 0) summaryParts.push(`${writeAheadFailedStacks.length} stack(s) not reverted`);
|
|
14104
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.` : ""));
|
|
14105
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.`);
|
|
14106
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.`);
|
|
14107
14146
|
}
|
|
@@ -15003,19 +15042,26 @@ function buildDeleteGraph(state, logger) {
|
|
|
15003
15042
|
executionLevels
|
|
15004
15043
|
};
|
|
15005
15044
|
}
|
|
15006
|
-
function
|
|
15045
|
+
function destroyNamingSecrets({ ctx, state, noEchoValues, logger }) {
|
|
15007
15046
|
const reresolver = ctx.noEchoReresolver;
|
|
15008
|
-
|
|
15047
|
+
return reresolver === void 0 ? noEchoValues : namingSecretsWithRecordedNoEcho(noEchoValues, (logicalId) => {
|
|
15009
15048
|
try {
|
|
15010
15049
|
return reresolver.recordedNoEchoValuesFor(logicalId, Object.hasOwn(state.resources, logicalId) ? state.resources[logicalId] : void 0);
|
|
15011
15050
|
} catch (error) {
|
|
15012
15051
|
logger.debug(safeMsg`Could not read ${logicalId}'s stored NoEcho values for its printing bag (${error instanceof Error ? error.name : typeof error}).`);
|
|
15013
15052
|
return;
|
|
15014
15053
|
}
|
|
15015
|
-
})
|
|
15016
|
-
|
|
15017
|
-
|
|
15018
|
-
return
|
|
15054
|
+
});
|
|
15055
|
+
}
|
|
15056
|
+
function destroyNamingScope({ state, stackName }) {
|
|
15057
|
+
return nameScopeOf(stackName, stackInstanceIdOf(state, displayStackName(stackName)), state);
|
|
15058
|
+
}
|
|
15059
|
+
function makePrintingBagOf(frame) {
|
|
15060
|
+
const judgedBagOf = secretNamePrintingBags(frame.state.resources, destroyNamingSecrets(frame));
|
|
15061
|
+
const namingScope = destroyNamingScope(frame);
|
|
15062
|
+
let stackBag;
|
|
15063
|
+
const stackNeedles = () => stackBag ??= withStackScope(namingScope, () => secretNamedRecordNeedles(frame.state.resources, destroyNamingSecrets(frame)));
|
|
15064
|
+
return Object.assign((logicalId) => withStackScope(namingScope, () => judgedBagOf(logicalId)), { stackMaskerFor: (own) => (text) => createUnionSecretMasker([...own, stackNeedles()])(text) });
|
|
15019
15065
|
}
|
|
15020
15066
|
function printDestroySummary({ result, ctx, stackName, logger, preserveState, guardIndeterminateTargets, skippedStateTargets, failedStateTargets, hintFor, hintHolesClause, journaledOrphanFailures }) {
|
|
15021
15067
|
const retainedSuffix = result.retainedCount > 0 ? `, ${result.retainedCount} retained` : "";
|
|
@@ -15181,7 +15227,8 @@ async function deleteStackResource({ lock, state, ctx, stackName, logger, result
|
|
|
15181
15227
|
...noEchoDeleteValues !== void 0 && { noEchoDeleteValues },
|
|
15182
15228
|
...ctx.noEchoReresolver !== void 0 && { noEchoReresolver: ctx.noEchoReresolver },
|
|
15183
15229
|
...ctx.stackDestroy === true && { stackDestroy: true },
|
|
15184
|
-
maskSecrets: createUnionSecretMasker([printingBagOf(logicalId)])
|
|
15230
|
+
maskSecrets: createUnionSecretMasker([printingBagOf(logicalId)]),
|
|
15231
|
+
maskStackSecretNames: printingBagOf.stackMaskerFor([printingBagOf(logicalId)])
|
|
15185
15232
|
}))));
|
|
15186
15233
|
deleteResult = outcome ?? void 0;
|
|
15187
15234
|
childLeftInAws = unaddressed?.deleteSkipped ?? 0;
|
|
@@ -15415,6 +15462,13 @@ async function destroyStackUnderLock({ stackName, state, ctx, logger, result, re
|
|
|
15415
15462
|
logger
|
|
15416
15463
|
});
|
|
15417
15464
|
const noEchoValues = await stackNoEchoValues();
|
|
15465
|
+
const printingBagOf = makePrintingBagOf({
|
|
15466
|
+
ctx,
|
|
15467
|
+
state,
|
|
15468
|
+
noEchoValues,
|
|
15469
|
+
stackName,
|
|
15470
|
+
logger
|
|
15471
|
+
});
|
|
15418
15472
|
if (journaledUnderLock.count > 0) {
|
|
15419
15473
|
const orphanOutcome = await deleteJournaledOrphans(journaledUnderLock, { ...state.resources }, stackName, stackInstanceIdOf(state, displayStackName(stackName)), {
|
|
15420
15474
|
providerRegistry: destroyProviderRegistry,
|
|
@@ -15429,7 +15483,8 @@ async function destroyStackUnderLock({ stackName, state, ctx, logger, result, re
|
|
|
15429
15483
|
region: regionForState
|
|
15430
15484
|
}),
|
|
15431
15485
|
importedProducerRegions: producerRegionsFromState(state),
|
|
15432
|
-
...state.parentStack !== void 0 && { producerRegionsIncomplete: true }
|
|
15486
|
+
...state.parentStack !== void 0 && { producerRegionsIncomplete: true },
|
|
15487
|
+
maskStackSecretNames: printingBagOf.stackMaskerFor
|
|
15433
15488
|
}, {
|
|
15434
15489
|
isInterrupted: () => lock.interrupted,
|
|
15435
15490
|
noEchoValues,
|
|
@@ -15451,13 +15506,6 @@ async function destroyStackUnderLock({ stackName, state, ctx, logger, result, re
|
|
|
15451
15506
|
const blockDependenciesOf = (logicalId) => {
|
|
15452
15507
|
for (const dependency of dagBuilder.getAllDependencies(blockingGraph, logicalId)) if (!blockedBy.has(dependency)) blockedBy.set(dependency, logicalId);
|
|
15453
15508
|
};
|
|
15454
|
-
const printingBagOf = makePrintingBagOf({
|
|
15455
|
-
ctx,
|
|
15456
|
-
state,
|
|
15457
|
-
noEchoValues,
|
|
15458
|
-
stackName,
|
|
15459
|
-
logger
|
|
15460
|
-
});
|
|
15461
15509
|
const resourceFrame = {
|
|
15462
15510
|
lock,
|
|
15463
15511
|
state,
|
|
@@ -15513,6 +15561,7 @@ async function destroyStackUnderLock({ stackName, state, ctx, logger, result, re
|
|
|
15513
15561
|
...ctx.removeProtection === true && { removeProtection: true },
|
|
15514
15562
|
...ctx.stackDestroy === true && { stackDestroy: true },
|
|
15515
15563
|
maskSecrets: createUnionSecretMasker([bag]),
|
|
15564
|
+
maskStackSecretNames: printingBagOf.stackMaskerFor([bag]),
|
|
15516
15565
|
stop: () => lock.interrupted,
|
|
15517
15566
|
holderProvider: () => destroyProviderRegistry.getProvider(resourceType),
|
|
15518
15567
|
warn: (m) => logger.warn(safeMsg` ⚠ ${logicalId}'s superseded ${resourceType}: ${m}`),
|
|
@@ -23555,7 +23604,7 @@ async function runRollbackReplay(ctx) {
|
|
|
23555
23604
|
...carriedState,
|
|
23556
23605
|
...stackInstanceIdCarriedFrom(withoutSuperseded(baseState)),
|
|
23557
23606
|
...supersededAfterRollback(baseState, supersededHost, stateResources),
|
|
23558
|
-
version:
|
|
23607
|
+
version: 18,
|
|
23559
23608
|
region,
|
|
23560
23609
|
resources: { ...stateResources },
|
|
23561
23610
|
...orphansAfterRollback(baseState, mintedOrphans),
|
|
@@ -23588,6 +23637,7 @@ async function runRollbackReplay(ctx) {
|
|
|
23588
23637
|
const failedOrphanIds = [];
|
|
23589
23638
|
const inlinePolicyWriters = new RollbackInlinePolicyWriters();
|
|
23590
23639
|
const failedOpsPrinting = journaledOrphanPrintingBag(journal.segments.flatMap((s) => s.failedOperations ?? []), stateResources);
|
|
23640
|
+
ctx.maskStackSecretNames = stackSecretNamesMasker(stateResources, void 0, () => [failedOpsPrinting]);
|
|
23591
23641
|
await snapshotSegmentSurvivors(ctx, journal.segments);
|
|
23592
23642
|
try {
|
|
23593
23643
|
while (journal.segments.length > 0) {
|
|
@@ -26582,7 +26632,7 @@ function collectImportableResources(template) {
|
|
|
26582
26632
|
}
|
|
26583
26633
|
|
|
26584
26634
|
// src/cli/commands/import/discarded-subtree.ts
|
|
26585
|
-
const DYNAMIC_REFERENCE_OPENER = "{{resolve:";
|
|
26635
|
+
const DYNAMIC_REFERENCE_OPENER$1 = "{{resolve:";
|
|
26586
26636
|
function countDynamicReferenceOpeners(bag) {
|
|
26587
26637
|
let text;
|
|
26588
26638
|
try {
|
|
@@ -26592,7 +26642,7 @@ function countDynamicReferenceOpeners(bag) {
|
|
|
26592
26642
|
}
|
|
26593
26643
|
let count = 0;
|
|
26594
26644
|
for (let from = 0;;) {
|
|
26595
|
-
const at = text.indexOf(DYNAMIC_REFERENCE_OPENER, from);
|
|
26645
|
+
const at = text.indexOf(DYNAMIC_REFERENCE_OPENER$1, from);
|
|
26596
26646
|
if (at === -1) return count;
|
|
26597
26647
|
count++;
|
|
26598
26648
|
from = at + 10;
|
|
@@ -26602,7 +26652,7 @@ function isIntrinsicShapedKey(key) {
|
|
|
26602
26652
|
return key === "Ref" || key.startsWith("Fn::");
|
|
26603
26653
|
}
|
|
26604
26654
|
function isInertDiscardedSubtree(node) {
|
|
26605
|
-
if (typeof node === "string") return !node.includes(DYNAMIC_REFERENCE_OPENER);
|
|
26655
|
+
if (typeof node === "string") return !node.includes(DYNAMIC_REFERENCE_OPENER$1);
|
|
26606
26656
|
if (node === null || typeof node !== "object") return true;
|
|
26607
26657
|
if (Array.isArray(node)) return node.every((element) => isInertDiscardedSubtree(element));
|
|
26608
26658
|
const record = node;
|
|
@@ -26615,7 +26665,7 @@ function isStaticSelectIndex(value) {
|
|
|
26615
26665
|
return typeof value === "string" && /^(0|[1-9]\d*)$/.test(value);
|
|
26616
26666
|
}
|
|
26617
26667
|
function isStaticLookupKey(value) {
|
|
26618
|
-
if (typeof value === "string") return !value.includes(DYNAMIC_REFERENCE_OPENER);
|
|
26668
|
+
if (typeof value === "string") return !value.includes(DYNAMIC_REFERENCE_OPENER$1);
|
|
26619
26669
|
return typeof value === "number" || typeof value === "boolean";
|
|
26620
26670
|
}
|
|
26621
26671
|
function resolveDiscardsNonInertSubtree(node, conditions, mappings) {
|
|
@@ -26776,7 +26826,7 @@ function shownPhysicalId(physicalId, bag) {
|
|
|
26776
26826
|
}
|
|
26777
26827
|
async function importOne(task) {
|
|
26778
26828
|
const logger = getLogger();
|
|
26779
|
-
const { logicalId, resource, stackName, region, providerRegistry, override, overrides } = task;
|
|
26829
|
+
const { logicalId, resource, stackName, region, providerRegistry, override, overrides, overrideFromCloudFormation, cloudFormationDeployedProperties } = task;
|
|
26780
26830
|
if (!providerRegistry.hasProvider(resource.Type)) return {
|
|
26781
26831
|
logicalId,
|
|
26782
26832
|
resourceType: resource.Type,
|
|
@@ -26808,7 +26858,9 @@ async function importOne(task) {
|
|
|
26808
26858
|
stackName,
|
|
26809
26859
|
region,
|
|
26810
26860
|
properties,
|
|
26811
|
-
...override !== void 0 && { knownPhysicalId: override }
|
|
26861
|
+
...override !== void 0 && { knownPhysicalId: override },
|
|
26862
|
+
...override !== void 0 && overrideFromCloudFormation === true && { knownPhysicalIdFromCloudFormation: true },
|
|
26863
|
+
...cloudFormationDeployedProperties !== void 0 && { cloudFormationDeployedProperties }
|
|
26812
26864
|
};
|
|
26813
26865
|
const result = await withPrintingSecrets(readBag, () => provider.import(input));
|
|
26814
26866
|
if (!result) return {
|
|
@@ -27275,6 +27327,241 @@ function persistCrossStackReads(stackState, recordedImports, recordedOutputReads
|
|
|
27275
27327
|
}));
|
|
27276
27328
|
}
|
|
27277
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
|
+
|
|
27278
27565
|
// src/cli/commands/import/stack-state.ts
|
|
27279
27566
|
async function claimRegistryMarkerAfterImport(backend, stackName, region, logger) {
|
|
27280
27567
|
const answer = await new CrossPrefixGuard(backend).full(stackName, region);
|
|
@@ -27433,7 +27720,7 @@ function buildStackState(stackName, region, rows, templateParser, template, exis
|
|
|
27433
27720
|
}
|
|
27434
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.`);
|
|
27435
27722
|
return {
|
|
27436
|
-
version:
|
|
27723
|
+
version: 18,
|
|
27437
27724
|
stackName,
|
|
27438
27725
|
region,
|
|
27439
27726
|
resources,
|
|
@@ -27515,8 +27802,11 @@ async function importNestedStackChildrenRecursive(args) {
|
|
|
27515
27802
|
templateLogicalIds: childTemplateLogicalIds,
|
|
27516
27803
|
overrides: childOverrides
|
|
27517
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;
|
|
27518
27808
|
const rows = [];
|
|
27519
|
-
for (const { logicalId, resource } of childResources) {
|
|
27809
|
+
for (const { logicalId, resource } of withDeployedDefinitions(childResources, childOverlay)) {
|
|
27520
27810
|
if (resource.Type === "AWS::CloudFormation::Stack" && childTreeNode.nested.has(logicalId)) {
|
|
27521
27811
|
rows.push({
|
|
27522
27812
|
logicalId,
|
|
@@ -27533,7 +27823,9 @@ async function importNestedStackChildrenRecursive(args) {
|
|
|
27533
27823
|
region: childRegion,
|
|
27534
27824
|
providerRegistry,
|
|
27535
27825
|
override: childOverrides.get(logicalId),
|
|
27536
|
-
overrides: childOverrides
|
|
27826
|
+
overrides: childOverrides,
|
|
27827
|
+
overrideFromCloudFormation: true,
|
|
27828
|
+
cloudFormationDeployedProperties: deployedPropertiesOf(childDeployedTemplate, logicalId)
|
|
27537
27829
|
});
|
|
27538
27830
|
rows.push(outcome);
|
|
27539
27831
|
}
|
|
@@ -27541,7 +27833,7 @@ async function importNestedStackChildrenRecursive(args) {
|
|
|
27541
27833
|
const childImported = new Set(rows.filter((r) => r.outcome === "imported").map((r) => r.logicalId));
|
|
27542
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.");
|
|
27543
27835
|
warnMigrationOrphans(logger, childResources.length, childImported.size, childStackName);
|
|
27544
|
-
const childStackState = buildStackState(childStackName, childRegion, rows, templateParser,
|
|
27836
|
+
const childStackState = buildStackState(childStackName, childRegion, rows, templateParser, childRecordTemplate, null, false);
|
|
27545
27837
|
childStackState.parentStack = parentStackName;
|
|
27546
27838
|
childStackState.parentLogicalId = childLogicalId;
|
|
27547
27839
|
childStackState.parentRegion = parentRegion;
|
|
@@ -27553,9 +27845,9 @@ async function importNestedStackChildrenRecursive(args) {
|
|
|
27553
27845
|
if (imports !== void 0) childStackState.imports = imports;
|
|
27554
27846
|
if (outputReads !== void 0) childStackState.outputReads = outputReads;
|
|
27555
27847
|
} else if (childStackInstanceId !== void 0) childStackState.stackInstanceId = childStackInstanceId;
|
|
27556
|
-
const childDeployedParameters = namesAnyDeclaredParameter(
|
|
27557
|
-
const childUnsafeObservedBaselineLogicalIds = await withSharedDrainBudget(() => resolveImportedProperties(childStackState,
|
|
27558
|
-
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));
|
|
27559
27851
|
await recordImportOnRollbackJournal(stateBackend, childStackName, childRegion, rows.filter((r) => r.outcome === "imported").map((r) => r.logicalId), childStackState.resources, logger);
|
|
27560
27852
|
await stateBackend.saveState(childStackName, childRegion, childStackState);
|
|
27561
27853
|
logger.info(`✓ Nested stack state written: ${childStackName} (${childRegion}) — ${rows.filter((r) => r.outcome === "imported").length} resource(s) imported.`);
|
|
@@ -27678,9 +27970,23 @@ async function dispatchInRefOrder(resources, overrides, importRow) {
|
|
|
27678
27970
|
|
|
27679
27971
|
// src/cli/commands/import/locked-import.ts
|
|
27680
27972
|
async function runLockedImport(ctx) {
|
|
27681
|
-
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;
|
|
27682
27974
|
let { migrationTree } = ctx;
|
|
27683
|
-
|
|
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) => {
|
|
27684
27990
|
if (selectiveMode && !overrides.has(logicalId)) return {
|
|
27685
27991
|
logicalId,
|
|
27686
27992
|
resourceType: resource.Type,
|
|
@@ -27700,14 +28006,16 @@ async function runLockedImport(ctx) {
|
|
|
27700
28006
|
region: targetRegion,
|
|
27701
28007
|
providerRegistry,
|
|
27702
28008
|
override: overrides.get(logicalId),
|
|
27703
|
-
overrides: refValues
|
|
28009
|
+
overrides: refValues,
|
|
28010
|
+
overrideFromCloudFormation: !userOverrideIds.has(logicalId),
|
|
28011
|
+
...deployedTemplate !== void 0 && { cloudFormationDeployedProperties: deployedPropertiesOf(deployedTemplate, logicalId) }
|
|
27704
28012
|
});
|
|
27705
28013
|
});
|
|
27706
28014
|
let rows = await collectRows();
|
|
27707
28015
|
printSummary(rows);
|
|
27708
28016
|
if (options.recordResourceMapping) writeRecordedMapping(options.recordResourceMapping, rows);
|
|
27709
28017
|
const assembleStackState = () => {
|
|
27710
|
-
const assembled = buildStackState(stackInfo.stackName, targetRegion, rows, templateParser,
|
|
28018
|
+
const assembled = buildStackState(stackInfo.stackName, targetRegion, rows, templateParser, recordTemplate, existingState, selectiveMode);
|
|
27711
28019
|
refuseMalformedResourceEntriesForImportSave(assembled, stackInfo.stackName, targetRegion, lockRecovery);
|
|
27712
28020
|
return assembled;
|
|
27713
28021
|
};
|
|
@@ -27776,7 +28084,7 @@ async function runLockedImport(ctx) {
|
|
|
27776
28084
|
}
|
|
27777
28085
|
}
|
|
27778
28086
|
}
|
|
27779
|
-
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 });
|
|
27780
28088
|
if (existingState === null && typeof stateBackend.peekStackInstanceSibling === "function") {
|
|
27781
28089
|
const sibling = await stateBackend.peekStackInstanceSibling(stackInfo.stackName, targetRegion);
|
|
27782
28090
|
if (sibling?.stackIdFromInstance === true) stackState = {
|
|
@@ -27785,8 +28093,8 @@ async function runLockedImport(ctx) {
|
|
|
27785
28093
|
stackIdFromInstance: true
|
|
27786
28094
|
};
|
|
27787
28095
|
}
|
|
27788
|
-
const unsafeObservedBaselineLogicalIds = await withSharedDrainBudget(() => resolveImportedProperties(stackState,
|
|
27789
|
-
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));
|
|
27790
28098
|
const saveOptions = {};
|
|
27791
28099
|
if (existingEtag) saveOptions.expectedEtag = existingEtag;
|
|
27792
28100
|
if (migrationPending) saveOptions.migrateLegacy = true;
|
|
@@ -27946,6 +28254,7 @@ async function importCommand(stackArg, options) {
|
|
|
27946
28254
|
}
|
|
27947
28255
|
const overrides = parseResourceOverrides(options.resource, options.resourceMapping, options.resourceMappingInline);
|
|
27948
28256
|
if (overrides.size > 0) logger.debug(`User-supplied physical IDs: ${[...overrides.keys()].join(", ")}`);
|
|
28257
|
+
const userOverrideIds = new Set(overrides.keys());
|
|
27949
28258
|
const migrationCfnStackName = options.migrateFromCloudformation ? typeof options.migrateFromCloudformation === "string" && options.migrateFromCloudformation.length > 0 ? options.migrateFromCloudformation : stackInfo.stackName : void 0;
|
|
27950
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.`);
|
|
27951
28260
|
const template = stackInfo.template;
|
|
@@ -27975,9 +28284,11 @@ async function importCommand(stackArg, options) {
|
|
|
27975
28284
|
}
|
|
27976
28285
|
const selectiveMode = overrides.size > 0 && !options.auto && !options.migrateFromCloudformation;
|
|
27977
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;
|
|
27978
28288
|
if (!selectiveMode && !migrationCfnStackName) {
|
|
27979
28289
|
const cfnResources = await tryGetCloudFormationResourceMap(stackInfo.stackName, regionClients.cloudFormation);
|
|
27980
28290
|
if (cfnResources) {
|
|
28291
|
+
autoModeCfnStackName = stackInfo.stackName;
|
|
27981
28292
|
const mergeStats = mergeCfnDerivedOverrides({
|
|
27982
28293
|
cfnMapping: cfnResources,
|
|
27983
28294
|
template,
|
|
@@ -28036,6 +28347,8 @@ async function importCommand(stackArg, options) {
|
|
|
28036
28347
|
assetRedirect,
|
|
28037
28348
|
stateTemplate,
|
|
28038
28349
|
overrides,
|
|
28350
|
+
userOverrideIds,
|
|
28351
|
+
autoModeCfnStackName,
|
|
28039
28352
|
migrationCfnStackName,
|
|
28040
28353
|
template,
|
|
28041
28354
|
templateParser,
|
|
@@ -36886,4 +37199,4 @@ function collectVerbFlags(program) {
|
|
|
36886
37199
|
}
|
|
36887
37200
|
|
|
36888
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 };
|
|
36889
|
-
//# sourceMappingURL=program-
|
|
37202
|
+
//# sourceMappingURL=program-73k0SoOP.js.map
|