@cdkd/cli 0.352.12 → 0.353.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ambient-client-defaults-zXLYCPYh.js → ambient-client-defaults-z2kbR8l-.js} +3 -3
- package/dist/{ambient-client-defaults-zXLYCPYh.js.map → ambient-client-defaults-z2kbR8l-.js.map} +1 -1
- package/dist/{asg-provider-vzD1uanW.js → asg-provider-CM19nSRR.js} +14 -9
- package/dist/asg-provider-CM19nSRR.js.map +1 -0
- package/dist/cli.js +3 -3
- package/dist/{custom-resource-runtime-5yuSHn1E.js → custom-resource-runtime-gD0yCVTA.js} +6 -6
- package/dist/{custom-resource-runtime-5yuSHn1E.js.map → custom-resource-runtime-gD0yCVTA.js.map} +1 -1
- package/dist/{db-associated-roles-D6FzrHrq.js → db-associated-roles-CwKvJHmW.js} +2 -2
- package/dist/{db-associated-roles-D6FzrHrq.js.map → db-associated-roles-CwKvJHmW.js.map} +1 -1
- package/dist/{delete-started-BYb5bEiw.js → delete-started-BR6VF4-U.js} +4 -4
- package/dist/{delete-started-BYb5bEiw.js.map → delete-started-BR6VF4-U.js.map} +1 -1
- package/dist/{deploy-engine-DIe64g1M.js → deploy-engine-axD9sX_9.js} +1493 -1056
- package/dist/deploy-engine-axD9sX_9.js.map +1 -0
- package/dist/{diff-calculator-e0X8wg5d.js → diff-calculator-Dych6a6c.js} +302 -23
- package/dist/diff-calculator-Dych6a6c.js.map +1 -0
- package/dist/{ecr-uri-B4jEXWEo.js → ecr-uri-CmjaicP1.js} +2 -2
- package/dist/{ecr-uri-B4jEXWEo.js.map → ecr-uri-CmjaicP1.js.map} +1 -1
- package/dist/{expected-bucket-owner-BiM4Hy8G.js → expected-bucket-owner-BUXAXOgl.js} +2 -2
- package/dist/{expected-bucket-owner-BiM4Hy8G.js.map → expected-bucket-owner-BUXAXOgl.js.map} +1 -1
- package/dist/{iam-role-provider-CRAkOXUR.js → iam-role-provider-C92_i6aW.js} +8 -8
- package/dist/{iam-role-provider-CRAkOXUR.js.map → iam-role-provider-C92_i6aW.js.map} +1 -1
- package/dist/{image-plan-BZ-0TCSM.js → image-plan-Cu3b26DY.js} +10 -8
- package/dist/image-plan-Cu3b26DY.js.map +1 -0
- package/dist/index.d.ts +121 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-DGUlDiYH.js → logger-oZMfcKSj.js} +2 -2
- package/dist/{logger-DGUlDiYH.js.map → logger-oZMfcKSj.js.map} +1 -1
- package/dist/{neptune-provider-CHVuPvHJ.js → neptune-provider-CN3MA8Cw.js} +7 -7
- package/dist/{neptune-provider-CHVuPvHJ.js.map → neptune-provider-CN3MA8Cw.js.map} +1 -1
- package/dist/{program-pfwGZi1I.js → program-BfTCUNof.js} +156 -40
- package/dist/program-BfTCUNof.js.map +1 -0
- package/dist/{provider-classes-CaogwY3K.js → provider-classes-BbS4iho1.js} +22 -22
- package/dist/{provider-classes-CaogwY3K.js.map → provider-classes-BbS4iho1.js.map} +1 -1
- package/dist/{rds-provider-I6YAiIv3.js → rds-provider-k-7oWDtG.js} +10 -10
- package/dist/{rds-provider-I6YAiIv3.js.map → rds-provider-k-7oWDtG.js.map} +1 -1
- package/dist/{read-replica-BbDOKi8I.js → read-replica-Dx5O9bW4.js} +3 -3
- package/dist/{read-replica-BbDOKi8I.js.map → read-replica-Dx5O9bW4.js.map} +1 -1
- package/dist/{replacement-rules-DEMSUsSU.js → replacement-rules-SPQJMbC6.js} +3 -3
- package/dist/{replacement-rules-DEMSUsSU.js.map → replacement-rules-SPQJMbC6.js.map} +1 -1
- package/dist/{resource-deadline-B34RyqEU.js → resource-deadline-CImbEePa.js} +4 -4
- package/dist/{resource-deadline-B34RyqEU.js.map → resource-deadline-CImbEePa.js.map} +1 -1
- package/dist/{run-cli-D_mCCBi9.js → run-cli-B637Czto.js} +2 -2
- package/dist/{run-cli-D_mCCBi9.js.map → run-cli-B637Czto.js.map} +1 -1
- package/dist/{ec2-termination-protection-BhINWGSK.js → update-policy-C3iCsDhx.js} +15 -7
- package/dist/update-policy-C3iCsDhx.js.map +1 -0
- package/dist/{update-removal-Cr8BZ_MT.js → update-removal-TXGn1k50.js} +22 -22
- package/dist/{update-removal-Cr8BZ_MT.js.map → update-removal-TXGn1k50.js.map} +1 -1
- package/dist/{version-C3ovda8-.js → version-HusdN8vD.js} +2 -2
- package/dist/{version-C3ovda8-.js.map → version-HusdN8vD.js.map} +1 -1
- package/package.json +2 -2
- package/dist/asg-provider-vzD1uanW.js.map +0 -1
- package/dist/deploy-engine-DIe64g1M.js.map +0 -1
- package/dist/diff-calculator-e0X8wg5d.js.map +0 -1
- package/dist/ec2-termination-protection-BhINWGSK.js.map +0 -1
- package/dist/image-plan-BZ-0TCSM.js.map +0 -1
- package/dist/program-pfwGZi1I.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 adoptDeprecatedRegionFlag, 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 skipFinalSnapshotOption, ct as resolveCdkPathToLogicalIds, d as resolveAssetCodeDirectory, dn as useCdkBootstrapAssetsOption, dt as activateLocalAwsAndRoleArn, en as deprecatedRegionOption, et as renderUnmatchedPatternsWarning, f as architectureToPlatform, fn as warnIfDeprecatedRegion, 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 stackOptions, 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 destroyOptions, tt as selectTargetStack, u as assetPathDirs, un as stateOptions, 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 { $t as buildForceUnlockCommand, Ct as isInterruptedWaitError, G as isMarkedNotGone, N as VALUE_NOT_SHOWN, Qt as UNREPRODUCIBLE_LOCK_CLAUSE, St as interruptWatchListenerCount, U as RESOURCE_NOT_FOUND, V as remedyLogicalId, W as assertRegionMatch, bt as beginCommandInterruptScope, cn as DEFAULT_STATE_PREFIX, dn as
|
|
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-HusdN8vD.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 adoptDeprecatedRegionFlag, 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 skipFinalSnapshotOption, ct as resolveCdkPathToLogicalIds, d as resolveAssetCodeDirectory, dn as useCdkBootstrapAssetsOption, dt as activateLocalAwsAndRoleArn, en as deprecatedRegionOption, et as renderUnmatchedPatternsWarning, f as architectureToPlatform, fn as warnIfDeprecatedRegion, 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 stackOptions, 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 destroyOptions, tt as selectTargetStack, u as assetPathDirs, un as stateOptions, 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-Cu3b26DY.js";
|
|
3
|
+
import { $t as buildForceUnlockCommand, Ct as isInterruptedWaitError, G as isMarkedNotGone, N as VALUE_NOT_SHOWN, Qt as UNREPRODUCIBLE_LOCK_CLAUSE, St as interruptWatchListenerCount, U as RESOURCE_NOT_FOUND, V as remedyLogicalId, W as assertRegionMatch, bt as beginCommandInterruptScope, cn as DEFAULT_STATE_PREFIX, dn as withPasteableAwsProfile, en as buildLockContentionMessage, fn as injectiveKey, gt as isAwsCliLiteral, hn as producerRecordKey, in as formatLockOwner, jt as resourceTypeShown, kt as logicalIdShown, ln as setPasteableAwsCaBundle, lt as runDeleteAttempt, m as RESOLVED_PREVIOUS_PRINCIPAL_KEYS, mn as producerCoordinateKey, nn as formatLockExpiry, p as IAM_PRINCIPAL_NAME, rn as formatLockOperation, sn as CUSTOM_RESOURCE_RESPONSE_PREFIX, tn as forceQuitRecoveryClause, un as setPasteableAwsProfile, xt as endCommandInterruptScope, y as readRecordedPrincipals } from "./update-removal-TXGn1k50.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, B as generateResourceName, E as coerceCfnBoolean, I as PATTERN_B_NAME_OPTIONS, L as PATTERN_B_NAME_PROPERTIES, 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, 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, B as generateResourceName, E as coerceCfnBoolean, I as PATTERN_B_NAME_OPTIONS, L as PATTERN_B_NAME_PROPERTIES, 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-oZMfcKSj.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, 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-z2kbR8l-.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 { A as loadCdkJson, B as
|
|
9
|
-
import { $a as stackIdTailOf, $c as S3StateBackend, $i as ATOMIC_FINAL_SNAPSHOT_TYPES, $o as keepsSecretReferenceToken, $r as displayTextOrWithheld, $s as unreadableResourceEntries, $t as displacedOpClause, A as recordedProtectionEvidence, Ac as refuseMalformedResourcesForDestroy, Ai as cyan, Al as getBootstrapMarkerKey, An as constructPathOf$1, Ao as isUnboundTemplateParameter, Ar as withPreviousPolicies, As as malformedOrphanRecordsRefusalMessage, Bc as hasReadableOutputs, Bi as createReadOnlyAttributeHealerFactory, Bn as changedReferenceReason, Br as nameGenerationHighWaterOf, Bs as isReadableResourceEntry, Bt as updateRefactorMarker, C as pendingMovesOutOf, Cc as repairMalformedOutputsForReadOnly, Ci as isSupersededResourceRecord, Cn as crossStackReadsForPartialSave, Co as regionLessSecretName, Cr as planFailedOps, Cs as parameterInputsFor, D as findServiceTokenRefusals, Dc as malformedResourcesWarning, Di as supersededResourcesOf, Dl as buildDenyExternalAccessPolicy, Dn as noEchoMacParametersOf, Dr as IMPLICIT_DELETE_DEPENDENCIES, Ds as maskedPropertyFingerprint, E as deferredServiceTokenWarning, Ea as isCustomResourceType$1, Ec as malformedRenderedContainersWarning, Ei as supersededHolderOf, El as ensureAssetStorage, En as noEchoMacBinding, Er as replacementNeverSwapped, Es as declaresNoEcho, F as readProtection, Fa as setLocalCustomResourceRuntimeEnabled, Fc as accountArgs, Fi as noEchoAttributeNamesOf, Fl as BOOTSTRAP_MARKER_PREFIX, Fn as movedToHint, Fo as refStateLookupFromResource, Fs as refuseMalformedOrphanRecordsForDestroy, Ft as readRefactorMarkerOnce, Ga as deleteLeftInPlace, Gc as unwrittenCreateOnlyReplacement, Gi as orphanRecordsPrintingBag, Gl as isAbsoluteAssetPath, Gn as parseMappingFile, Go as recordedReferenceRegions, Gr as withNameGenerationReached, Gs as refuseMalformedResourceAttributesForOrphan, Gt as formatResourceLine, Ha as RollbackInlinePolicyWriters, Hc as findActionableSdkUnwired, Hi as journaledOrphanPrintingBag, Hn as isPairableType, Hr as retiredAfterRollback, Hs as malformedLocalResourcesWarning, Ht as readsOnlyNoEchoParameters, Ia as withCustomResourceStack, Ic as withheldAccountClause, Ii as noEchoComparisonForTemplate, Il as AssetManifestLoader, In as rollbackOrphanIds, Io as lacksRecordedRefArn, Ir as segmentCleanupOptions, Is as refuseMalformedOrphansForOrphan, It as refactorMarkerMovesOf, Ja as isWaitAbandonedError, Jl as templateIdentity, Jn as referencedLogicalIds, Jo as getAccountInfo, Jr as computeParameterTaint, Js as refuseMalformedResourceEntriesForDestroy, Ka as deleteSkipReason, Ki as secretNamePrintingBag, Kl as listNestedTemplateRows, Kn as propertiesChangedReason, Ks as refuseMalformedResourceEntries, Lc as STATE_RESOURCES_MALFORMED, Li as noEchoExactEchoLeavesOf, Ll as getDockerImageBySourceHash, Ln as withMovedTo, Lo as lacksRecordedTableArn, Lr as removeProtectionTypeList, Ls as repairMalformedOrphanRecordsForReadOnly, Lt as refactorMarkerRefusalMessage, M as PROTECTION_PROPERTY_BY_TYPE, Ma as customResourcesRunWithoutApp, Mc as refuseMalformedState, Mi as green, Ml as readBootstrapMarkerBody, Mn as formatDestructiveChange, Mo as AWS_NO_VALUE, Ms as malformedOrphanRowsKeptWarning, Mt as keptForRetainedRecord, N as isProtectionValueActive, Na as localCustomResourceCommand, Nc as repairMalformedResourcesForReadOnly, Ni as red, Nl as validateAssetBucketName, Nn as findRefactorHints, No as cfnRefValueFromPhysicalId, Ns as previewableOrphanRecords, Nt as recordRetainedForReadoption, O as serviceTokenBlockingReason, Oa as withPrintingSecrets, Oc as malformedStateRefusalMessage, Oi as withoutSuperseded, Ol as assertAssetBucketRegion, On as noEchoMacVerdict, Or as computeImplicitDeleteEdges, Os as deployRefusesOrphanRowsReason, P as perType, Pc as JSON_LISTING_HOLE_VALUE, Pi as yellow, Pl as validateContainerRepoName, Pn as hintSidesOf, Po as isStalePlaceholderArnAttribute, Ps as refuseMalformedOrphanRecords, Pt as readRefactorMarker, Qa as poisonRenderedSpellingsCollidingIn, Qc as TemplateParser, Qi as extractDeploymentEventError, Ql as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, Qo as carriesDynamicReference, Qr as WITHHELD_NAME_DISPLAY, Qs as repairMalformedResourceEntriesForReadOnly, Qt as NESTED_PENDING_PARENT_REASON, Ra as CloudControlProvider, Rc as UNREADABLE_RESOURCES_MAP_ROW, Ri as noEchoParameterNamesOf, Rn as changedReferenceInDiff, Rr as orphanNeedsIdentity, Rs as unpreviewableOrphanRecords, Rt as refuseRefactorMarker, S as hasPendingMovesOut, Sa as customResourceResponseExpirationWarning, Sc as refuseMalformedOutputsForDestroy, Si as holdsSupersededResources, Sn as DeploymentEventsStore, So as producerRegionsFromState, Sr as isReplacementOrphan, T as refusePendingMovesOut, Ta as readsNoEchoDeleteValues, Tc as refuseDivergentRecordRegionForDestroy, Ti as supersededHeldByOtherTypeWarning, Tl as AssetModeResolver, Tn as createNoEchoValueMacs, Tr as recordUnderIdIsNotOwn, Ua as UNSPECIFIED_SKIP_REASON, Uc as findHandledUnwrittenCreateOnly, Ui as maskEventTextWithBoundBags, Un as looselyEqual, Uo as recordedOutputReferenceRegions, Ur as retiredNameGenerationsAfter, Us as malformedResourceEntriesWarning, Va as setResolvedResourceTimeouts, Vc as hasReadableResources, Vi as completedReplayEntries, Vn as differingRemedy, Vo as keepHeldTokenProvenance, Vr as nameScopeOf, Vs as malformedLocalResourceEntriesWarning, Vt as macWriteOnlyKeys, Wa as deleteIndeterminateGuards, Wi as namingSecretsWithRecordedNoEcho, Wl as findNestedTemplateTreeDefect, Wn as mappingPairs, Wr as retiredNameGenerationsLeaving, Ws as malformedScrubResourceEntriesRefusalMessage, Xa as isSelectOutOfBounds, Xc as hasNoCloudControlHandlers, Xi as stateSecretNameNeedles, Xn as stripSiblingOwnedSgRules, Xo as carriesFetchableDynamicReference, Xr as reachableDivergentParameters, Xs as refuseMalformedResourceEntriesForImportSave, Xt as pendingRequestCount, Ya as IntrinsicFunctionResolver, Yc as NO_CC_HANDLERS_REASON, Yi as secretNamedRecordNeedles, Yo as isImpossibleEmptyStoredAttribute, Yr as namesAnyDeclaredParameter, Ys as refuseMalformedResourceEntriesForImport, Za as isAlwaysLiveAttribute, Zc as PROPERTY_COVERAGE_BY_TYPE, Zi as storedSecretNameNeedles, Zl as ssmResolvedValueType, Zo as isNamelessDynamicReferenceError, Zr as resourcesNamingDeclaredParameter, Zs as refuseMalformedResourceEntriesForOrphan, Zt as resolvePendingCloudControlRequests, _ as conditionFingerprint, _a as ccBrokenReason, _c as malformedLocalOutputsWarning, _i as destroyStackRecordsView, _l as createAssetRedirectResolver, _n as sameJournaledOrphans, _o as applyCallerIdentityCredentials, a as scanActiveConsumers, aa as refusesFinalSnapshot, ac as refuseMalformedResourcePropertiesForExport, ai as exportNameNoEchoParameters, al as CrossPrefixReadError, ao as withSecretPhysicalIdsMaskedInState, ar as settleUnsettledPrevious, au as hasPlainPrototype, b as readRecordedConditionVerdicts, ba as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, bn as planOrphanAdoption, bo as classifyRecordedSecretRegion, br as demoteSupersededOrphans, c as nestedSsmNameDeferredNote, ca as buildFinalSnapshotIdentifier, cc as UNREADABLE_ORPHANS_CONTAINER_ROW, ci as noEchoParameterValueSeed, cl as crossPrefixDeniedWarning, cn as collectNestedChildUnaddressed, co as refuseUnreadableCdkCrossAccountRefs, cr as equalModuloMarkedMask, d as slashedSsmNameHealAdoptedNote, dc as malformedOrphansWarning, di as isExportAliasCollision, dl as stackInstanceIdOf, dn as deleteJournaledOrphans, do as assertSendableRoleArn, dr as updatePartialMessage, ds as isStatefulRecreateTargetForReplace, du as displayAssemblyPath, ea as PRE_DELETE_SNAPSHOT_TYPES, ec as malformedDriftResourcePropertiesWarning, ei as exportAliasCollisionScrubWarning, el as splitImportedOps, en as displacedPhysicalIdShown, er as canonicalizeIpProtocolValue, es as withSharedDrainBudget, eu as decodeListingKey, f as slashedSsmNameHealNote, fa as stripSiblingOwnedMembers, fc as refuseMalformedOrphans, fi as bindingSkippedOutputs, fl as withStackInstanceIdWithheld, fn as dropFailedCommands, fo as explicitRoleArnOrThrow, fr as updatePartialReason, fs as isStatefulRecreateTargetSync, g as makeCanonicalizePropertiesFn, ga as ProviderRegistry, gc as malformedExportSourceWarning, gl as buildAssetRedirectMap, gn as loadJournaledOrphans, go as AWS_CREDENTIAL_ENV_KEYS, gr as withCreateTokenLedger, gu as resolveBucketRegion, h as inheritedProvenanceForChildDiff, ha as CC_BROKEN_REASON, hc as malformedExportNamesWarning, hi as maskingRetryLogger, hn as journaledOrphanLines, ho as sendableAssumeRoleCommand, i as mergeNoChangeOutputs, ia as isFinalSnapshotError, ic as refuseMalformedResourcePropertiesForDrift, ii as carriedExportAliasExposure, il as rebuildClientForBucketRegion, in as recordDisplacedSkips, io as secretSegmentsOfState, ir as recordAfterRollbackUpdate, iu as hasOwnKey, j as recordedProtectionNote, ja as customResourcesFailedWithoutApp, jc as refuseMalformedResourcesForExport, ji as gray, jl as parseBootstrapMarker, jn as findDestructiveChanges, jo as parameterTypeMayLoseSecretIdentity, jr as findNestedStackTypeChanges, js as malformedOrphanRecordsWarning, k as diffSecurity, ka as NO_LOCAL_CUSTOM_RESOURCES_FLAG, kc as refuseMalformedResourcesForDeploy, ki as bold, kl as isCrossRegionRedirect, kn as noEchoValueMacsOf, ko as coerceParameterTypedValue, kr as resolveReplacementOldType, ks as isReadableOrphanRecord, l as nestedSsmNameRowNote, lc as hasReadableOrphans, li as collectDeclaredOutputNames, ll as isAccessDenied, ln as getCurrentNestedStackContext, lo as applyRoleArnIfSet, lr as equalModuloMask, ls as shownType, m as crossStackOutputProvenanceSource, mc as repairMalformedOrphansForReadOnly, mi as DEFAULT_RESOURCE_WARN_AFTER_MS, ml as isSensitiveAttributeName, mn as isHandledOrphan, mo as parseIamRoleArn, mr as ledgerForStack, mu as resolveAssemblyPath, n as isSecretBearingReferenceString, na as ccRoutedInstanceTakesNoSnapshot, ni as secretBearingStateKeyWarning, nl as hasReasonlessBaselineRefusal, nr as replayRollback, ns as INTRINSIC_KEYS, o as inRunStackKey, oa as unsupportedFinalSnapshotError, oc as refuseMalformedResourcePropertiesForOrphan, oi as exportNameSecretExposure, ol as CrossPrefixScanCache, on as revertedNestedRowIds, oo as resolveDynamicReferences, or as withUnprovenUnsettled, ou as nullPrototypeRecord, p as slashedSsmNameHealPendingNote, pc as refuseMalformedOrphansForDestroy, pi as DEFAULT_RESOURCE_TIMEOUT_MS, pl as isSecretValuedAttribute, pn as dropFailedHint, po as isIamRoleArn, ps as renderStatefulReason, pu as renderAssemblyPathEscape, qi as secretNamePrintingBags, ql as renderNestedTemplateTreeDefect, qn as proposeRenames, qr as inheritProducerRegions, qs as refuseMalformedResourceEntriesForDeploy, r as keptWholeReasonText, ra as effectiveDeletionPolicy, rc as refuseMalformedResourcePropertiesForDestroy, ri as secretSafeKeyDisplay, rl as hasUnverifiableParameterRefusal, rn as nestedChildStackName$1, ro as secretPhysicalIdSegment, rr as DELETED_RESOURCE_REMEDY, ru as defineOwnKey, s as checkNestedSsmNames, sa as createPreDeleteFinalSnapshot, sc as repairMalformedResourcePropertiesForReadOnly, si as isWholeDynamicReferenceValue, sl as applyCrossPrefixScan, sn as withNestedRevertRun, so as producerLookupOver, sr as calculateResourceDrift, ss as findReplacedReadersOfRecreateTargets, su as ownValue, t as DeployEngine, ta as ccRoutedFinalSnapshotError, tc as malformedResourcePropertiesWarning, ti as secretBearing, tn as dropSettledNestedJournals, tr as replayFailedOperations, u as healSlashedSsmParameterNames, uc as malformedOrphansRefusalMessage, ui as collectPublishedOutputNames, ul as isNotImplemented, un as withNestedStackContext, uo as assertFlagRoleArn, ur as undeclaredEmptyObservedKeys, us as MULTI_REGION_RECREATE_BLOCKED_TYPES, uu as describeFileReadFailure, v as conditionInputsFrom, va as isCustomResource, vc as malformedOutputsRefusalMessage, vn as makeForeignHolderScan, vo as callerEnvCredentials, vr as planRollback, w as pendingMovesRefusalMessage, wa as TemplateNoEchoReresolver, wc as STATE_REGION_DIVERGED, wi as supersededAfterRollback, wl as rewriteTemplateAssetReferences, wn as NOECHO_MAC_KEY_ALIAS, wr as recheckFailedPlan, ws as maskedInputProof, x as childTemplateLoader, xa as applyCustomResourceResponseExpiration, xc as refuseMalformedOutputs, xi as deleteSupersededEntry, xl as loadPublishableAssetManifest, xn as DeploymentEventsReader, xo as classifyReplaySecretRegion, xr as isJournaledOrphan, xs as maskedPropertyFingerprintsOf, y as parentSuppliedValues, ya as wouldReturnToSdkProvider, yc as malformedOutputsWarning, yi as withStackRecords, yn as makeSiblingClaimReader, yo as envCredentialsAreAssumedRole, yr as seedsDeleteFirstGuard, zc as displayLogicalId, zi as withAttemptedItemsMasked, zn as changedReferencePath, zr as nameGenerationCarriedFrom, zs as unreadableOrphanRecords, zt as sameMove } from "./deploy-engine-DIe64g1M.js";
|
|
8
|
+
import { $ as predictedAutoCreatedAssetMode, A as loadCdkJson, B as stateBucketExistenceConfirmed, C as runDockerForeground, D as synthesisStatusMessage, E as Synthesizer, F as resolveStateBucketWithDefault, G as findLargeInlineResources, H as CFN_TEMPLATE_BODY_LIMIT, I as resolveStateBucketWithDefaultAndSource, J as AssemblyReader, K as uploadCfnTemplate, L as resolveStateBucketWithSource, M as resolveAutoAssetStorage, N as resolveCaptureObservedState, O as getDefaultStateBucketName, P as resolveSkipPrefix, Q as legacyPlanAssetCount, R as resolveUpdatePolicy, S as getDockerCmd, T as abortInFlightMultipartUploads, U as CFN_TEMPLATE_URL_LIMIT, V as warnDeprecatedNoPrefixCliFlag, W as MIGRATE_TMP_PREFIX, X as bindLegacyStackAssetParameters, Y as StageLoadError, Z as createLegacyAssetParameterBinder, _ as partitionSensitiveEnv, a as AssetPublisher, b as isMalformedEnvKey, c as resolveDockerContextDirectory, d as describeDockerFailure, et as prepareLegacyStackAssets, f as redactedCause, g as finchSecretArgvRefusal, h as dockerSpawnEnvWithSensitive, i as isLockInfoExpired, j as resolveApp, k as getLegacyStateBucketName, m as redactDockerArgvValues, n as DagBuilder, nt as processStackMessages, o as WorkGraph, p as redactedDockerCause, q as refuseFailedLookups, r as LockManager, rt as setChildProcessAwsEnv, s as buildDockerImage, t as DiffCalculator, tt as CdkToolkitBucketMissingError, u as describeDockerExecFailure, v as warnFinchArgvExposure, w as runDockerStreaming, x as formatDockerLoginError, y as isDockerClientEnvKey, z as resolveUseCdkBootstrapAssets } from "./diff-calculator-Dych6a6c.js";
|
|
9
|
+
import { $a as stackIdTailOf, $c as S3StateBackend, $i as ATOMIC_FINAL_SNAPSHOT_TYPES, $l as getBootstrapMarkerKey, $o as keepsSecretReferenceToken, $r as displayTextOrWithheld, $s as unreadableResourceEntries, $t as displacedOpClause, A as recordedProtectionEvidence, Ac as refuseMalformedResourcesForDestroy, Ai as cyan, An as constructPathOf$1, Ao as isUnboundTemplateParameter, Ar as withPreviousPolicies, As as malformedOrphanRecordsRefusalMessage, Bc as hasReadableOutputs, Bi as createReadOnlyAttributeHealerFactory, Bl as rewriteTemplateAssetReferences, Bn as changedReferenceReason, Br as nameGenerationHighWaterOf, Bs as isReadableResourceEntry, Bt as updateRefactorMarker, C as pendingMovesOutOf, Cc as repairMalformedOutputsForReadOnly, Ci as isSupersededResourceRecord, Cn as crossStackReadsForPartialSave, Co as regionLessSecretName, Cr as planFailedOps, Cs as parameterInputsFor, D as findServiceTokenRefusals, Dc as malformedResourcesWarning, Di as supersededResourcesOf, Dn as noEchoMacParametersOf, Dr as IMPLICIT_DELETE_DEPENDENCIES, Ds as maskedPropertyFingerprint, E as deferredServiceTokenWarning, Ea as isCustomResourceType$1, Ec as malformedRenderedContainersWarning, Ei as supersededHolderOf, El as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, En as noEchoMacBinding, Er as replacementNeverSwapped, Es as declaresNoEcho, F as readProtection, Fa as setLocalCustomResourceRuntimeEnabled, Fc as accountArgs, Fi as noEchoAttributeNamesOf, Fn as movedToHint, Fo as refStateLookupFromResource, Fs as refuseMalformedOrphanRecordsForDestroy, Ft as readRefactorMarkerOnce, Ga as deleteLeftInPlace, Gc as unwrittenCreateOnlyReplacement, Gi as orphanRecordsPrintingBag, Gn as parseMappingFile, Go as recordedReferenceRegions, Gr as withNameGenerationReached, Gs as refuseMalformedResourceAttributesForOrphan, Gt as formatResourceLine, Ha as RollbackInlinePolicyWriters, Hc as findActionableSdkUnwired, Hi as journaledOrphanPrintingBag, Hl as getDockerImageBySourceHash, Hn as isPairableType, Hr as retiredAfterRollback, Hs as malformedLocalResourcesWarning, Ht as readsOnlyNoEchoParameters, Ia as withCustomResourceStack, Ic as withheldAccountClause, Ii as noEchoComparisonForTemplate, In as rollbackOrphanIds, Io as lacksRecordedRefArn, Ir as segmentCleanupOptions, Is as refuseMalformedOrphansForOrphan, It as refactorMarkerMovesOf, Ja as isWaitAbandonedError, Jl as AssetModeResolver, Jn as referencedLogicalIds, Jo as getAccountInfo, Jr as computeParameterTaint, Js as refuseMalformedResourceEntriesForDestroy, Ka as deleteSkipReason, Ki as secretNamePrintingBag, Kn as propertiesChangedReason, Ks as refuseMalformedResourceEntries, Lc as STATE_RESOURCES_MALFORMED, Li as noEchoExactEchoLeavesOf, Ll as loadPublishableAssetManifest, Ln as withMovedTo, Lo as lacksRecordedTableArn, Lr as removeProtectionTypeList, Ls as repairMalformedOrphanRecordsForReadOnly, Lt as refactorMarkerRefusalMessage, M as PROTECTION_PROPERTY_BY_TYPE, Ma as customResourcesRunWithoutApp, Mc as refuseMalformedState, Mi as green, Ml as createAssetRedirectResolver, Mn as formatDestructiveChange, Mo as AWS_NO_VALUE, Ms as malformedOrphanRowsKeptWarning, Mt as keptForRetainedRecord, N as isProtectionValueActive, Na as localCustomResourceCommand, Nc as repairMalformedResourcesForReadOnly, Ni as red, Nl as createLazyAssetModeContext, Nn as findRefactorHints, No as cfnRefValueFromPhysicalId, Ns as previewableOrphanRecords, Nt as recordRetainedForReadoption, O as serviceTokenBlockingReason, Oa as withPrintingSecrets, Oc as malformedStateRefusalMessage, Oi as withoutSuperseded, Ol as decodeListingKey, On as noEchoMacVerdict, Or as computeImplicitDeleteEdges, Os as deployRefusesOrphanRowsReason, P as perType, Pc as JSON_LISTING_HOLE_VALUE, Pi as yellow, Pn as hintSidesOf, Po as isStalePlaceholderArnAttribute, Ps as refuseMalformedOrphanRecords, Pt as readRefactorMarker, Qa as poisonRenderedSpellingsCollidingIn, Qc as TemplateParser, Qi as extractDeploymentEventError, Ql as isCrossRegionRedirect, Qo as carriesDynamicReference, Qr as WITHHELD_NAME_DISPLAY, Qs as repairMalformedResourceEntriesForReadOnly, Qt as NESTED_PENDING_PARENT_REASON, Ra as CloudControlProvider, Rc as UNREADABLE_RESOURCES_MAP_ROW, Ri as noEchoParameterNamesOf, Rn as changedReferenceInDiff, Rr as orphanNeedsIdentity, Rs as unpreviewableOrphanRecords, Rt as refuseRefactorMarker, S as hasPendingMovesOut, Sa as customResourceResponseExpirationWarning, Sc as refuseMalformedOutputsForDestroy, Si as holdsSupersededResources, Sl as templateIdentity, Sn as DeploymentEventsStore, So as producerRegionsFromState, Sr as isReplacementOrphan, T as refusePendingMovesOut, Ta as readsNoEchoDeleteValues, Tc as refuseDivergentRecordRegionForDestroy, Ti as supersededHeldByOtherTypeWarning, Tl as ssmResolvedValueType, Tn as createNoEchoValueMacs, Tr as recordUnderIdIsNotOwn, Ua as UNSPECIFIED_SKIP_REASON, Uc as findHandledUnwrittenCreateOnly, Ui as maskEventTextWithBoundBags, Un as looselyEqual, Uo as recordedOutputReferenceRegions, Ur as retiredNameGenerationsAfter, Us as malformedResourceEntriesWarning, Va as setResolvedResourceTimeouts, Vc as hasReadableResources, Vi as completedReplayEntries, Vl as AssetManifestLoader, Vn as differingRemedy, Vo as keepHeldTokenProvenance, Vr as nameScopeOf, Vs as malformedLocalResourceEntriesWarning, Vt as macWriteOnlyKeys, Wa as deleteIndeterminateGuards, Wi as namingSecretsWithRecordedNoEcho, Wn as mappingPairs, Wr as retiredNameGenerationsLeaving, Ws as malformedScrubResourceEntriesRefusalMessage, Xa as isSelectOutOfBounds, Xc as hasNoCloudControlHandlers, Xi as stateSecretNameNeedles, Xl as buildDenyExternalAccessPolicy, Xn as stripSiblingOwnedSgRules, Xo as carriesFetchableDynamicReference, Xr as reachableDivergentParameters, Xs as refuseMalformedResourceEntriesForImportSave, Xt as pendingRequestCount, Ya as IntrinsicFunctionResolver, Yc as NO_CC_HANDLERS_REASON, Yi as secretNamedRecordNeedles, Yl as ensureAssetStorage, Yo as isImpossibleEmptyStoredAttribute, Yr as namesAnyDeclaredParameter, Ys as refuseMalformedResourceEntriesForImport, Za as isAlwaysLiveAttribute, Zc as PROPERTY_COVERAGE_BY_TYPE, Zi as storedSecretNameNeedles, Zl as assertAssetBucketRegion, Zo as isNamelessDynamicReferenceError, Zr as resourcesNamingDeclaredParameter, Zs as refuseMalformedResourceEntriesForOrphan, Zt as resolvePendingCloudControlRequests, _ as conditionFingerprint, _a as ccBrokenReason, _c as malformedLocalOutputsWarning, _i as destroyStackRecordsView, _n as sameJournaledOrphans, _o as applyCallerIdentityCredentials, _u as renderAssemblyPathEscape, a as scanActiveConsumers, aa as refusesFinalSnapshot, ac as refuseMalformedResourcePropertiesForExport, ai as exportNameNoEchoParameters, al as rebuildClientForBucketRegion, ao as withSecretPhysicalIdsMaskedInState, ar as settleUnsettledPrevious, b as readRecordedConditionVerdicts, ba as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, bl as listNestedTemplateRows, bn as planOrphanAdoption, bo as classifyRecordedSecretRegion, br as demoteSupersededOrphans, bu as resolveBucketRegion, c as nestedSsmNameDeferredNote, ca as buildFinalSnapshotIdentifier, cc as UNREADABLE_ORPHANS_CONTAINER_ROW, ci as noEchoParameterValueSeed, cl as applyCrossPrefixScan, cn as collectNestedChildUnaddressed, co as refuseUnreadableCdkCrossAccountRefs, cr as equalModuloMarkedMask, cu as hasOwnKey, d as slashedSsmNameHealAdoptedNote, dc as malformedOrphansWarning, di as isExportAliasCollision, dl as isNotImplemented, dn as deleteJournaledOrphans, do as assertSendableRoleArn, dr as updatePartialMessage, ds as isStatefulRecreateTargetForReplace, du as ownValue, ea as PRE_DELETE_SNAPSHOT_TYPES, ec as malformedDriftResourcePropertiesWarning, ei as exportAliasCollisionScrubWarning, el as splitImportedOps, en as displacedPhysicalIdShown, er as canonicalizeIpProtocolValue, es as withSharedDrainBudget, eu as parseBootstrapMarker, f as slashedSsmNameHealNote, fa as stripSiblingOwnedMembers, fc as refuseMalformedOrphans, fi as bindingSkippedOutputs, fl as stackInstanceIdOf, fn as dropFailedCommands, fo as explicitRoleArnOrThrow, fr as updatePartialReason, fs as isStatefulRecreateTargetSync, g as makeCanonicalizePropertiesFn, ga as ProviderRegistry, gc as malformedExportSourceWarning, gn as loadJournaledOrphans, go as AWS_CREDENTIAL_ENV_KEYS, gr as withCreateTokenLedger, h as inheritedProvenanceForChildDiff, ha as CC_BROKEN_REASON, hc as malformedExportNamesWarning, hi as maskingRetryLogger, hl as isSensitiveAttributeName, hn as journaledOrphanLines, ho as sendableAssumeRoleCommand, hu as displayAssemblyPath, i as mergeNoChangeOutputs, ia as isFinalSnapshotError, ic as refuseMalformedResourcePropertiesForDrift, ii as carriedExportAliasExposure, il as hasUnverifiableParameterRefusal, in as recordDisplacedSkips, io as secretSegmentsOfState, ir as recordAfterRollbackUpdate, iu as BOOTSTRAP_MARKER_PREFIX, j as recordedProtectionNote, ja as customResourcesFailedWithoutApp, jc as refuseMalformedResourcesForExport, ji as gray, jl as buildAssetRedirectMap, jn as findDestructiveChanges, jo as parameterTypeMayLoseSecretIdentity, jr as findNestedStackTypeChanges, js as malformedOrphanRecordsWarning, k as diffSecurity, ka as NO_LOCAL_CUSTOM_RESOURCES_FLAG, kc as refuseMalformedResourcesForDeploy, ki as bold, kn as noEchoValueMacsOf, ko as coerceParameterTypedValue, kr as resolveReplacementOldType, ks as isReadableOrphanRecord, l as nestedSsmNameRowNote, lc as hasReadableOrphans, li as collectDeclaredOutputNames, ll as crossPrefixDeniedWarning, ln as getCurrentNestedStackContext, lo as applyRoleArnIfSet, lr as equalModuloMask, ls as shownType, lu as hasPlainPrototype, m as crossStackOutputProvenanceSource, mc as repairMalformedOrphansForReadOnly, mi as DEFAULT_RESOURCE_WARN_AFTER_MS, ml as isSecretValuedAttribute, mn as isHandledOrphan, mo as parseIamRoleArn, mr as ledgerForStack, mu as describeFileReadFailure, n as isSecretBearingReferenceString, na as ccRoutedInstanceTakesNoSnapshot, ni as secretBearingStateKeyWarning, nl as readOnlyStateVersionOf, nr as replayRollback, ns as INTRINSIC_KEYS, nu as validateAssetBucketName, o as inRunStackKey, oa as unsupportedFinalSnapshotError, oc as refuseMalformedResourcePropertiesForOrphan, oi as exportNameSecretExposure, ol as CrossPrefixReadError, on as revertedNestedRowIds, oo as resolveDynamicReferences, or as withUnprovenUnsettled, p as slashedSsmNameHealPendingNote, pc as refuseMalformedOrphansForDestroy, pi as DEFAULT_RESOURCE_TIMEOUT_MS, pl as withStackInstanceIdWithheld, pn as dropFailedHint, po as isIamRoleArn, ps as renderStatefulReason, qi as secretNamePrintingBags, qn as proposeRenames, qr as inheritProducerRegions, qs as refuseMalformedResourceEntriesForDeploy, r as keptWholeReasonText, ra as effectiveDeletionPolicy, rc as refuseMalformedResourcePropertiesForDestroy, ri as secretSafeKeyDisplay, rl as hasReasonlessBaselineRefusal, rn as nestedChildStackName$1, ro as secretPhysicalIdSegment, rr as DELETED_RESOURCE_REMEDY, ru as validateContainerRepoName, s as checkNestedSsmNames, sa as createPreDeleteFinalSnapshot, sc as repairMalformedResourcePropertiesForReadOnly, si as isWholeDynamicReferenceValue, sl as CrossPrefixScanCache, sn as withNestedRevertRun, so as producerLookupOver, sr as calculateResourceDrift, ss as findReplacedReadersOfRecreateTargets, su as defineOwnKey, t as DeployEngine, ta as ccRoutedFinalSnapshotError, tc as malformedResourcePropertiesWarning, ti as secretBearing, tn as dropSettledNestedJournals, tr as replayFailedOperations, tu as readBootstrapMarkerBody, u as healSlashedSsmParameterNames, uc as malformedOrphansRefusalMessage, ui as collectPublishedOutputNames, ul as isAccessDenied, un as withNestedStackContext, uo as assertFlagRoleArn, ur as undeclaredEmptyObservedKeys, us as MULTI_REGION_RECREATE_BLOCKED_TYPES, uu as nullPrototypeRecord, v as conditionInputsFrom, va as isCustomResource, vc as malformedOutputsRefusalMessage, vl as findNestedTemplateTreeDefect, vn as makeForeignHolderScan, vo as callerEnvCredentials, vr as planRollback, vu as resolveAssemblyPath, w as pendingMovesRefusalMessage, wa as TemplateNoEchoReresolver, wc as STATE_REGION_DIVERGED, wi as supersededAfterRollback, wn as NOECHO_MAC_KEY_ALIAS, wr as recheckFailedPlan, ws as maskedInputProof, x as childTemplateLoader, xa as applyCustomResourceResponseExpiration, xc as refuseMalformedOutputs, xi as deleteSupersededEntry, xl as renderNestedTemplateTreeDefect, xn as DeploymentEventsReader, xo as classifyReplaySecretRegion, xr as isJournaledOrphan, xs as maskedPropertyFingerprintsOf, y as parentSuppliedValues, ya as wouldReturnToSdkProvider, yc as malformedOutputsWarning, yi as withStackRecords, yl as isAbsoluteAssetPath, yn as makeSiblingClaimReader, yo as envCredentialsAreAssumedRole, yr as seedsDeleteFirstGuard, zc as displayLogicalId, zi as withAttemptedItemsMasked, zn as changedReferencePath, zr as nameGenerationCarriedFrom, zs as unreadableOrphanRecords, zt as sameMove } from "./deploy-engine-axD9sX_9.js";
|
|
10
10
|
import { n as canonicalizeRegion, r as derivePartitionAndUrlSuffix, t as PARTITION_TABLE } from "./aws-partition-DA0r2sr-.js";
|
|
11
|
-
import {
|
|
12
|
-
import { t as expectedOwnerParam } from "./expected-bucket-owner-
|
|
13
|
-
import { Ct as isReadableBag, Et as shouldRetainResource, Ot as stackInstanceIdCarriedFrom, St as importableOutputs, Tt as orphansCarriedFrom, _t as acceptedCreateOnlyDropsOf, bt as hasReadableExportSet, gt as slowCcOperationTimeoutMs, vt as describeRegionValueKind, wt as orphansAfterRollback, xt as importableOutputKeys, yt as exportNamesCarriedFrom } from "./delete-started-
|
|
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 { C as unsettledItemsField, E as unsettledPropertiesOf, O as withUnsettledProperties, i as withResourceDeadline, k as withoutUnsettledProperties, w as unsettledItemsOf } from "./resource-deadline-
|
|
16
|
-
import { a as parseEcrRegistryHost, i as looksLikeEcrHostWithForeignSuffix, n as hasEcrRegistryHostLabels, t as ecrRegistryHostPattern } from "./ecr-uri-
|
|
11
|
+
import { F as utf8ByteLength, N as parseFailureDebugDetail, O as renderPhaseTimings, S as withRetry, _ as describeTypeWithThrottleRetry, f as getCreateOnlyPropertyPaths, h as templateResourceTypes, j as describeJsonParseFailure, k as timePhase, m as prefetchCreateOnlyPropertyPaths, w as PhaseClock } from "./update-policy-C3iCsDhx.js";
|
|
12
|
+
import { t as expectedOwnerParam } from "./expected-bucket-owner-BUXAXOgl.js";
|
|
13
|
+
import { Ct as isReadableBag, Et as shouldRetainResource, Ot as stackInstanceIdCarriedFrom, St as importableOutputs, Tt as orphansCarriedFrom, _t as acceptedCreateOnlyDropsOf, bt as hasReadableExportSet, gt as slowCcOperationTimeoutMs, vt as describeRegionValueKind, wt as orphansAfterRollback, xt as importableOutputKeys, yt as exportNamesCarriedFrom } from "./delete-started-BR6VF4-U.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-SPQJMbC6.js";
|
|
15
|
+
import { C as unsettledItemsField, E as unsettledPropertiesOf, O as withUnsettledProperties, i as withResourceDeadline, k as withoutUnsettledProperties, w as unsettledItemsOf } from "./resource-deadline-CImbEePa.js";
|
|
16
|
+
import { a as parseEcrRegistryHost, i as looksLikeEcrHostWithForeignSuffix, n as hasEcrRegistryHostLabels, t as ecrRegistryHostPattern } from "./ecr-uri-CmjaicP1.js";
|
|
17
17
|
import { t as cdkdCacheHome } from "./cli.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";
|
|
@@ -30,8 +30,8 @@ import * as path from "node:path";
|
|
|
30
30
|
import { basename, dirname, isAbsolute, join, resolve } from "node:path";
|
|
31
31
|
import { execFile } from "node:child_process";
|
|
32
32
|
import { devNull, tmpdir } from "node:os";
|
|
33
|
-
import { CreateAliasCommand, CreateKeyCommand, DescribeKeyCommand, KMSClient, ScheduleKeyDeletionCommand } from "@aws-sdk/client-kms";
|
|
34
33
|
import { BatchDeleteImageCommand, DeleteRepositoryCommand, DescribeImagesCommand as DescribeImagesCommand$1, ECRClient, GetAuthorizationTokenCommand } from "@aws-sdk/client-ecr";
|
|
34
|
+
import { CreateAliasCommand, CreateKeyCommand, DescribeKeyCommand, KMSClient, ScheduleKeyDeletionCommand } from "@aws-sdk/client-kms";
|
|
35
35
|
import { A2A_CONTAINER_PORT, A2A_PATH, AGENTCORE_A2A_PROTOCOL, AGENTCORE_AGUI_PROTOCOL, AGENTCORE_MCP_PROTOCOL, ConnectionRegistry, DEFAULT_AWS_EMULATOR_URL, DynamicReferenceResolver, EMULATOR_SCRUBBED_ENV_KEYS, EcsTaskResolutionError, MCP_CONTAINER_PORT, MCP_PATH, UNNAMED_WORKLOAD, a2aInvokeOnce, addAlbSpecificOptions, addAwsEndpointOptions, addCommonEcsServiceOptions, addImageOverrideOptions, addStartServiceSpecificOptions, albStrategy, applyWorkloadAwsWiringToEnv, attachAuthorizers, attachStageContext, availableApiIdentifiers, awaitLoopbackForwarderStatus, awsEmulatorEnvName, awsEmulatorRealServices, awsEmulatorSqsHostBlocks, bufferToBody, buildAgentCoreCodeImage, buildCognitoJwksUrl, buildConnectEvent, buildCorsConfigByApiId, buildCorsConfigFromCloudFrontChain, buildDisconnectEvent, buildJwksUrlFromIssuer, buildMessageEvent, buildMgmtEndpointEnvUrl, buildNamespaceOwnerForwarderDockerArgs, buildStageMap, canonicalizeImageOverrideKeys, classifySourceChange, containsCrossStackIntrinsic, containsDynamicReference, createAuthorizerCache, createFileWatcher, createFileWatcher as createFileWatcher$1, createJwksCache, createMixedModeStateProvider, createWatchPredicates, defaultCredentialsLoader, describeAwsFailureForWarn, describeForwarderFailure, discoverRoutes, discoverWebSocketApis, dockerRegistryEnv, downloadAndExtractS3Bundle, effectiveLoopbackPorts, enforceImageOverrideOrphans, expandNestedStacks, filterRoutesByApiIdentifier, firstUsableRegion, getActiveWorkloadAwsWiring, getAwsEndpointOverride, groupRoutesByServer, groupWorkloadsRoutedApart, handleConnectionsRequest, invokeAgentCore, invokeAgentCoreWs, isAwsServiceRoutedToEmulator, keysNotFromTemplate, keysOverriddenBy, logMixedModeForWorkload, loopbackForwarderPlan, mcpInvokeOnce, noImplicitEcrPullArgs, parseAwsEndpoint, parseConnectionsPath, parseImageOverrideFlags, parseSelectionExpressionPath, pickAgentCoreCandidateStack, pickAgentCoreCandidateStack as pickAgentCoreCandidateStack$1, readAwsEmulatorEnvVarsFile, readEmulatorRunFiles, readEnvVarsFileText, readMtlsMaterialsFromDisk, realAwsServicesOf, resolveAgentCoreTarget, resolveAwsEmulatorOption, resolveDynamicReferencesInEnv, resolveEnvVars, resolveHostDefaultCredentials, resolveImageOverrides, resolveJwtAuthorizerIntrinsics, resolveSingleTarget, resolveWatchConfig, resolveWorkloadAwsWiring, runEcsServiceEmulator, runImageOverrideBuilds, setActiveWorkloadAwsWiring, setAwsEndpointOverride, signAgentCoreInvocation, startApiServer, topLevelStacks, verifyJwtViaDiscovery, waitForAgentCorePing, withNestedDescendants, withoutKeys } from "cdk-local/internal";
|
|
36
36
|
import { isDeepStrictEqual, promisify } from "node:util";
|
|
37
37
|
import graphlib from "graphlib";
|
|
@@ -1543,7 +1543,7 @@ function collectCrossStackRefs(node, onRef, unconditional) {
|
|
|
1543
1543
|
// src/provisioning/register-providers.ts
|
|
1544
1544
|
let providerClasses;
|
|
1545
1545
|
function loadProviderClasses() {
|
|
1546
|
-
providerClasses ??= import("./provider-classes-
|
|
1546
|
+
providerClasses ??= import("./provider-classes-BbS4iho1.js");
|
|
1547
1547
|
return providerClasses;
|
|
1548
1548
|
}
|
|
1549
1549
|
function registerAllProviders(registry, classes) {
|
|
@@ -2186,7 +2186,7 @@ var ExportIndexStore = class {
|
|
|
2186
2186
|
try {
|
|
2187
2187
|
return {
|
|
2188
2188
|
ref,
|
|
2189
|
-
state: (await this.stateBackend.getState(ref.stackName, ref.region ?? this.region))?.state
|
|
2189
|
+
state: (await this.stateBackend.getState(ref.stackName, ref.region ?? this.region, { readOnly: true }))?.state
|
|
2190
2190
|
};
|
|
2191
2191
|
} catch (err) {
|
|
2192
2192
|
this.logger.warn(`Failed to read state for ${ref.stackName} (${ref.region ?? ""}) during index rebuild: ${describeAwsFailure(err).detail}`);
|
|
@@ -2409,8 +2409,11 @@ async function fetchCallerIdentity(region) {
|
|
|
2409
2409
|
}
|
|
2410
2410
|
|
|
2411
2411
|
// src/cli/commands/deploy/work-graph.ts
|
|
2412
|
+
function dryRunPredictsAutoCreatedStorage(flags) {
|
|
2413
|
+
return flags.dryRun === true && flags.autoAssetStorage && flags.skipAssets !== true && !flags.useCdkBootstrapAssets;
|
|
2414
|
+
}
|
|
2412
2415
|
async function addStacksToWorkGraph(args) {
|
|
2413
|
-
const { targetStacks, graphKey, stackRegions, baseRegion, assetModeResolver, rawNamedRegion, logger, accountId, stackRedirects, options, assetPublisher, workGraph, dependencyStacks, inferredCrossStackDeps } = args;
|
|
2416
|
+
const { targetStacks, graphKey, stackRegions, baseRegion, assetModeResolver, rawNamedRegion, logger, accountId, stackRedirects, options, assetPublisher, workGraph, dependencyStacks, inferredCrossStackDeps, dryRunPredictsAutoCreatedStorage = false } = args;
|
|
2414
2417
|
for (const stack of targetStacks) {
|
|
2415
2418
|
const stackNodeId = `stack:${graphKey(stack)}`;
|
|
2416
2419
|
const stackDeps = /* @__PURE__ */ new Set();
|
|
@@ -2442,6 +2445,31 @@ async function addStacksToWorkGraph(args) {
|
|
|
2442
2445
|
}
|
|
2443
2446
|
}
|
|
2444
2447
|
}
|
|
2448
|
+
if (stack.legacyAssets) {
|
|
2449
|
+
const assetRegion = stackRegions.get(stack) ?? deployStackRegion(stack, baseRegion);
|
|
2450
|
+
const plan = await prepareLegacyStackAssets(stack, {
|
|
2451
|
+
assetMode: async () => {
|
|
2452
|
+
const mode = await assetModeResolver.resolve(stack.region || rawNamedRegion || assetRegion);
|
|
2453
|
+
return mode.mode === "legacy" && dryRunPredictsAutoCreatedStorage ? predictedAutoCreatedAssetMode(accountId, assetRegion) : mode;
|
|
2454
|
+
},
|
|
2455
|
+
accountId,
|
|
2456
|
+
region: assetRegion
|
|
2457
|
+
});
|
|
2458
|
+
if (plan && !options.skipAssets && legacyPlanAssetCount(plan) > 0) {
|
|
2459
|
+
const nodeIds = assetPublisher.addManifestToGraph(workGraph, plan.manifest, {
|
|
2460
|
+
accountId,
|
|
2461
|
+
region: assetRegion,
|
|
2462
|
+
...options.profile && { profile: options.profile },
|
|
2463
|
+
nodePrefix: `${graphKey(stack)}:`,
|
|
2464
|
+
cdkOutputDir: stack.legacyAssets.assemblyDir,
|
|
2465
|
+
...stack.assetOutdir !== void 0 && { assetOutdir: stack.assetOutdir },
|
|
2466
|
+
bucketsChosenByCdkd: true,
|
|
2467
|
+
recognizedImageDestinations: plan.recognizedImageDestinations,
|
|
2468
|
+
repositoriesToEnsure: plan.repositoriesToEnsure
|
|
2469
|
+
});
|
|
2470
|
+
for (const id of nodeIds) stackDeps.add(id);
|
|
2471
|
+
}
|
|
2472
|
+
}
|
|
2445
2473
|
for (const depStack of dependencyStacks(stack, inferredCrossStackDeps, targetStacks)) stackDeps.add(`stack:${graphKey(depStack)}`);
|
|
2446
2474
|
workGraph.addNode({
|
|
2447
2475
|
id: stackNodeId,
|
|
@@ -2801,7 +2829,7 @@ async function findDownstreamConsumers(input) {
|
|
|
2801
2829
|
const region = ref.region ?? input.baseRegion;
|
|
2802
2830
|
if (ref.stackName === input.producerStack && region === input.producerRegion) return null;
|
|
2803
2831
|
try {
|
|
2804
|
-
const got = await input.stateBackend.getState(ref.stackName, region);
|
|
2832
|
+
const got = await input.stateBackend.getState(ref.stackName, region, { readOnly: true });
|
|
2805
2833
|
if (!got) return null;
|
|
2806
2834
|
const out = [];
|
|
2807
2835
|
const producerRegion = canonicalizeRegion(input.producerRegion);
|
|
@@ -3212,6 +3240,7 @@ async function deployStackInScope(ctx, stackInfo, stackRegion, stackAwsClients)
|
|
|
3212
3240
|
}
|
|
3213
3241
|
}
|
|
3214
3242
|
const assetRedirect = stackRedirects.get(stackInfo);
|
|
3243
|
+
const updatePolicy = resolveUpdatePolicy(options.updatePolicy);
|
|
3215
3244
|
const deployEngineOptions = {
|
|
3216
3245
|
concurrency: options.concurrency,
|
|
3217
3246
|
dryRun: options.dryRun,
|
|
@@ -3238,6 +3267,7 @@ async function deployStackInScope(ctx, stackInfo, stackRegion, stackAwsClients)
|
|
|
3238
3267
|
producerLookup,
|
|
3239
3268
|
...stackInfo.account && { consumerAccount: stackInfo.account },
|
|
3240
3269
|
captureObservedState: resolveCaptureObservedState(options.captureObservedState),
|
|
3270
|
+
...updatePolicy !== void 0 && { updatePolicy },
|
|
3241
3271
|
...options.resourceWarnAfter?.globalMs !== void 0 && { resourceWarnAfterMs: options.resourceWarnAfter.globalMs },
|
|
3242
3272
|
...options.resourceTimeout?.globalMs !== void 0 && { resourceTimeoutMs: options.resourceTimeout.globalMs },
|
|
3243
3273
|
...options.resourceWarnAfter?.perTypeMs && { resourceWarnAfterByType: options.resourceWarnAfter.perTypeMs },
|
|
@@ -3568,7 +3598,13 @@ async function deployCommand(stacks, options) {
|
|
|
3568
3598
|
assetPublisher,
|
|
3569
3599
|
workGraph,
|
|
3570
3600
|
dependencyStacks,
|
|
3571
|
-
inferredCrossStackDeps
|
|
3601
|
+
inferredCrossStackDeps,
|
|
3602
|
+
dryRunPredictsAutoCreatedStorage: dryRunPredictsAutoCreatedStorage({
|
|
3603
|
+
dryRun: options.dryRun,
|
|
3604
|
+
autoAssetStorage,
|
|
3605
|
+
skipAssets: options.skipAssets,
|
|
3606
|
+
useCdkBootstrapAssets
|
|
3607
|
+
})
|
|
3572
3608
|
});
|
|
3573
3609
|
const summary = workGraph.summary();
|
|
3574
3610
|
logger.debug(`Work graph: ${summary["asset-publish"]} asset(s), ${summary["stack"]} stack(s)`);
|
|
@@ -5872,7 +5908,7 @@ async function computeStackDiff(loadedState, template, region, stackName, stateB
|
|
|
5872
5908
|
// src/cli/commands/diff-recursive/load-state.ts
|
|
5873
5909
|
async function loadStateOrEmpty(stackName, region, stateBackend, refusalRecovery) {
|
|
5874
5910
|
const refactorMarker = readRefactorMarkerOnce(stateBackend);
|
|
5875
|
-
const result = await stateBackend.getState(stackName, region);
|
|
5911
|
+
const result = await stateBackend.getState(stackName, region, { readOnly: true });
|
|
5876
5912
|
const markerRefusal = refactorMarkerRefusalMessage(await refactorMarker, stackName, region, "cdkd deploy");
|
|
5877
5913
|
if (result) {
|
|
5878
5914
|
const unreadable = [];
|
|
@@ -5905,6 +5941,8 @@ async function loadStateOrEmpty(stackName, region, stateBackend, refusalRecovery
|
|
|
5905
5941
|
}
|
|
5906
5942
|
if (hasPendingMovesOut(result.state)) deployRefusals.push(pendingMovesRefusalMessage(result.state, stackName, region, "cdkd deploy"));
|
|
5907
5943
|
if (markerRefusal !== void 0) deployRefusals.push(markerRefusal);
|
|
5944
|
+
const newerVersion = readOnlyStateVersionOf(result.state);
|
|
5945
|
+
if (newerVersion !== void 0) deployRefusals.push(`The state record was written by a newer cdkd (state schema version ${newerVersion}). This preview read it; 'cdkd deploy' with this cdkd binary refuses to write it. Upgrade cdkd to a version that supports schema ${newerVersion}.`);
|
|
5908
5946
|
if (isReadableBag(result.state.outputs) && !hasReadableExportSet(result.state)) logger.warn(malformedExportNamesWarning(stackName, region, refusalRecovery));
|
|
5909
5947
|
return {
|
|
5910
5948
|
state: result.state,
|
|
@@ -5980,7 +6018,7 @@ async function buildDiffTree(args) {
|
|
|
5980
6018
|
stackName,
|
|
5981
6019
|
region,
|
|
5982
6020
|
nestedTemplates,
|
|
5983
|
-
readRecord: async (name, childRegion) => (await stateBackend.getState(name, childRegion))?.state
|
|
6021
|
+
readRecord: async (name, childRegion) => (await stateBackend.getState(name, childRegion, { readOnly: true }))?.state
|
|
5984
6022
|
});
|
|
5985
6023
|
for (const row of nestedSsmCheck?.forcedRows ?? []) logger.info(nestedSsmNameRowNote(row));
|
|
5986
6024
|
for (const row of nestedSsmCheck?.deferredRows ?? []) logger.info(nestedSsmNameDeferredNote(row));
|
|
@@ -6610,13 +6648,16 @@ async function diffCommand(stacks, options) {
|
|
|
6610
6648
|
inRegion: (healRegion, fn) => runWithStackAwsClients(stackRegionScope(healRegion).clients, fn)
|
|
6611
6649
|
});
|
|
6612
6650
|
const recursive = (options.recursive ?? false) || failOn === "destructive" || failOn === "broadening" || securityOnly;
|
|
6613
|
-
const
|
|
6651
|
+
const assetModeOptions = {
|
|
6614
6652
|
stateBackend,
|
|
6615
6653
|
stsRegion: region,
|
|
6616
6654
|
...options.profile && { profile: options.profile },
|
|
6617
6655
|
useCdkBootstrapAssets: resolveUseCdkBootstrapAssets(options.useCdkBootstrapAssets),
|
|
6618
6656
|
suppressLegacyNotice: true
|
|
6619
|
-
}
|
|
6657
|
+
};
|
|
6658
|
+
const assetModeContext = createLazyAssetModeContext(assetModeOptions);
|
|
6659
|
+
const resolveAssetRedirect = createAssetRedirectResolver(assetModeOptions, assetModeContext);
|
|
6660
|
+
const bindLegacyAssets = createLegacyAssetParameterBinder(assetModeContext);
|
|
6620
6661
|
const trees = [];
|
|
6621
6662
|
const treeEnvs = [];
|
|
6622
6663
|
const producerLookup = producerLookupOver(allStacks);
|
|
@@ -6626,6 +6667,11 @@ async function diffCommand(stacks, options) {
|
|
|
6626
6667
|
logger.info(`\nCalculating diff for stack: ${shownName}`);
|
|
6627
6668
|
const stackRegion = await regionForStack(stackInfo.stackName, stackInfo.region);
|
|
6628
6669
|
const assetRedirect = await resolveAssetRedirect(stackInfo.assetManifestPath, stackRegion);
|
|
6670
|
+
try {
|
|
6671
|
+
await bindLegacyAssets(stackInfo, stackRegion);
|
|
6672
|
+
} catch (error) {
|
|
6673
|
+
logger.warn(safeMsg`Could not bind the LegacyStackSynthesizer asset parameters of stack ${stackInfo.stackName}, ` + safeMsg`so values built from them show as unresolved: ${error instanceof Error ? error.message : String(error)}`);
|
|
6674
|
+
}
|
|
6629
6675
|
if (assetRedirect) {
|
|
6630
6676
|
const rewritten = rewriteTemplateAssetReferences(stackInfo.template, assetRedirect);
|
|
6631
6677
|
logger.debug(`Rewrote ${rewritten} asset reference(s) to cdkd asset storage in template of stack ${stackInfo.stackName}`);
|
|
@@ -9839,7 +9885,7 @@ async function driftProducerRegionEvidence(state, stackName, region, stateBacken
|
|
|
9839
9885
|
const parentRegion = typeof state.parentRegion === "string" ? state.parentRegion : region;
|
|
9840
9886
|
let parent;
|
|
9841
9887
|
try {
|
|
9842
|
-
parent = await stateBackend.getState(parentName, parentRegion);
|
|
9888
|
+
parent = await stateBackend.getState(parentName, parentRegion, { readOnly: true });
|
|
9843
9889
|
} catch (error) {
|
|
9844
9890
|
noteUnreadableAncestor(parentName, parentRegion, `it could not be read (${describeAwsFailure(error).detail})`);
|
|
9845
9891
|
return inheritProducerRegions(own, void 0);
|
|
@@ -14992,7 +15038,7 @@ async function stateListCommand(options) {
|
|
|
14992
15038
|
}
|
|
14993
15039
|
const details = await Promise.all(refs.map(async (ref) => {
|
|
14994
15040
|
const lookupRegion = ref.region ?? "";
|
|
14995
|
-
const [stateRead, lockRead] = await Promise.all([readOrFailure(() => lookupRegion ? setup.stateBackend.getState(ref.stackName, lookupRegion) : Promise.resolve(null)), readOrFailure(() => setup.lockManager.isLocked(ref.stackName, ref.region))]);
|
|
15041
|
+
const [stateRead, lockRead] = await Promise.all([readOrFailure(() => lookupRegion ? setup.stateBackend.getState(ref.stackName, lookupRegion, { readOnly: true }) : Promise.resolve(null)), readOrFailure(() => setup.lockManager.isLocked(ref.stackName, ref.region))]);
|
|
14996
15042
|
const state = stateRead.ok ? stateRead.value?.state : void 0;
|
|
14997
15043
|
const resourceCount = !stateRead.ok ? null : state ? resourceCountOrNull(state.resources) : 0;
|
|
14998
15044
|
const stateReadErrorKind = !stateRead.ok ? "read-failed" : resourceCount === null ? "resources-malformed" : null;
|
|
@@ -15038,7 +15084,7 @@ async function renderTreeMode(refs, stateBackend, asJson) {
|
|
|
15038
15084
|
if (!ref.region) return { stackName: ref.stackName };
|
|
15039
15085
|
let state;
|
|
15040
15086
|
try {
|
|
15041
|
-
state = (await stateBackend.getState(ref.stackName, ref.region))?.state;
|
|
15087
|
+
state = (await stateBackend.getState(ref.stackName, ref.region, { readOnly: true }))?.state;
|
|
15042
15088
|
} catch {
|
|
15043
15089
|
return {
|
|
15044
15090
|
stackName: ref.stackName,
|
|
@@ -15155,7 +15201,7 @@ async function printStackResources(stackName, options, setup) {
|
|
|
15155
15201
|
const refs = await setup.stateBackend.listStacks();
|
|
15156
15202
|
const ref = resolveSingleRegion(stackName, refs, options.stackRegion);
|
|
15157
15203
|
if (!ref.region) throw legacyRecordRefusal(stackName);
|
|
15158
|
-
const stateResult = await setup.stateBackend.getState(stackName, ref.region);
|
|
15204
|
+
const stateResult = await setup.stateBackend.getState(stackName, ref.region, { readOnly: true });
|
|
15159
15205
|
if (!stateResult) throw new Error(`No state found for stack ${formatStackRefSafe(ref)} in s3://${setup.bucket}/${setup.prefix}/. Run ${proseQuoted(cdkdRemedy("cdkd state list"))} to see available stacks.`);
|
|
15160
15206
|
if (repairMalformedResourcesForReadOnly(stateResult.state)) logger.warn(malformedResourcesWarning(stackName, ref.region, renderRecovery(options, setup)));
|
|
15161
15207
|
if (options.long || options.json) repairRenderedContainers(stateResult.state, RESOURCES_RENDERED_CONTAINERS, stackName, ref.region, logger, renderRecovery(options, setup));
|
|
@@ -18089,6 +18135,7 @@ async function exportCommand(stackArg, options) {
|
|
|
18089
18135
|
await stateBackend.verifyBucketExists();
|
|
18090
18136
|
const lockManager = new LockManager(awsClients.s3, stateConfig);
|
|
18091
18137
|
let template;
|
|
18138
|
+
let legacyAssetStack;
|
|
18092
18139
|
let resolvedStackName;
|
|
18093
18140
|
let synthedRegion;
|
|
18094
18141
|
let templateFormat = "json";
|
|
@@ -18127,6 +18174,7 @@ async function exportCommand(stackArg, options) {
|
|
|
18127
18174
|
else throw new Error(`Multiple stacks found: ${result.stacks.map(describeStack).join(", ")}. Specify the stack name as a positional argument.`);
|
|
18128
18175
|
refuseFailedLookups([stackInfo], result.stacks, result.failedLookups);
|
|
18129
18176
|
template = stackInfo.template;
|
|
18177
|
+
legacyAssetStack = stackInfo;
|
|
18130
18178
|
resolvedStackName = stackInfo.stackName;
|
|
18131
18179
|
synthedRegion = stackInfo.region;
|
|
18132
18180
|
rootNestedTemplatePaths = stackInfo.nestedTemplates ?? nullPrototypeRecord();
|
|
@@ -18138,6 +18186,12 @@ async function exportCommand(stackArg, options) {
|
|
|
18138
18186
|
const cfnStackName = options.cfnStackName ?? resolvedStackName;
|
|
18139
18187
|
const targetRegion = await pickStackRegion$1(stateBackend, resolvedStackName, synthedRegion, options.stackRegion);
|
|
18140
18188
|
logger.info(`Migrating cdkd stack ${quotedOrNotShown(resolvedStackName)} (${quotedRegion(targetRegion)}) → CloudFormation stack ${quotedOrNotShown(cfnStackName)}`);
|
|
18189
|
+
if (legacyAssetStack) await bindLegacyStackAssetParameters(legacyAssetStack, targetRegion, {
|
|
18190
|
+
stateBackend,
|
|
18191
|
+
stsRegion: effectiveRegion.region,
|
|
18192
|
+
useCdkBootstrapAssets: resolveUseCdkBootstrapAssets(),
|
|
18193
|
+
...options.profile && { profile: options.profile }
|
|
18194
|
+
});
|
|
18141
18195
|
await assertCfnStackAbsent(awsClients.cloudFormation, cfnStackName);
|
|
18142
18196
|
const stateData = await stateBackend.getState(resolvedStackName, targetRegion);
|
|
18143
18197
|
if (!stateData) throw new Error(`No cdkd state found for stack ${quotedOrNotShown(resolvedStackName)} (${quotedRegion(targetRegion)}). Nothing to migrate.`);
|
|
@@ -18387,7 +18441,7 @@ async function printStackShow(stackName, options, setup) {
|
|
|
18387
18441
|
const refs = await setup.stateBackend.listStacks();
|
|
18388
18442
|
const ref = resolveSingleRegion(stackName, refs, options.stackRegion);
|
|
18389
18443
|
if (!ref.region) throw legacyRecordRefusal(stackName);
|
|
18390
|
-
const [stateResult, lockInfo] = await Promise.all([setup.stateBackend.getState(stackName, ref.region), setup.lockManager.getLockInfo(stackName, ref.region)]);
|
|
18444
|
+
const [stateResult, lockInfo] = await Promise.all([setup.stateBackend.getState(stackName, ref.region, { readOnly: true }), setup.lockManager.getLockInfo(stackName, ref.region)]);
|
|
18391
18445
|
if (!stateResult) throw new Error(`No state found for stack ${formatStackRefSafe(ref)} in s3://${setup.bucket}/${setup.prefix}/. Run ${proseQuoted(cdkdRemedy("cdkd state list"))} to see available stacks.`);
|
|
18392
18446
|
if (options.showNested) {
|
|
18393
18447
|
const treeWithLocks = await loadLocksForTree(await buildCdkdStateStackTree(stackName, ref.region, setup.stateBackend, stateResult.state, renderRecovery(options, setup)), setup.lockManager, lockInfo);
|
|
@@ -19458,7 +19512,7 @@ async function protectedRootOf(stackName, state, region, backend) {
|
|
|
19458
19512
|
seen.add(name);
|
|
19459
19513
|
const parentRegion = typeof record.parentRegion === "string" ? record.parentRegion : region;
|
|
19460
19514
|
name = parent;
|
|
19461
|
-
record = (await backend.getState(parent, parentRegion))?.state;
|
|
19515
|
+
record = (await backend.getState(parent, parentRegion, { readOnly: true }))?.state;
|
|
19462
19516
|
}
|
|
19463
19517
|
}
|
|
19464
19518
|
async function stateDestroyCommand(stackArgs, options) {
|
|
@@ -21068,7 +21122,7 @@ async function previewNestedChildRevert(backend, childStackName, region, runId,
|
|
|
21068
21122
|
const withPointer = (lines) => plain ? lines : [...lines, ` ${nestedNameDescribedNote()}`];
|
|
21069
21123
|
if (runId === void 0) return withPointer([` (${shown}: this segment carries no deploy run id — its revert will FAIL and the segment is kept)`]);
|
|
21070
21124
|
try {
|
|
21071
|
-
const [childState, journal] = await Promise.all([backend.getState(childStackName, region), backend.loadRollbackJournal(childStackName, region)]);
|
|
21125
|
+
const [childState, journal] = await Promise.all([backend.getState(childStackName, region, { readOnly: true }), backend.loadRollbackJournal(childStackName, region)]);
|
|
21072
21126
|
const segments = (journal?.segments ?? []).filter((s) => s.runId === runId);
|
|
21073
21127
|
if (!childState || segments.length === 0) return withPointer([` (${shown}: no journal record for this run — its revert will FAIL and the segment is kept)`]);
|
|
21074
21128
|
const view = { ...childState.state.resources };
|
|
@@ -23391,13 +23445,16 @@ async function refactorCommand(stacks, options) {
|
|
|
23391
23445
|
registerAllProviders(registry, providerClasses);
|
|
23392
23446
|
const canonicalizeProperties = makeCanonicalizePropertiesFn(registry);
|
|
23393
23447
|
const producerLookup = producerLookupOver(allStacks);
|
|
23394
|
-
const
|
|
23448
|
+
const assetModeOptions = {
|
|
23395
23449
|
stateBackend,
|
|
23396
23450
|
stsRegion: region,
|
|
23397
23451
|
...options.profile && { profile: options.profile },
|
|
23398
23452
|
useCdkBootstrapAssets: resolveUseCdkBootstrapAssets(options.useCdkBootstrapAssets),
|
|
23399
23453
|
suppressLegacyNotice: true
|
|
23400
|
-
}
|
|
23454
|
+
};
|
|
23455
|
+
const assetModeContext = createLazyAssetModeContext(assetModeOptions);
|
|
23456
|
+
const resolveAssetRedirect = createAssetRedirectResolver(assetModeOptions, assetModeContext);
|
|
23457
|
+
const bindLegacyAssets = createLegacyAssetParameterBinder(assetModeContext);
|
|
23401
23458
|
let callerAccount;
|
|
23402
23459
|
const accountOf = async (stackInfo) => {
|
|
23403
23460
|
if (stackInfo.account) return stackInfo.account;
|
|
@@ -23445,6 +23502,7 @@ async function refactorCommand(stacks, options) {
|
|
|
23445
23502
|
if (await stateBackend.loadRollbackJournal(stackInfo.stackName, stackRegion) !== null) throw rollbackJournalRefusal(stackInfo.stackName, stackRegion);
|
|
23446
23503
|
const assetRedirect = await resolveAssetRedirect(stackInfo.assetManifestPath, stackRegion);
|
|
23447
23504
|
if (assetRedirect) rewriteTemplateAssetReferences(stackInfo.template, assetRedirect);
|
|
23505
|
+
await bindLegacyAssets(stackInfo, stackRegion);
|
|
23448
23506
|
const overrides = environments.length === 0 ? [] : overridesForStack(environments, stackInfo.stackName, await accountOf(stackInfo), stackRegion, options.revert === true);
|
|
23449
23507
|
const diff = async (state) => {
|
|
23450
23508
|
const result = await computeStackDiff(state, stackInfo.template, stackRegion, stackInfo.stackName, stateBackend, diffCalculator, {
|
|
@@ -23704,6 +23762,47 @@ async function publishAssetsCommand(stacks, options) {
|
|
|
23704
23762
|
let assetCount = 0;
|
|
23705
23763
|
let error;
|
|
23706
23764
|
try {
|
|
23765
|
+
if (stack.legacyAssets) {
|
|
23766
|
+
logger.info(safeMsg`\nPublishing assets for stack: ${describeStack(stack)}`);
|
|
23767
|
+
const stackRegion = await regionForStack(stack);
|
|
23768
|
+
const plan = await prepareLegacyStackAssets(stack, {
|
|
23769
|
+
assetMode: async () => {
|
|
23770
|
+
const modeResolver = useCdkBootstrapAssets ? null : await getModeResolver();
|
|
23771
|
+
return modeResolver ? modeResolver.resolve(stack.region || rawNamedRegion || stackRegion) : { mode: "legacy" };
|
|
23772
|
+
},
|
|
23773
|
+
accountId,
|
|
23774
|
+
region: stackRegion
|
|
23775
|
+
});
|
|
23776
|
+
const workGraph = new WorkGraph();
|
|
23777
|
+
assetCount = (plan ? assetPublisher.addManifestToGraph(workGraph, plan.manifest, {
|
|
23778
|
+
accountId,
|
|
23779
|
+
region: stackRegion,
|
|
23780
|
+
...options.profile && { profile: options.profile },
|
|
23781
|
+
nodePrefix: `${stack.stackName}:`,
|
|
23782
|
+
cdkOutputDir: stack.legacyAssets.assemblyDir,
|
|
23783
|
+
...stack.assetOutdir !== void 0 && { assetOutdir: stack.assetOutdir },
|
|
23784
|
+
bucketsChosenByCdkd: true,
|
|
23785
|
+
recognizedImageDestinations: plan.recognizedImageDestinations,
|
|
23786
|
+
repositoriesToEnsure: plan.repositoriesToEnsure
|
|
23787
|
+
}) : []).filter((id) => id.startsWith("asset-publish:")).length;
|
|
23788
|
+
if (assetCount === 0) logger.info(" (no assets to publish)");
|
|
23789
|
+
else {
|
|
23790
|
+
await workGraph.execute({
|
|
23791
|
+
"asset-build": options.imageBuildConcurrency,
|
|
23792
|
+
"asset-publish": options.assetPublishConcurrency,
|
|
23793
|
+
stack: 0
|
|
23794
|
+
}, (node) => assetPublisher.executeNode(node));
|
|
23795
|
+
const seconds = ((Date.now() - startedAt) / 1e3).toFixed(2);
|
|
23796
|
+
logger.info(safeMsg` ✓ Published ${assetCount} asset(s) in ${seconds}s`);
|
|
23797
|
+
}
|
|
23798
|
+
results.push({
|
|
23799
|
+
stackName: stack.stackName,
|
|
23800
|
+
displayName: stack.displayName,
|
|
23801
|
+
assetCount,
|
|
23802
|
+
durationMs: Date.now() - startedAt
|
|
23803
|
+
});
|
|
23804
|
+
continue;
|
|
23805
|
+
}
|
|
23707
23806
|
if (!stack.assetManifestPath) {
|
|
23708
23807
|
logger.debug(`Stack ${stack.stackName} has no asset manifest; nothing to publish`);
|
|
23709
23808
|
results.push({
|
|
@@ -25370,13 +25469,15 @@ async function importCommand(stackArg, options) {
|
|
|
25370
25469
|
const regionClients = targetClients ?? awsClients;
|
|
25371
25470
|
const providerRegistry = new ProviderRegistry();
|
|
25372
25471
|
registerAllProviders(providerRegistry, providerClasses);
|
|
25373
|
-
const
|
|
25472
|
+
const assetModeOptions = {
|
|
25374
25473
|
stateBackend,
|
|
25375
25474
|
stsRegion: region,
|
|
25376
25475
|
...options.profile && { profile: options.profile },
|
|
25377
25476
|
useCdkBootstrapAssets: resolveUseCdkBootstrapAssets(options.useCdkBootstrapAssets),
|
|
25378
25477
|
suppressLegacyNotice: true
|
|
25379
|
-
}
|
|
25478
|
+
};
|
|
25479
|
+
const assetModeContext = createLazyAssetModeContext(assetModeOptions);
|
|
25480
|
+
const assetRedirect = await createAssetRedirectResolver(assetModeOptions, assetModeContext)(stackInfo.assetManifestPath, targetRegion);
|
|
25380
25481
|
let stateTemplate = stackInfo.template;
|
|
25381
25482
|
if (assetRedirect) {
|
|
25382
25483
|
stateTemplate = structuredClone(stackInfo.template);
|
|
@@ -25384,6 +25485,21 @@ async function importCommand(stackArg, options) {
|
|
|
25384
25485
|
logger.debug(`Rewrote ${rewritten} asset reference(s) to cdkd asset storage in template of stack ${stackInfo.stackName}`);
|
|
25385
25486
|
if (rewritten > 0) logger.info(`Note: ${rewritten} asset reference(s) in stack ${stackInfo.stackName} are recorded in state at their pre-rewrite (CDK bootstrap) values, so the next 'cdkd deploy' repoints any resource that still holds them to cdkd asset storage.`);
|
|
25386
25487
|
}
|
|
25488
|
+
if (stackInfo.legacyAssets) {
|
|
25489
|
+
const bindLegacyAssets = createLegacyAssetParameterBinder(assetModeContext);
|
|
25490
|
+
if ((await bindLegacyAssets(stackInfo, targetRegion))?.mode === "cdkd-assets") {
|
|
25491
|
+
stateTemplate = structuredClone(stackInfo.template);
|
|
25492
|
+
try {
|
|
25493
|
+
await bindLegacyAssets({
|
|
25494
|
+
...stackInfo,
|
|
25495
|
+
template: stateTemplate
|
|
25496
|
+
}, targetRegion, { assetMode: { mode: "legacy" } });
|
|
25497
|
+
} catch (error) {
|
|
25498
|
+
if (!(error instanceof CdkToolkitBucketMissingError)) throw error;
|
|
25499
|
+
logger.info(safeMsg`No CDKToolkit stack in ${targetRegion}: recording the cdkd asset storage values for the LegacyStackSynthesizer assets of stack ${stackInfo.stackName}.`);
|
|
25500
|
+
}
|
|
25501
|
+
}
|
|
25502
|
+
}
|
|
25387
25503
|
const overrides = parseResourceOverrides(options.resource, options.resourceMapping, options.resourceMappingInline);
|
|
25388
25504
|
if (overrides.size > 0) logger.debug(`User-supplied physical IDs: ${[...overrides.keys()].join(", ")}`);
|
|
25389
25505
|
const migrationCfnStackName = options.migrateFromCloudformation ? typeof options.migrateFromCloudformation === "string" && options.migrateFromCloudformation.length > 0 ? options.migrateFromCloudformation : stackInfo.stackName : void 0;
|
|
@@ -25921,7 +26037,7 @@ async function loadStateForStack(stackName, synthRegion, opts) {
|
|
|
25921
26037
|
warn(`${prefix}: stack ${quotedOrDescribed(stackName, "stack name")} has state in multiple regions (${seen}). Re-run with --stack-region '<region>'. Falling back.`);
|
|
25922
26038
|
return;
|
|
25923
26039
|
}
|
|
25924
|
-
const stateData = await stateBackend.getState(stackName, targetRegion);
|
|
26040
|
+
const stateData = await stateBackend.getState(stackName, targetRegion, { readOnly: true });
|
|
25925
26041
|
if (!stateData) {
|
|
25926
26042
|
warn(`${prefix}: state record for '${stackName}' (${targetRegion}) returned empty. Falling back.`);
|
|
25927
26043
|
return;
|
|
@@ -26019,7 +26135,7 @@ async function buildCrossStackResolver(consumerRegion, opts) {
|
|
|
26019
26135
|
stateBucket,
|
|
26020
26136
|
statePrefix: opts.statePrefix
|
|
26021
26137
|
};
|
|
26022
|
-
const secrets = new ProducerSecretReader((stackName, region) => stateBackend.getState(stackName, region), (message) => logger.debug(`${prefix}: ${message}`), () => stateBackend.listStacks());
|
|
26138
|
+
const secrets = new ProducerSecretReader((stackName, region) => stateBackend.getState(stackName, region, { readOnly: true }), (message) => logger.debug(`${prefix}: ${message}`), () => stateBackend.listStacks());
|
|
26023
26139
|
const judged = {
|
|
26024
26140
|
async resolveImportJudged(exportName) {
|
|
26025
26141
|
try {
|
|
@@ -26047,7 +26163,7 @@ async function buildCrossStackResolver(consumerRegion, opts) {
|
|
|
26047
26163
|
const region = ref.region ?? consumerRegion;
|
|
26048
26164
|
if (canonicalizeRegion(region) !== canonicalConsumerRegion) continue;
|
|
26049
26165
|
try {
|
|
26050
|
-
const got = await stateBackend.getState(ref.stackName, region);
|
|
26166
|
+
const got = await stateBackend.getState(ref.stackName, region, { readOnly: true });
|
|
26051
26167
|
if (!got || !got.state.outputs) continue;
|
|
26052
26168
|
if (importableOutputKeys(got.state).includes(exportName)) {
|
|
26053
26169
|
const served = servedOutputValue(got.state.outputs[exportName]);
|
|
@@ -26084,7 +26200,7 @@ async function buildCrossStackResolver(consumerRegion, opts) {
|
|
|
26084
26200
|
};
|
|
26085
26201
|
};
|
|
26086
26202
|
try {
|
|
26087
|
-
const got = await stateBackend.getState(producerStack, producerRegion);
|
|
26203
|
+
const got = await stateBackend.getState(producerStack, producerRegion, { readOnly: true });
|
|
26088
26204
|
if (got) return await readOutput(got, producerRegion);
|
|
26089
26205
|
const canonicalProducerRegion = canonicalizeRegion(producerRegion);
|
|
26090
26206
|
const refs = await stateBackend.listStacks();
|
|
@@ -26093,7 +26209,7 @@ async function buildCrossStackResolver(consumerRegion, opts) {
|
|
|
26093
26209
|
const region = ref.region ?? producerRegion;
|
|
26094
26210
|
if (region === producerRegion) continue;
|
|
26095
26211
|
if (canonicalizeRegion(region) !== canonicalProducerRegion) continue;
|
|
26096
|
-
const recovered = await readOutput(await stateBackend.getState(producerStack, region), region);
|
|
26212
|
+
const recovered = await readOutput(await stateBackend.getState(producerStack, region, { readOnly: true }), region);
|
|
26097
26213
|
if (recovered.value !== void 0) {
|
|
26098
26214
|
logger.debug(`${prefix}: Fn::GetStackOutput '${producerStack}.${outputName}' resolved from the case-variant state record '${region}' (no record spells '${producerRegion}' exactly).`);
|
|
26099
26215
|
return recovered;
|
|
@@ -34323,4 +34439,4 @@ function collectVerbFlags(program) {
|
|
|
34323
34439
|
}
|
|
34324
34440
|
|
|
34325
34441
|
export { resolveSecretDerivedPrincipals as a, buildProgram, isResolvableSecretPrincipalList as i, runDestroyForStack as n, holdsUnprovenSecretPrincipalToken as r, canonicalizeIpv4Cidr as t };
|
|
34326
|
-
//# sourceMappingURL=program-
|
|
34442
|
+
//# sourceMappingURL=program-BfTCUNof.js.map
|