@cdkd/cli 0.352.11 → 0.352.13
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-BfQftjup.js → ambient-client-defaults-_b32vSt-.js} +3 -3
- package/dist/{ambient-client-defaults-BfQftjup.js.map → ambient-client-defaults-_b32vSt-.js.map} +1 -1
- package/dist/{asg-provider-B_4pcw4I.js → asg-provider-DY41BqOf.js} +6 -6
- package/dist/{asg-provider-B_4pcw4I.js.map → asg-provider-DY41BqOf.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{custom-resource-runtime-CqgBKNa_.js → custom-resource-runtime-QfwICca8.js} +6 -6
- package/dist/{custom-resource-runtime-CqgBKNa_.js.map → custom-resource-runtime-QfwICca8.js.map} +1 -1
- package/dist/{db-associated-roles-j5wKB1V4.js → db-associated-roles-ChWaJgql.js} +2 -2
- package/dist/{db-associated-roles-j5wKB1V4.js.map → db-associated-roles-ChWaJgql.js.map} +1 -1
- package/dist/{delete-started-CqhLfKwS.js → delete-started-BAl80KJ-.js} +4 -4
- package/dist/{delete-started-CqhLfKwS.js.map → delete-started-BAl80KJ-.js.map} +1 -1
- package/dist/{deploy-engine-DvGT0BH-.js → deploy-engine-BQral6za.js} +1052 -827
- package/dist/deploy-engine-BQral6za.js.map +1 -0
- package/dist/{diff-calculator-DcfE2c-4.js → diff-calculator-Dj6UGllF.js} +297 -23
- package/dist/diff-calculator-Dj6UGllF.js.map +1 -0
- package/dist/{ec2-termination-protection-DHNUzWHz.js → ec2-termination-protection-D1fp1UTY.js} +6 -6
- package/dist/{ec2-termination-protection-DHNUzWHz.js.map → ec2-termination-protection-D1fp1UTY.js.map} +1 -1
- package/dist/{ecr-uri-D7lbBR5B.js → ecr-uri-BNOBWmtv.js} +2 -2
- package/dist/{ecr-uri-D7lbBR5B.js.map → ecr-uri-BNOBWmtv.js.map} +1 -1
- package/dist/{expected-bucket-owner-xGmx3Vtv.js → expected-bucket-owner-DvEnZMQG.js} +2 -2
- package/dist/{expected-bucket-owner-xGmx3Vtv.js.map → expected-bucket-owner-DvEnZMQG.js.map} +1 -1
- package/dist/{iam-role-provider-DJvOTPL2.js → iam-role-provider-DWk5DUSX.js} +8 -8
- package/dist/{iam-role-provider-DJvOTPL2.js.map → iam-role-provider-DWk5DUSX.js.map} +1 -1
- package/dist/{image-plan-BAVYrU--.js → image-plan-DQ0trmM_.js} +14 -14
- package/dist/{image-plan-BAVYrU--.js.map → image-plan-DQ0trmM_.js.map} +1 -1
- package/dist/index.d.ts +114 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-BZAXATu5.js → logger-BmVyKPL2.js} +2 -2
- package/dist/{logger-BZAXATu5.js.map → logger-BmVyKPL2.js.map} +1 -1
- package/dist/{neptune-provider-DvIWf3JD.js → neptune-provider-CaTWycXB.js} +7 -7
- package/dist/{neptune-provider-DvIWf3JD.js.map → neptune-provider-CaTWycXB.js.map} +1 -1
- package/dist/{program-wHPyPSIE.js → program-B8pMildk.js} +186 -175
- package/dist/program-B8pMildk.js.map +1 -0
- package/dist/{provider-classes-DYjNHrv7.js → provider-classes-D3-D7HGf.js} +21 -21
- package/dist/{provider-classes-DYjNHrv7.js.map → provider-classes-D3-D7HGf.js.map} +1 -1
- package/dist/{rds-provider-C0ApHlEg.js → rds-provider-BXsZQCfA.js} +10 -10
- package/dist/{rds-provider-C0ApHlEg.js.map → rds-provider-BXsZQCfA.js.map} +1 -1
- package/dist/{read-replica-B1uGbZ_1.js → read-replica-CaWHwB3m.js} +3 -3
- package/dist/{read-replica-B1uGbZ_1.js.map → read-replica-CaWHwB3m.js.map} +1 -1
- package/dist/{replacement-rules-Dsgiy577.js → replacement-rules-BuvJdDDu.js} +3 -3
- package/dist/{replacement-rules-Dsgiy577.js.map → replacement-rules-BuvJdDDu.js.map} +1 -1
- package/dist/{resource-deadline-CvylpYDt.js → resource-deadline-CB5xO4LO.js} +4 -4
- package/dist/{resource-deadline-CvylpYDt.js.map → resource-deadline-CB5xO4LO.js.map} +1 -1
- package/dist/{run-cli-BfVibwNv.js → run-cli-DlUy-Xfz.js} +2 -2
- package/dist/{run-cli-BfVibwNv.js.map → run-cli-DlUy-Xfz.js.map} +1 -1
- package/dist/{update-removal-23Sp06KY.js → update-removal-i8K9a3aR.js} +22 -22
- package/dist/{update-removal-23Sp06KY.js.map → update-removal-i8K9a3aR.js.map} +1 -1
- package/dist/{version-DheF9mtT.js → version-CK4KyY8m.js} +2 -2
- package/dist/{version-DheF9mtT.js.map → version-CK4KyY8m.js.map} +1 -1
- package/package.json +2 -2
- package/dist/deploy-engine-DvGT0BH-.js.map +0 -1
- package/dist/diff-calculator-DcfE2c-4.js.map +0 -1
- package/dist/program-wHPyPSIE.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
|
|
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-CK4KyY8m.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-DQ0trmM_.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-i8K9a3aR.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-BmVyKPL2.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-_b32vSt-.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 warnDeprecatedNoPrefixCliFlag, C as runDockerForeground, D as synthesisStatusMessage, E as Synthesizer, F as resolveStateBucketWithDefault, G as uploadCfnTemplate, H as CFN_TEMPLATE_URL_LIMIT, I as resolveStateBucketWithDefaultAndSource, J as StageLoadError, K as refuseFailedLookups, L as resolveStateBucketWithSource, M as resolveAutoAssetStorage, N as resolveCaptureObservedState, O as getDefaultStateBucketName, P as resolveSkipPrefix, R as resolveUseCdkBootstrapAssets, S as getDockerCmd, T as abortInFlightMultipartUploads, U as MIGRATE_TMP_PREFIX, V as CFN_TEMPLATE_BODY_LIMIT, W as findLargeInlineResources, X as
|
|
9
|
-
import { $a as withSecretPhysicalIdsMaskedInState, $c as CrossPrefixReadError, $i as refusesFinalSnapshot, $l as hasPlainPrototype, $n as settleUnsettledPrevious, $r as exportNameNoEchoParameters, $s as refuseMalformedResourcePropertiesForExport, $t as displacedOpClause, A as recordedProtectionEvidence, Aa as withCustomResourceStack, Ac as withheldAccountClause, Ai as noEchoComparisonForTemplate, Al as AssetManifestLoader, An as constructPathOf$1, Ao as lacksRecordedRefArn, Ar as segmentCleanupOptions, As as refuseMalformedOrphansForOrphan, Ba as deleteSkipReason, Bi as secretNamePrintingBag, Bl as listNestedTemplateRows, Bn as changedReferenceReason, Bs as refuseMalformedResourceEntries, Bt as updateRefactorMarker, C as pendingMovesOutOf, Ca as NO_LOCAL_CUSTOM_RESOURCES_FLAG, Cc as refuseMalformedResourcesForDeploy, Ci as bold, Cl as isCrossRegionRedirect, Cn as crossStackReadsForPartialSave, Co as coerceParameterTypedValue, Cr as resolveReplacementOldType, Cs as isReadableOrphanRecord, D as findServiceTokenRefusals, Da as localCustomResourceCommand, Dc as repairMalformedResourcesForReadOnly, Di as red, Dl as validateAssetBucketName, Dn as noEchoMacParametersOf, Do as cfnRefValueFromPhysicalId, Dr as isRedactedRecordedValue, Ds as previewableOrphanRecords, E as deferredServiceTokenWarning, Ea as customResourcesRunWithoutApp, Ec as refuseMalformedState, Ei as green, El as readBootstrapMarkerBody, En as noEchoMacBinding, Eo as AWS_NO_VALUE, Es as malformedOrphanRowsKeptWarning, F as readProtection, Fa as setResolvedResourceTimeouts, Fc as hasReadableResources, Fi as completedReplayEntries, Fn as movedToHint, Fo as keepHeldTokenProvenance, Fr as nameScopeOf, Fs as malformedLocalResourceEntriesWarning, Ft as readRefactorMarkerOnce, Ga as isAlwaysLiveAttribute, Gc as PROPERTY_COVERAGE_BY_TYPE, Gi as storedSecretNameNeedles, Gl as ssmResolvedValueType, Gn as parseMappingFile, Go as isNamelessDynamicReferenceError, Gr as resourcesNamingDeclaredParameter, Gs as refuseMalformedResourceEntriesForOrphan, Gt as formatResourceLine, Ha as isWaitAbandonedError, Hl as templateIdentity, Hn as isPairableType, Ho as getAccountInfo, Hr as computeParameterTaint, Hs as refuseMalformedResourceEntriesForDestroy, Ht as readsOnlyNoEchoParameters, Ia as RollbackInlinePolicyWriters, Ic as findActionableSdkUnwired, Ii as journaledOrphanPrintingBag, In as rollbackOrphanIds, Ir as retiredAfterRollback, Is as malformedLocalResourcesWarning, It as refactorMarkerMovesOf, Jc as splitImportedOps, Ji as PRE_DELETE_SNAPSHOT_TYPES, Jl as decodeListingKey, Jn as referencedLogicalIds, Jo as withSharedDrainBudget, Jr as exportAliasCollisionScrubWarning, Js as malformedDriftResourcePropertiesWarning, Ka as poisonRenderedSpellingsCollidingIn, Kc as TemplateParser, Ki as extractDeploymentEventError, Kl as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, Kn as propertiesChangedReason, Ko as carriesDynamicReference, Kr as WITHHELD_NAME_DISPLAY, Ks as repairMalformedResourceEntriesForReadOnly, La as UNSPECIFIED_SKIP_REASON, Lc as findHandledUnwrittenCreateOnly, Li as maskEventTextWithBoundBags, Ln as withMovedTo, Lo as recordedOutputReferenceRegions, Lr as retiredNameGenerationsAfter, Ls as malformedResourceEntriesWarning, Lt as refactorMarkerRefusalMessage, M as PROTECTION_PROPERTY_BY_TYPE, Ma as CloudControlProvider, Mc as UNREADABLE_RESOURCES_MAP_ROW, Mi as noEchoParameterNamesOf, Mn as formatDestructiveChange, Mr as orphanNeedsIdentity, Ms as unpreviewableOrphanRecords, Mt as keptForRetainedRecord, N as isProtectionValueActive, Nc as displayLogicalId, Ni as withAttemptedItemsMasked, Nn as findRefactorHints, Nr as nameGenerationCarriedFrom, Ns as unreadableOrphanRecords, Nt as recordRetainedForReadoption, O as serviceTokenBlockingReason, Oc as JSON_LISTING_HOLE_VALUE, Oi as yellow, Ol as validateContainerRepoName, On as noEchoMacVerdict, Oo as isStalePlaceholderArnAttribute, Os as refuseMalformedOrphanRecords, P as perType, Pc as hasReadableOutputs, Pi as createReadOnlyAttributeHealerFactory, Pn as hintSidesOf, Pr as nameGenerationHighWaterOf, Ps as isReadableResourceEntry, Pt as readRefactorMarker, Qa as secretSegmentsOfState, Qc as rebuildClientForBucketRegion, Qi as isFinalSnapshotError, Ql as hasOwnKey, Qn as recordAfterRollbackUpdate, Qr as carriedExportAliasExposure, Qs as refuseMalformedResourcePropertiesForDrift, Qt as NESTED_PENDING_PARENT_REASON, Ra as deleteIndeterminateGuards, Ri as namingSecretsWithRecordedNoEcho, Rl as findNestedTemplateTreeDefect, Rn as changedReferenceInDiff, Rr as retiredNameGenerationsLeaving, Rs as malformedScrubResourceEntriesRefusalMessage, Rt as refuseRefactorMarker, S as hasPendingMovesOut, Sa as withPrintingSecrets, Sc as malformedStateRefusalMessage, Si as withoutSuperseded, Sl as assertAssetBucketRegion, Sn as DeploymentEventsStore, Sr as computeImplicitDeleteEdges, Ss as deployRefusesOrphanRowsReason, T as refusePendingMovesOut, Ta as customResourcesFailedWithoutApp, Tc as refuseMalformedResourcesForExport, Ti as gray, Tl as parseBootstrapMarker, Tn as createNoEchoValueMacs, To as parameterTypeMayLoseSecretIdentity, Tr as findNestedStackTypeChanges, Ts as malformedOrphanRecordsWarning, Ua as IntrinsicFunctionResolver, Uc as NO_CC_HANDLERS_REASON, Ui as secretNamedRecordNeedles, Un as looselyEqual, Uo as isImpossibleEmptyStoredAttribute, Ur as namesAnyDeclaredParameter, Us as refuseMalformedResourceEntriesForImport, Vi as secretNamePrintingBags, Vl as renderNestedTemplateTreeDefect, Vn as differingRemedy, Vr as inheritProducerRegions, Vs as refuseMalformedResourceEntriesForDeploy, Vt as macWriteOnlyKeys, Wa as isSelectOutOfBounds, Wc as hasNoCloudControlHandlers, Wi as stateSecretNameNeedles, Wn as mappingPairs, Wo as carriesFetchableDynamicReference, Wr as reachableDivergentParameters, Ws as refuseMalformedResourceEntriesForImportSave, Xc as hasReasonlessBaselineRefusal, Xi as ccRoutedInstanceTakesNoSnapshot, Xn as replayRollback, Xo as INTRINSIC_KEYS, Xr as secretBearingStateKeyWarning, Xt as pendingRequestCount, Yi as ccRoutedFinalSnapshotError, Yn as replayFailedOperations, Yr as secretBearing, Ys as malformedResourcePropertiesWarning, Za as secretPhysicalIdSegment, Zc as hasUnverifiableParameterRefusal, Zi as effectiveDeletionPolicy, Zl as defineOwnKey, Zn as DELETED_RESOURCE_REMEDY, Zr as secretSafeKeyDisplay, Zs as refuseMalformedResourcePropertiesForDestroy, Zt as resolvePendingCloudControlRequests, _ as conditionFingerprint, _c as repairMalformedOutputsForReadOnly, _i as isSupersededResourceRecord, _n as sameJournaledOrphans, _o as regionLessSecretName, _r as planFailedOps, _s as parameterInputsFor, a as scanActiveConsumers, ac as malformedOrphansWarning, ai as isExportAliasCollision, al as stackInstanceIdOf, ao as assertSendableRoleArn, ar as updatePartialMessage, as as isStatefulRecreateTargetForReplace, au as displayAssemblyPath, b as readRecordedConditionVerdicts, ba as isCustomResourceType$1, bc as malformedRenderedContainersWarning, bi as supersededHolderOf, bl as ensureAssetStorage, bn as planOrphanAdoption, br as replacementNeverSwapped, bs as declaresNoEcho, c as nestedSsmNameDeferredNote, cc as repairMalformedOrphansForReadOnly, ci as DEFAULT_RESOURCE_WARN_AFTER_MS, cl as isSensitiveAttributeName, cn as collectNestedChildUnaddressed, co as parseIamRoleArn, cr as ledgerForStack, cu as resolveAssemblyPath, d as slashedSsmNameHealAdoptedNote, da as ccBrokenReason, dc as malformedLocalOutputsWarning, di as destroyStackRecordsView, dl as createAssetRedirectResolver, dn as deleteJournaledOrphans, do as applyCallerIdentityCredentials, ea as unsupportedFinalSnapshotError, ec as refuseMalformedResourcePropertiesForOrphan, ei as exportNameSecretExposure, el as CrossPrefixScanCache, en as displacedPhysicalIdShown, eo as resolveDynamicReferences, er as withUnprovenUnsettled, eu as nullPrototypeRecord, f as slashedSsmNameHealNote, fa as isCustomResource, fc as malformedOutputsRefusalMessage, fn as dropFailedCommands, fo as callerEnvCredentials, fr as planRollback, g as makeCanonicalizePropertiesFn, ga as customResourceResponseExpirationWarning, gc as refuseMalformedOutputsForDestroy, gi as holdsSupersededResources, gn as loadJournaledOrphans, go as producerRegionsFromState, gr as isReplacementOrphan, h as inheritedProvenanceForChildDiff, ha as applyCustomResourceResponseExpiration, hc as refuseMalformedOutputs, hi as deleteSupersededEntry, hl as loadPublishableAssetManifest, hn as journaledOrphanLines, ho as classifyReplaySecretRegion, hr as isJournaledOrphan, hs as maskedPropertyFingerprintsOf, i as mergeNoChangeOutputs, ic as malformedOrphansRefusalMessage, ii as collectPublishedOutputNames, il as isNotImplemented, in as recordDisplacedSkips, io as assertFlagRoleArn, ir as undeclaredEmptyObservedKeys, is as MULTI_REGION_RECREATE_BLOCKED_TYPES, iu as describeFileReadFailure, j as recordedProtectionNote, jc as STATE_RESOURCES_MALFORMED, ji as noEchoExactEchoLeavesOf, jl as getDockerImageBySourceHash, jn as findDestructiveChanges, jo as lacksRecordedTableArn, jr as removeProtectionTypeList, js as repairMalformedOrphanRecordsForReadOnly, k as diffSecurity, ka as setLocalCustomResourceRuntimeEnabled, kc as accountArgs, ki as noEchoAttributeNamesOf, kl as BOOTSTRAP_MARKER_PREFIX, kn as noEchoValueMacsOf, ko as refStateLookupFromResource, ks as refuseMalformedOrphanRecordsForDestroy, l as nestedSsmNameRowNote, la as CC_BROKEN_REASON, lc as malformedExportNamesWarning, li as maskingRetryLogger, ln as getCurrentNestedStackContext, lo as sendableAssumeRoleCommand, m as crossStackOutputProvenanceSource, ma as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, mn as isHandledOrphan, mo as classifyRecordedSecretRegion, mr as demoteSupersededOrphans, n as isSecretBearingReferenceString, na as buildFinalSnapshotIdentifier, nc as UNREADABLE_ORPHANS_CONTAINER_ROW, ni as noEchoParameterValueSeed, nl as crossPrefixDeniedWarning, no as refuseUnreadableCdkCrossAccountRefs, nr as equalModuloMarkedMask, o as inRunStackKey, oa as stripSiblingOwnedMembers, oc as refuseMalformedOrphans, oi as bindingSkippedOutputs, ol as withStackInstanceIdWithheld, on as revertedNestedRowIds, oo as explicitRoleArnOrThrow, or as updatePartialReason, os as isStatefulRecreateTargetSync, p as slashedSsmNameHealPendingNote, pa as wouldReturnToSdkProvider, pc as malformedOutputsWarning, pi as withStackRecords, pn as dropFailedHint, po as envCredentialsAreAssumedRole, pr as seedsDeleteFirstGuard, qa as stackIdTailOf, qc as S3StateBackend, qi as ATOMIC_FINAL_SNAPSHOT_TYPES, qn as proposeRenames, qo as keepsSecretReferenceToken, qr as displayTextOrWithheld, qs as unreadableResourceEntries, r as keptWholeReasonText, rc as hasReadableOrphans, ri as collectDeclaredOutputNames, rl as isAccessDenied, rn as nestedChildStackName$1, ro as applyRoleArnIfSet, rr as equalModuloMask, rs as shownType, s as checkNestedSsmNames, sc as refuseMalformedOrphansForDestroy, si as DEFAULT_RESOURCE_TIMEOUT_MS, sl as isSecretValuedAttribute, sn as withNestedRevertRun, so as isIamRoleArn, ss as renderStatefulReason, su as renderAssemblyPathEscape, t as DeployEngine, ta as createPreDeleteFinalSnapshot, tc as repairMalformedResourcePropertiesForReadOnly, ti as isWholeDynamicReferenceValue, tl as applyCrossPrefixScan, tn as dropSettledNestedJournals, to as producerLookupOver, tr as calculateResourceDrift, ts as findReplacedReadersOfRecreateTargets, tu as ownValue, u as healSlashedSsmParameterNames, ua as ProviderRegistry, uc as malformedExportSourceWarning, ul as buildAssetRedirectMap, un as withNestedStackContext, uo as AWS_CREDENTIAL_ENV_KEYS, ur as withCreateTokenLedger, uu as resolveBucketRegion, v as conditionInputsFrom, va as TemplateNoEchoReresolver, vc as STATE_REGION_DIVERGED, vi as supersededAfterRollback, vl as rewriteTemplateAssetReferences, vn as makeForeignHolderScan, vr as recheckFailedPlan, vs as maskedInputProof, w as pendingMovesRefusalMessage, wc as refuseMalformedResourcesForDestroy, wi as cyan, wl as getBootstrapMarkerKey, wn as NOECHO_MAC_KEY_ALIAS, wo as isUnboundTemplateParameter, wr as withPreviousPolicies, ws as malformedOrphanRecordsRefusalMessage, x as childTemplateLoader, xc as malformedResourcesWarning, xi as supersededResourcesOf, xl as buildDenyExternalAccessPolicy, xn as DeploymentEventsReader, xr as IMPLICIT_DELETE_DEPENDENCIES, xs as maskedPropertyFingerprint, y as parentSuppliedValues, ya as readsNoEchoDeleteValues, yc as refuseDivergentRecordRegionForDestroy, yi as supersededHeldByOtherTypeWarning, yl as AssetModeResolver, yn as makeSiblingClaimReader, yr as recordUnderIdIsNotOwn, za as deleteLeftInPlace, zc as unwrittenCreateOnlyReplacement, zi as orphanRecordsPrintingBag, zl as isAbsoluteAssetPath, zn as changedReferencePath, zo as recordedReferenceRegions, zr as withNameGenerationReached, zs as refuseMalformedResourceAttributesForOrphan, zt as sameMove } from "./deploy-engine-DvGT0BH-.js";
|
|
8
|
+
import { $ as prepareLegacyStackAssets, A as loadCdkJson, B as warnDeprecatedNoPrefixCliFlag, C as runDockerForeground, D as synthesisStatusMessage, E as Synthesizer, F as resolveStateBucketWithDefault, G as uploadCfnTemplate, H as CFN_TEMPLATE_URL_LIMIT, I as resolveStateBucketWithDefaultAndSource, J as StageLoadError, K as refuseFailedLookups, L as resolveStateBucketWithSource, M as resolveAutoAssetStorage, N as resolveCaptureObservedState, O as getDefaultStateBucketName, P as resolveSkipPrefix, Q as predictedAutoCreatedAssetMode, R as resolveUseCdkBootstrapAssets, S as getDockerCmd, T as abortInFlightMultipartUploads, U as MIGRATE_TMP_PREFIX, V as CFN_TEMPLATE_BODY_LIMIT, W as findLargeInlineResources, X as createLegacyAssetParameterBinder, Y as bindLegacyStackAssetParameters, Z as legacyPlanAssetCount, _ as partitionSensitiveEnv, a as AssetPublisher, b as isMalformedEnvKey, c as resolveDockerContextDirectory, d as describeDockerFailure, et as CdkToolkitBucketMissingError, 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 setChildProcessAwsEnv, o as WorkGraph, p as redactedDockerCause, q as AssemblyReader, r as LockManager, s as buildDockerImage, t as DiffCalculator, tt as processStackMessages, u as describeDockerExecFailure, v as warnFinchArgvExposure, w as runDockerStreaming, x as formatDockerLoginError, y as isDockerClientEnvKey, z as stateBucketExistenceConfirmed } from "./diff-calculator-Dj6UGllF.js";
|
|
9
|
+
import { $a as stackIdTailOf, $c as S3StateBackend, $i as ATOMIC_FINAL_SNAPSHOT_TYPES, $l as parseBootstrapMarker, $o as keepsSecretReferenceToken, $r as displayTextOrWithheld, $s as unreadableResourceEntries, $t as displacedOpClause, A as recordedProtectionEvidence, Ac as refuseMalformedResourcesForDestroy, Ai as cyan, Al as buildAssetRedirectMap, An as constructPathOf$1, Ao as isUnboundTemplateParameter, Ar as withPreviousPolicies, As as malformedOrphanRecordsRefusalMessage, Bc as hasReadableOutputs, Bi as createReadOnlyAttributeHealerFactory, Bl as AssetManifestLoader, 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 decodeListingKey, Dn as noEchoMacParametersOf, Dr as IMPLICIT_DELETE_DEPENDENCIES, Ds as maskedPropertyFingerprint, E as deferredServiceTokenWarning, Ea as isCustomResourceType$1, Ec as malformedRenderedContainersWarning, Ei as supersededHolderOf, 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, Hn as isPairableType, Hr as retiredAfterRollback, Hs as malformedLocalResourcesWarning, Ht as readsOnlyNoEchoParameters, Ia as withCustomResourceStack, Ic as withheldAccountClause, Ii as noEchoComparisonForTemplate, Il as loadPublishableAssetManifest, In as rollbackOrphanIds, Io as lacksRecordedRefArn, Ir as segmentCleanupOptions, Is as refuseMalformedOrphansForOrphan, It as refactorMarkerMovesOf, Ja as isWaitAbandonedError, Jl as ensureAssetStorage, 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, 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 createLazyAssetModeContext, 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, Nn as findRefactorHints, No as cfnRefValueFromPhysicalId, Ns as previewableOrphanRecords, Nt as recordRetainedForReadoption, O as serviceTokenBlockingReason, Oa as withPrintingSecrets, Oc as malformedStateRefusalMessage, Oi as withoutSuperseded, 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 getBootstrapMarkerKey, 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 CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, 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 getDockerImageBySourceHash, 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 assertAssetBucketRegion, 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 buildDenyExternalAccessPolicy, Yo as isImpossibleEmptyStoredAttribute, Yr as namesAnyDeclaredParameter, Ys as refuseMalformedResourceEntriesForImport, Za as isAlwaysLiveAttribute, Zc as PROPERTY_COVERAGE_BY_TYPE, Zi as storedSecretNameNeedles, Zl as isCrossRegionRedirect, 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 findNestedTemplateTreeDefect, _n as sameJournaledOrphans, _o as applyCallerIdentityCredentials, _u as resolveAssemblyPath, a as scanActiveConsumers, aa as refusesFinalSnapshot, ac as refuseMalformedResourcePropertiesForExport, ai as exportNameNoEchoParameters, al as CrossPrefixReadError, ao as withSecretPhysicalIdsMaskedInState, ar as settleUnsettledPrevious, b as readRecordedConditionVerdicts, ba as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, bl as renderNestedTemplateTreeDefect, 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, cu as hasPlainPrototype, d as slashedSsmNameHealAdoptedNote, dc as malformedOrphansWarning, di as isExportAliasCollision, dl as stackInstanceIdOf, dn as deleteJournaledOrphans, do as assertSendableRoleArn, dr as updatePartialMessage, ds as isStatefulRecreateTargetForReplace, 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 readBootstrapMarkerBody, 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, gn as loadJournaledOrphans, go as AWS_CREDENTIAL_ENV_KEYS, gr as withCreateTokenLedger, gu as renderAssemblyPathEscape, 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, j as recordedProtectionNote, ja as customResourcesFailedWithoutApp, jc as refuseMalformedResourcesForExport, ji as gray, jl as createAssetRedirectResolver, 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 isAccessDenied, ln as getCurrentNestedStackContext, lo as applyRoleArnIfSet, lr as equalModuloMask, ls as shownType, lu as nullPrototypeRecord, 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 displayAssemblyPath, n as isSecretBearingReferenceString, na as ccRoutedInstanceTakesNoSnapshot, ni as secretBearingStateKeyWarning, nl as hasReasonlessBaselineRefusal, nr as replayRollback, ns as INTRINSIC_KEYS, nu as validateContainerRepoName, 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 defineOwnKey, 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 describeFileReadFailure, qi as secretNamePrintingBags, ql as AssetModeResolver, 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 BOOTSTRAP_MARKER_PREFIX, 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 hasOwnKey, t as DeployEngine, ta as ccRoutedFinalSnapshotError, tc as malformedResourcePropertiesWarning, ti as secretBearing, tn as dropSettledNestedJournals, tr as replayFailedOperations, tu as validateAssetBucketName, 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 ownValue, v as conditionInputsFrom, va as isCustomResource, vc as malformedOutputsRefusalMessage, vl as isAbsoluteAssetPath, 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 ssmResolvedValueType, 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 templateIdentity, 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 listNestedTemplateRows, yn as makeSiblingClaimReader, yo as envCredentialsAreAssumedRole, yr as seedsDeleteFirstGuard, yu as resolveBucketRegion, zc as displayLogicalId, zi as withAttemptedItemsMasked, zl as rewriteTemplateAssetReferences, zn as changedReferencePath, zr as nameGenerationCarriedFrom, zs as unreadableOrphanRecords, zt as sameMove } from "./deploy-engine-BQral6za.js";
|
|
10
10
|
import { n as canonicalizeRegion, r as derivePartitionAndUrlSuffix, t as PARTITION_TABLE } from "./aws-partition-DA0r2sr-.js";
|
|
11
|
-
import { A as describeJsonParseFailure, C as PhaseClock, D as renderPhaseTimings, M as parseFailureDebugDetail, O as timePhase, P as utf8ByteLength, d as getCreateOnlyPropertyPaths, g as describeTypeWithThrottleRetry, m as templateResourceTypes, p as prefetchCreateOnlyPropertyPaths, x as withRetry } from "./ec2-termination-protection-
|
|
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 { A as describeJsonParseFailure, C as PhaseClock, D as renderPhaseTimings, M as parseFailureDebugDetail, O as timePhase, P as utf8ByteLength, d as getCreateOnlyPropertyPaths, g as describeTypeWithThrottleRetry, m as templateResourceTypes, p as prefetchCreateOnlyPropertyPaths, x as withRetry } from "./ec2-termination-protection-D1fp1UTY.js";
|
|
12
|
+
import { t as expectedOwnerParam } from "./expected-bucket-owner-DvEnZMQG.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-BAl80KJ-.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-BuvJdDDu.js";
|
|
15
|
+
import { C as unsettledItemsField, E as unsettledPropertiesOf, O as withUnsettledProperties, i as withResourceDeadline, k as withoutUnsettledProperties, w as unsettledItemsOf } from "./resource-deadline-CB5xO4LO.js";
|
|
16
|
+
import { a as parseEcrRegistryHost, i as looksLikeEcrHostWithForeignSuffix, n as hasEcrRegistryHostLabels, t as ecrRegistryHostPattern } from "./ecr-uri-BNOBWmtv.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,9 +30,9 @@ 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";
|
|
35
|
-
import {
|
|
34
|
+
import { CreateAliasCommand, CreateKeyCommand, DescribeKeyCommand, KMSClient, ScheduleKeyDeletionCommand } from "@aws-sdk/client-kms";
|
|
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";
|
|
38
38
|
import { Command, InvalidArgumentError, Option } from "commander";
|
|
@@ -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-D3-D7HGf.js");
|
|
1547
1547
|
return providerClasses;
|
|
1548
1548
|
}
|
|
1549
1549
|
function registerAllProviders(registry, classes) {
|
|
@@ -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,
|
|
@@ -3568,7 +3596,13 @@ async function deployCommand(stacks, options) {
|
|
|
3568
3596
|
assetPublisher,
|
|
3569
3597
|
workGraph,
|
|
3570
3598
|
dependencyStacks,
|
|
3571
|
-
inferredCrossStackDeps
|
|
3599
|
+
inferredCrossStackDeps,
|
|
3600
|
+
dryRunPredictsAutoCreatedStorage: dryRunPredictsAutoCreatedStorage({
|
|
3601
|
+
dryRun: options.dryRun,
|
|
3602
|
+
autoAssetStorage,
|
|
3603
|
+
skipAssets: options.skipAssets,
|
|
3604
|
+
useCdkBootstrapAssets
|
|
3605
|
+
})
|
|
3572
3606
|
});
|
|
3573
3607
|
const summary = workGraph.summary();
|
|
3574
3608
|
logger.debug(`Work graph: ${summary["asset-publish"]} asset(s), ${summary["stack"]} stack(s)`);
|
|
@@ -6610,13 +6644,16 @@ async function diffCommand(stacks, options) {
|
|
|
6610
6644
|
inRegion: (healRegion, fn) => runWithStackAwsClients(stackRegionScope(healRegion).clients, fn)
|
|
6611
6645
|
});
|
|
6612
6646
|
const recursive = (options.recursive ?? false) || failOn === "destructive" || failOn === "broadening" || securityOnly;
|
|
6613
|
-
const
|
|
6647
|
+
const assetModeOptions = {
|
|
6614
6648
|
stateBackend,
|
|
6615
6649
|
stsRegion: region,
|
|
6616
6650
|
...options.profile && { profile: options.profile },
|
|
6617
6651
|
useCdkBootstrapAssets: resolveUseCdkBootstrapAssets(options.useCdkBootstrapAssets),
|
|
6618
6652
|
suppressLegacyNotice: true
|
|
6619
|
-
}
|
|
6653
|
+
};
|
|
6654
|
+
const assetModeContext = createLazyAssetModeContext(assetModeOptions);
|
|
6655
|
+
const resolveAssetRedirect = createAssetRedirectResolver(assetModeOptions, assetModeContext);
|
|
6656
|
+
const bindLegacyAssets = createLegacyAssetParameterBinder(assetModeContext);
|
|
6620
6657
|
const trees = [];
|
|
6621
6658
|
const treeEnvs = [];
|
|
6622
6659
|
const producerLookup = producerLookupOver(allStacks);
|
|
@@ -6626,6 +6663,11 @@ async function diffCommand(stacks, options) {
|
|
|
6626
6663
|
logger.info(`\nCalculating diff for stack: ${shownName}`);
|
|
6627
6664
|
const stackRegion = await regionForStack(stackInfo.stackName, stackInfo.region);
|
|
6628
6665
|
const assetRedirect = await resolveAssetRedirect(stackInfo.assetManifestPath, stackRegion);
|
|
6666
|
+
try {
|
|
6667
|
+
await bindLegacyAssets(stackInfo, stackRegion);
|
|
6668
|
+
} catch (error) {
|
|
6669
|
+
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)}`);
|
|
6670
|
+
}
|
|
6629
6671
|
if (assetRedirect) {
|
|
6630
6672
|
const rewritten = rewriteTemplateAssetReferences(stackInfo.template, assetRedirect);
|
|
6631
6673
|
logger.debug(`Rewrote ${rewritten} asset reference(s) to cdkd asset storage in template of stack ${stackInfo.stackName}`);
|
|
@@ -10092,26 +10134,6 @@ function isNoReadHandlerError(err) {
|
|
|
10092
10134
|
return false;
|
|
10093
10135
|
}
|
|
10094
10136
|
|
|
10095
|
-
// src/utils/ip-protocol.ts
|
|
10096
|
-
const PROTOCOL_NUMBER_TO_NAME = /* @__PURE__ */ new Map([
|
|
10097
|
-
["1", "icmp"],
|
|
10098
|
-
["6", "tcp"],
|
|
10099
|
-
["17", "udp"],
|
|
10100
|
-
["58", "icmpv6"]
|
|
10101
|
-
]);
|
|
10102
|
-
const CANONICAL_PROTOCOL_NAMES = new Set(PROTOCOL_NUMBER_TO_NAME.values());
|
|
10103
|
-
function canonicalizeIpProtocolValue(value) {
|
|
10104
|
-
let text;
|
|
10105
|
-
if (typeof value === "string") text = value;
|
|
10106
|
-
else if (typeof value === "number") text = String(value);
|
|
10107
|
-
else return value;
|
|
10108
|
-
const renamed = PROTOCOL_NUMBER_TO_NAME.get(text);
|
|
10109
|
-
if (renamed !== void 0) return renamed;
|
|
10110
|
-
const lowered = text.toLowerCase();
|
|
10111
|
-
if (CANONICAL_PROTOCOL_NAMES.has(lowered)) return lowered;
|
|
10112
|
-
return text;
|
|
10113
|
-
}
|
|
10114
|
-
|
|
10115
10137
|
// src/analyzer/drift-protocol-normalize.ts
|
|
10116
10138
|
const IP_PROTOCOL_PATHS = /* @__PURE__ */ new Map([
|
|
10117
10139
|
["AWS::EC2::SecurityGroupIngress", ["IpProtocol"]],
|
|
@@ -10816,9 +10838,9 @@ function corroboratedLeafCount(send, live, wildcardLeaf = isMaskLeaf) {
|
|
|
10816
10838
|
}
|
|
10817
10839
|
return total;
|
|
10818
10840
|
}
|
|
10819
|
-
if (isPlainRecord
|
|
10841
|
+
if (isPlainRecord(send)) {
|
|
10820
10842
|
if (!hasPlainPrototype(send)) return void 0;
|
|
10821
|
-
if (!isPlainRecord
|
|
10843
|
+
if (!isPlainRecord(live) || !hasPlainPrototype(live)) return void 0;
|
|
10822
10844
|
const keys = Object.keys(send);
|
|
10823
10845
|
if (keys.length !== Object.keys(live).length) return void 0;
|
|
10824
10846
|
let total = 0;
|
|
@@ -10938,8 +10960,8 @@ function preserveLiveValuesAtMaskedLeaves(send, awsProperties, secrets, corrobor
|
|
|
10938
10960
|
if (carriesSecretMask(value)) unpreservablePaths.push(path);
|
|
10939
10961
|
return value;
|
|
10940
10962
|
}
|
|
10941
|
-
const liveObject = isPlainRecord
|
|
10942
|
-
const corrObject = isPlainRecord
|
|
10963
|
+
const liveObject = isPlainRecord(live) ? live : void 0;
|
|
10964
|
+
const corrObject = isPlainRecord(corr) ? corr : void 0;
|
|
10943
10965
|
const out = Object.create(null);
|
|
10944
10966
|
for (const [k, v] of Object.entries(value)) out[k] = walk(v, corrObject === void 0 ? void 0 : ownValue(corrObject, k), liveObject === void 0 ? void 0 : ownValue(liveObject, k), path === "" ? k : `${path}.${k}`);
|
|
10945
10967
|
return out;
|
|
@@ -10962,7 +10984,7 @@ function isTagListKey(key) {
|
|
|
10962
10984
|
return key === "Tags" || key.endsWith("Tags");
|
|
10963
10985
|
}
|
|
10964
10986
|
function isCfnTagList(value) {
|
|
10965
|
-
return Array.isArray(value) && value.length > 0 && value.every((t) => isPlainRecord
|
|
10987
|
+
return Array.isArray(value) && value.length > 0 && value.every((t) => isPlainRecord(t) && typeof t.Key === "string");
|
|
10966
10988
|
}
|
|
10967
10989
|
function tagKeys(tags) {
|
|
10968
10990
|
return tags.map((t) => t["Key"]);
|
|
@@ -11028,8 +11050,8 @@ function collectMissingPaths(awsValue, desiredValue, path, out, isPreservedKey)
|
|
|
11028
11050
|
}
|
|
11029
11051
|
return;
|
|
11030
11052
|
}
|
|
11031
|
-
if (!isPlainRecord
|
|
11032
|
-
if (!isPlainRecord
|
|
11053
|
+
if (!isPlainRecord(awsValue)) return;
|
|
11054
|
+
if (!isPlainRecord(desiredValue)) {
|
|
11033
11055
|
if (desiredValue === void 0) out.add(path);
|
|
11034
11056
|
return;
|
|
11035
11057
|
}
|
|
@@ -11045,7 +11067,7 @@ function collectMissingPaths(awsValue, desiredValue, path, out, isPreservedKey)
|
|
|
11045
11067
|
function isKeyedList(value) {
|
|
11046
11068
|
return Array.isArray(value) && value.length > 0 && value.every((e) => typeof e === "object" && e !== null && typeof e.Key === "string");
|
|
11047
11069
|
}
|
|
11048
|
-
function isPlainRecord
|
|
11070
|
+
function isPlainRecord(value) {
|
|
11049
11071
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
11050
11072
|
}
|
|
11051
11073
|
function mergeUntemplatedValue(awsValue, desiredValue) {
|
|
@@ -11067,7 +11089,7 @@ function mergeUntemplatedValue(awsValue, desiredValue) {
|
|
|
11067
11089
|
}
|
|
11068
11090
|
return merged;
|
|
11069
11091
|
}
|
|
11070
|
-
if (!isPlainRecord
|
|
11092
|
+
if (!isPlainRecord(awsValue) || !isPlainRecord(desiredValue)) return desiredValue;
|
|
11071
11093
|
if (!hasPlainPrototype(awsValue) || !hasPlainPrototype(desiredValue)) return desiredValue;
|
|
11072
11094
|
const merged = Object.create(null);
|
|
11073
11095
|
for (const [key, value] of Object.entries(awsValue)) merged[key] = hasOwnKey(desiredValue, key) ? mergeUntemplatedValue(value, desiredValue[key]) : value;
|
|
@@ -11087,7 +11109,7 @@ function preserveLiveValuesAtUnresolvedTokens(send, awsProperties, unresolvedTok
|
|
|
11087
11109
|
}
|
|
11088
11110
|
if (value !== null && typeof value === "object") {
|
|
11089
11111
|
if (!hasPlainPrototype(value)) return value;
|
|
11090
|
-
const liveObject = isPlainRecord
|
|
11112
|
+
const liveObject = isPlainRecord(live) ? live : void 0;
|
|
11091
11113
|
const out = Object.create(null);
|
|
11092
11114
|
for (const [k, v] of Object.entries(value)) out[k] = walk(v, liveObject === void 0 ? void 0 : ownValue(liveObject, k));
|
|
11093
11115
|
return out;
|
|
@@ -11140,7 +11162,7 @@ function buildRevertNewProperties(drifts, desiredProperties, awsProperties, opti
|
|
|
11140
11162
|
return result;
|
|
11141
11163
|
}
|
|
11142
11164
|
function driftAbsentMeansDefaultKeys(provider, resourceType, properties) {
|
|
11143
|
-
if (provider.getDriftAbsentMeansDefaultKeys === void 0 || !isPlainRecord
|
|
11165
|
+
if (provider.getDriftAbsentMeansDefaultKeys === void 0 || !isPlainRecord(properties)) return [];
|
|
11144
11166
|
const keys = provider.getDriftAbsentMeansDefaultKeys(resourceType, properties);
|
|
11145
11167
|
const dotted = keys.filter((key) => key.includes("."));
|
|
11146
11168
|
if (dotted.length === 0) return keys;
|
|
@@ -11195,122 +11217,6 @@ function sameRecordedJson(candidate, recorded) {
|
|
|
11195
11217
|
return deepEqualUnordered(candidate === void 0 ? void 0 : JSON.parse(JSON.stringify(candidate)), recorded);
|
|
11196
11218
|
}
|
|
11197
11219
|
|
|
11198
|
-
// src/provisioning/sg-rule-identity.ts
|
|
11199
|
-
function sgProtocolKey(value) {
|
|
11200
|
-
return canonicalizeIpProtocolValue(value ?? "-1");
|
|
11201
|
-
}
|
|
11202
|
-
function cfnIngressPortValue(value) {
|
|
11203
|
-
if (value === void 0 || value === null) return -1;
|
|
11204
|
-
if (typeof value === "number") return Number.isFinite(value) ? value : NaN;
|
|
11205
|
-
if (typeof value === "string") {
|
|
11206
|
-
const trimmed = value.trim();
|
|
11207
|
-
if (trimmed === "") return -1;
|
|
11208
|
-
const parsed = Number(trimmed);
|
|
11209
|
-
return Number.isFinite(parsed) ? parsed : NaN;
|
|
11210
|
-
}
|
|
11211
|
-
return NaN;
|
|
11212
|
-
}
|
|
11213
|
-
|
|
11214
|
-
// src/provisioning/sg-sibling-rules.ts
|
|
11215
|
-
const RULE_TYPE = {
|
|
11216
|
-
ingress: "AWS::EC2::SecurityGroupIngress",
|
|
11217
|
-
egress: "AWS::EC2::SecurityGroupEgress"
|
|
11218
|
-
};
|
|
11219
|
-
const LIST_KEY = {
|
|
11220
|
-
ingress: "SecurityGroupIngress",
|
|
11221
|
-
egress: "SecurityGroupEgress"
|
|
11222
|
-
};
|
|
11223
|
-
const PEER_KEYS = {
|
|
11224
|
-
ingress: [
|
|
11225
|
-
"CidrIp",
|
|
11226
|
-
"CidrIpv6",
|
|
11227
|
-
"SourceSecurityGroupId",
|
|
11228
|
-
"SourceSecurityGroupName",
|
|
11229
|
-
"SourcePrefixListId"
|
|
11230
|
-
],
|
|
11231
|
-
egress: [
|
|
11232
|
-
"CidrIp",
|
|
11233
|
-
"CidrIpv6",
|
|
11234
|
-
"DestinationSecurityGroupId",
|
|
11235
|
-
"DestinationPrefixListId"
|
|
11236
|
-
]
|
|
11237
|
-
};
|
|
11238
|
-
function isPlainRecord(value) {
|
|
11239
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
11240
|
-
}
|
|
11241
|
-
function sgRuleOwnershipIdentity(rule, direction) {
|
|
11242
|
-
if (!isPlainRecord(rule)) return void 0;
|
|
11243
|
-
if ([
|
|
11244
|
-
"IpProtocol",
|
|
11245
|
-
"FromPort",
|
|
11246
|
-
"ToPort",
|
|
11247
|
-
...PEER_KEYS[direction]
|
|
11248
|
-
].some((key) => isRedactedRecordedValue(rule[key]))) return void 0;
|
|
11249
|
-
const from = cfnIngressPortValue(rule["FromPort"]);
|
|
11250
|
-
const to = cfnIngressPortValue(rule["ToPort"]);
|
|
11251
|
-
if (!Number.isFinite(from) || !Number.isFinite(to)) return void 0;
|
|
11252
|
-
return JSON.stringify([
|
|
11253
|
-
sgProtocolKey(rule["IpProtocol"]),
|
|
11254
|
-
from,
|
|
11255
|
-
to,
|
|
11256
|
-
...PEER_KEYS[direction].map((key) => rule[key] ?? null)
|
|
11257
|
-
]);
|
|
11258
|
-
}
|
|
11259
|
-
function siblingOwnedSgRuleIdentities(groupId, direction, properties, context) {
|
|
11260
|
-
const owned = /* @__PURE__ */ new Set();
|
|
11261
|
-
if (typeof groupId !== "string" || groupId === "") return owned;
|
|
11262
|
-
for (const sibling of Object.values(context?.siblings ?? {})) {
|
|
11263
|
-
if (sibling.resourceType !== RULE_TYPE[direction]) continue;
|
|
11264
|
-
const props = sibling.properties;
|
|
11265
|
-
if (!isPlainRecord(props) || props["GroupId"] !== groupId) continue;
|
|
11266
|
-
const identity = sgRuleOwnershipIdentity(props, direction);
|
|
11267
|
-
if (identity !== void 0) owned.add(identity);
|
|
11268
|
-
}
|
|
11269
|
-
if (owned.size === 0) return owned;
|
|
11270
|
-
const inline = properties?.[LIST_KEY[direction]];
|
|
11271
|
-
if (Array.isArray(inline)) for (const entry of inline) {
|
|
11272
|
-
const identity = sgRuleOwnershipIdentity(entry, direction);
|
|
11273
|
-
if (identity !== void 0) owned.delete(identity);
|
|
11274
|
-
}
|
|
11275
|
-
return owned;
|
|
11276
|
-
}
|
|
11277
|
-
function withoutSiblingOwnedSgRules(rules, owned, direction) {
|
|
11278
|
-
if (owned.size === 0) return [...rules];
|
|
11279
|
-
return rules.filter((rule) => {
|
|
11280
|
-
const identity = sgRuleOwnershipIdentity(rule, direction);
|
|
11281
|
-
return identity === void 0 || !owned.has(identity);
|
|
11282
|
-
});
|
|
11283
|
-
}
|
|
11284
|
-
function stripSiblingOwnedSgRules(resourceType, physicalId, baseline, aws, properties, context) {
|
|
11285
|
-
if (resourceType !== "AWS::EC2::SecurityGroup") return {
|
|
11286
|
-
baseline,
|
|
11287
|
-
aws
|
|
11288
|
-
};
|
|
11289
|
-
let out = {
|
|
11290
|
-
baseline,
|
|
11291
|
-
aws
|
|
11292
|
-
};
|
|
11293
|
-
for (const direction of ["ingress", "egress"]) {
|
|
11294
|
-
const owned = siblingOwnedSgRuleIdentities(physicalId, direction, properties, context);
|
|
11295
|
-
if (owned.size === 0) continue;
|
|
11296
|
-
const key = LIST_KEY[direction];
|
|
11297
|
-
const strip = (bag) => {
|
|
11298
|
-
const list = bag[key];
|
|
11299
|
-
if (!Array.isArray(list)) return bag;
|
|
11300
|
-
const kept = withoutSiblingOwnedSgRules(list, owned, direction);
|
|
11301
|
-
return kept.length === list.length ? bag : {
|
|
11302
|
-
...bag,
|
|
11303
|
-
[key]: kept
|
|
11304
|
-
};
|
|
11305
|
-
};
|
|
11306
|
-
out = {
|
|
11307
|
-
baseline: strip(out.baseline),
|
|
11308
|
-
aws: strip(out.aws)
|
|
11309
|
-
};
|
|
11310
|
-
}
|
|
11311
|
-
return out;
|
|
11312
|
-
}
|
|
11313
|
-
|
|
11314
11220
|
// src/cli/commands/drift/compare.ts
|
|
11315
11221
|
async function compareDriftReadback(args) {
|
|
11316
11222
|
const { region, resolvePrincipalUniqueId, outcomes, logger, secretResolvers, producerRegions, stackSecretNames, resource, logicalId, provider, secrets, printing, aws, readContext } = args;
|
|
@@ -18225,6 +18131,7 @@ async function exportCommand(stackArg, options) {
|
|
|
18225
18131
|
await stateBackend.verifyBucketExists();
|
|
18226
18132
|
const lockManager = new LockManager(awsClients.s3, stateConfig);
|
|
18227
18133
|
let template;
|
|
18134
|
+
let legacyAssetStack;
|
|
18228
18135
|
let resolvedStackName;
|
|
18229
18136
|
let synthedRegion;
|
|
18230
18137
|
let templateFormat = "json";
|
|
@@ -18263,6 +18170,7 @@ async function exportCommand(stackArg, options) {
|
|
|
18263
18170
|
else throw new Error(`Multiple stacks found: ${result.stacks.map(describeStack).join(", ")}. Specify the stack name as a positional argument.`);
|
|
18264
18171
|
refuseFailedLookups([stackInfo], result.stacks, result.failedLookups);
|
|
18265
18172
|
template = stackInfo.template;
|
|
18173
|
+
legacyAssetStack = stackInfo;
|
|
18266
18174
|
resolvedStackName = stackInfo.stackName;
|
|
18267
18175
|
synthedRegion = stackInfo.region;
|
|
18268
18176
|
rootNestedTemplatePaths = stackInfo.nestedTemplates ?? nullPrototypeRecord();
|
|
@@ -18274,6 +18182,12 @@ async function exportCommand(stackArg, options) {
|
|
|
18274
18182
|
const cfnStackName = options.cfnStackName ?? resolvedStackName;
|
|
18275
18183
|
const targetRegion = await pickStackRegion$1(stateBackend, resolvedStackName, synthedRegion, options.stackRegion);
|
|
18276
18184
|
logger.info(`Migrating cdkd stack ${quotedOrNotShown(resolvedStackName)} (${quotedRegion(targetRegion)}) → CloudFormation stack ${quotedOrNotShown(cfnStackName)}`);
|
|
18185
|
+
if (legacyAssetStack) await bindLegacyStackAssetParameters(legacyAssetStack, targetRegion, {
|
|
18186
|
+
stateBackend,
|
|
18187
|
+
stsRegion: effectiveRegion.region,
|
|
18188
|
+
useCdkBootstrapAssets: resolveUseCdkBootstrapAssets(),
|
|
18189
|
+
...options.profile && { profile: options.profile }
|
|
18190
|
+
});
|
|
18277
18191
|
await assertCfnStackAbsent(awsClients.cloudFormation, cfnStackName);
|
|
18278
18192
|
const stateData = await stateBackend.getState(resolvedStackName, targetRegion);
|
|
18279
18193
|
if (!stateData) throw new Error(`No cdkd state found for stack ${quotedOrNotShown(resolvedStackName)} (${quotedRegion(targetRegion)}). Nothing to migrate.`);
|
|
@@ -23527,13 +23441,16 @@ async function refactorCommand(stacks, options) {
|
|
|
23527
23441
|
registerAllProviders(registry, providerClasses);
|
|
23528
23442
|
const canonicalizeProperties = makeCanonicalizePropertiesFn(registry);
|
|
23529
23443
|
const producerLookup = producerLookupOver(allStacks);
|
|
23530
|
-
const
|
|
23444
|
+
const assetModeOptions = {
|
|
23531
23445
|
stateBackend,
|
|
23532
23446
|
stsRegion: region,
|
|
23533
23447
|
...options.profile && { profile: options.profile },
|
|
23534
23448
|
useCdkBootstrapAssets: resolveUseCdkBootstrapAssets(options.useCdkBootstrapAssets),
|
|
23535
23449
|
suppressLegacyNotice: true
|
|
23536
|
-
}
|
|
23450
|
+
};
|
|
23451
|
+
const assetModeContext = createLazyAssetModeContext(assetModeOptions);
|
|
23452
|
+
const resolveAssetRedirect = createAssetRedirectResolver(assetModeOptions, assetModeContext);
|
|
23453
|
+
const bindLegacyAssets = createLegacyAssetParameterBinder(assetModeContext);
|
|
23537
23454
|
let callerAccount;
|
|
23538
23455
|
const accountOf = async (stackInfo) => {
|
|
23539
23456
|
if (stackInfo.account) return stackInfo.account;
|
|
@@ -23581,6 +23498,7 @@ async function refactorCommand(stacks, options) {
|
|
|
23581
23498
|
if (await stateBackend.loadRollbackJournal(stackInfo.stackName, stackRegion) !== null) throw rollbackJournalRefusal(stackInfo.stackName, stackRegion);
|
|
23582
23499
|
const assetRedirect = await resolveAssetRedirect(stackInfo.assetManifestPath, stackRegion);
|
|
23583
23500
|
if (assetRedirect) rewriteTemplateAssetReferences(stackInfo.template, assetRedirect);
|
|
23501
|
+
await bindLegacyAssets(stackInfo, stackRegion);
|
|
23584
23502
|
const overrides = environments.length === 0 ? [] : overridesForStack(environments, stackInfo.stackName, await accountOf(stackInfo), stackRegion, options.revert === true);
|
|
23585
23503
|
const diff = async (state) => {
|
|
23586
23504
|
const result = await computeStackDiff(state, stackInfo.template, stackRegion, stackInfo.stackName, stateBackend, diffCalculator, {
|
|
@@ -23840,6 +23758,47 @@ async function publishAssetsCommand(stacks, options) {
|
|
|
23840
23758
|
let assetCount = 0;
|
|
23841
23759
|
let error;
|
|
23842
23760
|
try {
|
|
23761
|
+
if (stack.legacyAssets) {
|
|
23762
|
+
logger.info(safeMsg`\nPublishing assets for stack: ${describeStack(stack)}`);
|
|
23763
|
+
const stackRegion = await regionForStack(stack);
|
|
23764
|
+
const plan = await prepareLegacyStackAssets(stack, {
|
|
23765
|
+
assetMode: async () => {
|
|
23766
|
+
const modeResolver = useCdkBootstrapAssets ? null : await getModeResolver();
|
|
23767
|
+
return modeResolver ? modeResolver.resolve(stack.region || rawNamedRegion || stackRegion) : { mode: "legacy" };
|
|
23768
|
+
},
|
|
23769
|
+
accountId,
|
|
23770
|
+
region: stackRegion
|
|
23771
|
+
});
|
|
23772
|
+
const workGraph = new WorkGraph();
|
|
23773
|
+
assetCount = (plan ? assetPublisher.addManifestToGraph(workGraph, plan.manifest, {
|
|
23774
|
+
accountId,
|
|
23775
|
+
region: stackRegion,
|
|
23776
|
+
...options.profile && { profile: options.profile },
|
|
23777
|
+
nodePrefix: `${stack.stackName}:`,
|
|
23778
|
+
cdkOutputDir: stack.legacyAssets.assemblyDir,
|
|
23779
|
+
...stack.assetOutdir !== void 0 && { assetOutdir: stack.assetOutdir },
|
|
23780
|
+
bucketsChosenByCdkd: true,
|
|
23781
|
+
recognizedImageDestinations: plan.recognizedImageDestinations,
|
|
23782
|
+
repositoriesToEnsure: plan.repositoriesToEnsure
|
|
23783
|
+
}) : []).filter((id) => id.startsWith("asset-publish:")).length;
|
|
23784
|
+
if (assetCount === 0) logger.info(" (no assets to publish)");
|
|
23785
|
+
else {
|
|
23786
|
+
await workGraph.execute({
|
|
23787
|
+
"asset-build": options.imageBuildConcurrency,
|
|
23788
|
+
"asset-publish": options.assetPublishConcurrency,
|
|
23789
|
+
stack: 0
|
|
23790
|
+
}, (node) => assetPublisher.executeNode(node));
|
|
23791
|
+
const seconds = ((Date.now() - startedAt) / 1e3).toFixed(2);
|
|
23792
|
+
logger.info(safeMsg` ✓ Published ${assetCount} asset(s) in ${seconds}s`);
|
|
23793
|
+
}
|
|
23794
|
+
results.push({
|
|
23795
|
+
stackName: stack.stackName,
|
|
23796
|
+
displayName: stack.displayName,
|
|
23797
|
+
assetCount,
|
|
23798
|
+
durationMs: Date.now() - startedAt
|
|
23799
|
+
});
|
|
23800
|
+
continue;
|
|
23801
|
+
}
|
|
23843
23802
|
if (!stack.assetManifestPath) {
|
|
23844
23803
|
logger.debug(`Stack ${stack.stackName} has no asset manifest; nothing to publish`);
|
|
23845
23804
|
results.push({
|
|
@@ -25506,13 +25465,15 @@ async function importCommand(stackArg, options) {
|
|
|
25506
25465
|
const regionClients = targetClients ?? awsClients;
|
|
25507
25466
|
const providerRegistry = new ProviderRegistry();
|
|
25508
25467
|
registerAllProviders(providerRegistry, providerClasses);
|
|
25509
|
-
const
|
|
25468
|
+
const assetModeOptions = {
|
|
25510
25469
|
stateBackend,
|
|
25511
25470
|
stsRegion: region,
|
|
25512
25471
|
...options.profile && { profile: options.profile },
|
|
25513
25472
|
useCdkBootstrapAssets: resolveUseCdkBootstrapAssets(options.useCdkBootstrapAssets),
|
|
25514
25473
|
suppressLegacyNotice: true
|
|
25515
|
-
}
|
|
25474
|
+
};
|
|
25475
|
+
const assetModeContext = createLazyAssetModeContext(assetModeOptions);
|
|
25476
|
+
const assetRedirect = await createAssetRedirectResolver(assetModeOptions, assetModeContext)(stackInfo.assetManifestPath, targetRegion);
|
|
25516
25477
|
let stateTemplate = stackInfo.template;
|
|
25517
25478
|
if (assetRedirect) {
|
|
25518
25479
|
stateTemplate = structuredClone(stackInfo.template);
|
|
@@ -25520,6 +25481,21 @@ async function importCommand(stackArg, options) {
|
|
|
25520
25481
|
logger.debug(`Rewrote ${rewritten} asset reference(s) to cdkd asset storage in template of stack ${stackInfo.stackName}`);
|
|
25521
25482
|
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.`);
|
|
25522
25483
|
}
|
|
25484
|
+
if (stackInfo.legacyAssets) {
|
|
25485
|
+
const bindLegacyAssets = createLegacyAssetParameterBinder(assetModeContext);
|
|
25486
|
+
if ((await bindLegacyAssets(stackInfo, targetRegion))?.mode === "cdkd-assets") {
|
|
25487
|
+
stateTemplate = structuredClone(stackInfo.template);
|
|
25488
|
+
try {
|
|
25489
|
+
await bindLegacyAssets({
|
|
25490
|
+
...stackInfo,
|
|
25491
|
+
template: stateTemplate
|
|
25492
|
+
}, targetRegion, { assetMode: { mode: "legacy" } });
|
|
25493
|
+
} catch (error) {
|
|
25494
|
+
if (!(error instanceof CdkToolkitBucketMissingError)) throw error;
|
|
25495
|
+
logger.info(safeMsg`No CDKToolkit stack in ${targetRegion}: recording the cdkd asset storage values for the LegacyStackSynthesizer assets of stack ${stackInfo.stackName}.`);
|
|
25496
|
+
}
|
|
25497
|
+
}
|
|
25498
|
+
}
|
|
25523
25499
|
const overrides = parseResourceOverrides(options.resource, options.resourceMapping, options.resourceMappingInline);
|
|
25524
25500
|
if (overrides.size > 0) logger.debug(`User-supplied physical IDs: ${[...overrides.keys()].join(", ")}`);
|
|
25525
25501
|
const migrationCfnStackName = options.migrateFromCloudformation ? typeof options.migrateFromCloudformation === "string" && options.migrateFromCloudformation.length > 0 ? options.migrateFromCloudformation : stackInfo.stackName : void 0;
|
|
@@ -26315,6 +26291,26 @@ async function templateSsmParameters(provider, template) {
|
|
|
26315
26291
|
}
|
|
26316
26292
|
|
|
26317
26293
|
// src/local/s3-local-state-provider.ts
|
|
26294
|
+
function withCfnRefPhysicalIds(resources) {
|
|
26295
|
+
const out = {};
|
|
26296
|
+
let changed = false;
|
|
26297
|
+
for (const [logicalId, resource] of Object.entries(resources)) {
|
|
26298
|
+
if (typeof resource.physicalId !== "string") {
|
|
26299
|
+
out[logicalId] = resource;
|
|
26300
|
+
continue;
|
|
26301
|
+
}
|
|
26302
|
+
const ref = cfnRefValueFromPhysicalId(resource.resourceType, resource.physicalId, refStateLookupFromResource(resource));
|
|
26303
|
+
if (ref === resource.physicalId || carriesSecretMask(ref)) out[logicalId] = resource;
|
|
26304
|
+
else {
|
|
26305
|
+
out[logicalId] = {
|
|
26306
|
+
...resource,
|
|
26307
|
+
physicalId: ref
|
|
26308
|
+
};
|
|
26309
|
+
changed = true;
|
|
26310
|
+
}
|
|
26311
|
+
}
|
|
26312
|
+
return changed ? out : resources;
|
|
26313
|
+
}
|
|
26318
26314
|
var S3LocalStateProvider = class {
|
|
26319
26315
|
label;
|
|
26320
26316
|
opts;
|
|
@@ -26355,7 +26351,7 @@ var S3LocalStateProvider = class {
|
|
|
26355
26351
|
else if (typeof v === "number" || typeof v === "boolean") outputs[k] = String(v);
|
|
26356
26352
|
else outputs[k] = JSON.stringify(v);
|
|
26357
26353
|
return {
|
|
26358
|
-
resources: loaded.state.resources,
|
|
26354
|
+
resources: withCfnRefPhysicalIds(loaded.state.resources),
|
|
26359
26355
|
outputs,
|
|
26360
26356
|
region: loaded.region
|
|
26361
26357
|
};
|
|
@@ -29864,6 +29860,11 @@ async function loadStateForRoutedStacks(stacks, routes, routesWithAuth, options)
|
|
|
29864
29860
|
const resource = owner.template.Resources?.[ref.logicalId];
|
|
29865
29861
|
if (resource && envHasIntrinsicValue$1(getTemplateEnv$1(resource))) intrinsicEnvStacks.add(owner.stackName);
|
|
29866
29862
|
}
|
|
29863
|
+
const jwtAuthorizerStacks = /* @__PURE__ */ new Set();
|
|
29864
|
+
for (const { authorizer } of routesWithAuth) if (authorizer?.kind === "jwt" && authorizer.pending) {
|
|
29865
|
+
jwtAuthorizerStacks.add(authorizer.pending.stackName);
|
|
29866
|
+
reachableStackNames.add(authorizer.pending.stackName);
|
|
29867
|
+
}
|
|
29867
29868
|
const stackHasIntrinsicEnv = (stackName) => intrinsicEnvStacks.has(stackName);
|
|
29868
29869
|
rejectExplicitCfnStackWithMultipleStacks(options, new Set([...reachableStackNames].map((name) => name.split("~")[0])).size);
|
|
29869
29870
|
const loads = /* @__PURE__ */ new Map();
|
|
@@ -29878,7 +29879,7 @@ async function loadStateForRoutedStacks(stacks, routes, routesWithAuth, options)
|
|
|
29878
29879
|
}
|
|
29879
29880
|
});
|
|
29880
29881
|
}
|
|
29881
|
-
for (const { stackName } of lambdas) {
|
|
29882
|
+
for (const { stackName } of [...lambdas, ...[...jwtAuthorizerStacks].map((n) => ({ stackName: n }))]) {
|
|
29882
29883
|
const key = stateBundleKey(stackName, UNNAMED_WORKLOAD);
|
|
29883
29884
|
if (!loads.has(key)) loads.set(key, {
|
|
29884
29885
|
stackName,
|
|
@@ -30299,6 +30300,7 @@ async function localStartApiCommand(target, options) {
|
|
|
30299
30300
|
let sigV4CredentialsLoader;
|
|
30300
30301
|
const sigV4WarnedForeignIds = /* @__PURE__ */ new Set();
|
|
30301
30302
|
const fromCfnTipEmitted = { value: false };
|
|
30303
|
+
const jwtIntrinsicWarned = /* @__PURE__ */ new Set();
|
|
30302
30304
|
const synthesizeAndBuild = async () => {
|
|
30303
30305
|
logger.info(synthesisStatusMessage(appCmd, "Synthesizing CDK app..."));
|
|
30304
30306
|
const synthesizer = localCommandSynthesizer();
|
|
@@ -30347,6 +30349,15 @@ async function localStartApiCommand(target, options) {
|
|
|
30347
30349
|
const corsConfigByStack = buildCorsConfigByStack(targetStacks);
|
|
30348
30350
|
const stateSourceActive = options.fromState || isCfnFlagPresent(options);
|
|
30349
30351
|
const stateByStack = stateSourceActive ? await loadStateForRoutedStacks(targetStacks, routes, routesWithAuth, options) : /* @__PURE__ */ new Map();
|
|
30352
|
+
routesWithAuth = resolveJwtAuthorizerIntrinsics(routesWithAuth, (stackName) => {
|
|
30353
|
+
const bundle = stateByStack.get(stateBundleKey(stackName, UNNAMED_WORKLOAD));
|
|
30354
|
+
if (!bundle) return void 0;
|
|
30355
|
+
const pseudoParameters = bundle.pseudoParameters ?? derivePseudoParametersFromRegion$1(bundle.region);
|
|
30356
|
+
return {
|
|
30357
|
+
resources: bundle.state.resources,
|
|
30358
|
+
...pseudoParameters && { pseudoParameters }
|
|
30359
|
+
};
|
|
30360
|
+
}, jwtIntrinsicWarned);
|
|
30350
30361
|
const profileCredentials = await profileCredentialsForWorkload(options.profile, resolveProfileCredentials);
|
|
30351
30362
|
if (options.profile && profileCredentials && !profileCredsFile) profileCredsFile = await writeProfileCredentialsFile(options.profile, profileCredentials, {
|
|
30352
30363
|
onDirCreated: (hostPath) => {
|
|
@@ -34423,5 +34434,5 @@ function collectVerbFlags(program) {
|
|
|
34423
34434
|
return map;
|
|
34424
34435
|
}
|
|
34425
34436
|
|
|
34426
|
-
export { resolveSecretDerivedPrincipals as a, buildProgram,
|
|
34427
|
-
//# sourceMappingURL=program-
|
|
34437
|
+
export { resolveSecretDerivedPrincipals as a, buildProgram, isResolvableSecretPrincipalList as i, runDestroyForStack as n, holdsUnprovenSecretPrincipalToken as r, canonicalizeIpv4Cidr as t };
|
|
34438
|
+
//# sourceMappingURL=program-B8pMildk.js.map
|