@cdkd/cli 0.353.3 → 0.355.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-C5srQQ9o.js → ambient-client-defaults-BJiN5aTn.js} +3 -3
- package/dist/{ambient-client-defaults-C5srQQ9o.js.map → ambient-client-defaults-BJiN5aTn.js.map} +1 -1
- package/dist/{asg-provider-tB1k8Uwh.js → asg-provider-CGorVUPJ.js} +427 -13
- package/dist/asg-provider-CGorVUPJ.js.map +1 -0
- package/dist/cli.js +3 -3
- package/dist/{custom-resource-runtime-D4u5m0jm.js → custom-resource-runtime-BdDMjfLC.js} +6 -6
- package/dist/{custom-resource-runtime-D4u5m0jm.js.map → custom-resource-runtime-BdDMjfLC.js.map} +1 -1
- package/dist/{db-associated-roles-BnaNi5RN.js → db-associated-roles-BqVpMI0m.js} +2 -2
- package/dist/{db-associated-roles-BnaNi5RN.js.map → db-associated-roles-BqVpMI0m.js.map} +1 -1
- package/dist/{delete-started-C2CSl-I6.js → delete-started-C19J5kNj.js} +4 -4
- package/dist/{delete-started-C2CSl-I6.js.map → delete-started-C19J5kNj.js.map} +1 -1
- package/dist/{deploy-engine-BVpckkRS.js → deploy-engine-BOKcCf9R.js} +999 -209
- package/dist/deploy-engine-BOKcCf9R.js.map +1 -0
- package/dist/{diff-calculator-BCU775Mq.js → diff-calculator-STmKp2mr.js} +137 -19
- package/dist/diff-calculator-STmKp2mr.js.map +1 -0
- package/dist/{update-policy-CwlmV_Gu.js → ec2-termination-protection-CcXbTL4N.js} +157 -15
- package/dist/ec2-termination-protection-CcXbTL4N.js.map +1 -0
- package/dist/{ecr-uri-XUGi32Yg.js → ecr-uri-DkYBMkSf.js} +2 -2
- package/dist/{ecr-uri-XUGi32Yg.js.map → ecr-uri-DkYBMkSf.js.map} +1 -1
- package/dist/{expected-bucket-owner-C4dNW0qP.js → expected-bucket-owner-iWIC_uzK.js} +2 -2
- package/dist/{expected-bucket-owner-C4dNW0qP.js.map → expected-bucket-owner-iWIC_uzK.js.map} +1 -1
- package/dist/{iam-role-provider-DJEUwSEl.js → iam-role-provider-DvIPwNAz.js} +8 -8
- package/dist/{iam-role-provider-DJEUwSEl.js.map → iam-role-provider-DvIPwNAz.js.map} +1 -1
- package/dist/{image-plan-DzYuesLu.js → image-plan-B_MsB6uj.js} +15 -18
- package/dist/image-plan-B_MsB6uj.js.map +1 -0
- package/dist/index.d.ts +28 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-DPzmJjGz.js → logger-CRTakAJI.js} +2 -2
- package/dist/{logger-DPzmJjGz.js.map → logger-CRTakAJI.js.map} +1 -1
- package/dist/{neptune-provider-BOGkXyqL.js → neptune-provider-7DAE0TN7.js} +7 -7
- package/dist/{neptune-provider-BOGkXyqL.js.map → neptune-provider-7DAE0TN7.js.map} +1 -1
- package/dist/{program-BiexuIhK.js → program-CWUDb373.js} +307 -84
- package/dist/program-CWUDb373.js.map +1 -0
- package/dist/{provider-classes-DQeVpjrY.js → provider-classes-C8Pm3Ay1.js} +393 -125
- package/dist/provider-classes-C8Pm3Ay1.js.map +1 -0
- package/dist/{rds-provider-DAsMfyF7.js → rds-provider-CGsB4Wp0.js} +10 -10
- package/dist/{rds-provider-DAsMfyF7.js.map → rds-provider-CGsB4Wp0.js.map} +1 -1
- package/dist/{read-replica-CsjvBe-D.js → read-replica-DsWNg8kx.js} +3 -3
- package/dist/{read-replica-CsjvBe-D.js.map → read-replica-DsWNg8kx.js.map} +1 -1
- package/dist/{replacement-rules-p8Qw0DJO.js → replacement-rules-QZUAl8ah.js} +4 -3
- package/dist/{replacement-rules-p8Qw0DJO.js.map → replacement-rules-QZUAl8ah.js.map} +1 -1
- package/dist/{resource-deadline-CM7iQyoh.js → resource-deadline-CXP2TUVz.js} +4 -4
- package/dist/{resource-deadline-CM7iQyoh.js.map → resource-deadline-CXP2TUVz.js.map} +1 -1
- package/dist/{restore-source-guard-DISHGYsK.js → restore-source-guard-BRT1OlJ2.js} +4 -4
- package/dist/{restore-source-guard-DISHGYsK.js.map → restore-source-guard-BRT1OlJ2.js.map} +1 -1
- package/dist/{run-cli-BVB8mILG.js → run-cli-9IvHor5O.js} +2 -2
- package/dist/{run-cli-BVB8mILG.js.map → run-cli-9IvHor5O.js.map} +1 -1
- package/dist/{version-Be5vs808.js → version-DyK3ezVd.js} +2 -2
- package/dist/{version-Be5vs808.js.map → version-DyK3ezVd.js.map} +1 -1
- package/package.json +3 -2
- package/dist/asg-provider-tB1k8Uwh.js.map +0 -1
- package/dist/deploy-engine-BVpckkRS.js.map +0 -1
- package/dist/diff-calculator-BCU775Mq.js.map +0 -1
- package/dist/image-plan-DzYuesLu.js.map +0 -1
- package/dist/program-BiexuIhK.js.map +0 -1
- package/dist/provider-classes-DQeVpjrY.js.map +0 -1
- package/dist/update-policy-CwlmV_Gu.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
|
|
3
|
-
import { C as readRecordedPrincipals, Dt as isInterruptedWaitError, Et as interruptWatchListenerCount, Ft as resourceTypeShown, G as remedyLogicalId, J as assertRegionMatch, L as VALUE_NOT_SHOWN, Nt as logicalIdShown, Tt as endCommandInterruptScope, Y as isMarkedNotGone, _ as IAM_PRINCIPAL_NAME, an as forceQuitRecoveryClause, bt as isAwsCliLiteral, cn as formatLockOwner, dn as CUSTOM_RESOURCE_RESPONSE_PREFIX, fn as DEFAULT_STATE_PREFIX, gn as injectiveKey, hn as withPasteableAwsProfile, i as withResourceDeadline, in as buildLockContentionMessage, mn as setPasteableAwsProfile, nn as UNREPRODUCIBLE_LOCK_CLAUSE, on as formatLockExpiry, pn as setPasteableAwsCaBundle, pt as runDeleteAttempt, q as RESOURCE_NOT_FOUND, rn as buildForceUnlockCommand, sn as formatLockOperation, v as RESOLVED_PREVIOUS_PRINCIPAL_KEYS, vn as producerCoordinateKey, wt as beginCommandInterruptScope, yn as producerRecordKey } from "./resource-deadline-
|
|
1
|
+
import { A as displayStackName, C as STACK_REF_MAX_CODE_POINTS, D as displayAwsMessage, E as cutMarker, F as stringifyJsonPayload, I as terminalSafe, L as truncateCodePoints, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, T as asIsMessage, _ as shellQuote, b as setPasteableVerbFlags, c as deployReplaceCommand, d as pasteableCommand, g as shellBoundedDisplay, h as quotedOrDescribed, i as SHELL_ACTIVE_WHY, j as isPasteableIdent, k as displaySafe, m as proseQuoted, o as cdkdRemedy, p as plainOrDescribed, s as commandHole, t as getCdkdVersion, u as isInertUnquoted, v as withheldTargetClause, w as UNRENDERABLE, x as SAFE_MSG_ALTERED_CHAR, y as setPasteableRunFlags } from "./version-DyK3ezVd.js";
|
|
2
|
+
import { $ as renderStacksNoLongerSelected, $t as deployOptions, A as followContainerLogs, At as namedEnvAwsRegion, B as resolveRuntimeCodeMountPath, Bt as regionNeedsReconciliation, C as waitForRieReady, Cn as STATE_FILE_SUFFIX, Ct as resolveContainerRegion, Dn as listAllStateKeys, Dt as warnAwsEmulatorStateSourceHint, E as SENSITIVE_ENV_KEYS, En as listAllLockKeys, Et as taskRoleAssumedInRealAws, F as removeContainer, Ft as legacyStateBucketFallbackRegion, G as nestedOwnerOfLogicalId, Gt as withOtherIndexRemoval, H as resolveRuntimeImage, Ht as resolveEffectiveRegion, It as namedCliRegion, J as renderAllLeftOutStageStacks, Jt as annotationMessageOptions, K as partitionTopLevel, Kt as strandedProfileCredentialsNotice, L as runDetached, Lt as rawCliRegion, M as killAndDrainContainerLogs, Mt as adoptRegionFlag, N as pickFreePort, Nt as exportInferredRegionForSdk, O as ensureDockerAvailable, On as parseStateKey, Ot as workloadGetsEmulatorKeysOnly, P as pullImage, Pt as foldRegionOption, Q as renderNotInAppWarning, Qt as contextOptions, Rt as reconcileExportIndexRegion, S as invokeRie, Sn as LOCK_FILE_SUFFIX, St as realAwsException, T as DockerRunnerError, Tn as describeStateKey, Tt as stateRoleRecordIsEmulatorSide, U as describeStack, Ut as stackRegionResolver, V as resolveRuntimeFileExtension, Vt as regionShown, W as matchStacks, Wt as stateWithRegion, X as renderAmbiguousTargetStack, Xt as applyWaitFlagEnv, Y as renderAllNoTopLevelStacks, Yt as appOptions, Z as renderNoStackMatch, Zt as commonOptions, _ as probeHostGatewaySupport, _n as parseDuration, _t as localAwsEmulatorCredentials, a as materializeLayerFromArn, an as noLocalCustomResourcesOption, at as unmatchedPatterns, b as substituteImagePlaceholders, bn as cliArgParser, bt as prepareLocalLoopbackForwarder, cn as regionOption, ct as resolveCdkPathToLogicalIds, d as resolveAssetCodeDirectory, dn as stateOptions, dt as activateLocalAwsAndRoleArn, en as destroyOptions, et as renderUnmatchedPatternsWarning, f as architectureToPlatform, fn as useCdkBootstrapAssetsOption, ft as assertAwsEmulatorValue, g as HOST_GATEWAY_MIN_VERSION, gn as allowUnsupportedTypesOption, gt as localAwsEmulatorActive, h as layerAssetDirectory, hn as parseAssumeRoleToken, ht as keepEmulatorIssuedCredentials, i as resolveInlineCodeFilePath, in as noCfnFallbackOption, it as stacksNoLongerSelected, jt as recordEmulatorDefaultRegion, k as flushStdio, kt as emulatorDefaultRegion, l as resolveLambdaLayers, ln as skipFinalSnapshotOption, lt as stackForConstructPath, m as copyLayerTreeLastWins, mn as normalizeStartApiAssumeRole, mt as getActiveWorkloadAwsWiring$1, n as resolveTmpfsForLambda, nn as exclusivelyOption, nt as stackMatchesPattern, o as resolveLambdaTarget, on as parseContextOptions, ot as buildCdkPathIndex, p as buildContainerImage$1, pn as effectiveAssumeRoleArn, pt as attachLocalLoopbackForwarder, q as refuseStackNameRegionCollisions, qt as writeProfileCredentialsFile, r as resolveZipImagePlan, rn as guardStackRegionOptions, rt as stacksForDependency, s as extractEphemeralStorageMb, sn as parseStackRegion, st as readCdkPathOrUndefined, t as resolveLocalBuildPlan$1, tn as diffUpdatePolicyOptions, tt as selectTargetStack, u as assetPathDirs, un as stackOptions, ut as stackForPathFormTarget, v as resolveHostGatewayExtraHosts, vn as resourceTimeoutOptions, vt as mixedModeActive, w as CONTAINER_LOG_DRAIN_TIMEOUT_MS, wn as STATE_KEY_MAX_CODE_POINTS, wt as setContainerRegion, x as tryResolveImageFnJoin, xn as parsePositiveIntegerOption, xt as profileCredentialsForWorkload, y as derivePseudoParametersFromRegion$1, yn as validateResourceTimeouts, yt as mixedModeEmulatorOverride, z as streamLogs, zt as reconcileMarkerRegionWithLegacyDefault } from "./image-plan-B_MsB6uj.js";
|
|
3
|
+
import { C as readRecordedPrincipals, Dt as isInterruptedWaitError, Et as interruptWatchListenerCount, Ft as resourceTypeShown, G as remedyLogicalId, J as assertRegionMatch, L as VALUE_NOT_SHOWN, Nt as logicalIdShown, Tt as endCommandInterruptScope, Y as isMarkedNotGone, _ as IAM_PRINCIPAL_NAME, an as forceQuitRecoveryClause, bt as isAwsCliLiteral, cn as formatLockOwner, dn as CUSTOM_RESOURCE_RESPONSE_PREFIX, fn as DEFAULT_STATE_PREFIX, gn as injectiveKey, hn as withPasteableAwsProfile, i as withResourceDeadline, in as buildLockContentionMessage, mn as setPasteableAwsProfile, nn as UNREPRODUCIBLE_LOCK_CLAUSE, on as formatLockExpiry, pn as setPasteableAwsCaBundle, pt as runDeleteAttempt, q as RESOURCE_NOT_FOUND, rn as buildForceUnlockCommand, sn as formatLockOperation, v as RESOLVED_PREVIOUS_PRINCIPAL_KEYS, vn as producerCoordinateKey, wt as beginCommandInterruptScope, yn as producerRecordKey } from "./resource-deadline-CXP2TUVz.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-CRTakAJI.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-BJiN5aTn.js";
|
|
7
7
|
import { a as getAssumedRoleCredentials, c as setAssumedRoleCredentials, h as formatAuthority, l as setAwsEndpointOverrideSource, m as runInStackAwsScope, n as awsClientDefaults, r as awsEndpointOverrideActive, s as runWithRealAws } from "./aws-client-defaults-DAebi99J.js";
|
|
8
|
-
import { $ as
|
|
9
|
-
import { $a as 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-BVpckkRS.js";
|
|
8
|
+
import { $ as legacyPlanAssetCount, A as getLegacyStateBucketName, B as resolveUseCdkBootstrapAssets, C as getDockerCmd, D as Synthesizer, E as abortInFlightMultipartUploads, F as resolveSkipPrefix, G as MIGRATE_TMP_PREFIX, H as warnDeprecatedNoPrefixCliFlag, I as resolveStateBucketWithDefault, J as refuseFailedLookups, K as findLargeInlineResources, L as resolveStateBucketWithDefaultAndSource, M as resolveApp, N as resolveAutoAssetStorage, O as synthesisStatusMessage, P as resolveCaptureObservedState, Q as createLegacyAssetParameterBinder, R as resolveStateBucketWithSource, S as formatDockerLoginError, T as runDockerStreaming, U as CFN_TEMPLATE_BODY_LIMIT, V as stateBucketExistenceConfirmed, W as CFN_TEMPLATE_URL_LIMIT, X as StageLoadError, Y as AssemblyReader, Z as bindLegacyStackAssetParameters, _ as finchSecretArgvRefusal, a as isLockInfoExpired, b as isDockerClientEnvKey, c as buildDockerImage, d as describeDockerExecFailure, et as predictedAutoCreatedAssetMode, f as describeDockerFailure, g as dockerSpawnEnvWithSensitive, h as redactDockerArgvValues, i as LockManager, it as setChildProcessAwsEnv, j as loadCdkJson, k as getDefaultStateBucketName, l as resolveDockerContextDirectory, m as redactedDockerCause, nt as CdkToolkitBucketMissingError, o as AssetPublisher, p as redactedCause, q as uploadCfnTemplate, r as DagBuilder, rt as processStackMessages, s as WorkGraph, t as DiffCalculator, tt as prepareLegacyStackAssets, v as partitionSensitiveEnv, w as runDockerForeground, x as isMalformedEnvKey, y as warnFinchArgvExposure, z as resolveUpdatePolicy } from "./diff-calculator-STmKp2mr.js";
|
|
9
|
+
import { $c as TemplateParser, $i as ATOMIC_FINAL_SNAPSHOT_TYPES, $l as isCrossRegionRedirect, $n as replayFailedOperations, $o as withSharedDrainBudget, $r as displayTextOrWithheld, $s as repairMalformedResourceEntriesForReadOnly, $t as dropSettledNestedJournals, A as recordedProtectionEvidence, Ac as refuseMalformedResourcesForDeploy, Ai as cyan, An as formatDestructiveChange, Ao as parameterTypeMayLoseSecretIdentity, Ar as withPreviousPolicies, As as isReadableOrphanRecord, Ba as RollbackInlinePolicyWriters, Bc as displayLogicalId, Bi as createReadOnlyAttributeHealerFactory, Bn as isPairableType, Bo as keepHeldTokenProvenance, Br as nameGenerationHighWaterOf, Bs as unreadableOrphanRecords, Bt as updateRefactorMarker, C as pendingMovesOutOf, Cc as refuseMalformedOutputsForDestroy, Ci as isSupersededResourceRecord, Cl as templateIdentity, Cn as createNoEchoValueMacs, Cr as planFailedOps, D as findServiceTokenRefusals, Dc as malformedRenderedContainersWarning, Di as supersededResourcesOf, Dl as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, Dn as noEchoValueMacsOf, Dr as IMPLICIT_DELETE_DEPENDENCIES, Ds as declaresNoEcho, E as deferredServiceTokenWarning, Ea as isCustomResourceType$1, Ec as refuseDivergentRecordRegionForDestroy, Ei as supersededHolderOf, El as ssmResolvedValueType, En as noEchoMacVerdict, Er as replacementNeverSwapped, F as readProtection, Fa as setLocalCustomResourceRuntimeEnabled, Fc as JSON_LISTING_HOLE_VALUE, Fi as noEchoAttributeNamesOf, Fn as withMovedTo, Fo as lacksRecordedRefArn, Fs as refuseMalformedOrphanRecords, Ft as readRefactorMarkerOnce, Gi as orphanRecordsPrintingBag, Gn as proposeRenames, Gr as withNameGenerationReached, Gs as malformedScrubResourceEntriesRefusalMessage, Ha as deleteIndeterminateGuards, Hc as hasReadableResources, Hi as journaledOrphanPrintingBag, Hl as AssetManifestLoader, Hn as mappingPairs, Ho as recordedOutputReferenceRegions, Hr as retiredAfterRollback, Hs as malformedLocalResourceEntriesWarning, Ht as readsOnlyNoEchoParameters, Ia as withCustomResourceStack, Ic as accountArgs, Ii as noEchoComparisonForTemplate, In as changedReferenceInDiff, Io as lacksRecordedTableArn, Ir as segmentCleanupOptions, Is as refuseMalformedOrphanRecordsForDestroy, It as refactorMarkerMovesOf, Ja as IntrinsicFunctionResolver, Jn as stripSiblingOwnedSgRules, Jo as isImpossibleEmptyStoredAttribute, Jr as computeParameterTaint, Js as refuseMalformedResourceEntriesForDeploy, Jt as pendingRequestCount, Ka as getReadOnlyPropertyPaths, Kc as unwrittenCreateOnlyReplacement, Ki as secretNamePrintingBag, Kn as referencedLogicalIds, Ks as refuseMalformedResourceAttributesForOrphan, Lc as withheldAccountClause, Li as noEchoExactEchoLeavesOf, Ln as changedReferencePath, Lr as removeProtectionTypeList, Ls as refuseMalformedOrphansForOrphan, Lt as refactorMarkerRefusalMessage, M as PROTECTION_PROPERTY_BY_TYPE, Ma as customResourcesRunWithoutApp, Mc as refuseMalformedResourcesForExport, Mi as green, Ml as buildAssetRedirectMap, Mn as hintSidesOf, Mo as cfnRefValueFromPhysicalId, Ms as malformedOrphanRecordsWarning, Mt as keptForRetainedRecord, N as isProtectionValueActive, Na as localCustomResourceCommand, Nc as refuseMalformedState, Ni as red, Nl as createAssetRedirectResolver, Nn as movedToHint, No as isStalePlaceholderArnAttribute, Ns as malformedOrphanRowsKeptWarning, Nt as recordRetainedForReadoption, O as serviceTokenBlockingReason, Oa as withPrintingSecrets, Oc as malformedResourcesWarning, Oi as withoutSuperseded, On as constructPathOf$1, Oo as coerceParameterTypedValue, Or as computeImplicitDeleteEdges, Os as maskedPropertyFingerprint, P as perType, Pc as repairMalformedResourcesForReadOnly, Pi as yellow, Pl as createLazyAssetModeContext, Pn as rollbackOrphanIds, Po as refStateLookupFromResource, Ps as previewableOrphanRecords, Pt as readRefactorMarker, Qa as stackIdTailOf, Qc as PROPERTY_COVERAGE_BY_TYPE, Qi as extractDeploymentEventError, Ql as assertAssetBucketRegion, Qn as canonicalizeIpProtocolValue, Qo as keepsSecretReferenceToken, Qr as WITHHELD_NAME_DISPLAY, Qs as refuseMalformedResourceEntriesForOrphan, Qt as displacedPhysicalIdShown, Ra as CloudControlProvider, Rc as STATE_RESOURCES_MALFORMED, Ri as noEchoParameterNamesOf, Rl as loadPublishableAssetManifest, Rn as changedReferenceReason, Rr as orphanNeedsIdentity, Rs as repairMalformedOrphanRecordsForReadOnly, Rt as refuseRefactorMarker, S as hasPendingMovesOut, Sa as customResourceResponseExpirationWarning, Sc as refuseMalformedOutputs, Si as holdsSupersededResources, Sl as renderNestedTemplateTreeDefect, Sn as NOECHO_MAC_KEY_ALIAS, So as regionLessSecretName, Sr as isReplacementOrphan, Ss as maskedPropertyFingerprintsOf, T as refusePendingMovesOut, Ta as readsNoEchoDeleteValues, Tc as STATE_REGION_DIVERGED, Ti as supersededHeldByOtherTypeWarning, Tn as noEchoMacParametersOf, Tr as recordUnderIdIsNotOwn, Ts as maskedInputProof, Ua as deleteLeftInPlace, Uc as findActionableSdkUnwired, Ui as maskEventTextWithBoundBags, Ul as getDockerImageBySourceHash, Un as parseMappingFile, Ur as retiredNameGenerationsAfter, Us as malformedLocalResourcesWarning, Ut as formatResourceLine, Va as UNSPECIFIED_SKIP_REASON, Vc as hasReadableOutputs, Vi as completedReplayEntries, Vl as rewriteTemplateAssetReferences, Vn as looselyEqual, Vr as nameScopeOf, Vs as isReadableResourceEntry, Vt as macWriteOnlyKeys, Wa as deleteSkipReason, Wc as findHandledUnwrittenCreateOnly, Wi as namingSecretsWithRecordedNoEcho, Wn as propertiesChangedReason, Wo as recordedReferenceRegions, Wr as retiredNameGenerationsLeaving, Ws as malformedResourceEntriesWarning, Xa as isAlwaysLiveAttribute, Xc as NO_CC_HANDLERS_REASON, Xi as stateSecretNameNeedles, Xl as ensureAssetStorage, Xo as isNamelessDynamicReferenceError, Xr as reachableDivergentParameters, Xs as refuseMalformedResourceEntriesForImport, Xt as NESTED_PENDING_PARENT_REASON, Ya as isSelectOutOfBounds, Yi as secretNamedRecordNeedles, Yl as AssetModeResolver, Yo as carriesFetchableDynamicReference, Yr as namesAnyDeclaredParameter, Ys as refuseMalformedResourceEntriesForDestroy, Yt as resolvePendingCloudControlRequests, Za as poisonRenderedSpellingsCollidingIn, Zc as hasNoCloudControlHandlers, Zi as storedSecretNameNeedles, Zl as buildDenyExternalAccessPolicy, Zo as carriesDynamicReference, Zr as resourcesNamingDeclaredParameter, Zs as refuseMalformedResourceEntriesForImportSave, Zt as displacedOpClause, _ as conditionFingerprint, _a as ccBrokenReason, _c as malformedExportSourceWarning, _i as destroyStackRecordsView, _n as makeSiblingClaimReader, _o as callerEnvCredentials, a as scanActiveConsumers, aa as refusesFinalSnapshot, ac as refuseMalformedResourcePropertiesForDrift, ai as exportNameNoEchoParameters, al as hasUnverifiableParameterRefusal, an as withNestedRevertRun, ao as resolveDynamicReferences, ar as calculateResourceDrift, au as BOOTSTRAP_MARKER_PREFIX, b as readRecordedConditionVerdicts, ba as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, bc as malformedOutputsWarning, bl as isAbsoluteAssetPath, bn as DeploymentEventsStore, bo as classifyReplaySecretRegion, br as demoteSupersededOrphans, bs as tryGetTopLevelWriteOnlyProperties, c as nestedSsmNameDeferredNote, ca as buildFinalSnapshotIdentifier, cc as repairMalformedResourcePropertiesForReadOnly, ci as noEchoParameterValueSeed, cl as CrossPrefixScanCache, cn as withNestedStackContext, co as applyRoleArnIfSet, cr as undeclaredEmptyObservedKeys, cs as shownType, cu as defineOwnKey, d as slashedSsmNameHealAdoptedNote, dc as malformedOrphansRefusalMessage, di as isExportAliasCollision, dl as isAccessDenied, dn as dropFailedHint, do as explicitRoleArnOrThrow, dr as findUpdatePolicyReplacementRefusals, ds as isStatefulRecreateTargetSync, du as nullPrototypeRecord, ea as PRE_DELETE_SNAPSHOT_TYPES, ec as unreadableResourceEntries, ei as exportAliasCollisionScrubWarning, el as S3StateBackend, er as replayRollback, eu as getBootstrapMarkerKey, f as slashedSsmNameHealNote, fa as stripSiblingOwnedMembers, fc as malformedOrphansWarning, fi as bindingSkippedOutputs, fl as isNotImplemented, fn as isHandledOrphan, fo as isIamRoleArn, fr as replacementCreateRoutesToCloudControl, fs as renderStatefulReason, fu as ownValue, g as makeCanonicalizePropertiesFn, ga as ProviderRegistry, gc as malformedExportNamesWarning, gl as isSensitiveAttributeName, gn as makeForeignHolderScan, go as applyCallerIdentityCredentials, gr as withCreateTokenLedger, gu as displayAssemblyPath, h as inheritedProvenanceForChildDiff, ha as CC_BROKEN_REASON, hc as repairMalformedOrphansForReadOnly, hi as maskingRetryLogger, hl as isSecretValuedAttribute, hn as sameJournaledOrphans, ho as AWS_CREDENTIAL_ENV_KEYS, hu as describeFileReadFailure, i as mergeNoChangeOutputs, ia as isFinalSnapshotError, ic as refuseMalformedResourcePropertiesForDestroy, ii as carriedExportAliasExposure, il as hasReasonlessBaselineRefusal, in as revertedNestedRowIds, io as withSecretPhysicalIdsMaskedInState, ir as withUnprovenUnsettled, iu as validateContainerRepoName, j as recordedProtectionNote, ja as customResourcesFailedWithoutApp, jc as refuseMalformedResourcesForDestroy, ji as gray, jn as findRefactorHints, jo as AWS_NO_VALUE, jr as findNestedStackTypeChanges, js as malformedOrphanRecordsRefusalMessage, k as diffSecurity, ka as NO_LOCAL_CUSTOM_RESOURCES_FLAG, kc as malformedStateRefusalMessage, ki as bold, kl as decodeListingKey, kn as findDestructiveChanges, ko as isUnboundTemplateParameter, kr as resolveReplacementOldType, ks as deployRefusesOrphanRowsReason, l as nestedSsmNameRowNote, lc as UNREADABLE_ORPHANS_CONTAINER_ROW, li as collectDeclaredOutputNames, ll as applyCrossPrefixScan, ln as deleteJournaledOrphans, lo as assertFlagRoleArn, lr as updatePartialMessage, ls as MULTI_REGION_RECREATE_BLOCKED_TYPES, lu as hasOwnKey, m as crossStackOutputProvenanceSource, mc as refuseMalformedOrphansForDestroy, mi as DEFAULT_RESOURCE_WARN_AFTER_MS, ml as withStackInstanceIdWithheld, mn as loadJournaledOrphans, mo as sendableAssumeRoleCommand, mr as ledgerForStack, n as isSecretBearingReferenceString, na as ccRoutedInstanceTakesNoSnapshot, nc as malformedResourcePropertiesWarning, ni as secretBearingStateKeyWarning, nn as recordDisplacedSkips, no as secretPhysicalIdSegment, nr as recordAfterRollbackUpdate, nu as readBootstrapMarkerBody, o as inRunStackKey, oa as unsupportedFinalSnapshotError, oc as refuseMalformedResourcePropertiesForExport, oi as exportNameSecretExposure, ol as rebuildClientForBucketRegion, on as collectNestedChildUnaddressed, oo as producerLookupOver, or as equalModuloMarkedMask, os as findReplacedReadersOfRecreateTargets, p as slashedSsmNameHealPendingNote, pc as refuseMalformedOrphans, pi as DEFAULT_RESOURCE_TIMEOUT_MS, pl as stackInstanceIdOf, pn as journaledOrphanLines, po as parseIamRoleArn, qa as isWaitAbandonedError, qi as secretNamePrintingBags, qo as getAccountInfo, qr as inheritProducerRegions, qs as refuseMalformedResourceEntries, r as keptWholeReasonText, ra as effectiveDeletionPolicy, ri as secretSafeKeyDisplay, rl as readOnlyStateVersionOf, ro as secretSegmentsOfState, rr as settleUnsettledPrevious, ru as validateAssetBucketName, s as checkNestedSsmNames, sa as createPreDeleteFinalSnapshot, sc as refuseMalformedResourcePropertiesForOrphan, si as isWholeDynamicReferenceValue, sl as CrossPrefixReadError, sn as getCurrentNestedStackContext, so as refuseUnreadableCdkCrossAccountRefs, sr as equalModuloMask, t as DeployEngine, ta as ccRoutedFinalSnapshotError, tc as malformedDriftResourcePropertiesWarning, ti as secretBearing, tl as splitImportedOps, tn as nestedChildStackName$1, tr as DELETED_RESOURCE_REMEDY, ts as INTRINSIC_KEYS, tu as parseBootstrapMarker, u as healSlashedSsmParameterNames, uc as hasReadableOrphans, ui as collectPublishedOutputNames, ul as crossPrefixDeniedWarning, un as dropFailedCommands, uo as assertSendableRoleArn, ur as updatePartialReason, us as isStatefulRecreateTargetForReplace, uu as hasPlainPrototype, v as conditionInputsFrom, va as isCustomResource, vc as malformedLocalOutputsWarning, vn as planOrphanAdoption, vo as envCredentialsAreAssumedRole, vr as planRollback, vs as getSettledWriteOnlyPropertyPaths, vu as renderAssemblyPathEscape, w as pendingMovesRefusalMessage, wa as TemplateNoEchoReresolver, wc as repairMalformedOutputsForReadOnly, wi as supersededAfterRollback, wn as noEchoMacBinding, wr as recheckFailedPlan, ws as parameterInputsFor, x as childTemplateLoader, xa as applyCustomResourceResponseExpiration, xi as deleteSupersededEntry, xl as listNestedTemplateRows, xn as crossStackReadsForPartialSave, xo as producerRegionsFromState, xr as isJournaledOrphan, xu as resolveBucketRegion, y as parentSuppliedValues, ya as wouldReturnToSdkProvider, yc as malformedOutputsRefusalMessage, yi as withStackRecords, yl as findNestedTemplateTreeDefect, yn as DeploymentEventsReader, yo as classifyRecordedSecretRegion, yr as seedsDeleteFirstGuard, ys as getTopLevelKeysHoldingUnreadableCreateOnly, yu as resolveAssemblyPath, zc as UNREADABLE_RESOURCES_MAP_ROW, zi as withAttemptedItemsMasked, zn as differingRemedy, zr as nameGenerationCarriedFrom, zs as unpreviewableOrphanRecords, zt as sameMove } from "./deploy-engine-BOKcCf9R.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 { S as unsettledPropertiesOf, T as withoutUnsettledProperties, b as unsettledItemsOf, w as withUnsettledProperties, y as unsettledItemsField } from "./restore-source-guard-
|
|
16
|
-
import { a as parseEcrRegistryHost, i as looksLikeEcrHostWithForeignSuffix, n as hasEcrRegistryHostLabels, t as ecrRegistryHostPattern } from "./ecr-uri-
|
|
11
|
+
import { A as withRetry, C as templateResourceTypes, G as describeJsonParseFailure, H as renderPhaseTimings, R as PhaseClock, S as prefetchCreateOnlyPropertyPaths, T as describeTypeWithThrottleRetry, U as timePhase, Y as utf8ByteLength, b as getCreateOnlyPropertyPaths, c as setResolvedResourceTimeouts, q as parseFailureDebugDetail } from "./ec2-termination-protection-CcXbTL4N.js";
|
|
12
|
+
import { t as expectedOwnerParam } from "./expected-bucket-owner-iWIC_uzK.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-C19J5kNj.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-QZUAl8ah.js";
|
|
15
|
+
import { S as unsettledPropertiesOf, T as withoutUnsettledProperties, b as unsettledItemsOf, w as withUnsettledProperties, y as unsettledItemsField } from "./restore-source-guard-BRT1OlJ2.js";
|
|
16
|
+
import { a as parseEcrRegistryHost, i as looksLikeEcrHostWithForeignSuffix, n as hasEcrRegistryHostLabels, t as ecrRegistryHostPattern } from "./ecr-uri-DkYBMkSf.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";
|
|
@@ -1009,7 +1009,6 @@ async function synthCommand(stackPatterns, options) {
|
|
|
1009
1009
|
const logger = getLogger();
|
|
1010
1010
|
if (options.verbose) logger.setLevel("debug");
|
|
1011
1011
|
reserveStdoutForPayload();
|
|
1012
|
-
warnIfDeprecatedRegion(options);
|
|
1013
1012
|
foldRegionOption(options);
|
|
1014
1013
|
await applyRoleArnIfSet({
|
|
1015
1014
|
roleArn: options.roleArn,
|
|
@@ -1073,7 +1072,7 @@ function createSynthCommand() {
|
|
|
1073
1072
|
...contextOptions,
|
|
1074
1073
|
...annotationMessageOptions
|
|
1075
1074
|
].forEach((opt) => cmd.addOption(opt));
|
|
1076
|
-
cmd.addOption(
|
|
1075
|
+
cmd.addOption(regionOption);
|
|
1077
1076
|
return cmd;
|
|
1078
1077
|
}
|
|
1079
1078
|
|
|
@@ -1111,7 +1110,6 @@ async function listCommand(patterns, options) {
|
|
|
1111
1110
|
const logger = getLogger();
|
|
1112
1111
|
if (options.verbose) logger.setLevel("debug");
|
|
1113
1112
|
reserveStdoutForPayload();
|
|
1114
|
-
warnIfDeprecatedRegion(options);
|
|
1115
1113
|
foldRegionOption(options);
|
|
1116
1114
|
await applyRoleArnIfSet({
|
|
1117
1115
|
roleArn: options.roleArn,
|
|
@@ -1168,7 +1166,7 @@ function createListCommand() {
|
|
|
1168
1166
|
...appOptions,
|
|
1169
1167
|
...contextOptions
|
|
1170
1168
|
].forEach((opt) => cmd.addOption(opt));
|
|
1171
|
-
cmd.addOption(
|
|
1169
|
+
cmd.addOption(regionOption);
|
|
1172
1170
|
return cmd;
|
|
1173
1171
|
}
|
|
1174
1172
|
|
|
@@ -1543,7 +1541,7 @@ function collectCrossStackRefs(node, onRef, unconditional) {
|
|
|
1543
1541
|
// src/provisioning/register-providers.ts
|
|
1544
1542
|
let providerClasses;
|
|
1545
1543
|
function loadProviderClasses() {
|
|
1546
|
-
providerClasses ??= import("./provider-classes-
|
|
1544
|
+
providerClasses ??= import("./provider-classes-C8Pm3Ay1.js");
|
|
1547
1545
|
return providerClasses;
|
|
1548
1546
|
}
|
|
1549
1547
|
function registerAllProviders(registry, classes) {
|
|
@@ -3399,7 +3397,6 @@ async function deployCommand(stacks, options) {
|
|
|
3399
3397
|
logger.setLevel("debug");
|
|
3400
3398
|
process.env["CDKD_NO_LIVE"] = "1";
|
|
3401
3399
|
}
|
|
3402
|
-
warnIfDeprecatedRegion(options);
|
|
3403
3400
|
validateResourceTimeouts(options);
|
|
3404
3401
|
setResolvedResourceTimeouts(options.resourceTimeout);
|
|
3405
3402
|
applyWaitFlagEnv(options);
|
|
@@ -3578,7 +3575,10 @@ async function deployCommand(stacks, options) {
|
|
|
3578
3575
|
bucket: stateBucket,
|
|
3579
3576
|
prefix: options.statePrefix
|
|
3580
3577
|
};
|
|
3581
|
-
const dagBuilder = new DagBuilder({
|
|
3578
|
+
const dagBuilder = new DagBuilder({
|
|
3579
|
+
relaxCdkVpcDefensiveDeps: !!options.aggressiveVpcParallel,
|
|
3580
|
+
...resolveUpdatePolicy(options.updatePolicy) === true && { updatePolicyReferences: true }
|
|
3581
|
+
});
|
|
3582
3582
|
const diffCalculator = new DiffCalculator();
|
|
3583
3583
|
const workGraph = new WorkGraph();
|
|
3584
3584
|
const sharedNames = new Set(targetStacks.map((s) => s.stackName).filter((name, i, names) => names.indexOf(name) !== i));
|
|
@@ -3708,7 +3708,7 @@ function createDeployCommand() {
|
|
|
3708
3708
|
...contextOptions,
|
|
3709
3709
|
...annotationMessageOptions
|
|
3710
3710
|
].forEach((opt) => cmd.addOption(opt));
|
|
3711
|
-
cmd.addOption(
|
|
3711
|
+
cmd.addOption(regionOption);
|
|
3712
3712
|
return cmd;
|
|
3713
3713
|
}
|
|
3714
3714
|
|
|
@@ -5764,7 +5764,7 @@ async function computeStackDiff(loadedState, template, region, stackName, stateB
|
|
|
5764
5764
|
const changes = await diffCalculator.calculateDiff(stateForDiff, effectiveTemplate, resolveFn, canonicalizeProperties, void 0, void 0, maskForLog, void 0, maskedInputs, options.refusalRecovery, noEchoComparisonForTemplate(effectiveTemplate, conditions === void 0 ? void 0 : Object.fromEntries(Object.entries(conditions).filter(([name]) => !stillUnknown.includes(name))), mergedParameters, stateForDiff.resources, /* @__PURE__ */ new Set([region, stackName]), inheritedNoEchoParameters), {
|
|
5765
5765
|
...options.inheritedReferenceProvenance && { inherited: options.inheritedReferenceProvenance },
|
|
5766
5766
|
crossStackOutputs: crossStackOutputProvenanceSource(crossStackReads, crossStackReads, stateBackend)
|
|
5767
|
-
}, options.forcedNestedChildRuns);
|
|
5767
|
+
}, options.forcedNestedChildRuns, options.updatePolicy === true);
|
|
5768
5768
|
const macConditions = conditions === void 0 ? void 0 : Object.fromEntries(Object.entries(conditions).filter(([name]) => !stillUnknown.includes(name)));
|
|
5769
5769
|
const macMoved = await previewNoEchoMacChanges({
|
|
5770
5770
|
changes,
|
|
@@ -5801,6 +5801,7 @@ async function computeStackDiff(loadedState, template, region, stackName, stateB
|
|
|
5801
5801
|
});
|
|
5802
5802
|
if (serviceTokens.refused.length > 0) blocking = [...blocking, ...serviceTokens.refused.map((refusal) => serviceTokenBlockingReason(refusal, maskForLog))];
|
|
5803
5803
|
for (const row of serviceTokens.deferred) logger.warn(printing.mask(deferredServiceTokenWarning(row)));
|
|
5804
|
+
blocking = [...blocking, ...findUpdatePolicyReplacementRefusals(changes, effectiveTemplate, stateForDiff.stackInstanceId !== void 0, options.createRouteOf === void 0 ? void 0 : (logicalId, change) => replacementCreateRoutesToCloudControl(options.createRouteOf, change, stateForDiff.resources[logicalId]?.properties))];
|
|
5804
5805
|
for (const reason of findUnwrittenCreateOnlyRefusals(changes, stateForDiff.resources, ccRouteUnavailableReason)) logger.warn(printing.mask(reason));
|
|
5805
5806
|
if (ccRouteUnavailableReason !== void 0) {
|
|
5806
5807
|
const refusals = findUnroutableDropRefusals(effectiveTemplate, stateForDiff.resources, ccRouteUnavailableReason, (name) => conditions !== void 0 && Object.hasOwn(conditions, name) && !stillUnknown.includes(name));
|
|
@@ -6006,7 +6007,7 @@ function childRowRunsEngine(row) {
|
|
|
6006
6007
|
return row?.changeType === "UPDATE" && (row.propertyChanges?.length ?? 0) > 0;
|
|
6007
6008
|
}
|
|
6008
6009
|
async function buildDiffTree(args) {
|
|
6009
|
-
const { stackName, displayName, region, template, nestedTemplates, recursive, stateBackend, diffCalculator, parentHasSecretReference, parameters, parentUnresolvedParameters, canonicalizeProperties, ccRouteUnavailableReason, assetRedirect, cfnFallback, producerLookup, consumerAccount, previewOrphanAdoption, attributeHealerFor, ancestorTemplatePaths, isNestedChild, ssmNameHeal, inheritedSecrets, inheritedDerivedNames, inheritedNoEchoParameters, inheritedNoEchoParametersAnyVerdict, refusalRecovery, inheritedReferenceProvenance, inheritedSecretTokens } = args;
|
|
6010
|
+
const { stackName, displayName, region, template, nestedTemplates, recursive, stateBackend, diffCalculator, parentHasSecretReference, parameters, parentUnresolvedParameters, canonicalizeProperties, ccRouteUnavailableReason, assetRedirect, cfnFallback, updatePolicy, createRouteOf, producerLookup, consumerAccount, previewOrphanAdoption, attributeHealerFor, ancestorTemplatePaths, isNestedChild, ssmNameHeal, inheritedSecrets, inheritedDerivedNames, inheritedNoEchoParameters, inheritedNoEchoParametersAnyVerdict, refusalRecovery, inheritedReferenceProvenance, inheritedSecretTokens } = args;
|
|
6010
6011
|
const unboundHealer = attributeHealerFor?.(stackName, region);
|
|
6011
6012
|
const { state, unreadable, unreadableContainers, deployRefusals, found } = await loadStateOrEmpty(stackName, region, stateBackend, refusalRecovery);
|
|
6012
6013
|
const attributeHealer = unboundHealer;
|
|
@@ -6030,6 +6031,8 @@ async function buildDiffTree(args) {
|
|
|
6030
6031
|
...canonicalizeProperties && { canonicalizeProperties },
|
|
6031
6032
|
...ccRouteUnavailableReason && { ccRouteUnavailableReason },
|
|
6032
6033
|
...cfnFallback !== void 0 && { cfnFallback },
|
|
6034
|
+
...updatePolicy === true && { updatePolicy },
|
|
6035
|
+
...createRouteOf && { createRouteOf },
|
|
6033
6036
|
...producerLookup && { producerLookup },
|
|
6034
6037
|
...consumerAccount && { consumerAccount },
|
|
6035
6038
|
...previewOrphanAdoption && { previewOrphanAdoption },
|
|
@@ -6134,6 +6137,8 @@ async function buildDiffTree(args) {
|
|
|
6134
6137
|
...ccRouteUnavailableReason && { ccRouteUnavailableReason },
|
|
6135
6138
|
...assetRedirect && { assetRedirect },
|
|
6136
6139
|
...cfnFallback !== void 0 && { cfnFallback },
|
|
6140
|
+
...updatePolicy === true && { updatePolicy },
|
|
6141
|
+
...createRouteOf && { createRouteOf },
|
|
6137
6142
|
...producerLookup && { producerLookup },
|
|
6138
6143
|
...consumerAccount && { consumerAccount },
|
|
6139
6144
|
...previewOrphanAdoption && { previewOrphanAdoption },
|
|
@@ -6253,6 +6258,7 @@ function diffTreeToJson(node) {
|
|
|
6253
6258
|
...change.propertyChanges && change.propertyChanges.length > 0 ? { propertyChanges: change.propertyChanges } : {},
|
|
6254
6259
|
...change.attributeChanges && change.attributeChanges.length > 0 ? { attributeChanges: change.attributeChanges } : {},
|
|
6255
6260
|
...change.nestedChildHeal === true && { nestedChildHeal: true },
|
|
6261
|
+
...change.providerReplacement !== void 0 && { providerReplacement: change.providerReplacement },
|
|
6256
6262
|
...ccApi && ccApi.length > 0 ? { ccApi } : {},
|
|
6257
6263
|
...movedTo !== void 0 && { movedTo }
|
|
6258
6264
|
});
|
|
@@ -6355,6 +6361,7 @@ function renderChangeLines(changes, logFn, ccApiRoutes, adoptedOrphans, refactor
|
|
|
6355
6361
|
case "UPDATE":
|
|
6356
6362
|
updateCount++;
|
|
6357
6363
|
logFn(` [~] ${logicalId} (${change.resourceType})${annotateAdoption(logicalId)}${annotateRouting(logicalId)}`);
|
|
6364
|
+
if (change.providerReplacement !== void 0) logFn(` [requires replacement: ${stripForDisplay(change.providerReplacement)}; deleted, then created again]`);
|
|
6358
6365
|
if (change.propertyChanges && change.propertyChanges.length > 0) for (const propChange of change.propertyChanges) {
|
|
6359
6366
|
const requiresReplace = propChange.requiresReplacement && (propChange.inPlacePropagated === true || propChange.replacementPropagated === true) ? " [may require replacement]" : propChange.requiresReplacement ? " [requires replacement]" : "";
|
|
6360
6367
|
const propagated = propChange.replacementPropagated ? " [replacement propagated]" : propChange.readProvenancePromoted === true ? " [read value moved upstream]" : propChange.inPlacePropagated ? " [attribute propagated]" : propChange.maskedExpressionChanged === true ? " [masked input or expression changed]" : propChange.unsettled === true ? " [unsettled after a failed update; sent again]" : propChange.newValueKnownAfterDeploy === true ? " [reads a resource this deploy changes]" : "";
|
|
@@ -6513,7 +6520,6 @@ async function diffCommand(stacks, options) {
|
|
|
6513
6520
|
const logger = getLogger();
|
|
6514
6521
|
if (options.json) logger.setLevel("warn");
|
|
6515
6522
|
else if (options.verbose) logger.setLevel("debug");
|
|
6516
|
-
warnIfDeprecatedRegion(options);
|
|
6517
6523
|
foldRegionOption(options);
|
|
6518
6524
|
await applyRoleArnIfSet({
|
|
6519
6525
|
roleArn: options.roleArn,
|
|
@@ -6687,8 +6693,10 @@ async function diffCommand(stacks, options) {
|
|
|
6687
6693
|
diffCalculator,
|
|
6688
6694
|
canonicalizeProperties,
|
|
6689
6695
|
ccRouteUnavailableReason: (resourceType) => diffProviderRegistry.ccRouteUnavailableReason(resourceType),
|
|
6696
|
+
createRouteOf: (input) => diffProviderRegistry.getProviderFor(input),
|
|
6690
6697
|
...assetRedirect && { assetRedirect },
|
|
6691
6698
|
...options.cfnFallback === false && { cfnFallback: false },
|
|
6699
|
+
...resolveUpdatePolicy(options.updatePolicy) === true && { updatePolicy: true },
|
|
6692
6700
|
producerLookup,
|
|
6693
6701
|
...stackInfo.account && { consumerAccount: stackInfo.account },
|
|
6694
6702
|
previewOrphanAdoption,
|
|
@@ -6774,7 +6782,7 @@ async function diffCommand(stacks, options) {
|
|
|
6774
6782
|
}
|
|
6775
6783
|
}
|
|
6776
6784
|
function createDiffCommand() {
|
|
6777
|
-
const cmd = new Command("diff").description("Show difference between current state and desired state").argument("[stacks...]", "Stack name(s) to diff. Accepts CDK display paths (e.g. 'MyStage/Api') with wildcards ('MyStage/*', '**'), or exact physical CloudFormation names (e.g. 'MyStage-Api').").option("--all", "Diff every top-level stack (top-level only; Stage stacks: '**')", false).option("--recursive", "Recurse into each AWS::CloudFormation::Stack row and diff every nested-stack child against its own deployed state (DFS order). Default is non-recursive, matching cdk diff.", false).option("--fail", "Exit with code 1 when any change is detected (matches cdk diff --fail). Alias for --fail-on=any-change.").option("--no-fail", "Never exit with code 1 for a change. Alias for --fail-on=never.").addOption(new Option("--fail-on <kind>", "Exit with code 1 when the diff contains the given kind of change: \"any-change\" fails on any difference, \"broadening\" only on changes that broaden IAM permissions or security-group rules, \"destructive\" only on changes that replace, delete or orphan a resource, \"never\" does not fail (default). \"broadening\" and \"destructive\" always check nested stacks (as --recursive); \"any-change\" does with --recursive. Cannot be used with --fail / --no-fail.").choices(DIFF_FAIL_ON_VALUES).argParser(parseFailOn)).option("--security-only", "Only print the security changes (IAM and security-group) of each stack whose changes broaden permissions, and count only those stacks as differences for --fail-on (matches cdk diff --security-only). Checks nested stacks too. Cannot be used with --json.").option("--json", "Output the diff as JSON (nested tree shape when combined with --recursive)", false).addOption(useCdkBootstrapAssetsOption).addOption(noCfnFallbackOption).action(withErrorHandling(diffCommand));
|
|
6785
|
+
const cmd = new Command("diff").description("Show difference between current state and desired state").argument("[stacks...]", "Stack name(s) to diff. Accepts CDK display paths (e.g. 'MyStage/Api') with wildcards ('MyStage/*', '**'), or exact physical CloudFormation names (e.g. 'MyStage-Api').").option("--all", "Diff every top-level stack (top-level only; Stage stacks: '**')", false).option("--recursive", "Recurse into each AWS::CloudFormation::Stack row and diff every nested-stack child against its own deployed state (DFS order). Default is non-recursive, matching cdk diff.", false).option("--fail", "Exit with code 1 when any change is detected (matches cdk diff --fail). Alias for --fail-on=any-change.").option("--no-fail", "Never exit with code 1 for a change. Alias for --fail-on=never.").addOption(new Option("--fail-on <kind>", "Exit with code 1 when the diff contains the given kind of change: \"any-change\" fails on any difference, \"broadening\" only on changes that broaden IAM permissions or security-group rules, \"destructive\" only on changes that replace, delete or orphan a resource, \"never\" does not fail (default). \"broadening\" and \"destructive\" always check nested stacks (as --recursive); \"any-change\" does with --recursive. Cannot be used with --fail / --no-fail.").choices(DIFF_FAIL_ON_VALUES).argParser(parseFailOn)).option("--security-only", "Only print the security changes (IAM and security-group) of each stack whose changes broaden permissions, and count only those stacks as differences for --fail-on (matches cdk diff --security-only). Checks nested stacks too. Cannot be used with --json.").option("--json", "Output the diff as JSON (nested tree shape when combined with --recursive)", false).addOption(useCdkBootstrapAssetsOption).addOption(noCfnFallbackOption).addOption(diffUpdatePolicyOptions[0]).addOption(diffUpdatePolicyOptions[1]).action(withErrorHandling(diffCommand));
|
|
6778
6786
|
[
|
|
6779
6787
|
...commonOptions,
|
|
6780
6788
|
...appOptions,
|
|
@@ -6782,7 +6790,7 @@ function createDiffCommand() {
|
|
|
6782
6790
|
...stackOptions,
|
|
6783
6791
|
...contextOptions
|
|
6784
6792
|
].forEach((opt) => cmd.addOption(opt));
|
|
6785
|
-
cmd.addOption(
|
|
6793
|
+
cmd.addOption(regionOption);
|
|
6786
6794
|
return cmd;
|
|
6787
6795
|
}
|
|
6788
6796
|
|
|
@@ -9363,7 +9371,6 @@ async function runScrubTargets({ options, logger, effectiveRegion, region, state
|
|
|
9363
9371
|
async function scrubCommand(stacks, options) {
|
|
9364
9372
|
const logger = getLogger();
|
|
9365
9373
|
if (options.verbose) logger.setLevel("debug");
|
|
9366
|
-
warnIfDeprecatedRegion(options);
|
|
9367
9374
|
foldRegionOption(options);
|
|
9368
9375
|
await applyRoleArnIfSet({
|
|
9369
9376
|
roleArn: options.roleArn,
|
|
@@ -9461,7 +9468,7 @@ function createScrubCommand() {
|
|
|
9461
9468
|
...stackOptions,
|
|
9462
9469
|
...contextOptions
|
|
9463
9470
|
].forEach((opt) => cmd.addOption(opt));
|
|
9464
|
-
cmd.addOption(
|
|
9471
|
+
cmd.addOption(regionOption);
|
|
9465
9472
|
cmd.action(withErrorHandling(scrubCommand));
|
|
9466
9473
|
return cmd;
|
|
9467
9474
|
}
|
|
@@ -10227,6 +10234,42 @@ function preFixBaselineUncomparedDriftKeys(resourceType, observed, properties, a
|
|
|
10227
10234
|
const live = hasOwnKey(aws, "Enabled") ? aws["Enabled"] : void 0;
|
|
10228
10235
|
return recorded === false && declared !== false && live === true ? ["Enabled"] : [];
|
|
10229
10236
|
}
|
|
10237
|
+
function readOnlyUncomparedDriftPaths(readOnlyPaths, properties) {
|
|
10238
|
+
if (!readOnlyPaths || readOnlyPaths.length === 0) return [];
|
|
10239
|
+
const declared = (path) => {
|
|
10240
|
+
let node = properties;
|
|
10241
|
+
for (const segment of path.split(".")) {
|
|
10242
|
+
if (typeof node !== "object" || node === null || Array.isArray(node)) return false;
|
|
10243
|
+
if (!hasOwnKey(node, segment)) return false;
|
|
10244
|
+
node = node[segment];
|
|
10245
|
+
}
|
|
10246
|
+
return true;
|
|
10247
|
+
};
|
|
10248
|
+
return readOnlyPaths.filter((path) => !declared(path));
|
|
10249
|
+
}
|
|
10250
|
+
const DERIVED_ECHO_MEMBERS = { "AWS::SecretsManager::RotationSchedule": [{
|
|
10251
|
+
parent: "RotationRules",
|
|
10252
|
+
source: "ScheduleExpression",
|
|
10253
|
+
echo: "AutomaticallyAfterDays"
|
|
10254
|
+
}] };
|
|
10255
|
+
function stripDerivedEchoMembers(resourceType, bag) {
|
|
10256
|
+
const rules = DERIVED_ECHO_MEMBERS[resourceType];
|
|
10257
|
+
if (!rules) return bag;
|
|
10258
|
+
let out = bag;
|
|
10259
|
+
for (const { parent, source, echo } of rules) {
|
|
10260
|
+
const node = hasOwnKey(out, parent) ? out[parent] : void 0;
|
|
10261
|
+
if (typeof node !== "object" || node === null || Array.isArray(node)) continue;
|
|
10262
|
+
const members = node;
|
|
10263
|
+
if (!hasOwnKey(members, echo) || !hasOwnKey(members, source)) continue;
|
|
10264
|
+
if (members[source] === void 0 || members[source] === null) continue;
|
|
10265
|
+
const { [echo]: _echo, ...rest } = members;
|
|
10266
|
+
out = {
|
|
10267
|
+
...out,
|
|
10268
|
+
[parent]: rest
|
|
10269
|
+
};
|
|
10270
|
+
}
|
|
10271
|
+
return out;
|
|
10272
|
+
}
|
|
10230
10273
|
function otherPhysicalIds(resources, logicalId) {
|
|
10231
10274
|
const ids = [];
|
|
10232
10275
|
for (const [id, record] of Object.entries(resources ?? {})) if (id !== logicalId && typeof record?.physicalId === "string") ids.push(record.physicalId);
|
|
@@ -10580,7 +10623,7 @@ function revertCommandLine(stackName, region) {
|
|
|
10580
10623
|
hole: "region"
|
|
10581
10624
|
}]).command} --revert`;
|
|
10582
10625
|
}
|
|
10583
|
-
function printRevertPlan(reports, out, recovery) {
|
|
10626
|
+
function printRevertPlan(reports, out, recovery, writeOnlyResend) {
|
|
10584
10627
|
for (const report of reports) {
|
|
10585
10628
|
const drifted = report.outcomes.flatMap((o) => matchOutcome(o, {
|
|
10586
10629
|
drifted: (d) => [d],
|
|
@@ -10600,6 +10643,8 @@ function printRevertPlan(reports, out, recovery) {
|
|
|
10600
10643
|
const word = o.changes.length === 1 ? "property path" : "property paths";
|
|
10601
10644
|
out.write(` → provider.update on ${reportResource(o)}: revert ${o.changes.length} ${word}\n`);
|
|
10602
10645
|
for (const change of o.changes) out.write(reportPlanChangeLine(displayDriftPath(o, change.path), displayDriftValue(o, change.awsValue), displayDriftValue(o, change.stateValue)));
|
|
10646
|
+
const resent = writeOnlyResend?.get(o) ?? [];
|
|
10647
|
+
if (resent.length > 0) out.write(` + also sends the template's write-only fields of ${maskSecretsInText(resent.join(", "), o.secrets)} (AWS never returns them on a read)\n`);
|
|
10603
10648
|
const stateResource = report.state.resources[o.logicalId];
|
|
10604
10649
|
if (stateResource) {
|
|
10605
10650
|
const preserved = findRevertPreservedTagKeys(o.changes, stateResource.observedProperties ?? stateResource.properties ?? {}, o.awsProperties);
|
|
@@ -11223,7 +11268,7 @@ function sameRecordedJson(candidate, recorded) {
|
|
|
11223
11268
|
|
|
11224
11269
|
// src/cli/commands/drift/compare.ts
|
|
11225
11270
|
async function compareDriftReadback(args) {
|
|
11226
|
-
const { region, resolvePrincipalUniqueId, outcomes, logger, secretResolvers, producerRegions, stackSecretNames, resource, logicalId, provider, secrets, printing, aws, readContext } = args;
|
|
11271
|
+
const { region, resolvePrincipalUniqueId, outcomes, logger, secretResolvers, producerRegions, stackSecretNames, resource, logicalId, provider, secrets, printing, aws, readContext, readOnlyPathsLookup } = args;
|
|
11227
11272
|
const ignorePaths = provider.getDriftUnknownPaths ? provider.getDriftUnknownPaths(resource.resourceType, resource.properties ?? {}) : [];
|
|
11228
11273
|
const unorderedPaths = provider.getDriftUnorderedPaths ? provider.getDriftUnorderedPaths(resource.resourceType) : [];
|
|
11229
11274
|
const useObserved = resource.observedProperties !== void 0;
|
|
@@ -11276,18 +11321,24 @@ async function compareDriftReadback(args) {
|
|
|
11276
11321
|
baseline: provider.canonicalizeDriftProperties(resource.resourceType, siblingStripped.baseline),
|
|
11277
11322
|
aws: provider.canonicalizeDriftProperties(resource.resourceType, siblingStripped.aws)
|
|
11278
11323
|
} : siblingStripped;
|
|
11279
|
-
const
|
|
11324
|
+
const pairCanonicalized = provider.canonicalizeDriftPair ? await provider.canonicalizeDriftPair(resource.resourceType, canonicalized.baseline, canonicalized.aws, resource.properties ?? {}) : canonicalized;
|
|
11325
|
+
const paired = {
|
|
11326
|
+
baseline: stripDerivedEchoMembers(resource.resourceType, pairCanonicalized.baseline),
|
|
11327
|
+
aws: stripDerivedEchoMembers(resource.resourceType, pairCanonicalized.aws)
|
|
11328
|
+
};
|
|
11280
11329
|
const nameBaseline = canonicalizeDerivedPatternBName(resource.resourceType, paired.baseline, paired.aws);
|
|
11281
11330
|
const comparedBaseline = useObserved ? withAbsentDefaultKeys(nameBaseline, paired.aws, driftAbsentMeansDefaultKeys(provider, resource.resourceType, resource.properties)) : nameBaseline;
|
|
11282
11331
|
const ownedIgnorePaths = undeclaredUncomparedDriftKeys(resource.resourceType, resource.properties);
|
|
11283
11332
|
const preFixIgnorePaths = preFixBaselineUncomparedDriftKeys(resource.resourceType, resource.observedProperties, resource.properties, aws);
|
|
11333
|
+
const readOnlyIgnorePaths = readOnlyUncomparedDriftPaths(readOnlyPathsLookup ? await readOnlyPathsLookup : void 0, resource.properties);
|
|
11334
|
+
const extraIgnorePaths = [
|
|
11335
|
+
...observedIgnorePaths,
|
|
11336
|
+
...ownedIgnorePaths,
|
|
11337
|
+
...preFixIgnorePaths,
|
|
11338
|
+
...readOnlyIgnorePaths
|
|
11339
|
+
];
|
|
11284
11340
|
const changes = calculateResourceDrift(comparedBaseline, paired.aws, {
|
|
11285
|
-
ignorePaths:
|
|
11286
|
-
...ignorePaths,
|
|
11287
|
-
...observedIgnorePaths,
|
|
11288
|
-
...ownedIgnorePaths,
|
|
11289
|
-
...preFixIgnorePaths
|
|
11290
|
-
] : ignorePaths,
|
|
11341
|
+
ignorePaths: extraIgnorePaths.length ? [...ignorePaths, ...extraIgnorePaths] : ignorePaths,
|
|
11291
11342
|
unionWalkObjects: useObserved,
|
|
11292
11343
|
unorderedPaths
|
|
11293
11344
|
});
|
|
@@ -11506,6 +11557,7 @@ async function runDriftForStack(stackName, region, stateBackend, providerRegistr
|
|
|
11506
11557
|
}
|
|
11507
11558
|
let readReturned = false;
|
|
11508
11559
|
const printing = printingBagOf(logicalId);
|
|
11560
|
+
const readOnlyPathsLookup = readPath === "ccApi" && (provider.readCurrentState !== void 0 || !CC_API_FALLBACK_DENY_LIST[resource.resourceType]) ? getReadOnlyPropertyPaths(resource.resourceType) : void 0;
|
|
11509
11561
|
await withPrintingSecrets(printing, async () => {
|
|
11510
11562
|
try {
|
|
11511
11563
|
let aws;
|
|
@@ -11566,7 +11618,8 @@ async function runDriftForStack(stackName, region, stateBackend, providerRegistr
|
|
|
11566
11618
|
secrets,
|
|
11567
11619
|
printing,
|
|
11568
11620
|
aws,
|
|
11569
|
-
readContext
|
|
11621
|
+
readContext,
|
|
11622
|
+
...readOnlyPathsLookup && { readOnlyPathsLookup }
|
|
11570
11623
|
});
|
|
11571
11624
|
} catch (err) {
|
|
11572
11625
|
if (isNoReadHandlerError(err)) {
|
|
@@ -11614,6 +11667,156 @@ async function runDriftForStack(stackName, region, stateBackend, providerRegistr
|
|
|
11614
11667
|
});
|
|
11615
11668
|
}
|
|
11616
11669
|
|
|
11670
|
+
// src/cli/commands/drift/revert-write-only.ts
|
|
11671
|
+
function revertWriteOnlyResendNames(resourceType, properties, writeOnlyNames) {
|
|
11672
|
+
if (!writeOnlyNames || writeOnlyNames.size === 0 || !isPlainRecord(properties)) return [];
|
|
11673
|
+
const unreadableCreateOnly = getTopLevelKeysHoldingUnreadableCreateOnly(resourceType, properties);
|
|
11674
|
+
const names = [];
|
|
11675
|
+
for (const name of writeOnlyNames) {
|
|
11676
|
+
if (!hasOwnKey(properties, name) || unreadableCreateOnly.has(name)) continue;
|
|
11677
|
+
const value = properties[name];
|
|
11678
|
+
if (value === void 0 || value === null) continue;
|
|
11679
|
+
if (carriesSecretMask(value) || carriesIntrinsicObject(value)) continue;
|
|
11680
|
+
names.push(name);
|
|
11681
|
+
}
|
|
11682
|
+
return names;
|
|
11683
|
+
}
|
|
11684
|
+
function withDeclaredWriteOnlyValues(send, resolvedProperties, names, paths) {
|
|
11685
|
+
const skipped = [];
|
|
11686
|
+
const wholesale = [];
|
|
11687
|
+
if (names.length === 0 || !isPlainRecord(resolvedProperties)) return {
|
|
11688
|
+
properties: send,
|
|
11689
|
+
skipped,
|
|
11690
|
+
wholesale
|
|
11691
|
+
};
|
|
11692
|
+
let out = send;
|
|
11693
|
+
for (const name of names) {
|
|
11694
|
+
if (!hasOwnKey(resolvedProperties, name)) continue;
|
|
11695
|
+
const declared = resolvedProperties[name];
|
|
11696
|
+
if (declared === void 0 || declared === null) continue;
|
|
11697
|
+
let next;
|
|
11698
|
+
if (!hasOwnKey(send, name)) next = declared;
|
|
11699
|
+
else {
|
|
11700
|
+
const own = paths.filter((p) => p[0] === name).map((p) => p.slice(1));
|
|
11701
|
+
let value = send[name];
|
|
11702
|
+
let matched = true;
|
|
11703
|
+
for (const rest of own) {
|
|
11704
|
+
const grafted = graftAt(value, declared, rest, own);
|
|
11705
|
+
if (!grafted.ok) matched = false;
|
|
11706
|
+
value = grafted.value;
|
|
11707
|
+
}
|
|
11708
|
+
if (matched) next = value;
|
|
11709
|
+
else {
|
|
11710
|
+
next = declared;
|
|
11711
|
+
wholesale.push(name);
|
|
11712
|
+
}
|
|
11713
|
+
}
|
|
11714
|
+
if (carriesDynamicReference(next) || carriesSecretMask(next)) {
|
|
11715
|
+
skipped.push(name);
|
|
11716
|
+
const at = wholesale.indexOf(name);
|
|
11717
|
+
if (at !== -1) wholesale.splice(at, 1);
|
|
11718
|
+
continue;
|
|
11719
|
+
}
|
|
11720
|
+
if (out === send) out = { ...send };
|
|
11721
|
+
defineOwnKey(out, name, next);
|
|
11722
|
+
}
|
|
11723
|
+
return {
|
|
11724
|
+
properties: out,
|
|
11725
|
+
skipped,
|
|
11726
|
+
wholesale
|
|
11727
|
+
};
|
|
11728
|
+
}
|
|
11729
|
+
function graftAt(send, declared, path, writeOnly) {
|
|
11730
|
+
if (path.length === 0 || send === void 0 || send === null) return {
|
|
11731
|
+
value: declared,
|
|
11732
|
+
ok: true
|
|
11733
|
+
};
|
|
11734
|
+
const [segment, ...rest] = path;
|
|
11735
|
+
const below = writeOnly.filter((p) => p[0] === segment).map((p) => p.slice(1));
|
|
11736
|
+
if (segment === "*") {
|
|
11737
|
+
if (!Array.isArray(declared)) return {
|
|
11738
|
+
value: send,
|
|
11739
|
+
ok: true
|
|
11740
|
+
};
|
|
11741
|
+
if (!Array.isArray(send)) return {
|
|
11742
|
+
value: send,
|
|
11743
|
+
ok: false
|
|
11744
|
+
};
|
|
11745
|
+
const partners = pairListItems(send, declared, below);
|
|
11746
|
+
if (!partners) return {
|
|
11747
|
+
value: send,
|
|
11748
|
+
ok: false
|
|
11749
|
+
};
|
|
11750
|
+
let ok = true;
|
|
11751
|
+
return {
|
|
11752
|
+
value: send.map((element, index) => {
|
|
11753
|
+
const grafted = graftAt(element, partners[index], rest, below);
|
|
11754
|
+
if (!grafted.ok) ok = false;
|
|
11755
|
+
return grafted.value;
|
|
11756
|
+
}),
|
|
11757
|
+
ok
|
|
11758
|
+
};
|
|
11759
|
+
}
|
|
11760
|
+
if (!isPlainRecord(declared) || !hasOwnKey(declared, segment)) return {
|
|
11761
|
+
value: send,
|
|
11762
|
+
ok: true
|
|
11763
|
+
};
|
|
11764
|
+
if (!isPlainRecord(send)) return {
|
|
11765
|
+
value: send,
|
|
11766
|
+
ok: false
|
|
11767
|
+
};
|
|
11768
|
+
const base = { ...send };
|
|
11769
|
+
const grafted = graftAt(hasOwnKey(base, segment) ? base[segment] : void 0, declared[segment], rest, below);
|
|
11770
|
+
defineOwnKey(base, segment, grafted.value);
|
|
11771
|
+
return {
|
|
11772
|
+
value: base,
|
|
11773
|
+
ok: grafted.ok
|
|
11774
|
+
};
|
|
11775
|
+
}
|
|
11776
|
+
function pairListItems(send, declared, writeOnly) {
|
|
11777
|
+
if (send.length !== declared.length) return void 0;
|
|
11778
|
+
const templates = declared.map((item) => withoutPaths(item, writeOnly));
|
|
11779
|
+
const partners = [];
|
|
11780
|
+
const used = /* @__PURE__ */ new Set();
|
|
11781
|
+
for (const item of send) {
|
|
11782
|
+
const candidates = templates.map((t, index) => covers(t, item) ? index : -1).filter((index) => index !== -1);
|
|
11783
|
+
if (candidates.length !== 1 || used.has(candidates[0])) return void 0;
|
|
11784
|
+
used.add(candidates[0]);
|
|
11785
|
+
partners.push(declared[candidates[0]]);
|
|
11786
|
+
}
|
|
11787
|
+
return partners;
|
|
11788
|
+
}
|
|
11789
|
+
function withoutPaths(value, paths) {
|
|
11790
|
+
if (paths.length === 0) return value;
|
|
11791
|
+
if (Array.isArray(value)) {
|
|
11792
|
+
const inner = paths.filter((p) => p[0] === "*").map((p) => p.slice(1));
|
|
11793
|
+
return value.map((item) => withoutPaths(item, inner));
|
|
11794
|
+
}
|
|
11795
|
+
if (!isPlainRecord(value)) return value;
|
|
11796
|
+
const out = {};
|
|
11797
|
+
for (const [key, child] of Object.entries(value)) {
|
|
11798
|
+
const inner = paths.filter((p) => p[0] === key).map((p) => p.slice(1));
|
|
11799
|
+
if (inner.some((p) => p.length === 0)) continue;
|
|
11800
|
+
defineOwnKey(out, key, withoutPaths(child, inner));
|
|
11801
|
+
}
|
|
11802
|
+
return out;
|
|
11803
|
+
}
|
|
11804
|
+
function covers(template, actual) {
|
|
11805
|
+
if (isPlainRecord(template)) {
|
|
11806
|
+
if (!isPlainRecord(actual)) return false;
|
|
11807
|
+
return Object.entries(template).every(([key, child]) => hasOwnKey(actual, key) && covers(child, actual[key]));
|
|
11808
|
+
}
|
|
11809
|
+
if (Array.isArray(template)) return Array.isArray(actual) && template.length === actual.length && template.every((child, index) => covers(child, actual[index]));
|
|
11810
|
+
return deepEqualUnordered(template, actual);
|
|
11811
|
+
}
|
|
11812
|
+
function carriesIntrinsicObject(value) {
|
|
11813
|
+
if (Array.isArray(value)) return value.some(carriesIntrinsicObject);
|
|
11814
|
+
if (value === null || typeof value !== "object") return false;
|
|
11815
|
+
const keys = Object.keys(value);
|
|
11816
|
+
if (keys.length === 1 && (keys[0] === "Ref" || keys[0].startsWith("Fn::"))) return true;
|
|
11817
|
+
return Object.values(value).some(carriesIntrinsicObject);
|
|
11818
|
+
}
|
|
11819
|
+
|
|
11617
11820
|
// src/cli/commands/drift/revert-apply.ts
|
|
11618
11821
|
async function applyRevertUpdate(args) {
|
|
11619
11822
|
const { logger, tally, report, narrowedByLogicalId, reRecordedByLogicalId, settledByRevert, outcome, stateResource, provider, secrets, revertBaseline, newProperties } = args;
|
|
@@ -11725,6 +11928,7 @@ async function revertDriftedOutcome(args) {
|
|
|
11725
11928
|
for (const token of tokens) unresolvedTokens.add(token);
|
|
11726
11929
|
};
|
|
11727
11930
|
let desiredProperties;
|
|
11931
|
+
let resolvedDeclared;
|
|
11728
11932
|
try {
|
|
11729
11933
|
desiredProperties = await resolveStateSecretExpressions(revertBaseline, revertSecretResolvers, secrets, {
|
|
11730
11934
|
onUnresolved: noteUnresolved,
|
|
@@ -11733,7 +11937,8 @@ async function revertDriftedOutcome(args) {
|
|
|
11733
11937
|
record: stateResource,
|
|
11734
11938
|
producerRegions: revertProducerRegions
|
|
11735
11939
|
});
|
|
11736
|
-
|
|
11940
|
+
resolvedDeclared = desiredProperties;
|
|
11941
|
+
if (stateResource.observedProperties !== void 0) resolvedDeclared = await resolveStateSecretExpressions(stateResource.properties ?? {}, revertSecretResolvers, secrets, {
|
|
11737
11942
|
onUnresolved: noteUnresolved,
|
|
11738
11943
|
logicalId: outcome.logicalId,
|
|
11739
11944
|
consumerRegion: report.region,
|
|
@@ -11767,6 +11972,7 @@ async function revertDriftedOutcome(args) {
|
|
|
11767
11972
|
desiredProperties = stripSiblingOwnedMembers(outcome.resourceType, stateResource.physicalId, desiredProperties, outcome.awsProperties, stateResource.properties, siblingContext).baseline;
|
|
11768
11973
|
desiredProperties = stripSiblingOwnedSgRules(outcome.resourceType, stateResource.physicalId, desiredProperties, outcome.awsProperties, stateResource.properties, siblingContext).baseline;
|
|
11769
11974
|
if (provider.canonicalizeDriftPair) desiredProperties = (await provider.canonicalizeDriftPair(outcome.resourceType, desiredProperties, outcome.awsProperties, stateResource.properties ?? {})).baseline;
|
|
11975
|
+
desiredProperties = stripDerivedEchoMembers(outcome.resourceType, desiredProperties);
|
|
11770
11976
|
const overlaid = buildRevertNewProperties(outcome.changes, desiredProperties, outcome.awsProperties, stateResource.observedProperties === void 0 ? { preserveUntemplated: true } : { absentMeansDefault: driftAbsentMeansDefaultKeys(provider, outcome.resourceType, stateResource.properties) });
|
|
11771
11977
|
const certifiedOverlay = overlayLiveAtUncertifiedPaths(overlaid, [...outcome.uncertifiedPaths, ...outcome.noEchoParameterPaths ?? []], outcome.awsProperties, desiredProperties, secrets, new Set(outcome.changes.map((change) => change.path.split(".", 1)[0] ?? "")), spelledKeysOf(stateResource.properties ?? {}));
|
|
11772
11978
|
const tokenPreserved = unresolvedTokens.size > 0 ? preserveLiveValuesAtUnresolvedTokens(certifiedOverlay, outcome.awsProperties, unresolvedTokens, secrets) : certifiedOverlay;
|
|
@@ -11785,7 +11991,10 @@ async function revertDriftedOutcome(args) {
|
|
|
11785
11991
|
logger.error(` ✗ ${report.stackName}/${outcome.logicalId} (${outcome.resourceType}): refused to revert ${maskSecretsInText(maskPreserved.unpreservablePaths.join(", "), secrets)} — the recorded baseline holds only the redaction mask there, and AWS reports nothing to preserve, so cdkd has no value it may write. ${markedAmong ? `Where a NoEcho template parameter feeds a path (${markedPaths}), deploy the stack with the parameter's value to set it. For the other paths, four` : "Four"} causes leave such a mask, and the record does not say which: a NoEcho custom-resource value (force that custom resource to update — change one of its properties, e.g. a nonce — and re-deploy, so its handler runs again and supplies the value); the Fn::Base64 encoding of a secret value, which cdkd never records (deploy a change to this resource, which sends it the encoded value again); two secret values that overlap inside the value, which no single reference renders (change the property, or rotate one of the secrets, so that they no longer overlap, and deploy that change); or a readback position cdkd could not certify when the baseline was captured (deploy a change to this resource, so its baseline is re-captured). A re-deploy that leaves this resource unchanged sends it nothing, so it resolves this refusal for none of them.`);
|
|
11786
11992
|
return;
|
|
11787
11993
|
}
|
|
11788
|
-
|
|
11994
|
+
const writeOnly = withDeclaredWriteOnlyValues(maskPreserved.properties, resolvedDeclared, args.writeOnlyResend, getSettledWriteOnlyPropertyPaths(outcome.resourceType));
|
|
11995
|
+
newProperties = writeOnly.properties;
|
|
11996
|
+
if (writeOnly.wholesale.length > 0) logger.warn(safeMsg` ! ${report.stackName}/${outcome.logicalId} (${outcome.resourceType}): sent the ` + safeMsg`template's whole value of ${maskSecretsInText(writeOnly.wholesale.join(", "), secrets)} — ` + "its list items could not be matched to the template's one by one, so items an '--accept' changed there go back to the template, as a deploy would send them.");
|
|
11997
|
+
if (writeOnly.skipped.length > 0) logger.warn(safeMsg` ! ${report.stackName}/${outcome.logicalId} (${outcome.resourceType}): could not ` + `send the template's write-only fields of ` + safeMsg`${maskSecretsInText(writeOnly.skipped.join(", "), secrets)} — a reference there did ` + "not resolve, or its list elements could not be matched to the template's. Cloud Control may refuse this update, or apply defaults there.");
|
|
11789
11998
|
} catch (err) {
|
|
11790
11999
|
tally.totalFailed++;
|
|
11791
12000
|
logger.error(` ✗ ${report.stackName}/${outcome.logicalId} (${outcome.resourceType}): could not build the revert payload — ${maskSecretsInText(describeAwsFailure(err).detail, secrets)}`);
|
|
@@ -11816,7 +12025,34 @@ async function runRevert(reports, regionScope, stateBackend, stateConfig, awsCli
|
|
|
11816
12025
|
stateBucket: stateConfig.bucket,
|
|
11817
12026
|
statePrefix: stateConfig.prefix
|
|
11818
12027
|
};
|
|
11819
|
-
|
|
12028
|
+
const writeOnlyResend = /* @__PURE__ */ new Map();
|
|
12029
|
+
const writeOnlyLookups = /* @__PURE__ */ new Map();
|
|
12030
|
+
await Promise.all(reports.flatMap((report) => report.outcomes.flatMap((o) => {
|
|
12031
|
+
if (o.kind !== "drifted") return [];
|
|
12032
|
+
const record = report.state.resources[o.logicalId];
|
|
12033
|
+
if (!record) return [];
|
|
12034
|
+
const scope = regionScope(report.region);
|
|
12035
|
+
const { provisionedBy } = scope.registry.getProviderFor({
|
|
12036
|
+
resourceType: o.resourceType,
|
|
12037
|
+
provisionedBy: record.provisionedBy
|
|
12038
|
+
});
|
|
12039
|
+
if (provisionedBy !== "cc-api") return [];
|
|
12040
|
+
let byType = writeOnlyLookups.get(report.region);
|
|
12041
|
+
if (!byType) {
|
|
12042
|
+
byType = /* @__PURE__ */ new Map();
|
|
12043
|
+
writeOnlyLookups.set(report.region, byType);
|
|
12044
|
+
}
|
|
12045
|
+
let lookup = byType.get(o.resourceType);
|
|
12046
|
+
if (!lookup) {
|
|
12047
|
+
lookup = runWithStackAwsClients(scope.clients, () => tryGetTopLevelWriteOnlyProperties(o.resourceType));
|
|
12048
|
+
byType.set(o.resourceType, lookup);
|
|
12049
|
+
}
|
|
12050
|
+
return [lookup.then((writeOnlyNames) => {
|
|
12051
|
+
const names = revertWriteOnlyResendNames(o.resourceType, record.properties, writeOnlyNames);
|
|
12052
|
+
if (names.length > 0) writeOnlyResend.set(o, names);
|
|
12053
|
+
})];
|
|
12054
|
+
})));
|
|
12055
|
+
printRevertPlan(reports, out, lockRecovery, writeOnlyResend);
|
|
11820
12056
|
if (options.dryRun) {
|
|
11821
12057
|
logger.info("--dry-run: AWS will NOT be modified. Re-run without --dry-run to apply.");
|
|
11822
12058
|
return;
|
|
@@ -11871,7 +12107,8 @@ async function runRevert(reports, regionScope, stateBackend, stateConfig, awsCli
|
|
|
11871
12107
|
narrowedByLogicalId,
|
|
11872
12108
|
reRecordedByLogicalId,
|
|
11873
12109
|
settledByRevert,
|
|
11874
|
-
outcome
|
|
12110
|
+
outcome,
|
|
12111
|
+
writeOnlyResend: writeOnlyResend.get(outcome) ?? []
|
|
11875
12112
|
});
|
|
11876
12113
|
}));
|
|
11877
12114
|
await runWithConcurrency(tasks, concurrency);
|
|
@@ -11980,7 +12217,6 @@ async function driftCommand(stacks, options) {
|
|
|
11980
12217
|
const logger = getLogger();
|
|
11981
12218
|
if (options.verbose) logger.setLevel("debug");
|
|
11982
12219
|
if (options.json) reserveStdoutForPayload();
|
|
11983
|
-
warnIfDeprecatedRegion(options);
|
|
11984
12220
|
if (options.accept && options.revert) throw new Error("--accept and --revert are mutually exclusive. Use --accept to update cdkd state from AWS, or --revert to push cdkd state values back into AWS.");
|
|
11985
12221
|
foldRegionOption(options);
|
|
11986
12222
|
await applyRoleArnIfSet({
|
|
@@ -12251,7 +12487,7 @@ function createIamPrincipalUniqueIdResolver(awsClients) {
|
|
|
12251
12487
|
function createDriftCommand() {
|
|
12252
12488
|
const cmd = new Command("drift").description("Detect drift between cdkd state and AWS reality. Exits 0 when nothing drifted, 1 when drift is detected, and 2 when nothing drifted but cdkd REFUSED to compare a resource, because a dynamic reference its state records could not be attributed to a region. Pass --accept to update cdkd state from AWS, or --revert to push cdkd state values back into AWS.").argument("[stacks...]", "Stack name(s) to check (physical CloudFormation names), each with its nested stacks").option("--all", "Check every stack in the state bucket", false).option("--json", "Output as JSON", false).option("--accept", "Update cdkd state with the AWS-current values for every drifted property (state ← AWS). Mutually exclusive with --revert.", false).option("--revert", "Push cdkd state values back into AWS via provider.update for every drifted resource (AWS ← state). Mutually exclusive with --accept.", false).option("--dry-run", "Print the planned mutations without acquiring a lock or hitting AWS / S3. Honored by --accept and --revert.", false).option("--concurrency <number>", "Maximum concurrent provider.update calls during --revert", parsePositiveIntegerOption, 4).addOption(stackRegionOption$2()).action(withErrorHandling(driftCommand));
|
|
12253
12489
|
[...commonOptions, ...stateOptions].forEach((opt) => cmd.addOption(opt));
|
|
12254
|
-
cmd.addOption(
|
|
12490
|
+
cmd.addOption(regionOption);
|
|
12255
12491
|
return cmd;
|
|
12256
12492
|
}
|
|
12257
12493
|
|
|
@@ -14049,7 +14285,6 @@ async function destroyCommand(stackArgs, options) {
|
|
|
14049
14285
|
logger.setLevel("debug");
|
|
14050
14286
|
process.env["CDKD_NO_LIVE"] = "1";
|
|
14051
14287
|
}
|
|
14052
|
-
warnIfDeprecatedRegion(options);
|
|
14053
14288
|
validateResourceTimeouts(options);
|
|
14054
14289
|
setResolvedResourceTimeouts(options.resourceTimeout);
|
|
14055
14290
|
foldRegionOption(options);
|
|
@@ -14428,7 +14663,7 @@ function createDestroyCommand() {
|
|
|
14428
14663
|
noLocalCustomResourcesOption,
|
|
14429
14664
|
...contextOptions
|
|
14430
14665
|
].forEach((opt) => cmd.addOption(opt));
|
|
14431
|
-
cmd.addOption(
|
|
14666
|
+
cmd.addOption(regionOption);
|
|
14432
14667
|
return cmd;
|
|
14433
14668
|
}
|
|
14434
14669
|
|
|
@@ -14921,7 +15156,6 @@ function resolveSingleRegion(stackName, refs, requestedRegion) {
|
|
|
14921
15156
|
|
|
14922
15157
|
// src/cli/commands/state/setup.ts
|
|
14923
15158
|
async function setupStateBackend(options) {
|
|
14924
|
-
warnIfDeprecatedRegion(options);
|
|
14925
15159
|
foldRegionOption(options);
|
|
14926
15160
|
await applyRoleArnIfSet({
|
|
14927
15161
|
roleArn: options.roleArn,
|
|
@@ -15122,7 +15356,7 @@ function createStateListCommand() {
|
|
|
15122
15356
|
const treeOption = new Option("--tree", "Render parent → child stack tree (loads each state record to read the v6 parent link)").default(false).conflicts("long");
|
|
15123
15357
|
const cmd = new Command("list").alias("ls").description("List stacks registered in the cdkd state bucket").option("-l, --long", "Show resource count, last-modified time, and lock status", false).option("--json", "Output as JSON", false).addOption(treeOption).action(withErrorHandling(stateListCommand));
|
|
15124
15358
|
[...commonOptions, ...stateOptions].forEach((opt) => cmd.addOption(opt));
|
|
15125
|
-
cmd.addOption(
|
|
15359
|
+
cmd.addOption(regionOption);
|
|
15126
15360
|
return cmd;
|
|
15127
15361
|
}
|
|
15128
15362
|
|
|
@@ -15290,7 +15524,7 @@ function formatLockSummary(lockInfo) {
|
|
|
15290
15524
|
function createStateResourcesCommand() {
|
|
15291
15525
|
const cmd = new Command("resources").description("List resources recorded in a stack's state").argument("<stack>", "Stack name (physical CloudFormation name)").option("-l, --long", "Include dependencies and attributes per resource", false).option("--json", "Output as JSON", false).addOption(stackRegionOption$1()).action(withErrorHandling(stateResourcesCommand));
|
|
15292
15526
|
[...commonOptions, ...stateOptions].forEach((opt) => cmd.addOption(opt));
|
|
15293
|
-
cmd.addOption(
|
|
15527
|
+
cmd.addOption(regionOption);
|
|
15294
15528
|
return cmd;
|
|
15295
15529
|
}
|
|
15296
15530
|
|
|
@@ -18104,7 +18338,6 @@ async function exportCommand(stackArg, options) {
|
|
|
18104
18338
|
logger.setLevel("debug");
|
|
18105
18339
|
process.env["CDKD_NO_LIVE"] = "1";
|
|
18106
18340
|
}
|
|
18107
|
-
warnIfDeprecatedRegion(options);
|
|
18108
18341
|
refuseTransientContextIfUnsafe(options);
|
|
18109
18342
|
foldRegionOption(options);
|
|
18110
18343
|
await applyRoleArnIfSet({
|
|
@@ -18426,7 +18659,7 @@ function createExportCommand() {
|
|
|
18426
18659
|
...stateOptions,
|
|
18427
18660
|
...contextOptions
|
|
18428
18661
|
].forEach((opt) => cmd.addOption(opt));
|
|
18429
|
-
cmd.addOption(
|
|
18662
|
+
cmd.addOption(regionOption);
|
|
18430
18663
|
return cmd;
|
|
18431
18664
|
}
|
|
18432
18665
|
|
|
@@ -18592,7 +18825,7 @@ function treeSecretSegments(node) {
|
|
|
18592
18825
|
function createStateShowCommand() {
|
|
18593
18826
|
const cmd = new Command("show").description("Show the full cdkd state record for a stack (metadata, outputs, resources)").argument("<stack>", "Stack name (physical CloudFormation name)").option("--json", "Output the raw state and lock as JSON", false).option("--show-nested", "Recursively show every nested-stack child under the target stack", false).addOption(stackRegionOption$1()).action(withErrorHandling(stateShowCommand));
|
|
18594
18827
|
[...commonOptions, ...stateOptions].forEach((opt) => cmd.addOption(opt));
|
|
18595
|
-
cmd.addOption(
|
|
18828
|
+
cmd.addOption(regionOption);
|
|
18596
18829
|
return cmd;
|
|
18597
18830
|
}
|
|
18598
18831
|
|
|
@@ -19020,7 +19253,6 @@ async function orphanCommand(pathArgs, options) {
|
|
|
19020
19253
|
const providerClasses = await loadProviderClasses();
|
|
19021
19254
|
const logger = getLogger();
|
|
19022
19255
|
if (options.verbose) logger.setLevel("debug");
|
|
19023
|
-
warnIfDeprecatedRegion(options);
|
|
19024
19256
|
foldRegionOption(options);
|
|
19025
19257
|
await applyRoleArnIfSet({
|
|
19026
19258
|
roleArn: options.roleArn,
|
|
@@ -19262,7 +19494,7 @@ function createOrphanCommand() {
|
|
|
19262
19494
|
...destroyOptions,
|
|
19263
19495
|
...contextOptions
|
|
19264
19496
|
].forEach((opt) => cmd.addOption(opt));
|
|
19265
|
-
cmd.addOption(
|
|
19497
|
+
cmd.addOption(regionOption);
|
|
19266
19498
|
return cmd;
|
|
19267
19499
|
}
|
|
19268
19500
|
|
|
@@ -19496,7 +19728,7 @@ async function stateOrphanResources(stackName, requested, options) {
|
|
|
19496
19728
|
function createStateOrphanCommand() {
|
|
19497
19729
|
const cmd = new Command("orphan").description("Orphan one or more stacks from cdkd state (removes the state record; does NOT delete AWS resources)").argument("<stacks...>", "Stack name(s) to orphan from state").option("-f, --force", "Skip confirmation and remove even if the stack is locked. With --resource it does NOT bypass a held lock, and it ALSO enables the cached-attribute fallback: a reference another record holds that cannot be resolved live takes the value cached in state, except a value cdkd recognises as a credential (by attribute name, a custom resource's attribute, or a known secret-valued attribute), a redaction mask or a secret reference, which are left unresolved", false).option("--resource <logicalId>", "Remove only this resource's record from the stack's state, rewriting the references other records hold to it (repeatable; requires exactly one stack). The stack stays deployed", collectResourceOption).addOption(stackRegionOption$1()).action(withErrorHandling(stateOrphanCommand));
|
|
19498
19730
|
[...commonOptions, ...stateOptions].forEach((opt) => cmd.addOption(opt));
|
|
19499
|
-
cmd.addOption(
|
|
19731
|
+
cmd.addOption(regionOption);
|
|
19500
19732
|
return cmd;
|
|
19501
19733
|
}
|
|
19502
19734
|
async function confirmStateOrphanRemoval(prompt, opts) {
|
|
@@ -19744,7 +19976,7 @@ function createStateDestroyCommand() {
|
|
|
19744
19976
|
skipFinalSnapshotOption,
|
|
19745
19977
|
noLocalCustomResourcesOption
|
|
19746
19978
|
].forEach((opt) => cmd.addOption(opt));
|
|
19747
|
-
cmd.addOption(
|
|
19979
|
+
cmd.addOption(regionOption);
|
|
19748
19980
|
return cmd;
|
|
19749
19981
|
}
|
|
19750
19982
|
|
|
@@ -20551,7 +20783,7 @@ async function confirmRefresh(prompt) {
|
|
|
20551
20783
|
function createStateRefreshObservedCommand() {
|
|
20552
20784
|
const cmd = new Command("refresh-observed").description("Refresh observedProperties for every resource in a stack by calling provider.readCurrentState — populates the drift baseline for stacks deployed before state schema v3, without redeploying. Run cdkd scrub first on state written by a pre-GHSA binary: the readback is redacted by POSITION against the record, so a record whose own properties still hold plaintext has nothing to redact from.").argument("[stacks...]", "Stack name(s) to refresh (physical CloudFormation names)").option("--all", "Refresh every stack in the state bucket", false).option("--dry-run", "Print the per-stack refresh count without writing state", false).option("--accept-refused <logicalId>", "Clear the observed-baseline refusal on ONE resource and capture its baseline, asserting that AWS holds no secret the template does not spell as a dynamic reference. Requires --template and a single stack; prompts unless -y / --yes", collectAcceptRefused).option("--template <file>", "With --accept-refused: the synthesized template (JSON or YAML) this stack was last deployed from").addOption(stackRegionOption$1()).action(withErrorHandling(stateRefreshObservedCommand));
|
|
20553
20785
|
[...commonOptions, ...stateOptions].forEach((opt) => cmd.addOption(opt));
|
|
20554
|
-
cmd.addOption(
|
|
20786
|
+
cmd.addOption(regionOption);
|
|
20555
20787
|
return cmd;
|
|
20556
20788
|
}
|
|
20557
20789
|
|
|
@@ -20750,7 +20982,7 @@ function stateBrowseDeps(setup, options, streams) {
|
|
|
20750
20982
|
function createStateBrowseCommand() {
|
|
20751
20983
|
const cmd = new Command("browse").description("Pick a stack with the keyboard and view its resources or state record (needs a terminal)").action(withErrorHandling(stateBrowseCommand));
|
|
20752
20984
|
[...commonOptions, ...stateOptions].forEach((opt) => cmd.addOption(opt));
|
|
20753
|
-
cmd.addOption(
|
|
20985
|
+
cmd.addOption(regionOption);
|
|
20754
20986
|
return cmd;
|
|
20755
20987
|
}
|
|
20756
20988
|
|
|
@@ -21511,7 +21743,6 @@ async function rollbackCommand(stackArg, options) {
|
|
|
21511
21743
|
logger.setLevel("debug");
|
|
21512
21744
|
process.env["CDKD_NO_LIVE"] = "1";
|
|
21513
21745
|
}
|
|
21514
|
-
warnIfDeprecatedRegion(options);
|
|
21515
21746
|
if (options.dropFailed !== void 0) refuseDropFailedConflicts(options);
|
|
21516
21747
|
const setup = await setupStateBackend(options);
|
|
21517
21748
|
const skipConfirmation = options.force === true || options.yes === true;
|
|
@@ -21600,7 +21831,7 @@ function createRollbackCommand() {
|
|
|
21600
21831
|
"Exit codes: 0 = clean, 2 = partial (journal kept for re-run), 1 = hard error."
|
|
21601
21832
|
].join("\n")).action(withErrorHandling(rollbackCommand));
|
|
21602
21833
|
[...commonOptions, ...stateOptions].forEach((opt) => cmd.addOption(opt));
|
|
21603
|
-
cmd.addOption(
|
|
21834
|
+
cmd.addOption(regionOption);
|
|
21604
21835
|
return cmd;
|
|
21605
21836
|
}
|
|
21606
21837
|
|
|
@@ -21625,7 +21856,6 @@ async function eventsCommand(stackName, options) {
|
|
|
21625
21856
|
if (options.verbose) logger.setLevel("debug");
|
|
21626
21857
|
const asJson = options.json === true;
|
|
21627
21858
|
if (asJson) reserveStdoutForPayload();
|
|
21628
|
-
warnIfDeprecatedRegion(options);
|
|
21629
21859
|
foldRegionOption(options);
|
|
21630
21860
|
await applyRoleArnIfSet({
|
|
21631
21861
|
roleArn: options.roleArn,
|
|
@@ -21693,7 +21923,6 @@ async function resolveEventsRegion(reader, stackName, explicitRegion) {
|
|
|
21693
21923
|
async function eventsPruneCommand(stackName, options) {
|
|
21694
21924
|
const logger = getLogger();
|
|
21695
21925
|
if (options.verbose) logger.setLevel("debug");
|
|
21696
|
-
warnIfDeprecatedRegion(options);
|
|
21697
21926
|
foldRegionOption(options);
|
|
21698
21927
|
if (options.all === true && (options.keep !== void 0 || options.olderThan !== void 0)) throw new CdkdError("'--all' purges every run and cannot be combined with '--keep' / '--older-than'.", "EVENTS_PRUNE_BAD_FLAGS");
|
|
21699
21928
|
const olderThanMs = options.olderThan !== void 0 ? parseDuration(options.olderThan) : void 0;
|
|
@@ -21835,7 +22064,7 @@ function createEventsCommand() {
|
|
|
21835
22064
|
});
|
|
21836
22065
|
}));
|
|
21837
22066
|
[...commonOptions, ...stateOptions].forEach((opt) => cmd.addOption(opt));
|
|
21838
|
-
cmd.addOption(
|
|
22067
|
+
cmd.addOption(regionOption);
|
|
21839
22068
|
cmd.addCommand(createEventsPruneCommand());
|
|
21840
22069
|
return cmd;
|
|
21841
22070
|
}
|
|
@@ -23375,7 +23604,6 @@ async function refactorCommand(stacks, options) {
|
|
|
23375
23604
|
};
|
|
23376
23605
|
if (options.verbose) logger.setLevel("debug");
|
|
23377
23606
|
if (options.revert === true && options.overrideFile === void 0) throw new CdkdError("--revert requires --override-file", "INCOMPATIBLE_OPTIONS");
|
|
23378
|
-
warnIfDeprecatedRegion(options);
|
|
23379
23607
|
foldRegionOption(options);
|
|
23380
23608
|
await applyRoleArnIfSet({
|
|
23381
23609
|
roleArn: options.roleArn,
|
|
@@ -23668,7 +23896,7 @@ function createRefactorCommand() {
|
|
|
23668
23896
|
...stackOptions,
|
|
23669
23897
|
...contextOptions
|
|
23670
23898
|
].forEach((opt) => cmd.addOption(opt));
|
|
23671
|
-
cmd.addOption(
|
|
23899
|
+
cmd.addOption(regionOption);
|
|
23672
23900
|
return cmd;
|
|
23673
23901
|
}
|
|
23674
23902
|
|
|
@@ -23676,7 +23904,6 @@ function createRefactorCommand() {
|
|
|
23676
23904
|
async function publishAssetsCommand(stacks, options) {
|
|
23677
23905
|
const logger = getLogger();
|
|
23678
23906
|
if (options.verbose) logger.setLevel("debug");
|
|
23679
|
-
warnIfDeprecatedRegion(options);
|
|
23680
23907
|
const rawNamedRegion = rawCliRegion(options.region);
|
|
23681
23908
|
foldRegionOption(options);
|
|
23682
23909
|
await applyRoleArnIfSet({
|
|
@@ -23912,7 +24139,7 @@ function createPublishAssetsCommand() {
|
|
|
23912
24139
|
...stateOptions
|
|
23913
24140
|
].forEach((opt) => cmd.addOption(opt));
|
|
23914
24141
|
cmd.addOption(new Option("--stack <name>", "Stack name to publish (alternative to positional)"));
|
|
23915
|
-
cmd.addOption(
|
|
24142
|
+
cmd.addOption(regionOption);
|
|
23916
24143
|
return cmd;
|
|
23917
24144
|
}
|
|
23918
24145
|
|
|
@@ -23920,7 +24147,6 @@ function createPublishAssetsCommand() {
|
|
|
23920
24147
|
async function forceUnlockCommand(stackArgs, options) {
|
|
23921
24148
|
const logger = getLogger();
|
|
23922
24149
|
if (options.verbose) logger.setLevel("debug");
|
|
23923
|
-
warnIfDeprecatedRegion(options);
|
|
23924
24150
|
foldRegionOption(options);
|
|
23925
24151
|
await applyRoleArnIfSet({
|
|
23926
24152
|
roleArn: options.roleArn,
|
|
@@ -23999,7 +24225,7 @@ function createForceUnlockCommand() {
|
|
|
23999
24225
|
...stateOptions,
|
|
24000
24226
|
...stackOptions
|
|
24001
24227
|
].forEach((opt) => cmd.addOption(opt));
|
|
24002
|
-
cmd.addOption(
|
|
24228
|
+
cmd.addOption(regionOption);
|
|
24003
24229
|
return cmd;
|
|
24004
24230
|
}
|
|
24005
24231
|
|
|
@@ -25631,6 +25857,7 @@ function createImportCommand() {
|
|
|
25631
25857
|
...stateOptions,
|
|
25632
25858
|
...contextOptions
|
|
25633
25859
|
].forEach((o) => cmd.addOption(o));
|
|
25860
|
+
cmd.addOption(regionOption);
|
|
25634
25861
|
return cmd;
|
|
25635
25862
|
}
|
|
25636
25863
|
function collectMultiple(value, previous) {
|
|
@@ -30284,7 +30511,6 @@ async function localStartApiCommand(target, options) {
|
|
|
30284
30511
|
logger.warn(safeMsg`[deprecated] --api '<id>' will be removed in a future major release. Use the positional argument instead: ${proseQuoted(pasteableCommand("cdkd local start-api", [{ hole: "id" }]).command)}.`);
|
|
30285
30512
|
apiFilter = options.api;
|
|
30286
30513
|
}
|
|
30287
|
-
warnIfDeprecatedRegion(options);
|
|
30288
30514
|
if (options.layerRoleArn !== void 0) explicitRoleArnOrThrow("--layer-role-arn", options.layerRoleArn);
|
|
30289
30515
|
checkEmulateRoleVia(options.emulateRoleVia, {
|
|
30290
30516
|
roleFlag: "--assume-role or --assume-role-auto",
|
|
@@ -30579,7 +30805,7 @@ function createLocalStartApiCommand() {
|
|
|
30579
30805
|
...contextOptions,
|
|
30580
30806
|
...stateOptions
|
|
30581
30807
|
].forEach((opt) => startApi.addOption(opt));
|
|
30582
|
-
startApi.addOption(
|
|
30808
|
+
startApi.addOption(regionOption);
|
|
30583
30809
|
addAwsEndpointOptions(startApi);
|
|
30584
30810
|
return startApi;
|
|
30585
30811
|
}
|
|
@@ -32140,7 +32366,6 @@ async function resolveRunTaskImageOverride(args) {
|
|
|
32140
32366
|
async function localRunTaskCommand(target, options) {
|
|
32141
32367
|
const logger = getLogger();
|
|
32142
32368
|
if (options.verbose) logger.setLevel("debug");
|
|
32143
|
-
warnIfDeprecatedRegion(options);
|
|
32144
32369
|
const rawEnvRegion = process.env["AWS_REGION"] ?? process.env["AWS_DEFAULT_REGION"];
|
|
32145
32370
|
if (rawEnvRegion !== void 0) options.rawEnvRegion = rawEnvRegion;
|
|
32146
32371
|
foldRegionOption(options);
|
|
@@ -32381,7 +32606,7 @@ function createLocalRunTaskCommand() {
|
|
|
32381
32606
|
...contextOptions,
|
|
32382
32607
|
...stateOptions
|
|
32383
32608
|
].forEach((opt) => cmd.addOption(opt));
|
|
32384
|
-
cmd.addOption(
|
|
32609
|
+
cmd.addOption(regionOption);
|
|
32385
32610
|
addAwsEndpointOptions(cmd);
|
|
32386
32611
|
return cmd;
|
|
32387
32612
|
}
|
|
@@ -32406,7 +32631,7 @@ function createLocalStartServiceCommand() {
|
|
|
32406
32631
|
await runEcsServiceEmulator(targets, options, serviceStrategy(), cdkdExtraStateProviders, cdkdHostSynthesizer(() => options));
|
|
32407
32632
|
}));
|
|
32408
32633
|
addStartServiceSpecificOptions(cmd);
|
|
32409
|
-
return
|
|
32634
|
+
return adoptRegionFlag(addCommonEcsServiceOptions(cmd));
|
|
32410
32635
|
}
|
|
32411
32636
|
|
|
32412
32637
|
// src/local/invoke-agentcore-watch-loop.ts
|
|
@@ -33384,7 +33609,6 @@ async function localInvokeAgentCoreCommand(target, options) {
|
|
|
33384
33609
|
const logger = getLogger();
|
|
33385
33610
|
if (options.verbose) logger.setLevel("debug");
|
|
33386
33611
|
reserveStdoutForPayload();
|
|
33387
|
-
warnIfDeprecatedRegion(options);
|
|
33388
33612
|
foldRegionOption(options);
|
|
33389
33613
|
if (options.stackRegion !== void 0) {
|
|
33390
33614
|
options.rawStackRegion = options.stackRegion;
|
|
@@ -33724,7 +33948,7 @@ function createLocalInvokeAgentCoreCommand() {
|
|
|
33724
33948
|
...contextOptions,
|
|
33725
33949
|
...stateOptions
|
|
33726
33950
|
].forEach((opt) => cmd.addOption(opt));
|
|
33727
|
-
cmd.addOption(
|
|
33951
|
+
cmd.addOption(regionOption);
|
|
33728
33952
|
addAwsEndpointOptions(cmd);
|
|
33729
33953
|
return cmd;
|
|
33730
33954
|
}
|
|
@@ -33740,7 +33964,7 @@ function createLocalStartAgentCoreCommand$1() {
|
|
|
33740
33964
|
cmd.addOption(new Option("--state-bucket <bucket>", "S3 bucket for --from-state. Falls back to CDKD_STATE_BUCKET env or cdk.json context.cdkd.stateBucket. Also receives the transient upload of a CloudFormation-macro template too large to expand inline."));
|
|
33741
33965
|
cmd.addOption(new Option("--state-prefix <prefix>", "S3 key prefix for --from-state state files.").default("cdkd"));
|
|
33742
33966
|
cmd.addOption(new Option("--no-assume-role", "Explicitly opt out of assuming the deployed execution role: forward your ambient AWS credentials (or the --profile overlay) unchanged, and suppress the \"re-run with --assume-role\" hint that omitting the flag prints when deployed state is loaded."));
|
|
33743
|
-
return
|
|
33967
|
+
return adoptRegionFlag(cmd);
|
|
33744
33968
|
}
|
|
33745
33969
|
|
|
33746
33970
|
// src/cli/commands/local-start-alb.ts
|
|
@@ -33749,7 +33973,7 @@ function createLocalStartAlbCommand() {
|
|
|
33749
33973
|
await runEcsServiceEmulator(targets, options, albStrategy(options), cdkdExtraStateProviders, cdkdHostSynthesizer(() => options));
|
|
33750
33974
|
}));
|
|
33751
33975
|
addAlbSpecificOptions(cmd);
|
|
33752
|
-
return
|
|
33976
|
+
return adoptRegionFlag(addCommonEcsServiceOptions(cmd));
|
|
33753
33977
|
}
|
|
33754
33978
|
|
|
33755
33979
|
// src/cli/commands/local-start-cloudfront.ts
|
|
@@ -33763,7 +33987,7 @@ function createLocalStartCloudFrontCommand$1() {
|
|
|
33763
33987
|
cmd.addOption(new Option("--state-bucket <bucket>", "S3 bucket for --from-state. Falls back to CDKD_STATE_BUCKET env or cdk.json context.cdkd.stateBucket. Also receives the transient upload of a CloudFormation-macro template too large to expand inline."));
|
|
33764
33988
|
cmd.addOption(new Option("--state-prefix <prefix>", "S3 key prefix for --from-state state files.").default("cdkd"));
|
|
33765
33989
|
cmd.addOption(new Option("--no-assume-role", "Explicitly opt out of assuming the deployed execution role: forward your ambient AWS credentials (or the --profile overlay) unchanged, and suppress the \"re-run with --assume-role\" hint that omitting the flag prints when deployed state is loaded."));
|
|
33766
|
-
return
|
|
33990
|
+
return adoptRegionFlag(cmd);
|
|
33767
33991
|
}
|
|
33768
33992
|
|
|
33769
33993
|
// src/cli/commands/local-start-web-function.ts
|
|
@@ -33777,7 +34001,7 @@ function createLocalStartWebFunctionCommand$1() {
|
|
|
33777
34001
|
cmd.addOption(new Option("--state-bucket <bucket>", "S3 bucket for --from-state. Falls back to CDKD_STATE_BUCKET env or cdk.json context.cdkd.stateBucket. Also receives the transient upload of a CloudFormation-macro template too large to expand inline."));
|
|
33778
34002
|
cmd.addOption(new Option("--state-prefix <prefix>", "S3 key prefix for --from-state state files.").default("cdkd"));
|
|
33779
34003
|
cmd.addOption(new Option("--no-assume-role", "Explicitly opt out of assuming the deployed execution role: forward your ambient AWS credentials (or the --profile overlay) unchanged, and suppress the \"re-run with --assume-role\" hint that omitting the flag prints when deployed state is loaded."));
|
|
33780
|
-
return
|
|
34004
|
+
return adoptRegionFlag(cmd);
|
|
33781
34005
|
}
|
|
33782
34006
|
|
|
33783
34007
|
// src/cli/commands/local-start-microvm.ts
|
|
@@ -33790,7 +34014,7 @@ function createLocalStartMicrovmCommand$1() {
|
|
|
33790
34014
|
cmd.addOption(new Option("--from-state", "Read cdkd's S3 state for the target stack and substitute Ref / Fn::GetAtt / Fn::Sub / Fn::ImportValue / Fn::GetStackOutput intrinsics in the MicroVM image environment variables. Mutually exclusive with --from-cfn-stack.").default(false));
|
|
33791
34015
|
cmd.addOption(new Option("--state-bucket <bucket>", "S3 bucket for --from-state. Falls back to CDKD_STATE_BUCKET env or cdk.json context.cdkd.stateBucket. Also receives the transient upload of a CloudFormation-macro template too large to expand inline."));
|
|
33792
34016
|
cmd.addOption(new Option("--state-prefix <prefix>", "S3 key prefix for --from-state state files.").default("cdkd"));
|
|
33793
|
-
return
|
|
34017
|
+
return adoptRegionFlag(cmd);
|
|
33794
34018
|
}
|
|
33795
34019
|
|
|
33796
34020
|
// src/cli/commands/local-invoke/credentials.ts
|
|
@@ -34000,7 +34224,6 @@ async function localInvokeCommand(target, options) {
|
|
|
34000
34224
|
const logger = getLogger();
|
|
34001
34225
|
if (options.verbose) logger.setLevel("debug");
|
|
34002
34226
|
reserveStdoutForPayload();
|
|
34003
|
-
warnIfDeprecatedRegion(options);
|
|
34004
34227
|
foldRegionOption(options);
|
|
34005
34228
|
if (options.stackRegion !== void 0) {
|
|
34006
34229
|
options.rawStackRegion = options.stackRegion;
|
|
@@ -34359,7 +34582,7 @@ function createLocalCommand() {
|
|
|
34359
34582
|
...contextOptions,
|
|
34360
34583
|
...stateOptions
|
|
34361
34584
|
].forEach((opt) => invoke.addOption(opt));
|
|
34362
|
-
invoke.addOption(
|
|
34585
|
+
invoke.addOption(regionOption);
|
|
34363
34586
|
addAwsEndpointOptions(invoke);
|
|
34364
34587
|
local.addCommand(invoke);
|
|
34365
34588
|
local.addCommand(createLocalStartApiCommand());
|
|
@@ -34445,4 +34668,4 @@ function collectVerbFlags(program) {
|
|
|
34445
34668
|
}
|
|
34446
34669
|
|
|
34447
34670
|
export { resolveSecretDerivedPrincipals as a, buildProgram, isResolvableSecretPrincipalList as i, runDestroyForStack as n, holdsUnprovenSecretPrincipalToken as r, canonicalizeIpv4Cidr as t };
|
|
34448
|
-
//# sourceMappingURL=program-
|
|
34671
|
+
//# sourceMappingURL=program-CWUDb373.js.map
|