@cdkd/cli 0.353.2 → 0.354.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-BoDpDYst.js → ambient-client-defaults-BDRSTcYT.js} +3 -3
- package/dist/{ambient-client-defaults-BoDpDYst.js.map → ambient-client-defaults-BDRSTcYT.js.map} +1 -1
- package/dist/{asg-provider-DkGLJwox.js → asg-provider-DhlT9esh.js} +427 -13
- package/dist/asg-provider-DhlT9esh.js.map +1 -0
- package/dist/cli.js +3 -3
- package/dist/{custom-resource-runtime-Igdxgp4i.js → custom-resource-runtime-Awo4Qqci.js} +6 -6
- package/dist/{custom-resource-runtime-Igdxgp4i.js.map → custom-resource-runtime-Awo4Qqci.js.map} +1 -1
- package/dist/{db-associated-roles-bBNObiI3.js → db-associated-roles-vY4j5XbM.js} +2 -2
- package/dist/{db-associated-roles-bBNObiI3.js.map → db-associated-roles-vY4j5XbM.js.map} +1 -1
- package/dist/{delete-started-CPDnxn60.js → delete-started-Dzdlx4Og.js} +4 -4
- package/dist/{delete-started-CPDnxn60.js.map → delete-started-Dzdlx4Og.js.map} +1 -1
- package/dist/{deploy-engine-BQVJRB0k.js → deploy-engine-Th5M81Fb.js} +1008 -228
- package/dist/deploy-engine-Th5M81Fb.js.map +1 -0
- package/dist/{diff-calculator-Bc8nPqHj.js → diff-calculator-BHt-qLqK.js} +41 -17
- package/dist/diff-calculator-BHt-qLqK.js.map +1 -0
- package/dist/{update-policy-Bv1x6AOi.js → ec2-termination-protection-BhT7P1Qr.js} +157 -15
- package/dist/ec2-termination-protection-BhT7P1Qr.js.map +1 -0
- package/dist/{ecr-uri-C5N2MXQn.js → ecr-uri-B-QP8AHe.js} +2 -2
- package/dist/{ecr-uri-C5N2MXQn.js.map → ecr-uri-B-QP8AHe.js.map} +1 -1
- package/dist/{expected-bucket-owner-CmQxQ5sA.js → expected-bucket-owner-TY_MPzst.js} +2 -2
- package/dist/{expected-bucket-owner-CmQxQ5sA.js.map → expected-bucket-owner-TY_MPzst.js.map} +1 -1
- package/dist/{iam-role-provider-BWgMdmM2.js → iam-role-provider-KBcDwrRv.js} +8 -8
- package/dist/{iam-role-provider-BWgMdmM2.js.map → iam-role-provider-KBcDwrRv.js.map} +1 -1
- package/dist/{image-plan-BhSVrp0f.js → image-plan-BEsB3Dmo.js} +15 -18
- package/dist/image-plan-BEsB3Dmo.js.map +1 -0
- package/dist/index.d.ts +26 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-BYujCFZu.js → logger-B2SyJOAf.js} +2 -2
- package/dist/{logger-BYujCFZu.js.map → logger-B2SyJOAf.js.map} +1 -1
- package/dist/{neptune-provider-Cw6VRzy-.js → neptune-provider-BR3kEieW.js} +7 -7
- package/dist/{neptune-provider-Cw6VRzy-.js.map → neptune-provider-BR3kEieW.js.map} +1 -1
- package/dist/{program-DGykViOh.js → program-QwXOnrpm.js} +306 -85
- package/dist/program-QwXOnrpm.js.map +1 -0
- package/dist/{provider-classes-HgTwI8Ez.js → provider-classes-DMsbNzf6.js} +250 -66
- package/dist/provider-classes-DMsbNzf6.js.map +1 -0
- package/dist/{rds-provider-DwoeM58V.js → rds-provider-D1eagWNh.js} +10 -10
- package/dist/{rds-provider-DwoeM58V.js.map → rds-provider-D1eagWNh.js.map} +1 -1
- package/dist/{read-replica-YGp4k5-z.js → read-replica-BJFu-OeG.js} +3 -3
- package/dist/{read-replica-YGp4k5-z.js.map → read-replica-BJFu-OeG.js.map} +1 -1
- package/dist/{replacement-rules-fUZRFjHJ.js → replacement-rules-DhOfKveI.js} +3 -3
- package/dist/{replacement-rules-fUZRFjHJ.js.map → replacement-rules-DhOfKveI.js.map} +1 -1
- package/dist/{resource-deadline-BzTkGME1.js → resource-deadline-D_epAMej.js} +4 -4
- package/dist/{resource-deadline-BzTkGME1.js.map → resource-deadline-D_epAMej.js.map} +1 -1
- package/dist/{restore-source-guard-DRx3lyhr.js → restore-source-guard-B_-RdrjK.js} +4 -4
- package/dist/{restore-source-guard-DRx3lyhr.js.map → restore-source-guard-B_-RdrjK.js.map} +1 -1
- package/dist/{run-cli-BktZxh99.js → run-cli-ozO7hy96.js} +2 -2
- package/dist/{run-cli-BktZxh99.js.map → run-cli-ozO7hy96.js.map} +1 -1
- package/dist/{version-qyD3mVkG.js → version-snoNU0xA.js} +2 -2
- package/dist/{version-qyD3mVkG.js.map → version-snoNU0xA.js.map} +1 -1
- package/package.json +2 -1
- package/dist/asg-provider-DkGLJwox.js.map +0 -1
- package/dist/deploy-engine-BQVJRB0k.js.map +0 -1
- package/dist/diff-calculator-Bc8nPqHj.js.map +0 -1
- package/dist/image-plan-BhSVrp0f.js.map +0 -1
- package/dist/program-DGykViOh.js.map +0 -1
- package/dist/provider-classes-HgTwI8Ez.js.map +0 -1
- package/dist/update-policy-Bv1x6AOi.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-snoNU0xA.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-BEsB3Dmo.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-D_epAMej.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-B2SyJOAf.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-BDRSTcYT.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 predictedAutoCreatedAssetMode, A as loadCdkJson, B as stateBucketExistenceConfirmed, C as runDockerForeground, D as synthesisStatusMessage, E as Synthesizer, F as resolveStateBucketWithDefault, G as findLargeInlineResources, H as CFN_TEMPLATE_BODY_LIMIT, I as resolveStateBucketWithDefaultAndSource, J as AssemblyReader, K as uploadCfnTemplate, L as resolveStateBucketWithSource, M as resolveAutoAssetStorage, N as resolveCaptureObservedState, O as getDefaultStateBucketName, P as resolveSkipPrefix, Q as legacyPlanAssetCount, R as resolveUpdatePolicy, S as getDockerCmd, T as abortInFlightMultipartUploads, U as CFN_TEMPLATE_URL_LIMIT, V as warnDeprecatedNoPrefixCliFlag, W as MIGRATE_TMP_PREFIX, X as bindLegacyStackAssetParameters, Y as StageLoadError, Z as createLegacyAssetParameterBinder, _ as partitionSensitiveEnv, a as AssetPublisher, b as isMalformedEnvKey, c as resolveDockerContextDirectory, d as describeDockerFailure, et as prepareLegacyStackAssets, f as redactedCause, g as finchSecretArgvRefusal, h as dockerSpawnEnvWithSensitive, i as isLockInfoExpired, j as resolveApp, k as getLegacyStateBucketName, m as redactDockerArgvValues, n as DagBuilder, nt as processStackMessages, o as WorkGraph, p as redactedDockerCause, q as refuseFailedLookups, r as LockManager, rt as setChildProcessAwsEnv, s as buildDockerImage, t as DiffCalculator, tt as CdkToolkitBucketMissingError, u as describeDockerExecFailure, v as warnFinchArgvExposure, w as runDockerStreaming, x as formatDockerLoginError, y as isDockerClientEnvKey, z as resolveUseCdkBootstrapAssets } from "./diff-calculator-
|
|
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-BQVJRB0k.js";
|
|
8
|
+
import { $ as predictedAutoCreatedAssetMode, A as loadCdkJson, B as stateBucketExistenceConfirmed, C as runDockerForeground, D as synthesisStatusMessage, E as Synthesizer, F as resolveStateBucketWithDefault, G as findLargeInlineResources, H as CFN_TEMPLATE_BODY_LIMIT, I as resolveStateBucketWithDefaultAndSource, J as AssemblyReader, K as uploadCfnTemplate, L as resolveStateBucketWithSource, M as resolveAutoAssetStorage, N as resolveCaptureObservedState, O as getDefaultStateBucketName, P as resolveSkipPrefix, Q as legacyPlanAssetCount, R as resolveUpdatePolicy, S as getDockerCmd, T as abortInFlightMultipartUploads, U as CFN_TEMPLATE_URL_LIMIT, V as warnDeprecatedNoPrefixCliFlag, W as MIGRATE_TMP_PREFIX, X as bindLegacyStackAssetParameters, Y as StageLoadError, Z as createLegacyAssetParameterBinder, _ as partitionSensitiveEnv, a as AssetPublisher, b as isMalformedEnvKey, c as resolveDockerContextDirectory, d as describeDockerFailure, et as prepareLegacyStackAssets, f as redactedCause, g as finchSecretArgvRefusal, h as dockerSpawnEnvWithSensitive, i as isLockInfoExpired, j as resolveApp, k as getLegacyStateBucketName, m as redactDockerArgvValues, n as DagBuilder, nt as processStackMessages, o as WorkGraph, p as redactedDockerCause, q as refuseFailedLookups, r as LockManager, rt as setChildProcessAwsEnv, s as buildDockerImage, t as DiffCalculator, tt as CdkToolkitBucketMissingError, u as describeDockerExecFailure, v as warnFinchArgvExposure, w as runDockerStreaming, x as formatDockerLoginError, y as isDockerClientEnvKey, z as resolveUseCdkBootstrapAssets } from "./diff-calculator-BHt-qLqK.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-Th5M81Fb.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-BhT7P1Qr.js";
|
|
12
|
+
import { t as expectedOwnerParam } from "./expected-bucket-owner-TY_MPzst.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-Dzdlx4Og.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-DhOfKveI.js";
|
|
15
|
+
import { S as unsettledPropertiesOf, T as withoutUnsettledProperties, b as unsettledItemsOf, w as withUnsettledProperties, y as unsettledItemsField } from "./restore-source-guard-B_-RdrjK.js";
|
|
16
|
+
import { a as parseEcrRegistryHost, i as looksLikeEcrHostWithForeignSuffix, n as hasEcrRegistryHostLabels, t as ecrRegistryHostPattern } from "./ecr-uri-B-QP8AHe.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-DMsbNzf6.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 },
|
|
@@ -6513,7 +6518,6 @@ async function diffCommand(stacks, options) {
|
|
|
6513
6518
|
const logger = getLogger();
|
|
6514
6519
|
if (options.json) logger.setLevel("warn");
|
|
6515
6520
|
else if (options.verbose) logger.setLevel("debug");
|
|
6516
|
-
warnIfDeprecatedRegion(options);
|
|
6517
6521
|
foldRegionOption(options);
|
|
6518
6522
|
await applyRoleArnIfSet({
|
|
6519
6523
|
roleArn: options.roleArn,
|
|
@@ -6687,8 +6691,10 @@ async function diffCommand(stacks, options) {
|
|
|
6687
6691
|
diffCalculator,
|
|
6688
6692
|
canonicalizeProperties,
|
|
6689
6693
|
ccRouteUnavailableReason: (resourceType) => diffProviderRegistry.ccRouteUnavailableReason(resourceType),
|
|
6694
|
+
createRouteOf: (input) => diffProviderRegistry.getProviderFor(input),
|
|
6690
6695
|
...assetRedirect && { assetRedirect },
|
|
6691
6696
|
...options.cfnFallback === false && { cfnFallback: false },
|
|
6697
|
+
...resolveUpdatePolicy(options.updatePolicy) === true && { updatePolicy: true },
|
|
6692
6698
|
producerLookup,
|
|
6693
6699
|
...stackInfo.account && { consumerAccount: stackInfo.account },
|
|
6694
6700
|
previewOrphanAdoption,
|
|
@@ -6774,7 +6780,7 @@ async function diffCommand(stacks, options) {
|
|
|
6774
6780
|
}
|
|
6775
6781
|
}
|
|
6776
6782
|
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));
|
|
6783
|
+
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
6784
|
[
|
|
6779
6785
|
...commonOptions,
|
|
6780
6786
|
...appOptions,
|
|
@@ -6782,7 +6788,7 @@ function createDiffCommand() {
|
|
|
6782
6788
|
...stackOptions,
|
|
6783
6789
|
...contextOptions
|
|
6784
6790
|
].forEach((opt) => cmd.addOption(opt));
|
|
6785
|
-
cmd.addOption(
|
|
6791
|
+
cmd.addOption(regionOption);
|
|
6786
6792
|
return cmd;
|
|
6787
6793
|
}
|
|
6788
6794
|
|
|
@@ -9363,7 +9369,6 @@ async function runScrubTargets({ options, logger, effectiveRegion, region, state
|
|
|
9363
9369
|
async function scrubCommand(stacks, options) {
|
|
9364
9370
|
const logger = getLogger();
|
|
9365
9371
|
if (options.verbose) logger.setLevel("debug");
|
|
9366
|
-
warnIfDeprecatedRegion(options);
|
|
9367
9372
|
foldRegionOption(options);
|
|
9368
9373
|
await applyRoleArnIfSet({
|
|
9369
9374
|
roleArn: options.roleArn,
|
|
@@ -9461,7 +9466,7 @@ function createScrubCommand() {
|
|
|
9461
9466
|
...stackOptions,
|
|
9462
9467
|
...contextOptions
|
|
9463
9468
|
].forEach((opt) => cmd.addOption(opt));
|
|
9464
|
-
cmd.addOption(
|
|
9469
|
+
cmd.addOption(regionOption);
|
|
9465
9470
|
cmd.action(withErrorHandling(scrubCommand));
|
|
9466
9471
|
return cmd;
|
|
9467
9472
|
}
|
|
@@ -10227,6 +10232,42 @@ function preFixBaselineUncomparedDriftKeys(resourceType, observed, properties, a
|
|
|
10227
10232
|
const live = hasOwnKey(aws, "Enabled") ? aws["Enabled"] : void 0;
|
|
10228
10233
|
return recorded === false && declared !== false && live === true ? ["Enabled"] : [];
|
|
10229
10234
|
}
|
|
10235
|
+
function readOnlyUncomparedDriftPaths(readOnlyPaths, properties) {
|
|
10236
|
+
if (!readOnlyPaths || readOnlyPaths.length === 0) return [];
|
|
10237
|
+
const declared = (path) => {
|
|
10238
|
+
let node = properties;
|
|
10239
|
+
for (const segment of path.split(".")) {
|
|
10240
|
+
if (typeof node !== "object" || node === null || Array.isArray(node)) return false;
|
|
10241
|
+
if (!hasOwnKey(node, segment)) return false;
|
|
10242
|
+
node = node[segment];
|
|
10243
|
+
}
|
|
10244
|
+
return true;
|
|
10245
|
+
};
|
|
10246
|
+
return readOnlyPaths.filter((path) => !declared(path));
|
|
10247
|
+
}
|
|
10248
|
+
const DERIVED_ECHO_MEMBERS = { "AWS::SecretsManager::RotationSchedule": [{
|
|
10249
|
+
parent: "RotationRules",
|
|
10250
|
+
source: "ScheduleExpression",
|
|
10251
|
+
echo: "AutomaticallyAfterDays"
|
|
10252
|
+
}] };
|
|
10253
|
+
function stripDerivedEchoMembers(resourceType, bag) {
|
|
10254
|
+
const rules = DERIVED_ECHO_MEMBERS[resourceType];
|
|
10255
|
+
if (!rules) return bag;
|
|
10256
|
+
let out = bag;
|
|
10257
|
+
for (const { parent, source, echo } of rules) {
|
|
10258
|
+
const node = hasOwnKey(out, parent) ? out[parent] : void 0;
|
|
10259
|
+
if (typeof node !== "object" || node === null || Array.isArray(node)) continue;
|
|
10260
|
+
const members = node;
|
|
10261
|
+
if (!hasOwnKey(members, echo) || !hasOwnKey(members, source)) continue;
|
|
10262
|
+
if (members[source] === void 0 || members[source] === null) continue;
|
|
10263
|
+
const { [echo]: _echo, ...rest } = members;
|
|
10264
|
+
out = {
|
|
10265
|
+
...out,
|
|
10266
|
+
[parent]: rest
|
|
10267
|
+
};
|
|
10268
|
+
}
|
|
10269
|
+
return out;
|
|
10270
|
+
}
|
|
10230
10271
|
function otherPhysicalIds(resources, logicalId) {
|
|
10231
10272
|
const ids = [];
|
|
10232
10273
|
for (const [id, record] of Object.entries(resources ?? {})) if (id !== logicalId && typeof record?.physicalId === "string") ids.push(record.physicalId);
|
|
@@ -10580,7 +10621,7 @@ function revertCommandLine(stackName, region) {
|
|
|
10580
10621
|
hole: "region"
|
|
10581
10622
|
}]).command} --revert`;
|
|
10582
10623
|
}
|
|
10583
|
-
function printRevertPlan(reports, out, recovery) {
|
|
10624
|
+
function printRevertPlan(reports, out, recovery, writeOnlyResend) {
|
|
10584
10625
|
for (const report of reports) {
|
|
10585
10626
|
const drifted = report.outcomes.flatMap((o) => matchOutcome(o, {
|
|
10586
10627
|
drifted: (d) => [d],
|
|
@@ -10600,6 +10641,8 @@ function printRevertPlan(reports, out, recovery) {
|
|
|
10600
10641
|
const word = o.changes.length === 1 ? "property path" : "property paths";
|
|
10601
10642
|
out.write(` → provider.update on ${reportResource(o)}: revert ${o.changes.length} ${word}\n`);
|
|
10602
10643
|
for (const change of o.changes) out.write(reportPlanChangeLine(displayDriftPath(o, change.path), displayDriftValue(o, change.awsValue), displayDriftValue(o, change.stateValue)));
|
|
10644
|
+
const resent = writeOnlyResend?.get(o) ?? [];
|
|
10645
|
+
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
10646
|
const stateResource = report.state.resources[o.logicalId];
|
|
10604
10647
|
if (stateResource) {
|
|
10605
10648
|
const preserved = findRevertPreservedTagKeys(o.changes, stateResource.observedProperties ?? stateResource.properties ?? {}, o.awsProperties);
|
|
@@ -11223,7 +11266,7 @@ function sameRecordedJson(candidate, recorded) {
|
|
|
11223
11266
|
|
|
11224
11267
|
// src/cli/commands/drift/compare.ts
|
|
11225
11268
|
async function compareDriftReadback(args) {
|
|
11226
|
-
const { region, resolvePrincipalUniqueId, outcomes, logger, secretResolvers, producerRegions, stackSecretNames, resource, logicalId, provider, secrets, printing, aws, readContext } = args;
|
|
11269
|
+
const { region, resolvePrincipalUniqueId, outcomes, logger, secretResolvers, producerRegions, stackSecretNames, resource, logicalId, provider, secrets, printing, aws, readContext, readOnlyPathsLookup } = args;
|
|
11227
11270
|
const ignorePaths = provider.getDriftUnknownPaths ? provider.getDriftUnknownPaths(resource.resourceType, resource.properties ?? {}) : [];
|
|
11228
11271
|
const unorderedPaths = provider.getDriftUnorderedPaths ? provider.getDriftUnorderedPaths(resource.resourceType) : [];
|
|
11229
11272
|
const useObserved = resource.observedProperties !== void 0;
|
|
@@ -11276,18 +11319,24 @@ async function compareDriftReadback(args) {
|
|
|
11276
11319
|
baseline: provider.canonicalizeDriftProperties(resource.resourceType, siblingStripped.baseline),
|
|
11277
11320
|
aws: provider.canonicalizeDriftProperties(resource.resourceType, siblingStripped.aws)
|
|
11278
11321
|
} : siblingStripped;
|
|
11279
|
-
const
|
|
11322
|
+
const pairCanonicalized = provider.canonicalizeDriftPair ? await provider.canonicalizeDriftPair(resource.resourceType, canonicalized.baseline, canonicalized.aws, resource.properties ?? {}) : canonicalized;
|
|
11323
|
+
const paired = {
|
|
11324
|
+
baseline: stripDerivedEchoMembers(resource.resourceType, pairCanonicalized.baseline),
|
|
11325
|
+
aws: stripDerivedEchoMembers(resource.resourceType, pairCanonicalized.aws)
|
|
11326
|
+
};
|
|
11280
11327
|
const nameBaseline = canonicalizeDerivedPatternBName(resource.resourceType, paired.baseline, paired.aws);
|
|
11281
11328
|
const comparedBaseline = useObserved ? withAbsentDefaultKeys(nameBaseline, paired.aws, driftAbsentMeansDefaultKeys(provider, resource.resourceType, resource.properties)) : nameBaseline;
|
|
11282
11329
|
const ownedIgnorePaths = undeclaredUncomparedDriftKeys(resource.resourceType, resource.properties);
|
|
11283
11330
|
const preFixIgnorePaths = preFixBaselineUncomparedDriftKeys(resource.resourceType, resource.observedProperties, resource.properties, aws);
|
|
11331
|
+
const readOnlyIgnorePaths = readOnlyUncomparedDriftPaths(readOnlyPathsLookup ? await readOnlyPathsLookup : void 0, resource.properties);
|
|
11332
|
+
const extraIgnorePaths = [
|
|
11333
|
+
...observedIgnorePaths,
|
|
11334
|
+
...ownedIgnorePaths,
|
|
11335
|
+
...preFixIgnorePaths,
|
|
11336
|
+
...readOnlyIgnorePaths
|
|
11337
|
+
];
|
|
11284
11338
|
const changes = calculateResourceDrift(comparedBaseline, paired.aws, {
|
|
11285
|
-
ignorePaths:
|
|
11286
|
-
...ignorePaths,
|
|
11287
|
-
...observedIgnorePaths,
|
|
11288
|
-
...ownedIgnorePaths,
|
|
11289
|
-
...preFixIgnorePaths
|
|
11290
|
-
] : ignorePaths,
|
|
11339
|
+
ignorePaths: extraIgnorePaths.length ? [...ignorePaths, ...extraIgnorePaths] : ignorePaths,
|
|
11291
11340
|
unionWalkObjects: useObserved,
|
|
11292
11341
|
unorderedPaths
|
|
11293
11342
|
});
|
|
@@ -11506,6 +11555,7 @@ async function runDriftForStack(stackName, region, stateBackend, providerRegistr
|
|
|
11506
11555
|
}
|
|
11507
11556
|
let readReturned = false;
|
|
11508
11557
|
const printing = printingBagOf(logicalId);
|
|
11558
|
+
const readOnlyPathsLookup = readPath === "ccApi" && (provider.readCurrentState !== void 0 || !CC_API_FALLBACK_DENY_LIST[resource.resourceType]) ? getReadOnlyPropertyPaths(resource.resourceType) : void 0;
|
|
11509
11559
|
await withPrintingSecrets(printing, async () => {
|
|
11510
11560
|
try {
|
|
11511
11561
|
let aws;
|
|
@@ -11566,7 +11616,8 @@ async function runDriftForStack(stackName, region, stateBackend, providerRegistr
|
|
|
11566
11616
|
secrets,
|
|
11567
11617
|
printing,
|
|
11568
11618
|
aws,
|
|
11569
|
-
readContext
|
|
11619
|
+
readContext,
|
|
11620
|
+
...readOnlyPathsLookup && { readOnlyPathsLookup }
|
|
11570
11621
|
});
|
|
11571
11622
|
} catch (err) {
|
|
11572
11623
|
if (isNoReadHandlerError(err)) {
|
|
@@ -11614,6 +11665,156 @@ async function runDriftForStack(stackName, region, stateBackend, providerRegistr
|
|
|
11614
11665
|
});
|
|
11615
11666
|
}
|
|
11616
11667
|
|
|
11668
|
+
// src/cli/commands/drift/revert-write-only.ts
|
|
11669
|
+
function revertWriteOnlyResendNames(resourceType, properties, writeOnlyNames) {
|
|
11670
|
+
if (!writeOnlyNames || writeOnlyNames.size === 0 || !isPlainRecord(properties)) return [];
|
|
11671
|
+
const unreadableCreateOnly = getTopLevelKeysHoldingUnreadableCreateOnly(resourceType, properties);
|
|
11672
|
+
const names = [];
|
|
11673
|
+
for (const name of writeOnlyNames) {
|
|
11674
|
+
if (!hasOwnKey(properties, name) || unreadableCreateOnly.has(name)) continue;
|
|
11675
|
+
const value = properties[name];
|
|
11676
|
+
if (value === void 0 || value === null) continue;
|
|
11677
|
+
if (carriesSecretMask(value) || carriesIntrinsicObject(value)) continue;
|
|
11678
|
+
names.push(name);
|
|
11679
|
+
}
|
|
11680
|
+
return names;
|
|
11681
|
+
}
|
|
11682
|
+
function withDeclaredWriteOnlyValues(send, resolvedProperties, names, paths) {
|
|
11683
|
+
const skipped = [];
|
|
11684
|
+
const wholesale = [];
|
|
11685
|
+
if (names.length === 0 || !isPlainRecord(resolvedProperties)) return {
|
|
11686
|
+
properties: send,
|
|
11687
|
+
skipped,
|
|
11688
|
+
wholesale
|
|
11689
|
+
};
|
|
11690
|
+
let out = send;
|
|
11691
|
+
for (const name of names) {
|
|
11692
|
+
if (!hasOwnKey(resolvedProperties, name)) continue;
|
|
11693
|
+
const declared = resolvedProperties[name];
|
|
11694
|
+
if (declared === void 0 || declared === null) continue;
|
|
11695
|
+
let next;
|
|
11696
|
+
if (!hasOwnKey(send, name)) next = declared;
|
|
11697
|
+
else {
|
|
11698
|
+
const own = paths.filter((p) => p[0] === name).map((p) => p.slice(1));
|
|
11699
|
+
let value = send[name];
|
|
11700
|
+
let matched = true;
|
|
11701
|
+
for (const rest of own) {
|
|
11702
|
+
const grafted = graftAt(value, declared, rest, own);
|
|
11703
|
+
if (!grafted.ok) matched = false;
|
|
11704
|
+
value = grafted.value;
|
|
11705
|
+
}
|
|
11706
|
+
if (matched) next = value;
|
|
11707
|
+
else {
|
|
11708
|
+
next = declared;
|
|
11709
|
+
wholesale.push(name);
|
|
11710
|
+
}
|
|
11711
|
+
}
|
|
11712
|
+
if (carriesDynamicReference(next) || carriesSecretMask(next)) {
|
|
11713
|
+
skipped.push(name);
|
|
11714
|
+
const at = wholesale.indexOf(name);
|
|
11715
|
+
if (at !== -1) wholesale.splice(at, 1);
|
|
11716
|
+
continue;
|
|
11717
|
+
}
|
|
11718
|
+
if (out === send) out = { ...send };
|
|
11719
|
+
defineOwnKey(out, name, next);
|
|
11720
|
+
}
|
|
11721
|
+
return {
|
|
11722
|
+
properties: out,
|
|
11723
|
+
skipped,
|
|
11724
|
+
wholesale
|
|
11725
|
+
};
|
|
11726
|
+
}
|
|
11727
|
+
function graftAt(send, declared, path, writeOnly) {
|
|
11728
|
+
if (path.length === 0 || send === void 0 || send === null) return {
|
|
11729
|
+
value: declared,
|
|
11730
|
+
ok: true
|
|
11731
|
+
};
|
|
11732
|
+
const [segment, ...rest] = path;
|
|
11733
|
+
const below = writeOnly.filter((p) => p[0] === segment).map((p) => p.slice(1));
|
|
11734
|
+
if (segment === "*") {
|
|
11735
|
+
if (!Array.isArray(declared)) return {
|
|
11736
|
+
value: send,
|
|
11737
|
+
ok: true
|
|
11738
|
+
};
|
|
11739
|
+
if (!Array.isArray(send)) return {
|
|
11740
|
+
value: send,
|
|
11741
|
+
ok: false
|
|
11742
|
+
};
|
|
11743
|
+
const partners = pairListItems(send, declared, below);
|
|
11744
|
+
if (!partners) return {
|
|
11745
|
+
value: send,
|
|
11746
|
+
ok: false
|
|
11747
|
+
};
|
|
11748
|
+
let ok = true;
|
|
11749
|
+
return {
|
|
11750
|
+
value: send.map((element, index) => {
|
|
11751
|
+
const grafted = graftAt(element, partners[index], rest, below);
|
|
11752
|
+
if (!grafted.ok) ok = false;
|
|
11753
|
+
return grafted.value;
|
|
11754
|
+
}),
|
|
11755
|
+
ok
|
|
11756
|
+
};
|
|
11757
|
+
}
|
|
11758
|
+
if (!isPlainRecord(declared) || !hasOwnKey(declared, segment)) return {
|
|
11759
|
+
value: send,
|
|
11760
|
+
ok: true
|
|
11761
|
+
};
|
|
11762
|
+
if (!isPlainRecord(send)) return {
|
|
11763
|
+
value: send,
|
|
11764
|
+
ok: false
|
|
11765
|
+
};
|
|
11766
|
+
const base = { ...send };
|
|
11767
|
+
const grafted = graftAt(hasOwnKey(base, segment) ? base[segment] : void 0, declared[segment], rest, below);
|
|
11768
|
+
defineOwnKey(base, segment, grafted.value);
|
|
11769
|
+
return {
|
|
11770
|
+
value: base,
|
|
11771
|
+
ok: grafted.ok
|
|
11772
|
+
};
|
|
11773
|
+
}
|
|
11774
|
+
function pairListItems(send, declared, writeOnly) {
|
|
11775
|
+
if (send.length !== declared.length) return void 0;
|
|
11776
|
+
const templates = declared.map((item) => withoutPaths(item, writeOnly));
|
|
11777
|
+
const partners = [];
|
|
11778
|
+
const used = /* @__PURE__ */ new Set();
|
|
11779
|
+
for (const item of send) {
|
|
11780
|
+
const candidates = templates.map((t, index) => covers(t, item) ? index : -1).filter((index) => index !== -1);
|
|
11781
|
+
if (candidates.length !== 1 || used.has(candidates[0])) return void 0;
|
|
11782
|
+
used.add(candidates[0]);
|
|
11783
|
+
partners.push(declared[candidates[0]]);
|
|
11784
|
+
}
|
|
11785
|
+
return partners;
|
|
11786
|
+
}
|
|
11787
|
+
function withoutPaths(value, paths) {
|
|
11788
|
+
if (paths.length === 0) return value;
|
|
11789
|
+
if (Array.isArray(value)) {
|
|
11790
|
+
const inner = paths.filter((p) => p[0] === "*").map((p) => p.slice(1));
|
|
11791
|
+
return value.map((item) => withoutPaths(item, inner));
|
|
11792
|
+
}
|
|
11793
|
+
if (!isPlainRecord(value)) return value;
|
|
11794
|
+
const out = {};
|
|
11795
|
+
for (const [key, child] of Object.entries(value)) {
|
|
11796
|
+
const inner = paths.filter((p) => p[0] === key).map((p) => p.slice(1));
|
|
11797
|
+
if (inner.some((p) => p.length === 0)) continue;
|
|
11798
|
+
defineOwnKey(out, key, withoutPaths(child, inner));
|
|
11799
|
+
}
|
|
11800
|
+
return out;
|
|
11801
|
+
}
|
|
11802
|
+
function covers(template, actual) {
|
|
11803
|
+
if (isPlainRecord(template)) {
|
|
11804
|
+
if (!isPlainRecord(actual)) return false;
|
|
11805
|
+
return Object.entries(template).every(([key, child]) => hasOwnKey(actual, key) && covers(child, actual[key]));
|
|
11806
|
+
}
|
|
11807
|
+
if (Array.isArray(template)) return Array.isArray(actual) && template.length === actual.length && template.every((child, index) => covers(child, actual[index]));
|
|
11808
|
+
return deepEqualUnordered(template, actual);
|
|
11809
|
+
}
|
|
11810
|
+
function carriesIntrinsicObject(value) {
|
|
11811
|
+
if (Array.isArray(value)) return value.some(carriesIntrinsicObject);
|
|
11812
|
+
if (value === null || typeof value !== "object") return false;
|
|
11813
|
+
const keys = Object.keys(value);
|
|
11814
|
+
if (keys.length === 1 && (keys[0] === "Ref" || keys[0].startsWith("Fn::"))) return true;
|
|
11815
|
+
return Object.values(value).some(carriesIntrinsicObject);
|
|
11816
|
+
}
|
|
11817
|
+
|
|
11617
11818
|
// src/cli/commands/drift/revert-apply.ts
|
|
11618
11819
|
async function applyRevertUpdate(args) {
|
|
11619
11820
|
const { logger, tally, report, narrowedByLogicalId, reRecordedByLogicalId, settledByRevert, outcome, stateResource, provider, secrets, revertBaseline, newProperties } = args;
|
|
@@ -11725,6 +11926,7 @@ async function revertDriftedOutcome(args) {
|
|
|
11725
11926
|
for (const token of tokens) unresolvedTokens.add(token);
|
|
11726
11927
|
};
|
|
11727
11928
|
let desiredProperties;
|
|
11929
|
+
let resolvedDeclared;
|
|
11728
11930
|
try {
|
|
11729
11931
|
desiredProperties = await resolveStateSecretExpressions(revertBaseline, revertSecretResolvers, secrets, {
|
|
11730
11932
|
onUnresolved: noteUnresolved,
|
|
@@ -11733,7 +11935,8 @@ async function revertDriftedOutcome(args) {
|
|
|
11733
11935
|
record: stateResource,
|
|
11734
11936
|
producerRegions: revertProducerRegions
|
|
11735
11937
|
});
|
|
11736
|
-
|
|
11938
|
+
resolvedDeclared = desiredProperties;
|
|
11939
|
+
if (stateResource.observedProperties !== void 0) resolvedDeclared = await resolveStateSecretExpressions(stateResource.properties ?? {}, revertSecretResolvers, secrets, {
|
|
11737
11940
|
onUnresolved: noteUnresolved,
|
|
11738
11941
|
logicalId: outcome.logicalId,
|
|
11739
11942
|
consumerRegion: report.region,
|
|
@@ -11767,6 +11970,7 @@ async function revertDriftedOutcome(args) {
|
|
|
11767
11970
|
desiredProperties = stripSiblingOwnedMembers(outcome.resourceType, stateResource.physicalId, desiredProperties, outcome.awsProperties, stateResource.properties, siblingContext).baseline;
|
|
11768
11971
|
desiredProperties = stripSiblingOwnedSgRules(outcome.resourceType, stateResource.physicalId, desiredProperties, outcome.awsProperties, stateResource.properties, siblingContext).baseline;
|
|
11769
11972
|
if (provider.canonicalizeDriftPair) desiredProperties = (await provider.canonicalizeDriftPair(outcome.resourceType, desiredProperties, outcome.awsProperties, stateResource.properties ?? {})).baseline;
|
|
11973
|
+
desiredProperties = stripDerivedEchoMembers(outcome.resourceType, desiredProperties);
|
|
11770
11974
|
const overlaid = buildRevertNewProperties(outcome.changes, desiredProperties, outcome.awsProperties, stateResource.observedProperties === void 0 ? { preserveUntemplated: true } : { absentMeansDefault: driftAbsentMeansDefaultKeys(provider, outcome.resourceType, stateResource.properties) });
|
|
11771
11975
|
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
11976
|
const tokenPreserved = unresolvedTokens.size > 0 ? preserveLiveValuesAtUnresolvedTokens(certifiedOverlay, outcome.awsProperties, unresolvedTokens, secrets) : certifiedOverlay;
|
|
@@ -11785,7 +11989,10 @@ async function revertDriftedOutcome(args) {
|
|
|
11785
11989
|
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
11990
|
return;
|
|
11787
11991
|
}
|
|
11788
|
-
|
|
11992
|
+
const writeOnly = withDeclaredWriteOnlyValues(maskPreserved.properties, resolvedDeclared, args.writeOnlyResend, getSettledWriteOnlyPropertyPaths(outcome.resourceType));
|
|
11993
|
+
newProperties = writeOnly.properties;
|
|
11994
|
+
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.");
|
|
11995
|
+
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
11996
|
} catch (err) {
|
|
11790
11997
|
tally.totalFailed++;
|
|
11791
11998
|
logger.error(` ✗ ${report.stackName}/${outcome.logicalId} (${outcome.resourceType}): could not build the revert payload — ${maskSecretsInText(describeAwsFailure(err).detail, secrets)}`);
|
|
@@ -11816,7 +12023,34 @@ async function runRevert(reports, regionScope, stateBackend, stateConfig, awsCli
|
|
|
11816
12023
|
stateBucket: stateConfig.bucket,
|
|
11817
12024
|
statePrefix: stateConfig.prefix
|
|
11818
12025
|
};
|
|
11819
|
-
|
|
12026
|
+
const writeOnlyResend = /* @__PURE__ */ new Map();
|
|
12027
|
+
const writeOnlyLookups = /* @__PURE__ */ new Map();
|
|
12028
|
+
await Promise.all(reports.flatMap((report) => report.outcomes.flatMap((o) => {
|
|
12029
|
+
if (o.kind !== "drifted") return [];
|
|
12030
|
+
const record = report.state.resources[o.logicalId];
|
|
12031
|
+
if (!record) return [];
|
|
12032
|
+
const scope = regionScope(report.region);
|
|
12033
|
+
const { provisionedBy } = scope.registry.getProviderFor({
|
|
12034
|
+
resourceType: o.resourceType,
|
|
12035
|
+
provisionedBy: record.provisionedBy
|
|
12036
|
+
});
|
|
12037
|
+
if (provisionedBy !== "cc-api") return [];
|
|
12038
|
+
let byType = writeOnlyLookups.get(report.region);
|
|
12039
|
+
if (!byType) {
|
|
12040
|
+
byType = /* @__PURE__ */ new Map();
|
|
12041
|
+
writeOnlyLookups.set(report.region, byType);
|
|
12042
|
+
}
|
|
12043
|
+
let lookup = byType.get(o.resourceType);
|
|
12044
|
+
if (!lookup) {
|
|
12045
|
+
lookup = runWithStackAwsClients(scope.clients, () => tryGetTopLevelWriteOnlyProperties(o.resourceType));
|
|
12046
|
+
byType.set(o.resourceType, lookup);
|
|
12047
|
+
}
|
|
12048
|
+
return [lookup.then((writeOnlyNames) => {
|
|
12049
|
+
const names = revertWriteOnlyResendNames(o.resourceType, record.properties, writeOnlyNames);
|
|
12050
|
+
if (names.length > 0) writeOnlyResend.set(o, names);
|
|
12051
|
+
})];
|
|
12052
|
+
})));
|
|
12053
|
+
printRevertPlan(reports, out, lockRecovery, writeOnlyResend);
|
|
11820
12054
|
if (options.dryRun) {
|
|
11821
12055
|
logger.info("--dry-run: AWS will NOT be modified. Re-run without --dry-run to apply.");
|
|
11822
12056
|
return;
|
|
@@ -11871,7 +12105,8 @@ async function runRevert(reports, regionScope, stateBackend, stateConfig, awsCli
|
|
|
11871
12105
|
narrowedByLogicalId,
|
|
11872
12106
|
reRecordedByLogicalId,
|
|
11873
12107
|
settledByRevert,
|
|
11874
|
-
outcome
|
|
12108
|
+
outcome,
|
|
12109
|
+
writeOnlyResend: writeOnlyResend.get(outcome) ?? []
|
|
11875
12110
|
});
|
|
11876
12111
|
}));
|
|
11877
12112
|
await runWithConcurrency(tasks, concurrency);
|
|
@@ -11980,7 +12215,6 @@ async function driftCommand(stacks, options) {
|
|
|
11980
12215
|
const logger = getLogger();
|
|
11981
12216
|
if (options.verbose) logger.setLevel("debug");
|
|
11982
12217
|
if (options.json) reserveStdoutForPayload();
|
|
11983
|
-
warnIfDeprecatedRegion(options);
|
|
11984
12218
|
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
12219
|
foldRegionOption(options);
|
|
11986
12220
|
await applyRoleArnIfSet({
|
|
@@ -12251,7 +12485,7 @@ function createIamPrincipalUniqueIdResolver(awsClients) {
|
|
|
12251
12485
|
function createDriftCommand() {
|
|
12252
12486
|
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
12487
|
[...commonOptions, ...stateOptions].forEach((opt) => cmd.addOption(opt));
|
|
12254
|
-
cmd.addOption(
|
|
12488
|
+
cmd.addOption(regionOption);
|
|
12255
12489
|
return cmd;
|
|
12256
12490
|
}
|
|
12257
12491
|
|
|
@@ -12994,7 +13228,7 @@ async function deleteStackResource({ lock, state, ctx, stackName, logger, result
|
|
|
12994
13228
|
logger,
|
|
12995
13229
|
mask: createUnionSecretMasker([printingBagOf(logicalId)])
|
|
12996
13230
|
})) throw ccRoutedFinalSnapshotError(logicalId, resource.resourceType, "--skip-final-snapshot");
|
|
12997
|
-
} else if (PRE_DELETE_SNAPSHOT_TYPES.has(resource.resourceType)) await createPreDeleteFinalSnapshot(resource.resourceType, resource.physicalId, logicalId, destroyAwsClients ?? ctx.baseAwsClients, maskedSnapshotLogger(logger, createUnionSecretMasker([printingBagOf(logicalId)])));
|
|
13231
|
+
} else if (PRE_DELETE_SNAPSHOT_TYPES.has(resource.resourceType)) await createPreDeleteFinalSnapshot(resource.resourceType, resource.physicalId, logicalId, destroyAwsClients ?? ctx.baseAwsClients, maskedSnapshotLogger(logger, createUnionSecretMasker([printingBagOf(logicalId)])), { attemptStartedAt: resourceStartedAt });
|
|
12998
13232
|
else throw unsupportedFinalSnapshotError(logicalId, resource.resourceType, "--skip-final-snapshot");
|
|
12999
13233
|
}
|
|
13000
13234
|
const provider = destroyProviderRegistry.getProviderFor({
|
|
@@ -14049,7 +14283,6 @@ async function destroyCommand(stackArgs, options) {
|
|
|
14049
14283
|
logger.setLevel("debug");
|
|
14050
14284
|
process.env["CDKD_NO_LIVE"] = "1";
|
|
14051
14285
|
}
|
|
14052
|
-
warnIfDeprecatedRegion(options);
|
|
14053
14286
|
validateResourceTimeouts(options);
|
|
14054
14287
|
setResolvedResourceTimeouts(options.resourceTimeout);
|
|
14055
14288
|
foldRegionOption(options);
|
|
@@ -14428,7 +14661,7 @@ function createDestroyCommand() {
|
|
|
14428
14661
|
noLocalCustomResourcesOption,
|
|
14429
14662
|
...contextOptions
|
|
14430
14663
|
].forEach((opt) => cmd.addOption(opt));
|
|
14431
|
-
cmd.addOption(
|
|
14664
|
+
cmd.addOption(regionOption);
|
|
14432
14665
|
return cmd;
|
|
14433
14666
|
}
|
|
14434
14667
|
|
|
@@ -14921,7 +15154,6 @@ function resolveSingleRegion(stackName, refs, requestedRegion) {
|
|
|
14921
15154
|
|
|
14922
15155
|
// src/cli/commands/state/setup.ts
|
|
14923
15156
|
async function setupStateBackend(options) {
|
|
14924
|
-
warnIfDeprecatedRegion(options);
|
|
14925
15157
|
foldRegionOption(options);
|
|
14926
15158
|
await applyRoleArnIfSet({
|
|
14927
15159
|
roleArn: options.roleArn,
|
|
@@ -15122,7 +15354,7 @@ function createStateListCommand() {
|
|
|
15122
15354
|
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
15355
|
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
15356
|
[...commonOptions, ...stateOptions].forEach((opt) => cmd.addOption(opt));
|
|
15125
|
-
cmd.addOption(
|
|
15357
|
+
cmd.addOption(regionOption);
|
|
15126
15358
|
return cmd;
|
|
15127
15359
|
}
|
|
15128
15360
|
|
|
@@ -15290,7 +15522,7 @@ function formatLockSummary(lockInfo) {
|
|
|
15290
15522
|
function createStateResourcesCommand() {
|
|
15291
15523
|
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
15524
|
[...commonOptions, ...stateOptions].forEach((opt) => cmd.addOption(opt));
|
|
15293
|
-
cmd.addOption(
|
|
15525
|
+
cmd.addOption(regionOption);
|
|
15294
15526
|
return cmd;
|
|
15295
15527
|
}
|
|
15296
15528
|
|
|
@@ -18104,7 +18336,6 @@ async function exportCommand(stackArg, options) {
|
|
|
18104
18336
|
logger.setLevel("debug");
|
|
18105
18337
|
process.env["CDKD_NO_LIVE"] = "1";
|
|
18106
18338
|
}
|
|
18107
|
-
warnIfDeprecatedRegion(options);
|
|
18108
18339
|
refuseTransientContextIfUnsafe(options);
|
|
18109
18340
|
foldRegionOption(options);
|
|
18110
18341
|
await applyRoleArnIfSet({
|
|
@@ -18426,7 +18657,7 @@ function createExportCommand() {
|
|
|
18426
18657
|
...stateOptions,
|
|
18427
18658
|
...contextOptions
|
|
18428
18659
|
].forEach((opt) => cmd.addOption(opt));
|
|
18429
|
-
cmd.addOption(
|
|
18660
|
+
cmd.addOption(regionOption);
|
|
18430
18661
|
return cmd;
|
|
18431
18662
|
}
|
|
18432
18663
|
|
|
@@ -18592,7 +18823,7 @@ function treeSecretSegments(node) {
|
|
|
18592
18823
|
function createStateShowCommand() {
|
|
18593
18824
|
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
18825
|
[...commonOptions, ...stateOptions].forEach((opt) => cmd.addOption(opt));
|
|
18595
|
-
cmd.addOption(
|
|
18826
|
+
cmd.addOption(regionOption);
|
|
18596
18827
|
return cmd;
|
|
18597
18828
|
}
|
|
18598
18829
|
|
|
@@ -19020,7 +19251,6 @@ async function orphanCommand(pathArgs, options) {
|
|
|
19020
19251
|
const providerClasses = await loadProviderClasses();
|
|
19021
19252
|
const logger = getLogger();
|
|
19022
19253
|
if (options.verbose) logger.setLevel("debug");
|
|
19023
|
-
warnIfDeprecatedRegion(options);
|
|
19024
19254
|
foldRegionOption(options);
|
|
19025
19255
|
await applyRoleArnIfSet({
|
|
19026
19256
|
roleArn: options.roleArn,
|
|
@@ -19262,7 +19492,7 @@ function createOrphanCommand() {
|
|
|
19262
19492
|
...destroyOptions,
|
|
19263
19493
|
...contextOptions
|
|
19264
19494
|
].forEach((opt) => cmd.addOption(opt));
|
|
19265
|
-
cmd.addOption(
|
|
19495
|
+
cmd.addOption(regionOption);
|
|
19266
19496
|
return cmd;
|
|
19267
19497
|
}
|
|
19268
19498
|
|
|
@@ -19496,7 +19726,7 @@ async function stateOrphanResources(stackName, requested, options) {
|
|
|
19496
19726
|
function createStateOrphanCommand() {
|
|
19497
19727
|
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
19728
|
[...commonOptions, ...stateOptions].forEach((opt) => cmd.addOption(opt));
|
|
19499
|
-
cmd.addOption(
|
|
19729
|
+
cmd.addOption(regionOption);
|
|
19500
19730
|
return cmd;
|
|
19501
19731
|
}
|
|
19502
19732
|
async function confirmStateOrphanRemoval(prompt, opts) {
|
|
@@ -19744,7 +19974,7 @@ function createStateDestroyCommand() {
|
|
|
19744
19974
|
skipFinalSnapshotOption,
|
|
19745
19975
|
noLocalCustomResourcesOption
|
|
19746
19976
|
].forEach((opt) => cmd.addOption(opt));
|
|
19747
|
-
cmd.addOption(
|
|
19977
|
+
cmd.addOption(regionOption);
|
|
19748
19978
|
return cmd;
|
|
19749
19979
|
}
|
|
19750
19980
|
|
|
@@ -20551,7 +20781,7 @@ async function confirmRefresh(prompt) {
|
|
|
20551
20781
|
function createStateRefreshObservedCommand() {
|
|
20552
20782
|
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
20783
|
[...commonOptions, ...stateOptions].forEach((opt) => cmd.addOption(opt));
|
|
20554
|
-
cmd.addOption(
|
|
20784
|
+
cmd.addOption(regionOption);
|
|
20555
20785
|
return cmd;
|
|
20556
20786
|
}
|
|
20557
20787
|
|
|
@@ -20750,7 +20980,7 @@ function stateBrowseDeps(setup, options, streams) {
|
|
|
20750
20980
|
function createStateBrowseCommand() {
|
|
20751
20981
|
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
20982
|
[...commonOptions, ...stateOptions].forEach((opt) => cmd.addOption(opt));
|
|
20753
|
-
cmd.addOption(
|
|
20983
|
+
cmd.addOption(regionOption);
|
|
20754
20984
|
return cmd;
|
|
20755
20985
|
}
|
|
20756
20986
|
|
|
@@ -21511,7 +21741,6 @@ async function rollbackCommand(stackArg, options) {
|
|
|
21511
21741
|
logger.setLevel("debug");
|
|
21512
21742
|
process.env["CDKD_NO_LIVE"] = "1";
|
|
21513
21743
|
}
|
|
21514
|
-
warnIfDeprecatedRegion(options);
|
|
21515
21744
|
if (options.dropFailed !== void 0) refuseDropFailedConflicts(options);
|
|
21516
21745
|
const setup = await setupStateBackend(options);
|
|
21517
21746
|
const skipConfirmation = options.force === true || options.yes === true;
|
|
@@ -21600,7 +21829,7 @@ function createRollbackCommand() {
|
|
|
21600
21829
|
"Exit codes: 0 = clean, 2 = partial (journal kept for re-run), 1 = hard error."
|
|
21601
21830
|
].join("\n")).action(withErrorHandling(rollbackCommand));
|
|
21602
21831
|
[...commonOptions, ...stateOptions].forEach((opt) => cmd.addOption(opt));
|
|
21603
|
-
cmd.addOption(
|
|
21832
|
+
cmd.addOption(regionOption);
|
|
21604
21833
|
return cmd;
|
|
21605
21834
|
}
|
|
21606
21835
|
|
|
@@ -21625,7 +21854,6 @@ async function eventsCommand(stackName, options) {
|
|
|
21625
21854
|
if (options.verbose) logger.setLevel("debug");
|
|
21626
21855
|
const asJson = options.json === true;
|
|
21627
21856
|
if (asJson) reserveStdoutForPayload();
|
|
21628
|
-
warnIfDeprecatedRegion(options);
|
|
21629
21857
|
foldRegionOption(options);
|
|
21630
21858
|
await applyRoleArnIfSet({
|
|
21631
21859
|
roleArn: options.roleArn,
|
|
@@ -21693,7 +21921,6 @@ async function resolveEventsRegion(reader, stackName, explicitRegion) {
|
|
|
21693
21921
|
async function eventsPruneCommand(stackName, options) {
|
|
21694
21922
|
const logger = getLogger();
|
|
21695
21923
|
if (options.verbose) logger.setLevel("debug");
|
|
21696
|
-
warnIfDeprecatedRegion(options);
|
|
21697
21924
|
foldRegionOption(options);
|
|
21698
21925
|
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
21926
|
const olderThanMs = options.olderThan !== void 0 ? parseDuration(options.olderThan) : void 0;
|
|
@@ -21835,7 +22062,7 @@ function createEventsCommand() {
|
|
|
21835
22062
|
});
|
|
21836
22063
|
}));
|
|
21837
22064
|
[...commonOptions, ...stateOptions].forEach((opt) => cmd.addOption(opt));
|
|
21838
|
-
cmd.addOption(
|
|
22065
|
+
cmd.addOption(regionOption);
|
|
21839
22066
|
cmd.addCommand(createEventsPruneCommand());
|
|
21840
22067
|
return cmd;
|
|
21841
22068
|
}
|
|
@@ -23375,7 +23602,6 @@ async function refactorCommand(stacks, options) {
|
|
|
23375
23602
|
};
|
|
23376
23603
|
if (options.verbose) logger.setLevel("debug");
|
|
23377
23604
|
if (options.revert === true && options.overrideFile === void 0) throw new CdkdError("--revert requires --override-file", "INCOMPATIBLE_OPTIONS");
|
|
23378
|
-
warnIfDeprecatedRegion(options);
|
|
23379
23605
|
foldRegionOption(options);
|
|
23380
23606
|
await applyRoleArnIfSet({
|
|
23381
23607
|
roleArn: options.roleArn,
|
|
@@ -23668,7 +23894,7 @@ function createRefactorCommand() {
|
|
|
23668
23894
|
...stackOptions,
|
|
23669
23895
|
...contextOptions
|
|
23670
23896
|
].forEach((opt) => cmd.addOption(opt));
|
|
23671
|
-
cmd.addOption(
|
|
23897
|
+
cmd.addOption(regionOption);
|
|
23672
23898
|
return cmd;
|
|
23673
23899
|
}
|
|
23674
23900
|
|
|
@@ -23676,7 +23902,6 @@ function createRefactorCommand() {
|
|
|
23676
23902
|
async function publishAssetsCommand(stacks, options) {
|
|
23677
23903
|
const logger = getLogger();
|
|
23678
23904
|
if (options.verbose) logger.setLevel("debug");
|
|
23679
|
-
warnIfDeprecatedRegion(options);
|
|
23680
23905
|
const rawNamedRegion = rawCliRegion(options.region);
|
|
23681
23906
|
foldRegionOption(options);
|
|
23682
23907
|
await applyRoleArnIfSet({
|
|
@@ -23912,7 +24137,7 @@ function createPublishAssetsCommand() {
|
|
|
23912
24137
|
...stateOptions
|
|
23913
24138
|
].forEach((opt) => cmd.addOption(opt));
|
|
23914
24139
|
cmd.addOption(new Option("--stack <name>", "Stack name to publish (alternative to positional)"));
|
|
23915
|
-
cmd.addOption(
|
|
24140
|
+
cmd.addOption(regionOption);
|
|
23916
24141
|
return cmd;
|
|
23917
24142
|
}
|
|
23918
24143
|
|
|
@@ -23920,7 +24145,6 @@ function createPublishAssetsCommand() {
|
|
|
23920
24145
|
async function forceUnlockCommand(stackArgs, options) {
|
|
23921
24146
|
const logger = getLogger();
|
|
23922
24147
|
if (options.verbose) logger.setLevel("debug");
|
|
23923
|
-
warnIfDeprecatedRegion(options);
|
|
23924
24148
|
foldRegionOption(options);
|
|
23925
24149
|
await applyRoleArnIfSet({
|
|
23926
24150
|
roleArn: options.roleArn,
|
|
@@ -23999,7 +24223,7 @@ function createForceUnlockCommand() {
|
|
|
23999
24223
|
...stateOptions,
|
|
24000
24224
|
...stackOptions
|
|
24001
24225
|
].forEach((opt) => cmd.addOption(opt));
|
|
24002
|
-
cmd.addOption(
|
|
24226
|
+
cmd.addOption(regionOption);
|
|
24003
24227
|
return cmd;
|
|
24004
24228
|
}
|
|
24005
24229
|
|
|
@@ -25631,6 +25855,7 @@ function createImportCommand() {
|
|
|
25631
25855
|
...stateOptions,
|
|
25632
25856
|
...contextOptions
|
|
25633
25857
|
].forEach((o) => cmd.addOption(o));
|
|
25858
|
+
cmd.addOption(regionOption);
|
|
25634
25859
|
return cmd;
|
|
25635
25860
|
}
|
|
25636
25861
|
function collectMultiple(value, previous) {
|
|
@@ -30284,7 +30509,6 @@ async function localStartApiCommand(target, options) {
|
|
|
30284
30509
|
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
30510
|
apiFilter = options.api;
|
|
30286
30511
|
}
|
|
30287
|
-
warnIfDeprecatedRegion(options);
|
|
30288
30512
|
if (options.layerRoleArn !== void 0) explicitRoleArnOrThrow("--layer-role-arn", options.layerRoleArn);
|
|
30289
30513
|
checkEmulateRoleVia(options.emulateRoleVia, {
|
|
30290
30514
|
roleFlag: "--assume-role or --assume-role-auto",
|
|
@@ -30579,7 +30803,7 @@ function createLocalStartApiCommand() {
|
|
|
30579
30803
|
...contextOptions,
|
|
30580
30804
|
...stateOptions
|
|
30581
30805
|
].forEach((opt) => startApi.addOption(opt));
|
|
30582
|
-
startApi.addOption(
|
|
30806
|
+
startApi.addOption(regionOption);
|
|
30583
30807
|
addAwsEndpointOptions(startApi);
|
|
30584
30808
|
return startApi;
|
|
30585
30809
|
}
|
|
@@ -32140,7 +32364,6 @@ async function resolveRunTaskImageOverride(args) {
|
|
|
32140
32364
|
async function localRunTaskCommand(target, options) {
|
|
32141
32365
|
const logger = getLogger();
|
|
32142
32366
|
if (options.verbose) logger.setLevel("debug");
|
|
32143
|
-
warnIfDeprecatedRegion(options);
|
|
32144
32367
|
const rawEnvRegion = process.env["AWS_REGION"] ?? process.env["AWS_DEFAULT_REGION"];
|
|
32145
32368
|
if (rawEnvRegion !== void 0) options.rawEnvRegion = rawEnvRegion;
|
|
32146
32369
|
foldRegionOption(options);
|
|
@@ -32381,7 +32604,7 @@ function createLocalRunTaskCommand() {
|
|
|
32381
32604
|
...contextOptions,
|
|
32382
32605
|
...stateOptions
|
|
32383
32606
|
].forEach((opt) => cmd.addOption(opt));
|
|
32384
|
-
cmd.addOption(
|
|
32607
|
+
cmd.addOption(regionOption);
|
|
32385
32608
|
addAwsEndpointOptions(cmd);
|
|
32386
32609
|
return cmd;
|
|
32387
32610
|
}
|
|
@@ -32406,7 +32629,7 @@ function createLocalStartServiceCommand() {
|
|
|
32406
32629
|
await runEcsServiceEmulator(targets, options, serviceStrategy(), cdkdExtraStateProviders, cdkdHostSynthesizer(() => options));
|
|
32407
32630
|
}));
|
|
32408
32631
|
addStartServiceSpecificOptions(cmd);
|
|
32409
|
-
return
|
|
32632
|
+
return adoptRegionFlag(addCommonEcsServiceOptions(cmd));
|
|
32410
32633
|
}
|
|
32411
32634
|
|
|
32412
32635
|
// src/local/invoke-agentcore-watch-loop.ts
|
|
@@ -33384,7 +33607,6 @@ async function localInvokeAgentCoreCommand(target, options) {
|
|
|
33384
33607
|
const logger = getLogger();
|
|
33385
33608
|
if (options.verbose) logger.setLevel("debug");
|
|
33386
33609
|
reserveStdoutForPayload();
|
|
33387
|
-
warnIfDeprecatedRegion(options);
|
|
33388
33610
|
foldRegionOption(options);
|
|
33389
33611
|
if (options.stackRegion !== void 0) {
|
|
33390
33612
|
options.rawStackRegion = options.stackRegion;
|
|
@@ -33724,7 +33946,7 @@ function createLocalInvokeAgentCoreCommand() {
|
|
|
33724
33946
|
...contextOptions,
|
|
33725
33947
|
...stateOptions
|
|
33726
33948
|
].forEach((opt) => cmd.addOption(opt));
|
|
33727
|
-
cmd.addOption(
|
|
33949
|
+
cmd.addOption(regionOption);
|
|
33728
33950
|
addAwsEndpointOptions(cmd);
|
|
33729
33951
|
return cmd;
|
|
33730
33952
|
}
|
|
@@ -33740,7 +33962,7 @@ function createLocalStartAgentCoreCommand$1() {
|
|
|
33740
33962
|
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
33963
|
cmd.addOption(new Option("--state-prefix <prefix>", "S3 key prefix for --from-state state files.").default("cdkd"));
|
|
33742
33964
|
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
|
|
33965
|
+
return adoptRegionFlag(cmd);
|
|
33744
33966
|
}
|
|
33745
33967
|
|
|
33746
33968
|
// src/cli/commands/local-start-alb.ts
|
|
@@ -33749,7 +33971,7 @@ function createLocalStartAlbCommand() {
|
|
|
33749
33971
|
await runEcsServiceEmulator(targets, options, albStrategy(options), cdkdExtraStateProviders, cdkdHostSynthesizer(() => options));
|
|
33750
33972
|
}));
|
|
33751
33973
|
addAlbSpecificOptions(cmd);
|
|
33752
|
-
return
|
|
33974
|
+
return adoptRegionFlag(addCommonEcsServiceOptions(cmd));
|
|
33753
33975
|
}
|
|
33754
33976
|
|
|
33755
33977
|
// src/cli/commands/local-start-cloudfront.ts
|
|
@@ -33763,7 +33985,7 @@ function createLocalStartCloudFrontCommand$1() {
|
|
|
33763
33985
|
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
33986
|
cmd.addOption(new Option("--state-prefix <prefix>", "S3 key prefix for --from-state state files.").default("cdkd"));
|
|
33765
33987
|
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
|
|
33988
|
+
return adoptRegionFlag(cmd);
|
|
33767
33989
|
}
|
|
33768
33990
|
|
|
33769
33991
|
// src/cli/commands/local-start-web-function.ts
|
|
@@ -33777,7 +33999,7 @@ function createLocalStartWebFunctionCommand$1() {
|
|
|
33777
33999
|
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
34000
|
cmd.addOption(new Option("--state-prefix <prefix>", "S3 key prefix for --from-state state files.").default("cdkd"));
|
|
33779
34001
|
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
|
|
34002
|
+
return adoptRegionFlag(cmd);
|
|
33781
34003
|
}
|
|
33782
34004
|
|
|
33783
34005
|
// src/cli/commands/local-start-microvm.ts
|
|
@@ -33790,7 +34012,7 @@ function createLocalStartMicrovmCommand$1() {
|
|
|
33790
34012
|
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
34013
|
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
34014
|
cmd.addOption(new Option("--state-prefix <prefix>", "S3 key prefix for --from-state state files.").default("cdkd"));
|
|
33793
|
-
return
|
|
34015
|
+
return adoptRegionFlag(cmd);
|
|
33794
34016
|
}
|
|
33795
34017
|
|
|
33796
34018
|
// src/cli/commands/local-invoke/credentials.ts
|
|
@@ -34000,7 +34222,6 @@ async function localInvokeCommand(target, options) {
|
|
|
34000
34222
|
const logger = getLogger();
|
|
34001
34223
|
if (options.verbose) logger.setLevel("debug");
|
|
34002
34224
|
reserveStdoutForPayload();
|
|
34003
|
-
warnIfDeprecatedRegion(options);
|
|
34004
34225
|
foldRegionOption(options);
|
|
34005
34226
|
if (options.stackRegion !== void 0) {
|
|
34006
34227
|
options.rawStackRegion = options.stackRegion;
|
|
@@ -34359,7 +34580,7 @@ function createLocalCommand() {
|
|
|
34359
34580
|
...contextOptions,
|
|
34360
34581
|
...stateOptions
|
|
34361
34582
|
].forEach((opt) => invoke.addOption(opt));
|
|
34362
|
-
invoke.addOption(
|
|
34583
|
+
invoke.addOption(regionOption);
|
|
34363
34584
|
addAwsEndpointOptions(invoke);
|
|
34364
34585
|
local.addCommand(invoke);
|
|
34365
34586
|
local.addCommand(createLocalStartApiCommand());
|
|
@@ -34445,4 +34666,4 @@ function collectVerbFlags(program) {
|
|
|
34445
34666
|
}
|
|
34446
34667
|
|
|
34447
34668
|
export { resolveSecretDerivedPrincipals as a, buildProgram, isResolvableSecretPrincipalList as i, runDestroyForStack as n, holdsUnprovenSecretPrincipalToken as r, canonicalizeIpv4Cidr as t };
|
|
34448
|
-
//# sourceMappingURL=program-
|
|
34669
|
+
//# sourceMappingURL=program-QwXOnrpm.js.map
|