@cdkd/cli 0.358.2 → 0.358.4
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-ov4YgebP.js → ambient-client-defaults-CcCQuSZx.js} +4 -3
- package/dist/ambient-client-defaults-CcCQuSZx.js.map +1 -0
- package/dist/{asg-provider-B3SM2Pb6.js → asg-provider-BYsZoqmF.js} +6 -6
- package/dist/{asg-provider-B3SM2Pb6.js.map → asg-provider-BYsZoqmF.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{custom-resource-runtime-C2L70Uvt.js → custom-resource-runtime-vUQQgT6M.js} +6 -6
- package/dist/{custom-resource-runtime-C2L70Uvt.js.map → custom-resource-runtime-vUQQgT6M.js.map} +1 -1
- package/dist/{db-associated-roles-BtFMDSS8.js → db-associated-roles-D1kkpP0k.js} +2 -2
- package/dist/{db-associated-roles-BtFMDSS8.js.map → db-associated-roles-D1kkpP0k.js.map} +1 -1
- package/dist/{delete-started-D6-EOWNl.js → delete-started-joCwegKq.js} +4 -4
- package/dist/{delete-started-D6-EOWNl.js.map → delete-started-joCwegKq.js.map} +1 -1
- package/dist/{deploy-engine-C7WHVVa_.js → deploy-engine-CilA7v8d.js} +977 -84
- package/dist/deploy-engine-CilA7v8d.js.map +1 -0
- package/dist/{diff-calculator-CfIvxdWW.js → diff-calculator-Bjr0sh-h.js} +12 -12
- package/dist/{diff-calculator-CfIvxdWW.js.map → diff-calculator-Bjr0sh-h.js.map} +1 -1
- package/dist/{ec2-termination-protection-BftAVRVj.js → ec2-termination-protection-Gdl3Djvt.js} +6 -6
- package/dist/{ec2-termination-protection-BftAVRVj.js.map → ec2-termination-protection-Gdl3Djvt.js.map} +1 -1
- package/dist/{ecr-uri-BcxKuVtg.js → ecr-uri-BhoeLkz2.js} +2 -2
- package/dist/{ecr-uri-BcxKuVtg.js.map → ecr-uri-BhoeLkz2.js.map} +1 -1
- package/dist/{expected-bucket-owner-DF9akR1A.js → expected-bucket-owner-CIiqUDil.js} +2 -2
- package/dist/{expected-bucket-owner-DF9akR1A.js.map → expected-bucket-owner-CIiqUDil.js.map} +1 -1
- package/dist/{iam-role-provider-D83igvxU.js → iam-role-provider-gS0g_h2H.js} +8 -8
- package/dist/{iam-role-provider-D83igvxU.js.map → iam-role-provider-gS0g_h2H.js.map} +1 -1
- package/dist/{image-plan-CX0jARAo.js → image-plan-hSzmMXmK.js} +8 -8
- package/dist/{image-plan-CX0jARAo.js.map → image-plan-hSzmMXmK.js.map} +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-BOyzi_bp.js → logger-ZjhMP0A2.js} +2 -2
- package/dist/{logger-BOyzi_bp.js.map → logger-ZjhMP0A2.js.map} +1 -1
- package/dist/{neptune-provider-LICtrjZA.js → neptune-provider-D3O8Y0lx.js} +7 -7
- package/dist/{neptune-provider-LICtrjZA.js.map → neptune-provider-D3O8Y0lx.js.map} +1 -1
- package/dist/{program-CNXtBZfo.js → program-MndcrrWf.js} +476 -47
- package/dist/program-MndcrrWf.js.map +1 -0
- package/dist/{provider-classes-DTrcboTq.js → provider-classes-KrOpD8Sp.js} +846 -748
- package/dist/provider-classes-KrOpD8Sp.js.map +1 -0
- package/dist/{rds-provider-CBmrdoyi.js → rds-provider-Q_PZr6mn.js} +10 -10
- package/dist/{rds-provider-CBmrdoyi.js.map → rds-provider-Q_PZr6mn.js.map} +1 -1
- package/dist/{read-replica-BCcgBJRn.js → read-replica-DyQpEv77.js} +3 -3
- package/dist/{read-replica-BCcgBJRn.js.map → read-replica-DyQpEv77.js.map} +1 -1
- package/dist/{replacement-rules-BfJK4-AO.js → replacement-rules-BdvFwhmu.js} +3 -3
- package/dist/{replacement-rules-BfJK4-AO.js.map → replacement-rules-BdvFwhmu.js.map} +1 -1
- package/dist/{resource-deadline-C8ZUmToQ.js → resource-deadline-CKaftDB_.js} +8 -5
- package/dist/{resource-deadline-C8ZUmToQ.js.map → resource-deadline-CKaftDB_.js.map} +1 -1
- package/dist/{restore-source-guard-VsAsPwf6.js → restore-source-guard-eOILAZqS.js} +4 -4
- package/dist/{restore-source-guard-VsAsPwf6.js.map → restore-source-guard-eOILAZqS.js.map} +1 -1
- package/dist/{run-cli-Cauimq5Y.js → run-cli-PZtAEtYO.js} +2 -2
- package/dist/{run-cli-Cauimq5Y.js.map → run-cli-PZtAEtYO.js.map} +1 -1
- package/dist/{version-DWD1DsuN.js → version-DiwszmmI.js} +2 -2
- package/dist/{version-DWD1DsuN.js.map → version-DiwszmmI.js.map} +1 -1
- package/package.json +1 -1
- package/dist/ambient-client-defaults-ov4YgebP.js.map +0 -1
- package/dist/deploy-engine-C7WHVVa_.js.map +0 -1
- package/dist/program-CNXtBZfo.js.map +0 -1
- package/dist/provider-classes-DTrcboTq.js.map +0 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { A as displayStackName, C as STACK_REF_MAX_CODE_POINTS, D as displayAwsMessage, E as cutMarker, F as stringifyJsonPayload, I as terminalSafe, L as truncateCodePoints, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, T as asIsMessage, _ as shellQuote, b as setPasteableVerbFlags, c as deployReplaceCommand, d as pasteableCommand, g as shellBoundedDisplay, h as quotedOrDescribed, i as SHELL_ACTIVE_WHY, j as isPasteableIdent, k as displaySafe, m as proseQuoted, o as cdkdRemedy, p as plainOrDescribed, s as commandHole, t as getCdkdVersion, u as isInertUnquoted, v as withheldTargetClause, w as UNRENDERABLE, x as SAFE_MSG_ALTERED_CHAR, y as setPasteableRunFlags } from "./version-
|
|
2
|
-
import { $ as renderStacksNoLongerSelected, $t as deployOptions, A as followContainerLogs, At as namedEnvAwsRegion, B as resolveRuntimeCodeMountPath, Bt as regionNeedsReconciliation, C as waitForRieReady, Cn as STATE_FILE_SUFFIX, Ct as resolveContainerRegion, Dn as listAllStateKeys, Dt as warnAwsEmulatorStateSourceHint, E as SENSITIVE_ENV_KEYS, En as listAllLockKeys, Et as taskRoleAssumedInRealAws, F as removeContainer, Ft as legacyStateBucketFallbackRegion, G as nestedOwnerOfLogicalId, Gt as withOtherIndexRemoval, H as resolveRuntimeImage, Ht as resolveEffectiveRegion, It as namedCliRegion, J as renderAllLeftOutStageStacks, Jt as annotationMessageOptions, K as partitionTopLevel, Kt as strandedProfileCredentialsNotice, L as runDetached, Lt as rawCliRegion, M as killAndDrainContainerLogs, Mt as adoptRegionFlag, N as pickFreePort, Nt as exportInferredRegionForSdk, O as ensureDockerAvailable, On as parseStateKey, Ot as workloadGetsEmulatorKeysOnly, P as pullImage, Pt as foldRegionOption, Q as renderNotInAppWarning, Qt as contextOptions, Rt as reconcileExportIndexRegion, S as invokeRie, Sn as LOCK_FILE_SUFFIX, St as realAwsException, T as DockerRunnerError, Tn as describeStateKey, Tt as stateRoleRecordIsEmulatorSide, U as describeStack, Ut as stackRegionResolver, V as resolveRuntimeFileExtension, Vt as regionShown, W as matchStacks, Wt as stateWithRegion, X as renderAmbiguousTargetStack, Xt as applyWaitFlagEnv, Y as renderAllNoTopLevelStacks, Yt as appOptions, Z as renderNoStackMatch, Zt as commonOptions, _ as probeHostGatewaySupport, _n as parseDuration, _t as localAwsEmulatorCredentials, a as materializeLayerFromArn, an as noLocalCustomResourcesOption, at as unmatchedPatterns, b as substituteImagePlaceholders, bn as cliArgParser, bt as prepareLocalLoopbackForwarder, cn as regionOption, ct as resolveCdkPathToLogicalIds, d as resolveAssetCodeDirectory, dn as stateOptions, dt as activateLocalAwsAndRoleArn, en as destroyOptions, et as renderUnmatchedPatternsWarning, f as architectureToPlatform, fn as useCdkBootstrapAssetsOption, ft as assertAwsEmulatorValue, g as HOST_GATEWAY_MIN_VERSION, gn as allowUnsupportedTypesOption, gt as localAwsEmulatorActive, h as layerAssetDirectory, hn as parseAssumeRoleToken, ht as keepEmulatorIssuedCredentials, i as resolveInlineCodeFilePath, in as noCfnFallbackOption, it as stacksNoLongerSelected, jt as recordEmulatorDefaultRegion, k as flushStdio, kt as emulatorDefaultRegion, l as resolveLambdaLayers, ln as skipFinalSnapshotOption, lt as stackForConstructPath, m as copyLayerTreeLastWins, mn as normalizeStartApiAssumeRole, mt as getActiveWorkloadAwsWiring$1, n as resolveTmpfsForLambda, nn as exclusivelyOption, nt as stackMatchesPattern, o as resolveLambdaTarget, on as parseContextOptions, ot as buildCdkPathIndex, p as buildContainerImage$1, pn as effectiveAssumeRoleArn, pt as attachLocalLoopbackForwarder, q as refuseStackNameRegionCollisions, qt as writeProfileCredentialsFile, r as resolveZipImagePlan, rn as guardStackRegionOptions, rt as stacksForDependency, s as extractEphemeralStorageMb, sn as parseStackRegion, st as readCdkPathOrUndefined, t as resolveLocalBuildPlan$1, tn as diffUpdatePolicyOptions, tt as selectTargetStack, u as assetPathDirs, un as stackOptions, ut as stackForPathFormTarget, v as resolveHostGatewayExtraHosts, vn as resourceTimeoutOptions, vt as mixedModeActive, w as CONTAINER_LOG_DRAIN_TIMEOUT_MS, wn as STATE_KEY_MAX_CODE_POINTS, wt as setContainerRegion, x as tryResolveImageFnJoin, xn as parsePositiveIntegerOption, xt as profileCredentialsForWorkload, y as derivePseudoParametersFromRegion$1, yn as validateResourceTimeouts, yt as mixedModeEmulatorOverride, z as streamLogs, zt as reconcileMarkerRegionWithLegacyDefault } from "./image-plan-
|
|
3
|
-
import { C as readRecordedPrincipals, Dt as
|
|
1
|
+
import { A as displayStackName, C as STACK_REF_MAX_CODE_POINTS, D as displayAwsMessage, E as cutMarker, F as stringifyJsonPayload, I as terminalSafe, L as truncateCodePoints, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, T as asIsMessage, _ as shellQuote, b as setPasteableVerbFlags, c as deployReplaceCommand, d as pasteableCommand, g as shellBoundedDisplay, h as quotedOrDescribed, i as SHELL_ACTIVE_WHY, j as isPasteableIdent, k as displaySafe, m as proseQuoted, o as cdkdRemedy, p as plainOrDescribed, s as commandHole, t as getCdkdVersion, u as isInertUnquoted, v as withheldTargetClause, w as UNRENDERABLE, x as SAFE_MSG_ALTERED_CHAR, y as setPasteableRunFlags } from "./version-DiwszmmI.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-hSzmMXmK.js";
|
|
3
|
+
import { C as readRecordedPrincipals, Dt as interruptWatchListenerCount, Et as endCommandInterruptScope, G as remedyLogicalId, It as resourceTypeShown, J as RESOURCE_NOT_FOUND, L as VALUE_NOT_SHOWN, Ot as isInterruptedWaitError, Pt as logicalIdShown, Tt as beginCommandInterruptScope, X as isMarkedNotGone, Y as assertRegionMatch, _ as IAM_PRINCIPAL_NAME, _n as injectiveKey, an as buildLockContentionMessage, bn as producerRecordKey, cn as formatLockOperation, fn as CUSTOM_RESOURCE_RESPONSE_PREFIX, gn as withPasteableAwsProfile, hn as setPasteableAwsProfile, i as withResourceDeadline, in as buildForceUnlockCommand, ln as formatLockOwner, mn as setPasteableAwsCaBundle, mt as runDeleteAttempt, on as forceQuitRecoveryClause, pn as DEFAULT_STATE_PREFIX, q as DriftReadRefusedError, rn as UNREPRODUCIBLE_LOCK_CLAUSE, sn as formatLockExpiry, v as RESOLVED_PREVIOUS_PRINCIPAL_KEYS, xt as isAwsCliLiteral, yn as producerCoordinateKey } from "./resource-deadline-CKaftDB_.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-ZjhMP0A2.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-CcCQuSZx.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 legacyPlanAssetCount, A as getLegacyStateBucketName, B as resolveUseCdkBootstrapAssets, C as getDockerCmd, D as Synthesizer, E as abortInFlightMultipartUploads, F as resolveSkipPrefix, G as MIGRATE_TMP_PREFIX, H as warnDeprecatedNoPrefixCliFlag, I as resolveStateBucketWithDefault, J as refuseFailedLookups, K as findLargeInlineResources, L as resolveStateBucketWithDefaultAndSource, M as resolveApp, N as resolveAutoAssetStorage, O as synthesisStatusMessage, P as resolveCaptureObservedState, Q as createLegacyAssetParameterBinder, R as resolveStateBucketWithSource, S as formatDockerLoginError, T as runDockerStreaming, U as CFN_TEMPLATE_BODY_LIMIT, V as stateBucketExistenceConfirmed, W as CFN_TEMPLATE_URL_LIMIT, X as StageLoadError, Y as AssemblyReader, Z as bindLegacyStackAssetParameters, _ as finchSecretArgvRefusal, a as isLockInfoExpired, b as isDockerClientEnvKey, c as buildDockerImage, d as describeDockerExecFailure, et as predictedAutoCreatedAssetMode, f as describeDockerFailure, g as dockerSpawnEnvWithSensitive, h as redactDockerArgvValues, i as LockManager, it as setChildProcessAwsEnv, j as loadCdkJson, k as getDefaultStateBucketName, l as resolveDockerContextDirectory, m as redactedDockerCause, nt as CdkToolkitBucketMissingError, o as AssetPublisher, p as redactedCause, q as uploadCfnTemplate, r as DagBuilder, rt as processStackMessages, s as WorkGraph, t as DiffCalculator, tt as prepareLegacyStackAssets, v as partitionSensitiveEnv, w as runDockerForeground, x as isMalformedEnvKey, y as warnFinchArgvExposure, z as resolveUpdatePolicy } from "./diff-calculator-
|
|
9
|
-
import { $a as poisonRenderedSpellingsCollidingIn, $c as hasNoCloudControlHandlers, $i as extractDeploymentEventError, $l as buildDenyExternalAccessPolicy, $n as replayFailedOperations, $o as carriesDynamicReference, $r as WITHHELD_NAME_DISPLAY, $s as refuseMalformedResourceEntriesForImportSave, $t as dropSettledNestedJournals, A as recordedProtectionEvidence, Aa as NO_LOCAL_CUSTOM_RESOURCES_FLAG, Ac as malformedResourcesWarning, Ai as bold, An as formatDestructiveChange, Ao as coerceParameterTypedValue, Ar as resolveReplacementOldType, As as maskedPropertyFingerprint, Bc as STATE_RESOURCES_MALFORMED, Bi as withAttemptedItemsMasked, Bl as loadPublishableAssetManifest, Bn as isPairableType, Br as nameGenerationCarriedFrom, Bs as repairMalformedOrphanRecordsForReadOnly, Bt as updateRefactorMarker, C as pendingMovesOutOf, Ca as customResourceResponseExpirationWarning, Ci as holdsSupersededResources, Cl as listNestedTemplateRows, Cn as createNoEchoValueMacs, Co as producerRegionsFromState, Cr as isReplacementOrphan, Cu as resolveBucketRegion, D as findServiceTokenRefusals, Da as isCustomResourceType$1, Dc as STATE_REGION_DIVERGED, Di as supersededHolderOf, Dn as noEchoValueMacsOf, Dr as replacementNeverSwapped, Ds as maskedInputProof, E as deferredServiceTokenWarning, Ea as readsNoEchoDeleteValues, Ec as repairMalformedOutputsForReadOnly, Ei as supersededHeldByOtherTypeWarning, En as noEchoMacVerdict, Er as recordUnderIdIsNotOwn, Es as parameterInputsFor, F as readProtection, Fc as refuseMalformedState, Fi as yellow, Fl as createAssetRedirectResolver, Fn as withMovedTo, Fo as isStalePlaceholderArnAttribute, Fs as malformedOrphanRowsKeptWarning, Ft as readRefactorMarkerOnce, Ga as deleteSkipReason, Gc as findActionableSdkUnwired, Gi as namingSecretsWithRecordedNoEcho, Gl as getDockerImageBySourceHash, Gn as proposeRenames, Gr as retiredNameGenerationsLeaving, Gs as malformedLocalResourcesWarning, Ha as UNSPECIFIED_SKIP_REASON, Hc as displayLogicalId, Hi as completedReplayEntries, Hn as mappingPairs, Ho as keepHeldTokenProvenance, Hr as nameScopeOf, Hs as unreadableOrphanRecords, Ht as readsOnlyNoEchoParameters, Ia as setLocalCustomResourceRuntimeEnabled, Ic as repairMalformedResourcesForReadOnly, Ii as noEchoAttributeNamesOf, Il as createLazyAssetModeContext, In as changedReferenceInDiff, Io as refStateLookupFromResource, Is as previewableOrphanRecords, It as refactorMarkerMovesOf, Ja as isWaitAbandonedError, Jc as unwrittenCreateOnlyReplacement, Ji as secretNamePrintingBags, Jn as stripSiblingOwnedSgRules, Jr as inheritProducerRegions, Js as refuseMalformedResourceAttributesForOrphan, Jt as pendingRequestCount, Kc as findHandledUnwrittenCreateOnly, Ki as orphanRecordsPrintingBag, Kn as referencedLogicalIds, Ko as recordedReferenceRegions, Kr as withNameGenerationReached, Ks as malformedResourceEntriesWarning, La as withCustomResourceStack, Lc as JSON_LISTING_HOLE_VALUE, Li as noEchoComparisonForTemplate, Ln as changedReferencePath, Lo as lacksRecordedRefArn, Lr as segmentCleanupOptions, Ls as refuseMalformedOrphanRecords, Lt as refactorMarkerRefusalMessage, M as PROTECTION_PROPERTY_BY_TYPE, Ma as customResourcesFailedWithoutApp, Mc as refuseMalformedResourcesForDeploy, Mi as gray, Mn as hintSidesOf, Mo as parameterTypeMayLoseSecretIdentity, Mr as findNestedStackTypeChanges, Ms as isReadableOrphanRecord, Mt as keptForRetainedRecord, N as isProtectionValueActive, Na as customResourcesRunWithoutApp, Nc as refuseMalformedResourcesForDestroy, Ni as green, Nn as movedToHint, No as AWS_NO_VALUE, Ns as malformedOrphanRecordsRefusalMessage, Nt as recordRetainedForReadoption, O as serviceTokenBlockingReason, Oc as refuseDivergentRecordRegionForDestroy, Oi as supersededResourcesOf, Ol as ssmResolvedValueType, On as constructPathOf$1, Or as IMPLICIT_DELETE_DEPENDENCIES, P as perType, Pa as localCustomResourceCommand, Pc as refuseMalformedResourcesForExport, Pi as red, Pl as buildAssetRedirectMap, Pn as rollbackOrphanIds, Po as cfnRefValueFromPhysicalId, Ps as malformedOrphanRecordsWarning, Pt as readRefactorMarker, Qa as isAlwaysLiveAttribute, Qc as NO_CC_HANDLERS_REASON, Qi as storedSecretNameNeedles, Ql as ensureAssetStorage, Qn as canonicalizeIpProtocolValue, Qo as isNamelessDynamicReferenceError, Qr as resourcesNamingDeclaredParameter, Qs as refuseMalformedResourceEntriesForImport, Qt as displacedPhysicalIdShown, Rc as accountArgs, Ri as noEchoExactEchoLeavesOf, Rn as changedReferenceReason, Ro as lacksRecordedTableArn, Rr as removeProtectionTypeList, Rs as refuseMalformedOrphanRecordsForDestroy, Rt as refuseRefactorMarker, S as hasPendingMovesOut, Sa as applyCustomResourceResponseExpiration, Sc as malformedOutputsWarning, Si as deleteSupersededEntry, Sl as isAbsoluteAssetPath, Sn as NOECHO_MAC_KEY_ALIAS, So as classifyReplaySecretRegion, Sr as isJournaledOrphan, Ss as tryGetTopLevelWriteOnlyProperties, T as refusePendingMovesOut, Ta as TemplateNoEchoReresolver, Tc as refuseMalformedOutputsForDestroy, Ti as supersededAfterRollback, Tl as templateIdentity, Tn as noEchoMacParametersOf, Tr as recheckFailedPlan, Ua as deleteIndeterminateGuards, Uc as hasReadableOutputs, Ui as journaledOrphanPrintingBag, Ul as rewriteTemplateAssetReferences, Un as parseMappingFile, Ur as retiredAfterRollback, Us as isReadableResourceEntry, Ut as formatResourceLine, Va as RollbackInlinePolicyWriters, Vc as UNREADABLE_RESOURCES_MAP_ROW, Vi as createReadOnlyAttributeHealerFactory, Vn as looselyEqual, Vr as nameGenerationHighWaterOf, Vs as unpreviewableOrphanRecords, Vt as macWriteOnlyKeys, Wa as deleteLeftInPlace, Wc as hasReadableResources, Wi as maskEventTextWithBoundBags, Wl as AssetManifestLoader, Wn as propertiesChangedReason, Wo as recordedOutputReferenceRegions, Wr as retiredNameGenerationsAfter, Ws as malformedLocalResourceEntriesWarning, Xa as IntrinsicFunctionResolver, Xi as secretNamedRecordNeedles, Xo as isImpossibleEmptyStoredAttribute, Xr as namesAnyDeclaredParameter, Xs as refuseMalformedResourceEntriesForDeploy, Xt as NESTED_PENDING_PARENT_REASON, Yo as getAccountInfo, Yr as computeParameterTaint, Ys as refuseMalformedResourceEntries, Yt as resolvePendingCloudControlRequests, Za as isSelectOutOfBounds, Zi as stateSecretNameNeedles, Zl as AssetModeResolver, Zo as carriesFetchableDynamicReference, Zr as reachableDivergentParameters, Zs as refuseMalformedResourceEntriesForDestroy, Zt as displacedOpClause, _ as conditionFingerprint, _a as ProviderRegistry, _c as repairMalformedOrphansForReadOnly, _l as isSecretValuedAttribute, _n as makeSiblingClaimReader, _o as AWS_CREDENTIAL_ENV_KEYS, _r as withCreateTokenLedger, _u as describeFileReadFailure, a as scanActiveConsumers, aa as isFinalSnapshotError, ai as carriedExportAliasExposure, al as readOnlyStateVersionOf, an as withNestedRevertRun, ao as secretSegmentsOfState, ar as withUnprovenUnsettled, au as validateAssetBucketName, b as readRecordedConditionVerdicts, ba as wouldReturnToSdkProvider, bc as malformedLocalOutputsWarning, bi as withStackRecords, bn as DeploymentEventsStore, bo as envCredentialsAreAssumedRole, br as seedsDeleteFirstGuard, bs as getSettledWriteOnlyPropertyPaths, bu as renderAssemblyPathEscape, c as nestedSsmNameDeferredNote, ca as createPreDeleteFinalSnapshot, cc as refuseMalformedResourcePropertiesForExport, ci as isWholeDynamicReferenceValue, cl as rebuildClientForBucketRegion, cn as withNestedStackContext, co as producerLookupOver, cr as equalModuloMask, cs as findReplacedReadersOfRecreateTargets, d as slashedSsmNameHealAdoptedNote, dc as UNREADABLE_ORPHANS_CONTAINER_ROW, di as collectPublishedOutputNames, dl as applyCrossPrefixScan, dn as dropFailedHint, do as assertFlagRoleArn, dr as updatePartialReason, ds as MULTI_REGION_RECREATE_BLOCKED_TYPES, du as hasOwnKey, ea as ATOMIC_FINAL_SNAPSHOT_TYPES, ec as refuseMalformedResourceEntriesForOrphan, ei as displayTextOrWithheld, el as PROPERTY_COVERAGE_BY_TYPE, eo as stackIdTailOf, er as replayRollback, es as keepsSecretReferenceToken, eu as assertAssetBucketRegion, f as slashedSsmNameHealNote, fc as hasReadableOrphans, fi as isExportAliasCollision, fl as crossPrefixDeniedWarning, fn as isHandledOrphan, fo as assertSendableRoleArn, fr as findUpdatePolicyReplacementRefusals, fs as isStatefulRecreateTargetForReplace, fu as hasPlainPrototype, g as makeCanonicalizePropertiesFn, ga as CC_BROKEN_REASON, gc as refuseMalformedOrphansForDestroy, gi as maskingRetryLogger, gl as withStackInstanceIdWithheld, gn as makeForeignHolderScan, go as sendableAssumeRoleCommand, h as inheritedProvenanceForChildDiff, hc as refuseMalformedOrphans, hi as DEFAULT_RESOURCE_WARN_AFTER_MS, hl as stackInstanceIdOf, hn as sameJournaledOrphans, ho as parseIamRoleArn, hr as ledgerForStack, i as mergeNoChangeOutputs, ia as effectiveDeletionPolicy, ic as malformedResourcePropertiesWarning, ii as secretSafeKeyDisplay, in as revertedNestedRowIds, io as secretPhysicalIdSegment, ir as settleUnsettledPrevious, iu as readBootstrapMarkerBody, j as recordedProtectionNote, jc as malformedStateRefusalMessage, ji as cyan, jl as decodeListingKey, jn as findRefactorHints, jo as isUnboundTemplateParameter, jr as withPreviousPolicies, js as deployRefusesOrphanRowsReason, k as diffSecurity, ka as withPrintingSecrets, kc as malformedRenderedContainersWarning, ki as withoutSuperseded, kl as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, kn as findDestructiveChanges, kr as computeImplicitDeleteEdges, ks as declaresNoEcho, l as nestedSsmNameRowNote, la as buildFinalSnapshotIdentifier, lc as refuseMalformedResourcePropertiesForOrphan, li as noEchoParameterValueSeed, ll as CrossPrefixReadError, ln as deleteJournaledOrphans, lo as refuseUnreadableCdkCrossAccountRefs, lr as undeclaredEmptyObservedKeys, m as crossStackOutputProvenanceSource, mc as malformedOrphansWarning, mi as DEFAULT_RESOURCE_TIMEOUT_MS, ml as isNotImplemented, mn as loadJournaledOrphans, mo as isIamRoleArn, ms as renderStatefulReason, mu as ownValue, n as isSecretBearingReferenceString, na as ccRoutedFinalSnapshotError, nc as unreadableResourceEntries, ni as secretBearing, nl as S3StateBackend, nn as recordDisplacedSkips, nr as buildReadCurrentStateContext, nu as getBootstrapMarkerKey, o as inRunStackKey, oa as refusesFinalSnapshot, oc as refuseMalformedResourcePropertiesForDestroy, oi as exportNameNoEchoParameters, ol as hasReasonlessBaselineRefusal, on as collectNestedChildUnaddressed, oo as withSecretPhysicalIdsMaskedInState, or as calculateResourceDrift, ou as validateContainerRepoName, p as slashedSsmNameHealPendingNote, pa as stripSiblingOwnedMembers, pc as malformedOrphansRefusalMessage, pi as bindingSkippedOutputs, pl as isAccessDenied, pn as journaledOrphanLines, po as explicitRoleArnOrThrow, pr as replacementCreateRoutesToCloudControl, ps as isStatefulRecreateTargetSync, pu as nullPrototypeRecord, qa as getReadOnlyPropertyPaths, qi as secretNamePrintingBag, qs as malformedScrubResourceEntriesRefusalMessage, r as keptWholeReasonText, ra as ccRoutedInstanceTakesNoSnapshot, rc as malformedDriftResourcePropertiesWarning, ri as secretBearingStateKeyWarning, rl as splitImportedOps, rr as recordAfterRollbackUpdate, rs as INTRINSIC_KEYS, ru as parseBootstrapMarker, s as checkNestedSsmNames, sa as unsupportedFinalSnapshotError, sc as refuseMalformedResourcePropertiesForDrift, si as exportNameSecretExposure, sl as hasUnverifiableParameterRefusal, sn as getCurrentNestedStackContext, so as resolveDynamicReferences, sr as equalModuloMarkedMask, su as BOOTSTRAP_MARKER_PREFIX, t as DeployEngine, ta as PRE_DELETE_SNAPSHOT_TYPES, tc as repairMalformedResourceEntriesForReadOnly, ti as exportAliasCollisionScrubWarning, tl as TemplateParser, tn as nestedChildStackName$1, tr as DELETED_RESOURCE_REMEDY, ts as withSharedDrainBudget, tu as isCrossRegionRedirect, u as healSlashedSsmParameterNames, uc as repairMalformedResourcePropertiesForReadOnly, ui as collectDeclaredOutputNames, ul as CrossPrefixScanCache, un as dropFailedCommands, uo as applyRoleArnIfSet, ur as updatePartialMessage, us as shownType, uu as defineOwnKey, v as conditionInputsFrom, va as ccBrokenReason, vc as malformedExportNamesWarning, vi as destroyStackRecordsView, vl as isSensitiveAttributeName, vn as planOrphanAdoption, vo as applyCallerIdentityCredentials, vu as displayAssemblyPath, w as pendingMovesRefusalMessage, wc as refuseMalformedOutputs, wi as isSupersededResourceRecord, wl as renderNestedTemplateTreeDefect, wn as noEchoMacBinding, wo as regionLessSecretName, wr as planFailedOps, ws as maskedPropertyFingerprintsOf, x as childTemplateLoader, xa as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, xc as malformedOutputsRefusalMessage, xl as findNestedTemplateTreeDefect, xn as crossStackReadsForPartialSave, xo as classifyRecordedSecretRegion, xr as demoteSupersededOrphans, xs as getTopLevelKeysHoldingUnreadableCreateOnly, xu as resolveAssemblyPath, y as parentSuppliedValues, ya as isCustomResource, yc as malformedExportSourceWarning, yn as DeploymentEventsReader, yo as callerEnvCredentials, yr as planRollback, za as CloudControlProvider, zc as withheldAccountClause, zi as noEchoParameterNamesOf, zn as differingRemedy, zr as orphanNeedsIdentity, zs as refuseMalformedOrphansForOrphan, zt as sameMove } from "./deploy-engine-C7WHVVa_.js";
|
|
8
|
+
import { $ as legacyPlanAssetCount, A as getLegacyStateBucketName, B as resolveUseCdkBootstrapAssets, C as getDockerCmd, D as Synthesizer, E as abortInFlightMultipartUploads, F as resolveSkipPrefix, G as MIGRATE_TMP_PREFIX, H as warnDeprecatedNoPrefixCliFlag, I as resolveStateBucketWithDefault, J as refuseFailedLookups, K as findLargeInlineResources, L as resolveStateBucketWithDefaultAndSource, M as resolveApp, N as resolveAutoAssetStorage, O as synthesisStatusMessage, P as resolveCaptureObservedState, Q as createLegacyAssetParameterBinder, R as resolveStateBucketWithSource, S as formatDockerLoginError, T as runDockerStreaming, U as CFN_TEMPLATE_BODY_LIMIT, V as stateBucketExistenceConfirmed, W as CFN_TEMPLATE_URL_LIMIT, X as StageLoadError, Y as AssemblyReader, Z as bindLegacyStackAssetParameters, _ as finchSecretArgvRefusal, a as isLockInfoExpired, b as isDockerClientEnvKey, c as buildDockerImage, d as describeDockerExecFailure, et as predictedAutoCreatedAssetMode, f as describeDockerFailure, g as dockerSpawnEnvWithSensitive, h as redactDockerArgvValues, i as LockManager, it as setChildProcessAwsEnv, j as loadCdkJson, k as getDefaultStateBucketName, l as resolveDockerContextDirectory, m as redactedDockerCause, nt as CdkToolkitBucketMissingError, o as AssetPublisher, p as redactedCause, q as uploadCfnTemplate, r as DagBuilder, rt as processStackMessages, s as WorkGraph, t as DiffCalculator, tt as prepareLegacyStackAssets, v as partitionSensitiveEnv, w as runDockerForeground, x as isMalformedEnvKey, y as warnFinchArgvExposure, z as resolveUpdatePolicy } from "./diff-calculator-Bjr0sh-h.js";
|
|
9
|
+
import { $o as getAccountInfo, $r as computeParameterTaint, $s as refuseMalformedResourceEntries, $t as displacedPhysicalIdShown, A as recordedProtectionEvidence, Aa as readsNoEchoDeleteValues, Ac as repairMalformedOutputsForReadOnly, Ai as supersededHeldByOtherTypeWarning, An as findDestructiveChanges, Ar as IMPLICIT_DELETE_DEPENDENCIES, As as parameterInputsFor, Ba as setLocalCustomResourceRuntimeEnabled, Bc as repairMalformedResourcesForReadOnly, Bi as noEchoAttributeNamesOf, Bl as createLazyAssetModeContext, Bn as differingRemedy, Bo as refStateLookupFromResource, Bs as previewableOrphanRecords, Bt as sameMove, C as pendingMovesOutOf, Ca as isCustomResource, Cc as malformedExportSourceWarning, Cn as NOECHO_MAC_KEY_ALIAS, Co as callerEnvCredentials, Cr as demoteSupersededOrphans, D as findServiceTokenRefusals, Da as customResourceResponseExpirationWarning, Di as holdsSupersededResources, Dl as listNestedTemplateRows, Dn as noEchoMacVerdict, Do as producerRegionsFromState, Dr as recheckFailedPlan, Du as resolveBucketRegion, E as deferredServiceTokenWarning, Ea as applyCustomResourceResponseExpiration, Ec as malformedOutputsWarning, Ei as deleteSupersededEntry, El as isAbsoluteAssetPath, En as noEchoMacParametersOf, Eo as classifyReplaySecretRegion, Er as planFailedOps, Es as tryGetTopLevelWriteOnlyProperties, F as readProtection, Fc as malformedStateRefusalMessage, Fi as cyan, Fl as decodeListingKey, Fn as rollbackOrphanIds, Fo as isUnboundTemplateParameter, Fr as withPreviousPolicies, Fs as deployRefusesOrphanRowsReason, Ft as readRefactorMarker, Ga as RollbackInlinePolicyWriters, Gc as UNREADABLE_RESOURCES_MAP_ROW, Gi as createReadOnlyAttributeHealerFactory, Gn as propertiesChangedReason, Gr as nameGenerationHighWaterOf, Gs as unpreviewableOrphanRecords, H as readStreamPolicy, Hc as accountArgs, Hi as noEchoExactEchoLeavesOf, Hn as looselyEqual, Ho as lacksRecordedTableArn, Hr as removeProtectionTypeList, Hs as refuseMalformedOrphanRecordsForDestroy, Ht as macWriteOnlyKeys, Ia as customResourcesFailedWithoutApp, Ic as refuseMalformedResourcesForDeploy, Ii as gray, In as withMovedTo, Io as parameterTypeMayLoseSecretIdentity, Ir as findNestedStackTypeChanges, Is as isReadableOrphanRecord, It as readRefactorMarkerOnce, Ja as deleteLeftInPlace, Jc as hasReadableResources, Ji as maskEventTextWithBoundBags, Jl as AssetManifestLoader, Jn as siblingOwnedRevertDesired, Jo as recordedOutputReferenceRegions, Jr as retiredNameGenerationsAfter, Js as malformedLocalResourceEntriesWarning, Ka as UNSPECIFIED_SKIP_REASON, Kc as displayLogicalId, Ki as completedReplayEntries, Kn as proposeRenames, Ko as keepHeldTokenProvenance, Kr as nameScopeOf, Ks as unreadableOrphanRecords, La as customResourcesRunWithoutApp, Lc as refuseMalformedResourcesForDestroy, Li as green, Ln as changedReferenceInDiff, Lo as AWS_NO_VALUE, Ls as malformedOrphanRecordsRefusalMessage, Lt as refactorMarkerMovesOf, M as PROTECTION_PROPERTY_BY_TYPE, Mc as refuseDivergentRecordRegionForDestroy, Mi as supersededResourcesOf, Ml as ssmResolvedValueType, Mn as findRefactorHints, Mr as attemptUsesCompletedCreate, N as isProtectionValueActive, Na as withPrintingSecrets, Nc as malformedRenderedContainersWarning, Ni as withoutSuperseded, Nl as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, Nn as hintSidesOf, Nr as readsRegeneratingSecret, Ns as declaresNoEcho, Nt as keptForRetainedRecord, O as serviceTokenBlockingReason, Oc as refuseMalformedOutputs, Oi as isSupersededResourceRecord, Ol as renderNestedTemplateTreeDefect, On as noEchoValueMacsOf, Oo as regionLessSecretName, Or as recordUnderIdIsNotOwn, Os as maskedPropertyFingerprintsOf, P as perType, Pa as NO_LOCAL_CUSTOM_RESOURCES_FLAG, Pc as malformedResourcesWarning, Pi as bold, Pn as movedToHint, Po as coerceParameterTypedValue, Pr as resolveReplacementOldType, Ps as maskedPropertyFingerprint, Pt as recordRetainedForReadoption, Qa as isWaitAbandonedError, Qc as unwrittenCreateOnlyReplacement, Qi as secretNamePrintingBags, Qr as inheritProducerRegions, Qs as refuseMalformedResourceAttributesForOrphan, Qt as displacedOpClause, Ra as localCustomResourceCommand, Rc as refuseMalformedResourcesForExport, Ri as red, Rl as buildAssetRedirectMap, Rn as changedReferencePath, Ro as cfnRefValueFromPhysicalId, Rs as malformedOrphanRecordsWarning, Rt as refactorMarkerRefusalMessage, S as hasPendingMovesOut, Sa as ccBrokenReason, Sc as malformedExportNamesWarning, Si as destroyStackRecordsView, Sl as isSensitiveAttributeName, Sn as crossStackReadsForPartialSave, So as applyCallerIdentityCredentials, Sr as seedsDeleteFirstGuard, Su as displayAssemblyPath, T as refusePendingMovesOut, Ta as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, Tc as malformedOutputsRefusalMessage, Tl as findNestedTemplateTreeDefect, Tn as noEchoMacBinding, To as classifyRecordedSecretRegion, Tr as isReplacementOrphan, Ts as getTopLevelKeysHoldingUnreadableCreateOnly, Tu as resolveAssemblyPath, Ua as CloudControlProvider, Uc as withheldAccountClause, Ui as noEchoParameterNamesOf, Un as mappingPairs, Ur as orphanNeedsIdentity, Us as refuseMalformedOrphansForOrphan, Ut as readsOnlyNoEchoParameters, Va as withCustomResourceStack, Vc as JSON_LISTING_HOLE_VALUE, Vi as noEchoComparisonForTemplate, Vn as isPairableType, Vo as lacksRecordedRefArn, Vr as segmentCleanupOptions, Vs as refuseMalformedOrphanRecords, Vt as updateRefactorMarker, Wc as STATE_RESOURCES_MALFORMED, Wi as withAttemptedItemsMasked, Wl as loadPublishableAssetManifest, Wn as parseMappingFile, Wr as nameGenerationCarriedFrom, Ws as repairMalformedOrphanRecordsForReadOnly, Wt as formatResourceLine, Xc as findHandledUnwrittenCreateOnly, Xi as orphanRecordsPrintingBag, Xo as recordedReferenceRegions, Xr as withNameGenerationReached, Xs as malformedResourceEntriesWarning, Xt as resolvePendingCloudControlRequests, Ya as deleteSkipReason, Yc as findActionableSdkUnwired, Yi as namingSecretsWithRecordedNoEcho, Yl as getDockerImageBySourceHash, Yn as stripSiblingOwnedParentMembers, Yr as retiredNameGenerationsLeaving, Ys as malformedLocalResourcesWarning, Yt as pendingRequestCount, Za as getReadOnlyPropertyPaths, Zi as secretNamePrintingBag, Zs as malformedScrubResourceEntriesRefusalMessage, Zt as NESTED_PENDING_PARENT_REASON, _ as conditionFingerprint, _c as malformedOrphansRefusalMessage, _i as bindingSkippedOutputs, _l as isAccessDenied, _n as makeForeignHolderScan, _o as explicitRoleArnOrThrow, _r as ledgerForStack, _s as isStatefulRecreateTargetSync, _u as nullPrototypeRecord, a as scanActiveConsumers, aa as PRE_DELETE_SNAPSHOT_TYPES, ac as repairMalformedResourceEntriesForReadOnly, ai as exportAliasCollisionScrubWarning, al as TemplateParser, an as revertedNestedRowIds, ar as recordAfterRollbackUpdate, as as withSharedDrainBudget, au as isCrossRegionRedirect, b as readRecordedConditionVerdicts, ba as CC_BROKEN_REASON, bc as refuseMalformedOrphansForDestroy, bi as maskingRetryLogger, bl as withStackInstanceIdWithheld, bn as DeploymentEventsReader, bo as sendableAssumeRoleCommand, c as nestedSsmNameDeferredNote, ca as effectiveDeletionPolicy, cc as malformedResourcePropertiesWarning, ci as secretSafeKeyDisplay, cn as getCurrentNestedStackContext, co as secretPhysicalIdSegment, cr as calculateResourceDrift, cu as readBootstrapMarkerBody, d as slashedSsmNameHealAdoptedNote, da as unsupportedFinalSnapshotError, dc as refuseMalformedResourcePropertiesForDrift, di as exportNameSecretExposure, dl as hasUnverifiableParameterRefusal, dn as dropFailedCommands, do as resolveDynamicReferences, dr as undeclaredEmptyObservedKeys, du as BOOTSTRAP_MARKER_PREFIX, ea as secretNamedRecordNeedles, ec as refuseMalformedResourceEntriesForDeploy, ei as namesAnyDeclaredParameter, en as dropSettledNestedJournals, eo as IntrinsicFunctionResolver, er as canonicalizeIpProtocolValue, es as isImpossibleEmptyStoredAttribute, f as slashedSsmNameHealNote, fa as createPreDeleteFinalSnapshot, fc as refuseMalformedResourcePropertiesForExport, fi as isWholeDynamicReferenceValue, fl as rebuildClientForBucketRegion, fn as dropFailedHint, fo as producerLookupOver, fr as updatePartialMessage, fs as findReplacedReadersOfRecreateTargets, g as makeCanonicalizePropertiesFn, gc as hasReadableOrphans, gi as isExportAliasCollision, gl as crossPrefixDeniedWarning, gn as sameJournaledOrphans, go as assertSendableRoleArn, gs as isStatefulRecreateTargetForReplace, gu as hasPlainPrototype, h as inheritedProvenanceForChildDiff, hc as UNREADABLE_ORPHANS_CONTAINER_ROW, hi as collectPublishedOutputNames, hl as applyCrossPrefixScan, hn as loadJournaledOrphans, ho as assertFlagRoleArn, hr as replacementCreateRoutesToCloudControl, hs as MULTI_REGION_RECREATE_BLOCKED_TYPES, hu as hasOwnKey, i as mergeNoChangeOutputs, ia as ATOMIC_FINAL_SNAPSHOT_TYPES, ic as refuseMalformedResourceEntriesForOrphan, ii as displayTextOrWithheld, il as PROPERTY_COVERAGE_BY_TYPE, io as stackIdTailOf, ir as buildReadCurrentStateContext, is as keepsSecretReferenceToken, iu as assertAssetBucketRegion, j as recordedProtectionNote, ja as isCustomResourceType$1, jc as STATE_REGION_DIVERGED, ji as supersededHolderOf, jn as formatDestructiveChange, jr as computeImplicitDeleteEdges, js as maskedInputProof, k as diffSecurity, ka as TemplateNoEchoReresolver, kc as refuseMalformedOutputsForDestroy, ki as supersededAfterRollback, kl as templateIdentity, kn as constructPathOf$1, kr as replacementNeverSwapped, l as nestedSsmNameRowNote, la as isFinalSnapshotError, li as carriedExportAliasExposure, ll as readOnlyStateVersionOf, ln as withNestedStackContext, lo as secretSegmentsOfState, lr as equalModuloMarkedMask, lu as validateAssetBucketName, m as crossStackOutputProvenanceSource, mc as repairMalformedResourcePropertiesForReadOnly, mi as collectDeclaredOutputNames, ml as CrossPrefixScanCache, mn as journaledOrphanLines, mo as applyRoleArnIfSet, mr as findUpdatePolicyReplacementRefusals, ms as shownType, mu as defineOwnKey, n as isSecretBearingReferenceString, na as storedSecretNameNeedles, nc as refuseMalformedResourceEntriesForImport, ni as resourcesNamingDeclaredParameter, nl as NO_CC_HANDLERS_REASON, nn as nestedChildStackName$1, no as isAlwaysLiveAttribute, nr as replayRollback, ns as isNamelessDynamicReferenceError, nu as ensureAssetStorage, o as inRunStackKey, oa as ccRoutedFinalSnapshotError, oc as unreadableResourceEntries, oi as secretBearing, ol as S3StateBackend, on as withNestedRevertRun, or as settleUnsettledPrevious, ou as getBootstrapMarkerKey, p as slashedSsmNameHealPendingNote, pa as buildFinalSnapshotIdentifier, pc as refuseMalformedResourcePropertiesForOrphan, pi as noEchoParameterValueSeed, pl as CrossPrefixReadError, pn as isHandledOrphan, po as refuseUnreadableCdkCrossAccountRefs, pr as updatePartialReason, q as streamPolicyMatchesDeclared, qa as deleteIndeterminateGuards, qc as hasReadableOutputs, qi as journaledOrphanPrintingBag, ql as rewriteTemplateAssetReferences, qn as referencedLogicalIds, qr as retiredAfterRollback, qs as isReadableResourceEntry, r as keptWholeReasonText, ra as extractDeploymentEventError, rc as refuseMalformedResourceEntriesForImportSave, ri as WITHHELD_NAME_DISPLAY, rl as hasNoCloudControlHandlers, rn as recordDisplacedSkips, ro as poisonRenderedSpellingsCollidingIn, rr as DELETED_RESOURCE_REMEDY, rs as carriesDynamicReference, ru as buildDenyExternalAccessPolicy, s as checkNestedSsmNames, sa as ccRoutedInstanceTakesNoSnapshot, sc as malformedDriftResourcePropertiesWarning, si as secretBearingStateKeyWarning, sl as splitImportedOps, sn as collectNestedChildUnaddressed, sr as withUnprovenUnsettled, ss as INTRINSIC_KEYS, su as parseBootstrapMarker, t as DeployEngine, ta as stateSecretNameNeedles, tc as refuseMalformedResourceEntriesForDestroy, ti as reachableDivergentParameters, to as isSelectOutOfBounds, tr as replayFailedOperations, ts as carriesFetchableDynamicReference, tu as AssetModeResolver, u as healSlashedSsmParameterNames, ua as refusesFinalSnapshot, uc as refuseMalformedResourcePropertiesForDestroy, ui as exportNameNoEchoParameters, ul as hasReasonlessBaselineRefusal, un as deleteJournaledOrphans, uo as withSecretPhysicalIdsMaskedInState, ur as equalModuloMask, uu as validateContainerRepoName, v as conditionInputsFrom, vc as malformedOrphansWarning, vi as DEFAULT_RESOURCE_TIMEOUT_MS, vl as isNotImplemented, vn as makeSiblingClaimReader, vo as isIamRoleArn, vs as renderStatefulReason, vu as ownValue, w as pendingMovesRefusalMessage, wa as wouldReturnToSdkProvider, wc as malformedLocalOutputsWarning, wi as withStackRecords, wn as createNoEchoValueMacs, wo as envCredentialsAreAssumedRole, wr as isJournaledOrphan, ws as getSettledWriteOnlyPropertyPaths, wu as renderAssemblyPathEscape, x as childTemplateLoader, xa as ProviderRegistry, xc as repairMalformedOrphansForReadOnly, xl as isSecretValuedAttribute, xn as DeploymentEventsStore, xo as AWS_CREDENTIAL_ENV_KEYS, xr as planRollback, xu as describeFileReadFailure, y as parentSuppliedValues, yc as refuseMalformedOrphans, yi as DEFAULT_RESOURCE_WARN_AFTER_MS, yl as stackInstanceIdOf, yn as planOrphanAdoption, yo as parseIamRoleArn, yr as withCreateTokenLedger, zc as refuseMalformedState, zi as yellow, zl as createAssetRedirectResolver, zn as changedReferenceReason, zo as isStalePlaceholderArnAttribute, zs as malformedOrphanRowsKeptWarning, zt as refuseRefactorMarker } from "./deploy-engine-CilA7v8d.js";
|
|
10
10
|
import { n as canonicalizeRegion, r as derivePartitionAndUrlSuffix, t as PARTITION_TABLE } from "./aws-partition-DA0r2sr-.js";
|
|
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-
|
|
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-Gdl3Djvt.js";
|
|
12
|
+
import { t as expectedOwnerParam } from "./expected-bucket-owner-CIiqUDil.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-joCwegKq.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-BdvFwhmu.js";
|
|
15
|
+
import { S as unsettledPropertiesOf, T as withoutUnsettledProperties, b as unsettledItemsOf, w as withUnsettledProperties, y as unsettledItemsField } from "./restore-source-guard-eOILAZqS.js";
|
|
16
|
+
import { a as parseEcrRegistryHost, i as looksLikeEcrHostWithForeignSuffix, n as hasEcrRegistryHostLabels, t as ecrRegistryHostPattern } from "./ecr-uri-BhoeLkz2.js";
|
|
17
17
|
import { t as cdkdCacheHome } from "./cache-home-BVYKj3de.js";
|
|
18
18
|
import { randomBytes, randomUUID } from "node:crypto";
|
|
19
19
|
import { CopyObjectCommand, CreateBucketCommand, DeleteBucketCommand, DeleteObjectsCommand, GetBucketLocationCommand, GetObjectCommand, HeadBucketCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchBucket, NotFound, PutBucketEncryptionCommand, PutBucketPolicyCommand, PutBucketVersioningCommand, PutObjectCommand, S3Client, S3ServiceException } from "@aws-sdk/client-s3";
|
|
@@ -604,7 +604,7 @@ async function configureStateBucket(args) {
|
|
|
604
604
|
}
|
|
605
605
|
|
|
606
606
|
// src/cli/commands/bootstrap-noecho-mac-key.ts
|
|
607
|
-
function errorName(error) {
|
|
607
|
+
function errorName$1(error) {
|
|
608
608
|
const raw = error?.name;
|
|
609
609
|
return typeof raw === "string" && /^[A-Za-z][A-Za-z0-9]{0,63}$/.test(raw) ? raw : "Error";
|
|
610
610
|
}
|
|
@@ -656,7 +656,7 @@ async function ensureNoEchoMacKey(args) {
|
|
|
656
656
|
return "skipped";
|
|
657
657
|
}
|
|
658
658
|
const failed = (step, error) => {
|
|
659
|
-
warn(`Could not set up the NoEcho value MAC key ${NOECHO_MAC_KEY_ALIAS} in ${region} (${errorName(error)} from ${step}). Deploys keep working: a write-only property a NoEcho parameter feeds is re-sent on every deploy. Re-run ${proseQuoted(cdkdRemedy("cdkd bootstrap"))} with kms:CreateKey, kms:PutKeyPolicy, kms:CreateAlias and kms:DescribeKey to create it.`);
|
|
659
|
+
warn(`Could not set up the NoEcho value MAC key ${NOECHO_MAC_KEY_ALIAS} in ${region} (${errorName$1(error)} from ${step}). Deploys keep working: a write-only property a NoEcho parameter feeds is re-sent on every deploy. Re-run ${proseQuoted(cdkdRemedy("cdkd bootstrap"))} with kms:CreateKey, kms:PutKeyPolicy, kms:CreateAlias and kms:DescribeKey to create it.`);
|
|
660
660
|
return "failed";
|
|
661
661
|
};
|
|
662
662
|
try {
|
|
@@ -668,7 +668,7 @@ async function ensureNoEchoMacKey(args) {
|
|
|
668
668
|
warn(`${NOECHO_MAC_KEY_ALIAS} in ${region} does not name an enabled HMAC_256 key (${meta?.KeySpec ?? "unknown spec"}, ${meta?.KeyState ?? "unknown state"}), so deploys make no NoEcho value MACs. Point the alias at an enabled HMAC_256 key, or delete it and re-run ${proseQuoted(cdkdRemedy("cdkd bootstrap"))}.`);
|
|
669
669
|
return "failed";
|
|
670
670
|
} catch (error) {
|
|
671
|
-
if (errorName(error) !== "NotFoundException") return failed("kms:DescribeKey", error);
|
|
671
|
+
if (errorName$1(error) !== "NotFoundException") return failed("kms:DescribeKey", error);
|
|
672
672
|
}
|
|
673
673
|
let keyId;
|
|
674
674
|
try {
|
|
@@ -692,11 +692,11 @@ async function ensureNoEchoMacKey(args) {
|
|
|
692
692
|
TargetKeyId: keyId
|
|
693
693
|
}));
|
|
694
694
|
} catch (error) {
|
|
695
|
-
const name = errorName(error);
|
|
695
|
+
const name = errorName$1(error);
|
|
696
696
|
await kms.send(new ScheduleKeyDeletionCommand({
|
|
697
697
|
KeyId: keyId,
|
|
698
698
|
PendingWindowInDays: 7
|
|
699
|
-
})).catch((retireError) => warn(`Could not schedule the deletion of the unused KMS key ${keyId} in ${region} (${errorName(retireError)}); schedule it by hand: aws kms schedule-key-deletion --key-id ${keyId} --pending-window-in-days 7 --region ${region}`));
|
|
699
|
+
})).catch((retireError) => warn(`Could not schedule the deletion of the unused KMS key ${keyId} in ${region} (${errorName$1(retireError)}); schedule it by hand: aws kms schedule-key-deletion --key-id ${keyId} --pending-window-in-days 7 --region ${region}`));
|
|
700
700
|
if (name !== "AlreadyExistsException") return failed("kms:CreateAlias", error);
|
|
701
701
|
try {
|
|
702
702
|
const won = (await kms.send(new DescribeKeyCommand({ KeyId: NOECHO_MAC_KEY_ALIAS }))).KeyMetadata;
|
|
@@ -1541,7 +1541,7 @@ function collectCrossStackRefs(node, onRef, unconditional) {
|
|
|
1541
1541
|
// src/provisioning/register-providers.ts
|
|
1542
1542
|
let providerClasses;
|
|
1543
1543
|
function loadProviderClasses() {
|
|
1544
|
-
providerClasses ??= import("./provider-classes-
|
|
1544
|
+
providerClasses ??= import("./provider-classes-KrOpD8Sp.js");
|
|
1545
1545
|
return providerClasses;
|
|
1546
1546
|
}
|
|
1547
1547
|
function registerAllProviders(registry, classes) {
|
|
@@ -10210,6 +10210,303 @@ function canonicalizeIpProtocols(baseline, aws, resourceType) {
|
|
|
10210
10210
|
};
|
|
10211
10211
|
}
|
|
10212
10212
|
|
|
10213
|
+
// src/analyzer/drift-verbatim-paths.ts
|
|
10214
|
+
const VERBATIM_ECHO_DRIFT_KEYS = {
|
|
10215
|
+
"AWS::IAM::Role": ["AssumeRolePolicyDocument"],
|
|
10216
|
+
"AWS::IAM::Policy": ["PolicyDocument"],
|
|
10217
|
+
"AWS::IAM::ManagedPolicy": ["PolicyDocument"]
|
|
10218
|
+
};
|
|
10219
|
+
const NONE = [];
|
|
10220
|
+
function verbatimEchoDriftKeys(resourceType) {
|
|
10221
|
+
return Object.hasOwn(VERBATIM_ECHO_DRIFT_KEYS, resourceType) ? VERBATIM_ECHO_DRIFT_KEYS[resourceType] : NONE;
|
|
10222
|
+
}
|
|
10223
|
+
|
|
10224
|
+
// src/provisioning/policy-document-content.ts
|
|
10225
|
+
const MASK = "***";
|
|
10226
|
+
const PERMANENT_CDKD_CODES = /* @__PURE__ */ new Set(["ROLLBACK_SECRET_TOKEN_SCAN_MISMATCH"]);
|
|
10227
|
+
const MARKED_PERMANENT_CODE_PREFIXES = ["INTRINSIC_RESOLUTION_REFUSAL", "ROLLBACK_SECRET_REGION_AMBIGUOUS"];
|
|
10228
|
+
const NOT_FOUND_ERROR_NAMES = /* @__PURE__ */ new Set([
|
|
10229
|
+
"ResourceNotFoundException",
|
|
10230
|
+
"ParameterNotFound",
|
|
10231
|
+
"ParameterVersionNotFound"
|
|
10232
|
+
]);
|
|
10233
|
+
function holdsUnresolvedValue(document) {
|
|
10234
|
+
let root = document;
|
|
10235
|
+
if (typeof document === "string") try {
|
|
10236
|
+
root = JSON.parse(document);
|
|
10237
|
+
} catch {
|
|
10238
|
+
root = document;
|
|
10239
|
+
}
|
|
10240
|
+
const walk = (v) => {
|
|
10241
|
+
if (typeof v === "string") return v === MASK || v.includes("{{resolve:");
|
|
10242
|
+
if (Array.isArray(v)) return v.some(walk);
|
|
10243
|
+
if (v !== null && typeof v === "object") return Object.values(v).some(walk);
|
|
10244
|
+
return false;
|
|
10245
|
+
};
|
|
10246
|
+
return walk(root);
|
|
10247
|
+
}
|
|
10248
|
+
function isPermanentResolutionError(error) {
|
|
10249
|
+
let current = error;
|
|
10250
|
+
for (let depth = 0; depth < 5 && current != null; depth++) {
|
|
10251
|
+
const e = current;
|
|
10252
|
+
if (typeof e.name === "string" && NOT_FOUND_ERROR_NAMES.has(e.name)) return true;
|
|
10253
|
+
if (typeof e.code === "string") {
|
|
10254
|
+
if (PERMANENT_CDKD_CODES.has(e.code)) return true;
|
|
10255
|
+
const code = e.code;
|
|
10256
|
+
if (MARKED_PERMANENT_CODE_PREFIXES.some((p) => code.startsWith(p)) && isMarkedNonRetryable(current)) return true;
|
|
10257
|
+
}
|
|
10258
|
+
if (typeof e.message === "string" && e.message.startsWith("Dynamic reference: ")) return true;
|
|
10259
|
+
current = e.cause;
|
|
10260
|
+
}
|
|
10261
|
+
return false;
|
|
10262
|
+
}
|
|
10263
|
+
function errorName(error) {
|
|
10264
|
+
const name = error?.name;
|
|
10265
|
+
return typeof name === "string" && /^[\w.-]{1,128}$/.test(name) ? name : "error";
|
|
10266
|
+
}
|
|
10267
|
+
async function attemptedPolicyDocument(recorded, resolve) {
|
|
10268
|
+
let document = recorded;
|
|
10269
|
+
if (resolve) try {
|
|
10270
|
+
document = await resolve();
|
|
10271
|
+
} catch (error) {
|
|
10272
|
+
return isPermanentResolutionError(error) ? {
|
|
10273
|
+
kind: "unusable",
|
|
10274
|
+
why: "a secret it references does not exist or cannot be used"
|
|
10275
|
+
} : {
|
|
10276
|
+
kind: "retry",
|
|
10277
|
+
errorName: errorName(error)
|
|
10278
|
+
};
|
|
10279
|
+
}
|
|
10280
|
+
if (!(typeof document === "string" && document.length > 0 || document !== null && typeof document === "object")) return {
|
|
10281
|
+
kind: "unusable",
|
|
10282
|
+
why: "no policy document it attempted is recorded"
|
|
10283
|
+
};
|
|
10284
|
+
if (holdsUnresolvedValue(document)) return {
|
|
10285
|
+
kind: "unusable",
|
|
10286
|
+
why: "its policy document still holds a secret reference or masked value"
|
|
10287
|
+
};
|
|
10288
|
+
return {
|
|
10289
|
+
kind: "document",
|
|
10290
|
+
document
|
|
10291
|
+
};
|
|
10292
|
+
}
|
|
10293
|
+
const ACCOUNT_ID = /^\d{12}$/;
|
|
10294
|
+
const ACCOUNT_ROOT_ARN = /^arn:[a-z-]+:iam::(\d{12}):root$/;
|
|
10295
|
+
const LIST_KEYS = [
|
|
10296
|
+
"Action",
|
|
10297
|
+
"NotAction",
|
|
10298
|
+
"Resource",
|
|
10299
|
+
"NotResource"
|
|
10300
|
+
];
|
|
10301
|
+
const PRINCIPAL_KEYS = ["Principal", "NotPrincipal"];
|
|
10302
|
+
function unwrapSingle(value) {
|
|
10303
|
+
return Array.isArray(value) && value.length === 1 ? value[0] : value;
|
|
10304
|
+
}
|
|
10305
|
+
function accountKey(value) {
|
|
10306
|
+
if (typeof value !== "string") return value;
|
|
10307
|
+
if (ACCOUNT_ID.test(value)) return `account:${value}`;
|
|
10308
|
+
const m = ACCOUNT_ROOT_ARN.exec(value);
|
|
10309
|
+
return m ? `account:${m[1]}` : value;
|
|
10310
|
+
}
|
|
10311
|
+
const ANYONE = "anyone:*";
|
|
10312
|
+
function normalizePrincipal(principal) {
|
|
10313
|
+
if (principal === "*") return ANYONE;
|
|
10314
|
+
if (principal === null || typeof principal !== "object" || Array.isArray(principal)) return principal;
|
|
10315
|
+
const keys = Object.keys(principal);
|
|
10316
|
+
if (keys.length === 1 && keys[0] === "AWS" && unwrapSingle(principal["AWS"]) === "*") return ANYONE;
|
|
10317
|
+
const out = {};
|
|
10318
|
+
for (const [key, raw] of Object.entries(principal)) out[key] = unwrapSingle(key === "AWS" ? Array.isArray(raw) ? raw.map(accountKey) : accountKey(raw) : raw);
|
|
10319
|
+
return out;
|
|
10320
|
+
}
|
|
10321
|
+
function normalizeStatement(statement) {
|
|
10322
|
+
if (statement === null || typeof statement !== "object" || Array.isArray(statement)) return statement;
|
|
10323
|
+
const out = { ...statement };
|
|
10324
|
+
for (const key of LIST_KEYS) if (Object.prototype.hasOwnProperty.call(out, key)) out[key] = unwrapSingle(out[key]);
|
|
10325
|
+
for (const key of PRINCIPAL_KEYS) if (Object.prototype.hasOwnProperty.call(out, key)) out[key] = normalizePrincipal(out[key]);
|
|
10326
|
+
return out;
|
|
10327
|
+
}
|
|
10328
|
+
function canonicalJson(value) {
|
|
10329
|
+
const sortKeys = (v) => {
|
|
10330
|
+
if (Array.isArray(v)) return v.map(sortKeys);
|
|
10331
|
+
if (v !== null && typeof v === "object") {
|
|
10332
|
+
const out = Object.create(null);
|
|
10333
|
+
for (const key of Object.keys(v).sort()) out[key] = sortKeys(v[key]);
|
|
10334
|
+
return out;
|
|
10335
|
+
}
|
|
10336
|
+
return v;
|
|
10337
|
+
};
|
|
10338
|
+
return JSON.stringify(sortKeys(value));
|
|
10339
|
+
}
|
|
10340
|
+
function policyContentKey(document) {
|
|
10341
|
+
let value = document;
|
|
10342
|
+
if (typeof document === "string") try {
|
|
10343
|
+
value = JSON.parse(document);
|
|
10344
|
+
} catch {
|
|
10345
|
+
return `raw:${document}`;
|
|
10346
|
+
}
|
|
10347
|
+
if (value !== null && typeof value === "object" && !Array.isArray(value)) {
|
|
10348
|
+
const doc = { ...value };
|
|
10349
|
+
if (Object.prototype.hasOwnProperty.call(doc, "Statement")) doc["Statement"] = (Array.isArray(doc["Statement"]) ? doc["Statement"] : [doc["Statement"]]).map(normalizeStatement);
|
|
10350
|
+
value = doc;
|
|
10351
|
+
}
|
|
10352
|
+
return canonicalJson(value);
|
|
10353
|
+
}
|
|
10354
|
+
|
|
10355
|
+
// src/provisioning/settle-after-own-write.ts
|
|
10356
|
+
const OWN_WRITE_REREAD_DELAYS_MS = [
|
|
10357
|
+
500,
|
|
10358
|
+
1e3,
|
|
10359
|
+
2e3
|
|
10360
|
+
];
|
|
10361
|
+
async function reReadUntilSettled(read, settled, delaysMs) {
|
|
10362
|
+
let answer = await read();
|
|
10363
|
+
for (const delayMs of delaysMs) {
|
|
10364
|
+
if (settled(answer)) return {
|
|
10365
|
+
answer,
|
|
10366
|
+
settled: true
|
|
10367
|
+
};
|
|
10368
|
+
await new Promise((resolve) => setTimeout(resolve, delayMs));
|
|
10369
|
+
answer = await read();
|
|
10370
|
+
}
|
|
10371
|
+
return {
|
|
10372
|
+
answer,
|
|
10373
|
+
settled: settled(answer)
|
|
10374
|
+
};
|
|
10375
|
+
}
|
|
10376
|
+
function memberReadFailure(err) {
|
|
10377
|
+
return isThrottlingError(err) || isTransientServerError(err) || isAmbiguousOutcomeError(err) ? "failed" : "refused";
|
|
10378
|
+
}
|
|
10379
|
+
async function settleDeclaredMember(first, read, matches, declared, delaysMs, unsettled) {
|
|
10380
|
+
const settled = (answer) => typeof answer === "object" && matches(answer.value);
|
|
10381
|
+
if (first === "refused" || settled(first)) return first;
|
|
10382
|
+
let newest = first;
|
|
10383
|
+
for (const delayMs of delaysMs) {
|
|
10384
|
+
await new Promise((resolve) => setTimeout(resolve, delayMs));
|
|
10385
|
+
let answer;
|
|
10386
|
+
try {
|
|
10387
|
+
answer = await read();
|
|
10388
|
+
} catch (err) {
|
|
10389
|
+
answer = memberReadFailure(err);
|
|
10390
|
+
}
|
|
10391
|
+
if (answer === "refused") break;
|
|
10392
|
+
if (answer !== "failed") newest = answer;
|
|
10393
|
+
if (settled(newest)) return newest;
|
|
10394
|
+
}
|
|
10395
|
+
unsettled();
|
|
10396
|
+
return newest === "absent" ? { value: declared } : newest;
|
|
10397
|
+
}
|
|
10398
|
+
function warnUnsettledMember(logger, logicalId, resourceType, memberKey) {
|
|
10399
|
+
logger.warn(safeMsg`${resourceType} ${logicalId}: the read right after the write never showed the declared ${memberKey}, so its drift baseline may not match the live resource; run ${proseQuoted(cdkdRemedy("cdkd state refresh-observed"))} on the stack to re-capture it`);
|
|
10400
|
+
}
|
|
10401
|
+
function declaredMemberDocument(value) {
|
|
10402
|
+
if (typeof value === "string") {
|
|
10403
|
+
if (value === "") return void 0;
|
|
10404
|
+
try {
|
|
10405
|
+
return JSON.parse(value);
|
|
10406
|
+
} catch {
|
|
10407
|
+
return value;
|
|
10408
|
+
}
|
|
10409
|
+
}
|
|
10410
|
+
return typeof value === "object" && value !== null && !Array.isArray(value) ? value : void 0;
|
|
10411
|
+
}
|
|
10412
|
+
const KMS_DEFAULT_KEY_POLICY_ID = "key-default-1";
|
|
10413
|
+
const EFS_FILE_SYSTEM_ARN = /^arn:[a-z-]+:elasticfilesystem:[a-z0-9-]+:\d{12}:file-system\/fs-[0-9a-f]+$/;
|
|
10414
|
+
function efsPolicyMatchesDeclared(answer, declared, fileSystemId) {
|
|
10415
|
+
return policyDocumentMatchesDeclared(withoutAddedResource(answer, declared, fileSystemId), declared);
|
|
10416
|
+
}
|
|
10417
|
+
function withoutAddedResource(answer, declared, fileSystemId) {
|
|
10418
|
+
const parse = (doc) => {
|
|
10419
|
+
if (typeof doc !== "string") return doc;
|
|
10420
|
+
try {
|
|
10421
|
+
return JSON.parse(doc);
|
|
10422
|
+
} catch {
|
|
10423
|
+
return doc;
|
|
10424
|
+
}
|
|
10425
|
+
};
|
|
10426
|
+
const read = parse(answer);
|
|
10427
|
+
const want = parse(declared);
|
|
10428
|
+
const statements = (doc) => {
|
|
10429
|
+
if (typeof doc !== "object" || doc === null || Array.isArray(doc)) return void 0;
|
|
10430
|
+
const s = doc["Statement"];
|
|
10431
|
+
return s === void 0 ? void 0 : Array.isArray(s) ? s : [s];
|
|
10432
|
+
};
|
|
10433
|
+
const readStatements = statements(read);
|
|
10434
|
+
const wantStatements = statements(want);
|
|
10435
|
+
if (readStatements === void 0 || wantStatements === void 0) return answer;
|
|
10436
|
+
return {
|
|
10437
|
+
...read,
|
|
10438
|
+
Statement: readStatements.map((entry, index) => {
|
|
10439
|
+
const wanted = wantStatements[index];
|
|
10440
|
+
if (typeof entry !== "object" || entry === null || typeof wanted !== "object" || wanted === null || Object.prototype.hasOwnProperty.call(wanted, "Resource")) return entry;
|
|
10441
|
+
const resource = entry["Resource"];
|
|
10442
|
+
if (typeof resource !== "string" || !EFS_FILE_SYSTEM_ARN.test(resource) || fileSystemId !== void 0 && !resource.endsWith(`:file-system/${fileSystemId}`)) return entry;
|
|
10443
|
+
const { Resource: _added, ...rest } = entry;
|
|
10444
|
+
return rest;
|
|
10445
|
+
})
|
|
10446
|
+
};
|
|
10447
|
+
}
|
|
10448
|
+
function declaredPolicyDocument(properties) {
|
|
10449
|
+
if (typeof properties !== "object" || properties === null || Array.isArray(properties)) return;
|
|
10450
|
+
const doc = properties["PolicyDocument"];
|
|
10451
|
+
if (typeof doc === "string") return doc === "" ? void 0 : doc;
|
|
10452
|
+
return typeof doc === "object" && doc !== null && !Array.isArray(doc) ? doc : void 0;
|
|
10453
|
+
}
|
|
10454
|
+
function policyDocumentMatchesDeclared(answer, declared) {
|
|
10455
|
+
return answer !== void 0 && policyContentKey(foldConditionValues(answer)) === policyContentKey(foldConditionValues(declared));
|
|
10456
|
+
}
|
|
10457
|
+
function foldConditionValues(document) {
|
|
10458
|
+
let doc = document;
|
|
10459
|
+
if (typeof doc === "string") try {
|
|
10460
|
+
doc = JSON.parse(doc);
|
|
10461
|
+
} catch {
|
|
10462
|
+
return document;
|
|
10463
|
+
}
|
|
10464
|
+
if (typeof doc !== "object" || doc === null || Array.isArray(doc)) return doc;
|
|
10465
|
+
const statement = doc["Statement"];
|
|
10466
|
+
if (statement === void 0) return doc;
|
|
10467
|
+
const statements = Array.isArray(statement) ? statement : [statement];
|
|
10468
|
+
return {
|
|
10469
|
+
...doc,
|
|
10470
|
+
Statement: statements.map((entry) => {
|
|
10471
|
+
if (typeof entry !== "object" || entry === null || Array.isArray(entry)) return entry;
|
|
10472
|
+
const condition = entry["Condition"];
|
|
10473
|
+
if (typeof condition !== "object" || condition === null || Array.isArray(condition)) return entry;
|
|
10474
|
+
const folded = {};
|
|
10475
|
+
for (const [operator, block] of Object.entries(condition)) {
|
|
10476
|
+
if (typeof block !== "object" || block === null || Array.isArray(block)) {
|
|
10477
|
+
folded[operator] = block;
|
|
10478
|
+
continue;
|
|
10479
|
+
}
|
|
10480
|
+
const values = {};
|
|
10481
|
+
for (const [key, value] of Object.entries(block)) values[key] = Array.isArray(value) && value.length === 1 ? value[0] : value;
|
|
10482
|
+
folded[operator] = values;
|
|
10483
|
+
}
|
|
10484
|
+
return {
|
|
10485
|
+
...entry,
|
|
10486
|
+
Condition: folded
|
|
10487
|
+
};
|
|
10488
|
+
})
|
|
10489
|
+
};
|
|
10490
|
+
}
|
|
10491
|
+
const SNS_DEFAULT_POLICY_ID = "__default_policy_ID";
|
|
10492
|
+
const LAMBDA_PERMISSION_STATEMENT_KEYS = [
|
|
10493
|
+
"Action",
|
|
10494
|
+
"Principal",
|
|
10495
|
+
"SourceArn",
|
|
10496
|
+
"SourceAccount",
|
|
10497
|
+
"PrincipalOrgID",
|
|
10498
|
+
"InvokedViaFunctionUrl"
|
|
10499
|
+
];
|
|
10500
|
+
function lambdaPermissionMatchesDeclared(read, declared) {
|
|
10501
|
+
return LAMBDA_PERMISSION_STATEMENT_KEYS.every((key) => {
|
|
10502
|
+
if (key === "InvokedViaFunctionUrl") return read[key] === true === (coerceCfnBoolean(declared[key]) === true);
|
|
10503
|
+
const want = declared[key];
|
|
10504
|
+
const got = read[key];
|
|
10505
|
+
if (want === void 0 || want === null || want === "") return got === void 0;
|
|
10506
|
+
return key === "Principal" ? accountKey(got) === accountKey(want) : got === want;
|
|
10507
|
+
});
|
|
10508
|
+
}
|
|
10509
|
+
|
|
10213
10510
|
// src/cli/commands/drift/baseline-keys.ts
|
|
10214
10511
|
const UNDECLARED_UNCOMPARED_KEYS = {
|
|
10215
10512
|
"AWS::S3::Bucket": ["NotificationConfiguration"],
|
|
@@ -10231,14 +10528,80 @@ function undeclaredUncomparedDriftKeys(resourceType, properties) {
|
|
|
10231
10528
|
return keys.filter((key) => !hasOwnKey(properties, key));
|
|
10232
10529
|
}
|
|
10233
10530
|
function preFixBaselineUncomparedDriftKeys(resourceType, observed, properties, aws) {
|
|
10234
|
-
if (resourceType !== "AWS::Lambda::EventSourceMapping") return [];
|
|
10235
10531
|
if (observed === void 0) return [];
|
|
10236
10532
|
if (typeof properties !== "object" || properties === null || Array.isArray(properties)) return [];
|
|
10533
|
+
if (resourceType === "AWS::DynamoDB::Table") return staleTablePolicyBaseline(observed, properties, aws) ? ["ResourcePolicy"] : [];
|
|
10534
|
+
if (resourceType === "AWS::SQS::QueuePolicy" || resourceType === "AWS::SNS::TopicPolicy") {
|
|
10535
|
+
const declared = declaredPolicyDocument(properties);
|
|
10536
|
+
return declared !== void 0 && policyDocumentMatchesDeclared(aws["PolicyDocument"], declared) && !policyDocumentMatchesDeclared(observed["PolicyDocument"], declared) ? ["PolicyDocument"] : [];
|
|
10537
|
+
}
|
|
10538
|
+
if (resourceType === "AWS::Lambda::Permission") {
|
|
10539
|
+
const declared = properties;
|
|
10540
|
+
return lambdaPermissionMatchesDeclared(aws, declared) && !lambdaPermissionMatchesDeclared(observed, declared) ? [...LAMBDA_PERMISSION_STATEMENT_KEYS] : [];
|
|
10541
|
+
}
|
|
10542
|
+
const member = OWN_WRITE_MEMBERS.get(resourceType);
|
|
10543
|
+
if (member !== void 0) return member.liveIsDeclared(properties, aws) ? [member.key] : [];
|
|
10544
|
+
if (resourceType !== "AWS::Lambda::EventSourceMapping") return [];
|
|
10237
10545
|
const declared = hasOwnKey(properties, "Enabled") ? coerceCfnBoolean(properties["Enabled"]) : void 0;
|
|
10238
10546
|
const recorded = hasOwnKey(observed, "Enabled") ? coerceCfnBoolean(observed["Enabled"]) : void 0;
|
|
10239
10547
|
const live = hasOwnKey(aws, "Enabled") ? aws["Enabled"] : void 0;
|
|
10240
10548
|
return recorded === false && declared !== false && live === true ? ["Enabled"] : [];
|
|
10241
10549
|
}
|
|
10550
|
+
const OWN_WRITE_MEMBERS = new Map(Object.entries({
|
|
10551
|
+
"AWS::KMS::Key": {
|
|
10552
|
+
key: "KeyPolicy",
|
|
10553
|
+
liveIsDeclared: (properties, aws) => {
|
|
10554
|
+
const declared = declaredMemberDocument(properties["KeyPolicy"]);
|
|
10555
|
+
return declared !== void 0 && policyDocumentMatchesDeclared(aws["KeyPolicy"], declared);
|
|
10556
|
+
}
|
|
10557
|
+
},
|
|
10558
|
+
"AWS::Logs::DeliveryDestination": {
|
|
10559
|
+
key: "DeliveryDestinationPolicy",
|
|
10560
|
+
liveIsDeclared: (properties, aws) => {
|
|
10561
|
+
const inner = (block) => {
|
|
10562
|
+
const document = typeof block === "object" && block !== null && !Array.isArray(block) ? block["DeliveryDestinationPolicy"] : void 0;
|
|
10563
|
+
return typeof document === "object" && document !== null && !Array.isArray(document) ? document : void 0;
|
|
10564
|
+
};
|
|
10565
|
+
const declared = inner(properties["DeliveryDestinationPolicy"]);
|
|
10566
|
+
if (declared === void 0) return properties["DeliveryDestinationPolicy"] === void 0 && aws["DeliveryDestinationPolicy"] === void 0;
|
|
10567
|
+
return policyDocumentMatchesDeclared(inner(aws["DeliveryDestinationPolicy"]), declared);
|
|
10568
|
+
}
|
|
10569
|
+
},
|
|
10570
|
+
"AWS::Logs::LogGroup": {
|
|
10571
|
+
key: "DataProtectionPolicy",
|
|
10572
|
+
liveIsDeclared: (properties, aws) => {
|
|
10573
|
+
const declared = declaredMemberDocument(properties["DataProtectionPolicy"]);
|
|
10574
|
+
if (declared === void 0) return (properties["DataProtectionPolicy"] === void 0 || properties["DataProtectionPolicy"] === "") && aws["DataProtectionPolicy"] === "";
|
|
10575
|
+
return policyDocumentMatchesDeclared(aws["DataProtectionPolicy"], declared);
|
|
10576
|
+
}
|
|
10577
|
+
},
|
|
10578
|
+
"AWS::ApiGateway::RestApi": {
|
|
10579
|
+
key: "Policy",
|
|
10580
|
+
liveIsDeclared: (properties, aws) => {
|
|
10581
|
+
const declared = declaredMemberDocument(properties["Policy"]);
|
|
10582
|
+
return declared !== void 0 && policyDocumentMatchesDeclared(aws["Policy"], declared);
|
|
10583
|
+
}
|
|
10584
|
+
},
|
|
10585
|
+
"AWS::EFS::FileSystem": {
|
|
10586
|
+
key: "FileSystemPolicy",
|
|
10587
|
+
liveIsDeclared: (properties, aws) => {
|
|
10588
|
+
const declared = declaredMemberDocument(properties["FileSystemPolicy"]);
|
|
10589
|
+
if (declared === void 0) return properties["FileSystemPolicy"] === void 0 && aws["FileSystemPolicy"] === void 0;
|
|
10590
|
+
return efsPolicyMatchesDeclared(aws["FileSystemPolicy"], declared);
|
|
10591
|
+
}
|
|
10592
|
+
},
|
|
10593
|
+
"AWS::CodeBuild::Project": {
|
|
10594
|
+
key: "Visibility",
|
|
10595
|
+
liveIsDeclared: (properties, aws) => typeof properties["Visibility"] === "string" && properties["Visibility"] !== "" && aws["Visibility"] === properties["Visibility"]
|
|
10596
|
+
}
|
|
10597
|
+
}));
|
|
10598
|
+
function staleTablePolicyBaseline(observed, properties, aws) {
|
|
10599
|
+
const recorded = readStreamPolicy(observed);
|
|
10600
|
+
const declared = readStreamPolicy(properties);
|
|
10601
|
+
const live = readStreamPolicy(aws);
|
|
10602
|
+
if (recorded.kind === "usable" && declared.kind === "absent" && live.kind === "absent") return true;
|
|
10603
|
+
return declared.kind === "usable" && live.kind === "usable" && streamPolicyMatchesDeclared(live.document, properties);
|
|
10604
|
+
}
|
|
10242
10605
|
function readOnlyUncomparedDriftPaths(readOnlyPaths, properties) {
|
|
10243
10606
|
if (!readOnlyPaths || readOnlyPaths.length === 0) return [];
|
|
10244
10607
|
const declared = (path) => {
|
|
@@ -10663,7 +11026,7 @@ function printRevertPlan(reports, out, recovery, writeOnlyResend) {
|
|
|
10663
11026
|
}
|
|
10664
11027
|
}
|
|
10665
11028
|
if (stateResource && stateResource.observedProperties === void 0) {
|
|
10666
|
-
const unbaselined = findRevertUnbaselinedAwsKeys(o.changes, stateResource.properties ?? {}, o.awsProperties);
|
|
11029
|
+
const unbaselined = findRevertUnbaselinedAwsKeys(o.changes, stateResource.properties ?? {}, o.awsProperties, verbatimEchoDriftKeys(o.resourceType));
|
|
10667
11030
|
if (o.secretsIncomplete && unbaselined.length > 0) out.write(` ! ${unbaselined.length} AWS-authored value(s) will be left untouched, but cdkd could not resolve this resource's dynamic reference(s), so their paths are withheld — they come from the live readback and cannot be checked for secrets without them.\n`);
|
|
10668
11031
|
else if (unbaselined.length > 0) {
|
|
10669
11032
|
const word = unbaselined.length === 1 ? "value" : "values";
|
|
@@ -11076,7 +11439,7 @@ function findRevertPreservedTagKeys(drifts, desiredProperties, awsProperties) {
|
|
|
11076
11439
|
}
|
|
11077
11440
|
return [...preserved].sort();
|
|
11078
11441
|
}
|
|
11079
|
-
function findRevertUnbaselinedAwsKeys(drifts, desiredProperties, awsProperties) {
|
|
11442
|
+
function findRevertUnbaselinedAwsKeys(drifts, desiredProperties, awsProperties, verbatimKeys = []) {
|
|
11080
11443
|
const missing = /* @__PURE__ */ new Set();
|
|
11081
11444
|
const driftedTopLevelKeys = /* @__PURE__ */ new Set();
|
|
11082
11445
|
for (const d of drifts) {
|
|
@@ -11085,6 +11448,7 @@ function findRevertUnbaselinedAwsKeys(drifts, desiredProperties, awsProperties)
|
|
|
11085
11448
|
}
|
|
11086
11449
|
for (const key of driftedTopLevelKeys) {
|
|
11087
11450
|
if (!hasOwnKey(desiredProperties, key)) continue;
|
|
11451
|
+
if (verbatimKeys.includes(key)) continue;
|
|
11088
11452
|
collectMissingPaths(ownValue(awsProperties, key), desiredProperties[key], key, missing, isTagListKey(key) ? isServiceManagedTagKey : void 0);
|
|
11089
11453
|
}
|
|
11090
11454
|
return [...missing].sort();
|
|
@@ -11199,6 +11563,7 @@ function collectUnresolvedIntrinsicObjectPaths(bag, topLevelKeys) {
|
|
|
11199
11563
|
function buildRevertNewProperties(drifts, desiredProperties, awsProperties, options = {}) {
|
|
11200
11564
|
const preserveUntemplated = options.preserveUntemplated === true;
|
|
11201
11565
|
const absentMeansDefault = options.absentMeansDefault ?? [];
|
|
11566
|
+
const verbatimKeys = options.verbatimKeys ?? [];
|
|
11202
11567
|
const result = { ...awsProperties };
|
|
11203
11568
|
for (const d of drifts) {
|
|
11204
11569
|
const topLevelKey = d.path.split(".", 1)[0];
|
|
@@ -11206,7 +11571,7 @@ function buildRevertNewProperties(drifts, desiredProperties, awsProperties, opti
|
|
|
11206
11571
|
if (hasOwnKey(desiredProperties, topLevelKey)) {
|
|
11207
11572
|
const desiredValue = desiredProperties[topLevelKey];
|
|
11208
11573
|
const awsValue = ownValue(awsProperties, topLevelKey);
|
|
11209
|
-
if (preserveUntemplated) defineOwnKey(result, topLevelKey, mergeUntemplatedValue(awsValue, desiredValue));
|
|
11574
|
+
if (preserveUntemplated && !verbatimKeys.includes(topLevelKey)) defineOwnKey(result, topLevelKey, mergeUntemplatedValue(awsValue, desiredValue));
|
|
11210
11575
|
else {
|
|
11211
11576
|
const baselineIsTagList = isCfnTagList(desiredValue) || Array.isArray(desiredValue) && desiredValue.length === 0;
|
|
11212
11577
|
defineOwnKey(result, topLevelKey, isTagListKey(topLevelKey) && baselineIsTagList && isCfnTagList(awsValue) ? mergeTagListForRevert(desiredValue, awsValue) : desiredValue);
|
|
@@ -11320,8 +11685,7 @@ async function compareDriftReadback(args) {
|
|
|
11320
11685
|
const observedIgnorePaths = useObserved ? undeclaredEmptyObservedKeys(resource.observedProperties, resource.properties ?? {}) : [];
|
|
11321
11686
|
const normalized = await canonicalizePrincipalUniqueIds(comparisonBaseline, aws, resolvePrincipalUniqueId);
|
|
11322
11687
|
const protocolNormalized = canonicalizeIpProtocols(normalized.baseline, normalized.aws, resource.resourceType);
|
|
11323
|
-
const
|
|
11324
|
-
const siblingStripped = stripSiblingOwnedSgRules(resource.resourceType, resource.physicalId, memberStripped.baseline, memberStripped.aws, resource.properties, readContext);
|
|
11688
|
+
const siblingStripped = stripSiblingOwnedParentMembers(resource.resourceType, resource.physicalId, protocolNormalized.baseline, protocolNormalized.aws, resource.properties, readContext);
|
|
11325
11689
|
const canonicalized = provider.canonicalizeDriftProperties ? {
|
|
11326
11690
|
baseline: provider.canonicalizeDriftProperties(resource.resourceType, siblingStripped.baseline),
|
|
11327
11691
|
aws: provider.canonicalizeDriftProperties(resource.resourceType, siblingStripped.aws)
|
|
@@ -11345,7 +11709,8 @@ async function compareDriftReadback(args) {
|
|
|
11345
11709
|
const changes = calculateResourceDrift(comparedBaseline, paired.aws, {
|
|
11346
11710
|
ignorePaths: extraIgnorePaths.length ? [...ignorePaths, ...extraIgnorePaths] : ignorePaths,
|
|
11347
11711
|
unionWalkObjects: useObserved,
|
|
11348
|
-
unorderedPaths
|
|
11712
|
+
unorderedPaths,
|
|
11713
|
+
unionWalkPaths: verbatimEchoDriftKeys(resource.resourceType)
|
|
11349
11714
|
});
|
|
11350
11715
|
const noEchoPartitioned = partitionNoEchoParameterChanges(changes, resource, baseline);
|
|
11351
11716
|
const partitioned = partitionUncertifiedBaselineChanges(noEchoPartitioned.kept, resource.properties ?? {}, baseline);
|
|
@@ -11624,7 +11989,8 @@ async function runDriftForStack(stackName, region, stateBackend, providerRegistr
|
|
|
11624
11989
|
notComparedCause: "readFailed"
|
|
11625
11990
|
});
|
|
11626
11991
|
let breakerTripped = false;
|
|
11627
|
-
if (
|
|
11992
|
+
if (err instanceof DriftReadRefusedError) noteReadReturned();
|
|
11993
|
+
else if (!readReturned) {
|
|
11628
11994
|
consecutiveReadFailures[readPath]++;
|
|
11629
11995
|
if (consecutiveReadFailures[readPath] === 5) {
|
|
11630
11996
|
trippedReadPaths.add(readPath);
|
|
@@ -11954,11 +12320,13 @@ async function revertDriftedOutcome(args) {
|
|
|
11954
12320
|
let newProperties;
|
|
11955
12321
|
try {
|
|
11956
12322
|
const siblingContext = buildReadCurrentStateContext(report.state, outcome.logicalId);
|
|
11957
|
-
desiredProperties =
|
|
11958
|
-
desiredProperties = stripSiblingOwnedSgRules(outcome.resourceType, stateResource.physicalId, desiredProperties, outcome.awsProperties, stateResource.properties, siblingContext).baseline;
|
|
12323
|
+
desiredProperties = siblingOwnedRevertDesired(outcome.resourceType, stateResource.physicalId, desiredProperties, outcome.awsProperties, stateResource.properties, siblingContext);
|
|
11959
12324
|
if (provider.canonicalizeDriftPair) desiredProperties = (await provider.canonicalizeDriftPair(outcome.resourceType, desiredProperties, outcome.awsProperties, stateResource.properties ?? {})).baseline;
|
|
11960
12325
|
desiredProperties = stripDerivedEchoMembers(outcome.resourceType, desiredProperties);
|
|
11961
|
-
const overlaid = buildRevertNewProperties(outcome.changes, desiredProperties, outcome.awsProperties, stateResource.observedProperties === void 0 ? {
|
|
12326
|
+
const overlaid = buildRevertNewProperties(outcome.changes, desiredProperties, outcome.awsProperties, stateResource.observedProperties === void 0 ? {
|
|
12327
|
+
preserveUntemplated: true,
|
|
12328
|
+
verbatimKeys: verbatimEchoDriftKeys(outcome.resourceType)
|
|
12329
|
+
} : { absentMeansDefault: driftAbsentMeansDefaultKeys(provider, outcome.resourceType, stateResource.properties) });
|
|
11962
12330
|
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 ?? {}));
|
|
11963
12331
|
const tokenPreserved = unresolvedTokens.size > 0 ? preserveLiveValuesAtUnresolvedTokens(certifiedOverlay, outcome.awsProperties, unresolvedTokens, secrets) : certifiedOverlay;
|
|
11964
12332
|
const maskPreserved = preserveLiveValuesAtMaskedLeaves(tokenPreserved, outcome.awsProperties, secrets, certifiedOverlay, spelledKeysOf(stateResource.properties ?? {}));
|
|
@@ -21411,6 +21779,49 @@ function applyFailedPlanToPreview(plan, previewState, skipFinalSnapshot) {
|
|
|
21411
21779
|
}
|
|
21412
21780
|
}
|
|
21413
21781
|
|
|
21782
|
+
// src/cli/commands/rollback/deferred-readers.ts
|
|
21783
|
+
async function stripFailedOpsJournal(journal, remaining) {
|
|
21784
|
+
const { segment } = journal;
|
|
21785
|
+
if (!journal.writable() || remaining.length === (segment.failedOperations ?? []).length) return;
|
|
21786
|
+
try {
|
|
21787
|
+
await journal.set(remaining);
|
|
21788
|
+
if (remaining.length === 0) delete segment.failedOperations;
|
|
21789
|
+
else segment.failedOperations = remaining;
|
|
21790
|
+
} catch (stripError) {
|
|
21791
|
+
journal.logger.warn(safeMsg`Failed to strip replayed failed-ops from the journal: ${backendErrorText(stripError, journal.stackName, journal.region)}`);
|
|
21792
|
+
}
|
|
21793
|
+
}
|
|
21794
|
+
function remainingAfterFailedReplay(failedOps, failedToReplay, failedResult, completedOps) {
|
|
21795
|
+
return [
|
|
21796
|
+
...failedOps.imported,
|
|
21797
|
+
...failedOps.displaced,
|
|
21798
|
+
...failedOps.replay.filter((op) => !failedToReplay.includes(op)),
|
|
21799
|
+
...failedResult.remainingFailedOps,
|
|
21800
|
+
...completedOps.length > 0 ? failedToReplay.filter((op) => seedsDeleteFirstGuard(op) && !failedResult.remainingFailedOps.includes(op)) : []
|
|
21801
|
+
];
|
|
21802
|
+
}
|
|
21803
|
+
function splitDeferredReaders(failedToReplay, stateResources, completedOps) {
|
|
21804
|
+
const deferred = failedToReplay.filter((op) => op.changeType === "UPDATE" && !seedsDeleteFirstGuard(op) && readsRegeneratingSecret(op.logicalId, stateResources, completedOps) && !attemptUsesCompletedCreate(op.attemptedProperties, completedOps));
|
|
21805
|
+
return {
|
|
21806
|
+
now: failedToReplay.filter((op) => !deferred.includes(op)),
|
|
21807
|
+
deferred
|
|
21808
|
+
};
|
|
21809
|
+
}
|
|
21810
|
+
async function replayDeferredReaders(deferred, completed, scope, options) {
|
|
21811
|
+
const result = await withPrintingSecrets(scope.printing, () => withPrintingSecrets(journaledOrphanPrintingBag([...deferred], scope.stateResources), () => replayFailedOperations([...deferred], scope.stateResources, scope.stackName, scope.ctx, {
|
|
21812
|
+
...options,
|
|
21813
|
+
emitEnvelope: false,
|
|
21814
|
+
regeneratedSecrets: new Set([...completed.regeneratedSecrets?.values() ?? []].flatMap((a) => [...a]))
|
|
21815
|
+
})));
|
|
21816
|
+
const handled = deferred.filter((op) => !result.remainingFailedOps.includes(op));
|
|
21817
|
+
await stripFailedOpsJournal(scope.journal, (scope.journal.segment.failedOperations ?? []).filter((op) => !handled.includes(op)));
|
|
21818
|
+
return {
|
|
21819
|
+
failures: result.failures,
|
|
21820
|
+
warnings: result.warnings,
|
|
21821
|
+
interrupted: result.interrupted
|
|
21822
|
+
};
|
|
21823
|
+
}
|
|
21824
|
+
|
|
21414
21825
|
// src/cli/commands/rollback/replay.ts
|
|
21415
21826
|
async function runRollbackReplay(ctx) {
|
|
21416
21827
|
const { providerClasses, setup, options, logger, stackName, region, crossPrefixScan, finalSnapshotClients, skipConfirmation } = ctx;
|
|
@@ -21622,7 +22033,15 @@ async function runRollbackReplay(ctx) {
|
|
|
21622
22033
|
let failedOpWarnings = 0;
|
|
21623
22034
|
const failedOps = splitImportedOps(segment.failedOperations ?? [], segment);
|
|
21624
22035
|
const failedForGuard = segment.failedOperations ?? [];
|
|
21625
|
-
const failedToReplay = failedOpsToReplay(failedOps.replay, options.revertFailed === true);
|
|
22036
|
+
const { now: failedToReplay, deferred: deferredReaders } = splitDeferredReaders(failedOpsToReplay(failedOps.replay, options.revertFailed === true), stateResources, completedOps);
|
|
22037
|
+
const journal = {
|
|
22038
|
+
segment,
|
|
22039
|
+
writable: () => !declinedDivergentRewrite,
|
|
22040
|
+
set: (ops) => setup.stateBackend.setRollbackJournalFailedOperations(stackName, region, ops),
|
|
22041
|
+
logger,
|
|
22042
|
+
stackName,
|
|
22043
|
+
region
|
|
22044
|
+
};
|
|
21626
22045
|
if (failedToReplay.length > 0) {
|
|
21627
22046
|
const failedResult = await withPrintingSecrets(failedOpsPrinting, () => withPrintingSecrets(journaledOrphanPrintingBag(failedToReplay, stateResources), () => replayFailedOperations(failedToReplay, stateResources, stackName, ctx, {
|
|
21628
22047
|
afterOp: saveState,
|
|
@@ -21636,20 +22055,7 @@ async function runRollbackReplay(ctx) {
|
|
|
21636
22055
|
failedOpFailures = failedResult.failures;
|
|
21637
22056
|
failedOpWarnings = failedResult.warnings;
|
|
21638
22057
|
for (const op of failedResult.remainingFailedOps) if (isJournaledOrphan(op) && op.physicalIdRecoveredFromError === true) failedOrphanIds.push(op.logicalId);
|
|
21639
|
-
|
|
21640
|
-
...failedOps.imported,
|
|
21641
|
-
...failedOps.displaced,
|
|
21642
|
-
...failedOps.replay.filter((op) => !failedToReplay.includes(op)),
|
|
21643
|
-
...failedResult.remainingFailedOps,
|
|
21644
|
-
...completedOps.length > 0 ? failedToReplay.filter((op) => seedsDeleteFirstGuard(op) && !failedResult.remainingFailedOps.includes(op)) : []
|
|
21645
|
-
];
|
|
21646
|
-
if (!declinedDivergentRewrite && remaining.length !== (segment.failedOperations ?? []).length) try {
|
|
21647
|
-
await setup.stateBackend.setRollbackJournalFailedOperations(stackName, region, remaining);
|
|
21648
|
-
if (remaining.length === 0) delete segment.failedOperations;
|
|
21649
|
-
else segment.failedOperations = remaining;
|
|
21650
|
-
} catch (stripError) {
|
|
21651
|
-
logger.warn(safeMsg`Failed to strip replayed failed-ops from the journal: ${backendErrorText(stripError, stackName, region)}`);
|
|
21652
|
-
}
|
|
22058
|
+
await stripFailedOpsJournal(journal, remainingAfterFailedReplay(failedOps, failedToReplay, failedResult, completedOps));
|
|
21653
22059
|
if (failedResult.interrupted) return {
|
|
21654
22060
|
failures: failedOpFailures,
|
|
21655
22061
|
warnings: failedOpWarnings,
|
|
@@ -21666,6 +22072,29 @@ async function runRollbackReplay(ctx) {
|
|
|
21666
22072
|
failedOperations: failedForGuard,
|
|
21667
22073
|
...cleanup
|
|
21668
22074
|
}));
|
|
22075
|
+
if (deferredReaders.length > 0 && !replayResult.interrupted) {
|
|
22076
|
+
const deferredResult = await replayDeferredReaders(deferredReaders, replayResult, {
|
|
22077
|
+
stateResources,
|
|
22078
|
+
stackName,
|
|
22079
|
+
ctx,
|
|
22080
|
+
printing: failedOpsPrinting,
|
|
22081
|
+
journal
|
|
22082
|
+
}, {
|
|
22083
|
+
afterOp: saveState,
|
|
22084
|
+
isInterrupted: () => interrupted,
|
|
22085
|
+
...cleanup,
|
|
22086
|
+
onOrphan: (record) => mintedOrphans.push(record),
|
|
22087
|
+
onRolledBackCreate: (create) => rolledBackCreates.push(create),
|
|
22088
|
+
inlinePolicyWriters
|
|
22089
|
+
});
|
|
22090
|
+
failedOpFailures += deferredResult.failures;
|
|
22091
|
+
failedOpWarnings += deferredResult.warnings;
|
|
22092
|
+
if (deferredResult.interrupted) return {
|
|
22093
|
+
failures: replayResult.failures + failedOpFailures,
|
|
22094
|
+
warnings: replayResult.warnings + failedOpWarnings,
|
|
22095
|
+
interrupted: true
|
|
22096
|
+
};
|
|
22097
|
+
}
|
|
21669
22098
|
return {
|
|
21670
22099
|
failures: replayResult.failures + failedOpFailures,
|
|
21671
22100
|
warnings: replayResult.warnings + failedOpWarnings,
|
|
@@ -34652,5 +35081,5 @@ function collectVerbFlags(program) {
|
|
|
34652
35081
|
return map;
|
|
34653
35082
|
}
|
|
34654
35083
|
|
|
34655
|
-
export { resolveSecretDerivedPrincipals as a, buildProgram, isResolvableSecretPrincipalList as i, runDestroyForStack as n, holdsUnprovenSecretPrincipalToken as r, canonicalizeIpv4Cidr as t };
|
|
34656
|
-
//# sourceMappingURL=program-
|
|
35084
|
+
export { warnUnsettledMember as _, resolveSecretDerivedPrincipals as a, verbatimEchoDriftKeys as b, buildProgram, SNS_DEFAULT_POLICY_ID as c, efsPolicyMatchesDeclared as d, lambdaPermissionMatchesDeclared as f, settleDeclaredMember as g, reReadUntilSettled as h, isResolvableSecretPrincipalList as i, declaredMemberDocument as l, policyDocumentMatchesDeclared as m, runDestroyForStack as n, KMS_DEFAULT_KEY_POLICY_ID as o, memberReadFailure as p, holdsUnprovenSecretPrincipalToken as r, OWN_WRITE_REREAD_DELAYS_MS as s, canonicalizeIpv4Cidr as t, declaredPolicyDocument as u, attemptedPolicyDocument as v, policyContentKey as y };
|
|
35085
|
+
//# sourceMappingURL=program-MndcrrWf.js.map
|