@cdkd/cli 0.360.0 → 0.360.1
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-Zw14vfrI.js → ambient-client-defaults-7ZUTgwyy.js} +3 -3
- package/dist/{ambient-client-defaults-Zw14vfrI.js.map → ambient-client-defaults-7ZUTgwyy.js.map} +1 -1
- package/dist/{asg-provider-D1t6qsKn.js → asg-provider-Bw8ajB1r.js} +6 -6
- package/dist/{asg-provider-D1t6qsKn.js.map → asg-provider-Bw8ajB1r.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{custom-resource-runtime-CIDXtQ5Q.js → custom-resource-runtime-CAP2Al4I.js} +6 -6
- package/dist/{custom-resource-runtime-CIDXtQ5Q.js.map → custom-resource-runtime-CAP2Al4I.js.map} +1 -1
- package/dist/{db-associated-roles-CYMYBGeh.js → db-associated-roles-DSeRoEq5.js} +2 -2
- package/dist/{db-associated-roles-CYMYBGeh.js.map → db-associated-roles-DSeRoEq5.js.map} +1 -1
- package/dist/{delete-started-dMEHah06.js → delete-started-DHIp8imD.js} +4 -4
- package/dist/{delete-started-dMEHah06.js.map → delete-started-DHIp8imD.js.map} +1 -1
- package/dist/{deploy-engine-T1iXkB24.js → deploy-engine-Bo8PtTbG.js} +109 -57
- package/dist/{deploy-engine-T1iXkB24.js.map → deploy-engine-Bo8PtTbG.js.map} +1 -1
- package/dist/{ec2-termination-protection-Ct7iZKky.js → ec2-termination-protection-CRkl8_Wy.js} +6 -6
- package/dist/{ec2-termination-protection-Ct7iZKky.js.map → ec2-termination-protection-CRkl8_Wy.js.map} +1 -1
- package/dist/{ecr-uri-DMMMk4h5.js → ecr-uri-DaIBuz4E.js} +2 -2
- package/dist/{ecr-uri-DMMMk4h5.js.map → ecr-uri-DaIBuz4E.js.map} +1 -1
- package/dist/{expected-bucket-owner-D0my0zRR.js → expected-bucket-owner-BjRKj3hF.js} +2 -2
- package/dist/{expected-bucket-owner-D0my0zRR.js.map → expected-bucket-owner-BjRKj3hF.js.map} +1 -1
- package/dist/{iam-role-provider-R89AqWLY.js → iam-role-provider-CcK9C-mY.js} +52 -13
- package/dist/iam-role-provider-CcK9C-mY.js.map +1 -0
- package/dist/{image-plan-nkTmvIbr.js → image-plan-CwiLyeAj.js} +8 -8
- package/dist/{image-plan-nkTmvIbr.js.map → image-plan-CwiLyeAj.js.map} +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-Fqr4kSBL.js → logger-CjGMINd9.js} +2 -2
- package/dist/{logger-Fqr4kSBL.js.map → logger-CjGMINd9.js.map} +1 -1
- package/dist/{neptune-provider-BMDYjSf5.js → neptune-provider-D-jHbjCG.js} +7 -7
- package/dist/{neptune-provider-BMDYjSf5.js.map → neptune-provider-D-jHbjCG.js.map} +1 -1
- package/dist/{program-Di80isf8.js → program-BHLjuXmA.js} +326 -35
- package/dist/program-BHLjuXmA.js.map +1 -0
- package/dist/{provider-classes-Bkb_H0Sp.js → provider-classes-D5IgG-fE.js} +199 -93
- package/dist/provider-classes-D5IgG-fE.js.map +1 -0
- package/dist/{rds-provider-BcNL1C0E.js → rds-provider-BSDygv5j.js} +10 -10
- package/dist/{rds-provider-BcNL1C0E.js.map → rds-provider-BSDygv5j.js.map} +1 -1
- package/dist/{read-replica-mqoiWJdM.js → read-replica-a4eZWjUH.js} +3 -3
- package/dist/{read-replica-mqoiWJdM.js.map → read-replica-a4eZWjUH.js.map} +1 -1
- package/dist/{replacement-rules-Y1UE2Vqb.js → replacement-rules-JS1D0m-r.js} +3 -3
- package/dist/{replacement-rules-Y1UE2Vqb.js.map → replacement-rules-JS1D0m-r.js.map} +1 -1
- package/dist/{resource-deadline-BSt_tRep.js → resource-deadline-DtW_JiNE.js} +4 -4
- package/dist/{resource-deadline-BSt_tRep.js.map → resource-deadline-DtW_JiNE.js.map} +1 -1
- package/dist/{restore-source-guard-CDrsW4tB.js → restore-source-guard-BPEKIvrh.js} +4 -4
- package/dist/{restore-source-guard-CDrsW4tB.js.map → restore-source-guard-BPEKIvrh.js.map} +1 -1
- package/dist/{run-cli-BKSKYUvl.js → run-cli-F87YOoqR.js} +2 -2
- package/dist/{run-cli-BKSKYUvl.js.map → run-cli-F87YOoqR.js.map} +1 -1
- package/dist/{settle-own-write-members-BqIDAx00.js → settle-own-write-members-DmDIpP0O.js} +41 -23
- package/dist/{settle-own-write-members-BqIDAx00.js.map → settle-own-write-members-DmDIpP0O.js.map} +1 -1
- package/dist/{version-yPbqfysZ.js → version-MMfHOVaa.js} +2 -2
- package/dist/{version-yPbqfysZ.js.map → version-MMfHOVaa.js.map} +1 -1
- package/package.json +1 -1
- package/dist/iam-role-provider-R89AqWLY.js.map +0 -1
- package/dist/program-Di80isf8.js.map +0 -1
- package/dist/provider-classes-Bkb_H0Sp.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 { B as assertRegionMatch, Dt as readRecordedPrincipals, Ht as maskDeep, I as remedyLogicalId, It as resourceTypeShown, O as VALUE_NOT_SHOWN, Pt as logicalIdShown, R as DriftReadRefusedError, St as RESOLVED_PREVIOUS_PRINCIPAL_KEYS, V as isMarkedNotGone, _n as withPasteableAwsProfile, _t as endCommandInterruptScope, an as buildLockContentionMessage, at as runDeleteAttempt, bn as producerCoordinateKey, cn as formatLockOperation, fn as CUSTOM_RESOURCE_RESPONSE_PREFIX, ft as isAwsCliLiteral, gn as setPasteableAwsProfile, gt as beginCommandInterruptScope, hn as setPasteableAwsCaBundle, ht as renderDisableCommand, i as withResourceDeadline, in as buildForceUnlockCommand, ln as formatLockOwner, on as forceQuitRecoveryClause, pn as DEFAULT_STATE_PREFIX, rn as UNREPRODUCIBLE_LOCK_CLAUSE, sn as formatLockExpiry, vn as injectiveKey, vt as interruptWatchListenerCount, xn as producerRecordKey, xt as IAM_PRINCIPAL_NAME, yt as isInterruptedWaitError, z as RESOURCE_NOT_FOUND } from "./resource-deadline-
|
|
1
|
+
import { A as displayStackName, C as STACK_REF_MAX_CODE_POINTS, D as displayAwsMessage, E as cutMarker, F as stringifyJsonPayload, I as terminalSafe, L as truncateCodePoints, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, T as asIsMessage, _ as shellQuote, b as setPasteableVerbFlags, c as deployReplaceCommand, d as pasteableCommand, g as shellBoundedDisplay, h as quotedOrDescribed, i as SHELL_ACTIVE_WHY, j as isPasteableIdent, k as displaySafe, m as proseQuoted, o as cdkdRemedy, p as plainOrDescribed, s as commandHole, t as getCdkdVersion, u as isInertUnquoted, v as withheldTargetClause, w as UNRENDERABLE, x as SAFE_MSG_ALTERED_CHAR, y as setPasteableRunFlags } from "./version-MMfHOVaa.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-CwiLyeAj.js";
|
|
3
|
+
import { B as assertRegionMatch, Dt as readRecordedPrincipals, Ht as maskDeep, I as remedyLogicalId, It as resourceTypeShown, O as VALUE_NOT_SHOWN, Pt as logicalIdShown, R as DriftReadRefusedError, St as RESOLVED_PREVIOUS_PRINCIPAL_KEYS, V as isMarkedNotGone, _n as withPasteableAwsProfile, _t as endCommandInterruptScope, an as buildLockContentionMessage, at as runDeleteAttempt, bn as producerCoordinateKey, cn as formatLockOperation, fn as CUSTOM_RESOURCE_RESPONSE_PREFIX, ft as isAwsCliLiteral, gn as setPasteableAwsProfile, gt as beginCommandInterruptScope, hn as setPasteableAwsCaBundle, ht as renderDisableCommand, i as withResourceDeadline, in as buildForceUnlockCommand, ln as formatLockOwner, on as forceQuitRecoveryClause, pn as DEFAULT_STATE_PREFIX, rn as UNREPRODUCIBLE_LOCK_CLAUSE, sn as formatLockExpiry, vn as injectiveKey, vt as interruptWatchListenerCount, xn as producerRecordKey, xt as IAM_PRINCIPAL_NAME, yt as isInterruptedWaitError, z as RESOURCE_NOT_FOUND } from "./resource-deadline-DtW_JiNE.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, A as configStringRefusal, B as generateResourceName, E as coerceCfnBoolean, F as requireConfigString, I as PATTERN_B_NAME_OPTIONS, L as PATTERN_B_NAME_PROPERTIES, N as requireConfigArray, O as configBooleanRefusal, P as requireConfigObject, 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, V as THROTTLING_ERROR_NAMES, 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, A as configStringRefusal, B as generateResourceName, E as coerceCfnBoolean, F as requireConfigString, I as PATTERN_B_NAME_OPTIONS, L as PATTERN_B_NAME_PROPERTIES, N as requireConfigArray, O as configBooleanRefusal, P as requireConfigObject, 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-CjGMINd9.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, V as THROTTLING_ERROR_NAMES, 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-7ZUTgwyy.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 CFN_TEMPLATE_BODY_LIMIT, A as isDockerClientEnvKey, B as getLegacyStateBucketName, C as redactedCause, D as finchSecretArgvRefusal, E as dockerSpawnEnvWithSensitive, F as runDockerStreaming, G as resolveSkipPrefix, H as resolveApp, I as abortInFlightMultipartUploads, J as resolveStateBucketWithSource, K as resolveStateBucketWithDefault, L as Synthesizer, M as formatDockerLoginError, N as getDockerCmd, O as partitionSensitiveEnv, P as runDockerForeground, Q as warnDeprecatedNoPrefixCliFlag, R as synthesisStatusMessage, S as describeDockerFailure, T as redactDockerArgvValues, U as resolveAutoAssetStorage, V as loadCdkJson, W as resolveCaptureObservedState, X as resolveUseCdkBootstrapAssets, Y as resolveUpdatePolicy, Z as stateBucketExistenceConfirmed, _ as WorkGraph, at as AssemblyReader, ct as createLegacyAssetParameterBinder, dt as prepareLegacyStackAssets, et as CFN_TEMPLATE_URL_LIMIT, ft as CdkToolkitBucketMissingError, g as AssetPublisher, h as isLockInfoExpired, i as mergeDeclaredEntries, it as refuseFailedLookups, j as isMalformedEnvKey, k as warnFinchArgvExposure, l as DiffCalculator, lt as legacyPlanAssetCount, m as LockManager, mt as setChildProcessAwsEnv, n as declaredStringList, nt as findLargeInlineResources, ot as StageLoadError, p as DagBuilder, pt as processStackMessages, q as resolveStateBucketWithDefaultAndSource, r as inlinePoliciesAreDeclared, rt as uploadCfnTemplate, s as stringListIsDeclared, st as bindLegacyStackAssetParameters, t as declaredInlinePolicies, tt as MIGRATE_TMP_PREFIX, u as LEGACY_HANDLE_HEAL_REASON, ut as predictedAutoCreatedAssetMode, v as buildDockerImage, w as redactedDockerCause, x as describeDockerExecFailure, y as resolveDockerContextDirectory, z as getDefaultStateBucketName } from "./settle-own-write-members-
|
|
9
|
-
import { $a as ProviderRegistry, $c as refuseMalformedResourcePropertiesForDestroy, $i as gray, $l as hasReasonlessBaselineRefusal, $n as parseMappingFile, $o as refuseUnreadableCdkCrossAccountRefs, $t as formatResourceLine, $u as validateContainerRepoName, A as recordedProtectionEvidence, Aa as buildFinalSnapshotIdentifier, Ac as refuseMalformedOrphanRecords, Ai as bindingSkippedOutputs, Al as JSON_LISTING_HOLE_VALUE, An as DeploymentEventsStore, Ao as RollbackInlinePolicyWriters, Ar as findUpdatePolicyReplacementRefusals, Bc as malformedScrubResourceEntriesRefusalMessage, Bi as isSupersededResourceRecord, Bn as formatDestructiveChange, Bo as isSelectOutOfBounds, Br as isJournaledOrphan, Bs as getAccountInfo, C as pendingMovesOutOf, Ca as ccRoutedFinalSnapshotError, Cc as maskedPropertyFingerprint, Ci as exportNameNoEchoParameters, Cl as malformedResourcesWarning, Cn as journaledOrphanLines, Cr as calculateResourceDrift, Cs as parameterTypeMayLoseSecretIdentity, D as findServiceTokenRefusals, Da as refusesFinalSnapshot, Dc as malformedOrphanRecordsWarning, Di as collectDeclaredOutputNames, Dl as refuseMalformedResourcesForExport, Dn as makeSiblingClaimReader, Dr as verbatimEchoDriftKeys, Ds as refStateLookupFromResource, Du as buildAssetRedirectMap, E as deferredServiceTokenWarning, Ea as isFinalSnapshotError, Ec as malformedOrphanRecordsRefusalMessage, Ei as noEchoParameterValueSeed, El as refuseMalformedResourcesForDestroy, En as makeForeignHolderScan, Er as undeclaredEmptyObservedKeys, Es as isStalePlaceholderArnAttribute, F as readProtection, Fc as unreadableOrphanRecords, Fi as destroyStackRecordsView, Fl as displayLogicalId, Fn as noEchoMacParametersOf, Fr as withCreateTokenLedger, Fs as recordedOutputReferenceRegions, Ga as memberReadFailure, Gc as refuseMalformedResourceEntriesForImport, Gi as withoutSuperseded, Gl as NO_CC_HANDLERS_REASON, Gn as withMovedTo, Gr as replacementNeverSwapped, Gs as keepsSecretReferenceToken, Gt as refactorMarkerMovesOf, Gu as ensureAssetStorage, H as readStreamPolicy, Ha as declaredPolicyDocument, Hc as refuseMalformedResourceEntries, Hi as supersededHeldByOtherTypeWarning, Hn as hintSidesOf, Ho as poisonRenderedSpellingsCollidingIn, Hr as planFailedOps, Hs as carriesFetchableDynamicReference, Ht as recordRetainedForReadoption, Ic as isReadableResourceEntry, Il as hasReadableOutputs, In as noEchoMacVerdict, Io as getReadOnlyPropertyPaths, Iu as rewriteTemplateAssetReferences, Jc as repairMalformedResourceEntriesForReadOnly, Ji as resolveReplacementOldType, Jl as TemplateParser, Jn as changedReferenceReason, Jo as secretPhysicalIdSegment, Jr as attemptUsesCompletedCreate, Js as INTRINSIC_KEYS, Jt as sameMove, Ju as isCrossRegionRedirect, Ka as policyDocumentMatchesDeclared, Kc as refuseMalformedResourceEntriesForImportSave, Kl as hasNoCloudControlHandlers, Kn as changedReferenceInDiff, Ko as displayPhysicalId, Kr as IMPLICIT_DELETE_DEPENDENCIES, Ks as withSharedDrainBudget, Kt as refactorMarkerRefusalMessage, Ku as buildDenyExternalAccessPolicy, Lc as malformedLocalResourceEntriesWarning, Li as withStackRecords, Ll as hasReadableResources, Ln as noEchoValueMacsOf, Lo as isWaitAbandonedError, Lr as planRollback, Ls as recordedReferenceRegions, Lu as AssetManifestLoader, M as PROTECTION_PROPERTY_BY_TYPE, Mc as refuseMalformedOrphansForOrphan, Mi as DEFAULT_RESOURCE_WARN_AFTER_MS, Ml as withheldAccountClause, Mn as NOECHO_MAC_KEY_ALIAS, Mo as deleteIndeterminateGuards, N as isProtectionValueActive, Nc as repairMalformedOrphanRecordsForReadOnly, Ni as maskingRetryLogger, Nl as STATE_RESOURCES_MALFORMED, Nn as createNoEchoValueMacs, No as deleteLeftInPlace, Nr as ledgerForStack, Ns as keepHeldTokenProvenance, Nu as loadPublishableAssetManifest, O as serviceTokenBlockingReason, Oa as unsupportedFinalSnapshotError, Oc as malformedOrphanRowsKeptWarning, Oi as collectPublishedOutputNames, Ol as refuseMalformedState, On as planOrphanAdoption, Or as updatePartialMessage, Os as lacksRecordedRefArn, Ou as createAssetRedirectResolver, P as perType, Pc as unpreviewableOrphanRecords, Pl as UNREADABLE_RESOURCES_MAP_ROW, Pn as noEchoMacBinding, Po as deleteSkipReason, Qa as CC_BROKEN_REASON, Qi as cyan, Ql as readOnlyStateVersionOf, Qn as mappingPairs, Qo as producerLookupOver, Qu as validateAssetBucketName, Ra as LAMBDA_PERMISSION_STATEMENT_KEYS, Rc as malformedLocalResourcesWarning, Ri as deleteSupersededEntry, Rl as findActionableSdkUnwired, Rn as constructPathOf$1, Rr as seedsDeleteFirstGuard, Ru as getDockerImageBySourceHash, S as hasPendingMovesOut, Sa as PRE_DELETE_SNAPSHOT_TYPES, Sc as declaresNoEcho, Si as carriedExportAliasExposure, Sl as malformedRenderedContainersWarning, Sn as isHandledOrphan, So as withCustomResourceStack, Sr as withUnprovenUnsettled, Ss as isUnboundTemplateParameter, Su as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, T as refusePendingMovesOut, Ta as effectiveDeletionPolicy, Tc as isReadableOrphanRecord, Ti as isWholeDynamicReferenceValue, Tl as refuseMalformedResourcesForDeploy, Tn as sameJournaledOrphans, Tr as equalModuloMask, Ts as cfnRefValueFromPhysicalId, Ua as efsPolicyMatchesDeclared, Uc as refuseMalformedResourceEntriesForDeploy, Ui as supersededHolderOf, Un as movedToHint, Uo as stackIdTailOf, Ur as recheckFailedPlan, Us as isNamelessDynamicReferenceError, Ut as readRefactorMarker, Va as declaredMemberDocument, Vc as refuseMalformedResourceAttributesForOrphan, Vi as supersededAfterRollback, Vl as unwrittenCreateOnlyReplacement, Vn as findRefactorHints, Vo as isAlwaysLiveAttribute, Vr as isReplacementOrphan, Vs as isImpossibleEmptyStoredAttribute, Vt as keptForRetainedRecord, Wa as lambdaPermissionMatchesDeclared, Wc as refuseMalformedResourceEntriesForDestroy, Wi as supersededResourcesOf, Wn as rollbackOrphanIds, Wr as recordUnderIdIsNotOwn, Ws as carriesDynamicReference, Wt as readRefactorMarkerOnce, Wu as AssetModeResolver, Xc as malformedDriftResourcePropertiesWarning, Xi as findNestedStackTypeChanges, Xl as splitImportedOps, Xn as isPairableType, Xo as withSecretPhysicalIdsMaskedInState, Xt as macWriteOnlyKeys, Xu as parseBootstrapMarker, Yc as unreadableResourceEntries, Yi as withPreviousPolicies, Yl as S3StateBackend, Yn as differingRemedy, Yo as secretSegmentsOfState, Yr as readsRegeneratingSecret, Yt as updateRefactorMarker, Yu as getBootstrapMarkerKey, Z as declaredTagsReadback, Zc as malformedResourcePropertiesWarning, Zi as bold, Zn as looselyEqual, Zo as resolveDynamicReferences, Zr as isRedactedRecordedValue, Zt as readsOnlyNoEchoParameters, Zu as readBootstrapMarkerBody, _ as conditionFingerprint, _a as secretNamedRecordNeedles, _c as maskedPropertyFingerprintsOf, _i as displayTextOrWithheld, _l as refuseMalformedOutputs, _n as getCurrentNestedStackContext, _o as customResourcesFailedWithoutApp, _r as replayRollback, _u as renderNestedTemplateTreeDefect, a as scanActiveConsumers, aa as noEchoExactEchoLeavesOf, ac as isStatefulRecreateTargetForReplace, ad as hasPlainPrototype, ai as nameScopeOf, al as hasReadableOrphans, an as resolvePendingCloudControlRequests, ar as recordedRuleIdOf, as as parseIamRoleArn, au as crossPrefixDeniedWarning, b as readRecordedConditionVerdicts, ba as extractDeploymentEventError, bc as maskedInputProof, bi as secretBearingStateKeyWarning, bl as STATE_REGION_DIVERGED, bn as dropFailedCommands, br as recordAfterRollbackUpdate, c as nestedSsmNameDeferredNote, ca as createReadOnlyAttributeHealerFactory, ci as retiredNameGenerationsLeaving, cl as refuseMalformedOrphans, cn as displacedPhysicalIdShown, co as customResourceResponseExpirationWarning, cs as applyCallerIdentityCredentials, cu as stackInstanceIdOf, d as slashedSsmNameHealAdoptedNote, da as maskEventTextWithBoundBags, dd as displayAssemblyPath, di as inheritProducerRegions, dl as malformedExportNamesWarning, dn as nestedChildStackName$1, do as readsNoEchoDeleteValues, ds as classifyRecordedSecretRegion, du as isSensitiveAttributeName, ea as green, ed as BOOTSTRAP_MARKER_PREFIX, ei as segmentCleanupOptions, el as refuseMalformedResourcePropertiesForDrift, eo as ccBrokenReason, er as propertiesChangedReason, es as applyRoleArnIfSet, eu as hasUnverifiableParameterRefusal, f as slashedSsmNameHealNote, fa as namingSecretsWithRecordedNoEcho, fi as computeParameterTaint, fl as malformedExportSourceWarning, fn as recordDisplacedSkips, fo as isCustomResourceType$1, fr as cfnIngressPortValue, fs as classifyReplaySecretRegion, g as makeCanonicalizePropertiesFn, gd as resolveBucketRegion, gi as WITHHELD_NAME_DISPLAY, gn as collectNestedChildUnaddressed, gr as replayFailedOperations, gu as listNestedTemplateRows, h as inheritedProvenanceForChildDiff, ha as secretNamePrintingBags, hc as tryGetTopLevelWriteOnlyProperties, hi as resourcesNamingDeclaredParameter, hl as malformedOutputsWarning, hn as withNestedRevertRun, ho as NO_LOCAL_CUSTOM_RESOURCES_FLAG, hr as canonicalizeIpProtocolValue, hs as isUnexposedRecordedIdentity, hu as isAbsoluteAssetPath, i as mergeNoChangeOutputs, ia as noEchoComparisonForTemplate, ic as MULTI_REGION_RECREATE_BLOCKED_TYPES, id as hasOwnKey, ii as nameGenerationHighWaterOf, il as UNREADABLE_ORPHANS_CONTAINER_ROW, in as pendingRequestCount, ir as stripSiblingOwnedParentMembers, is as isIamRoleArn, iu as applyCrossPrefixScan, j as recordedProtectionNote, jc as refuseMalformedOrphanRecordsForDestroy, ji as DEFAULT_RESOURCE_TIMEOUT_MS, jl as accountArgs, jn as crossStackReadsForPartialSave, jo as UNSPECIFIED_SKIP_REASON, jr as replacementCreateRoutesToCloudControl, k as diffSecurity, ka as createPreDeleteFinalSnapshot, kc as previewableOrphanRecords, ki as isExportAliasCollision, kl as repairMalformedResourcesForReadOnly, kn as DeploymentEventsReader, ko as differingIdentityWarning, kr as updatePartialReason, ks as lacksRecordedTableArn, ku as createLazyAssetModeContext, l as nestedSsmNameRowNote, la as completedReplayEntries, li as withNameGenerationReached, ll as refuseMalformedOrphansForDestroy, ln as dropSettledNestedJournals, lr as siblingRecordedSgRuleIds, ls as callerEnvCredentials, lu as withStackInstanceIdWithheld, m as crossStackOutputProvenanceSource, ma as secretNamePrintingBag, mc as getTopLevelKeysHoldingUnreadableCreateOnly, md as resolveAssemblyPath, mi as reachableDivergentParameters, ml as malformedOutputsRefusalMessage, mn as revertedNestedRowIds, mo as withPrintingSecrets, mr as sgProtocolKey, ms as regionLessSecretName, mu as findNestedTemplateTreeDefect, n as isSecretBearingReferenceString, na as yellow, ni as orphanNeedsIdentity, nl as refuseMalformedResourcePropertiesForOrphan, no as wouldReturnToSdkProvider, nr as referencedLogicalIds, ns as assertSendableRoleArn, nu as CrossPrefixReadError, o as inRunStackKey, oa as noEchoParameterNamesOf, oc as isStatefulRecreateTargetSync, od as nullPrototypeRecord, oi as retiredAfterRollback, ol as malformedOrphansRefusalMessage, on as NESTED_PENDING_PARENT_REASON, oo as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, or as sgRuleOwnershipIdentity, os as sendableAssumeRoleCommand, ou as isAccessDenied, p as slashedSsmNameHealPendingNote, pa as orphanRecordsPrintingBag, pc as getSettledWriteOnlyPropertyPaths, pd as renderAssemblyPathEscape, pi as namesAnyDeclaredParameter, pl as malformedLocalOutputsWarning, pr as recordedSgRuleId, ps as producerRegionsFromState, q as streamPolicyMatchesDeclared, qa as reReadUntilSettled, qc as refuseMalformedResourceEntriesForOrphan, qi as snapshotSegmentSurvivors, ql as PROPERTY_COVERAGE_BY_TYPE, qn as changedReferencePath, qr as computeImplicitDeleteEdges, qt as refuseRefactorMarker, qu as assertAssetBucketRegion, r as keptWholeReasonText, ra as noEchoAttributeNamesOf, rc as shownType, rd as defineOwnKey, ri as nameGenerationCarriedFrom, rl as repairMalformedResourcePropertiesForReadOnly, rr as siblingOwnedRevertDesired, rs as explicitRoleArnOrThrow, ru as CrossPrefixScanCache, s as checkNestedSsmNames, sa as withAttemptedItemsMasked, sc as renderStatefulReason, sd as ownValue, si as retiredNameGenerationsAfter, sl as malformedOrphansWarning, sn as displacedOpClause, so as applyCustomResourceResponseExpiration, sr as sgSiblingDecidedById, ss as AWS_CREDENTIAL_ENV_KEYS, su as isNotImplemented, t as DeployEngine, ta as red, tc as findReplacedReadersOfRecreateTargets, ti as removeProtectionTypeList, tl as refuseMalformedResourcePropertiesForExport, to as isCustomResource, tr as proposeRenames, ts as assertFlagRoleArn, tt as tagsMatchDeclared, tu as rebuildClientForBucketRegion, u as healSlashedSsmParameterNames, ua as journaledOrphanPrintingBag, ud as describeFileReadFailure, ul as repairMalformedOrphansForReadOnly, uo as TemplateNoEchoReresolver, us as envCredentialsAreAssumedRole, uu as isSecretValuedAttribute, v as conditionInputsFrom, va as stateSecretNameNeedles, vi as exportAliasCollisionScrubWarning, vl as refuseMalformedOutputsForDestroy, vn as withNestedStackContext, vo as customResourcesRunWithoutApp, vr as DELETED_RESOURCE_REMEDY, vu as templateIdentity, w as pendingMovesRefusalMessage, wa as ccRoutedInstanceTakesNoSnapshot, wc as deployRefusesOrphanRowsReason, wi as exportNameSecretExposure, wl as malformedStateRefusalMessage, wn as loadJournaledOrphans, wo as CloudControlProvider, wr as equalModuloMarkedMask, ws as AWS_NO_VALUE, wu as decodeListingKey, x as childTemplateLoader, xa as ATOMIC_FINAL_SNAPSHOT_TYPES, xi as secretSafeKeyDisplay, xl as refuseDivergentRecordRegionForDestroy, xn as dropFailedHint, xo as setLocalCustomResourceRuntimeEnabled, xr as settleUnsettledPrevious, xs as coerceParameterTypedValue, xu as ssmResolvedValueType, y as parentSuppliedValues, ya as storedSecretNameNeedles, yc as parameterInputsFor, yi as secretBearing, yl as repairMalformedOutputsForReadOnly, yn as deleteJournaledOrphans, yo as localCustomResourceCommand, yr as buildReadCurrentStateContext, zc as malformedResourceEntriesWarning, zi as holdsSupersededResources, zl as findHandledUnwrittenCreateOnly, zn as findDestructiveChanges, zo as IntrinsicFunctionResolver, zr as demoteSupersededOrphans } from "./deploy-engine-T1iXkB24.js";
|
|
8
|
+
import { $ as CFN_TEMPLATE_BODY_LIMIT, A as isDockerClientEnvKey, B as getLegacyStateBucketName, C as redactedCause, D as finchSecretArgvRefusal, E as dockerSpawnEnvWithSensitive, F as runDockerStreaming, G as resolveSkipPrefix, H as resolveApp, I as abortInFlightMultipartUploads, J as resolveStateBucketWithSource, K as resolveStateBucketWithDefault, L as Synthesizer, M as formatDockerLoginError, N as getDockerCmd, O as partitionSensitiveEnv, P as runDockerForeground, Q as warnDeprecatedNoPrefixCliFlag, R as synthesisStatusMessage, S as describeDockerFailure, T as redactDockerArgvValues, U as resolveAutoAssetStorage, V as loadCdkJson, W as resolveCaptureObservedState, X as resolveUseCdkBootstrapAssets, Y as resolveUpdatePolicy, Z as stateBucketExistenceConfirmed, _ as WorkGraph, at as AssemblyReader, ct as createLegacyAssetParameterBinder, dt as prepareLegacyStackAssets, et as CFN_TEMPLATE_URL_LIMIT, ft as CdkToolkitBucketMissingError, g as AssetPublisher, h as isLockInfoExpired, i as mergeDeclaredEntries, it as refuseFailedLookups, j as isMalformedEnvKey, k as warnFinchArgvExposure, l as DiffCalculator, lt as legacyPlanAssetCount, m as LockManager, mt as setChildProcessAwsEnv, n as declaredStringList, nt as findLargeInlineResources, ot as StageLoadError, p as DagBuilder, pt as processStackMessages, q as resolveStateBucketWithDefaultAndSource, r as inlinePoliciesAreDeclared, rt as uploadCfnTemplate, s as stringListIsDeclared, st as bindLegacyStackAssetParameters, t as declaredInlinePolicies, tt as MIGRATE_TMP_PREFIX, u as LEGACY_HANDLE_HEAL_REASON, ut as predictedAutoCreatedAssetMode, v as buildDockerImage, w as redactedDockerCause, x as describeDockerExecFailure, y as resolveDockerContextDirectory, z as getDefaultStateBucketName } from "./settle-own-write-members-DmDIpP0O.js";
|
|
9
|
+
import { $a as CC_BROKEN_REASON, $i as gray, $l as readOnlyStateVersionOf, $n as parseMappingFile, $o as producerLookupOver, $t as formatResourceLine, $u as validateAssetBucketName, A as recordedProtectionEvidence, Aa as buildFinalSnapshotIdentifier, Ac as previewableOrphanRecords, Ai as bindingSkippedOutputs, Al as repairMalformedResourcesForReadOnly, An as DeploymentEventsStore, Ao as differingIdentityWarning, Ar as findUpdatePolicyReplacementRefusals, As as lacksRecordedTableArn, Au as createLazyAssetModeContext, Bc as malformedResourceEntriesWarning, Bi as isSupersededResourceRecord, Bl as findHandledUnwrittenCreateOnly, Bn as formatDestructiveChange, Bo as IntrinsicFunctionResolver, Br as isJournaledOrphan, C as pendingMovesOutOf, Ca as ccRoutedFinalSnapshotError, Cc as declaresNoEcho, Ci as exportNameNoEchoParameters, Cl as malformedRenderedContainersWarning, Cn as journaledOrphanLines, Co as withCustomResourceStack, Cr as withUnprovenUnsettled, Cs as isUnboundTemplateParameter, Cu as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, D as findServiceTokenRefusals, Da as refusesFinalSnapshot, Dc as malformedOrphanRecordsRefusalMessage, Di as collectDeclaredOutputNames, Dl as refuseMalformedResourcesForDestroy, Dn as makeSiblingClaimReader, Dr as undeclaredEmptyObservedKeys, Ds as isStalePlaceholderArnAttribute, E as deferredServiceTokenWarning, Ea as isFinalSnapshotError, Ec as isReadableOrphanRecord, Ei as noEchoParameterValueSeed, El as refuseMalformedResourcesForDeploy, En as makeForeignHolderScan, Er as equalModuloMask, Es as cfnRefValueFromPhysicalId, F as readProtection, Fc as unpreviewableOrphanRecords, Fi as destroyStackRecordsView, Fl as UNREADABLE_RESOURCES_MAP_ROW, Fn as noEchoMacParametersOf, Fo as deleteSkipReason, Fr as withCreateTokenLedger, Ga as memberReadFailure, Gc as refuseMalformedResourceEntriesForDestroy, Gi as withoutSuperseded, Gn as withMovedTo, Gr as replacementNeverSwapped, Gs as carriesDynamicReference, Gt as refactorMarkerMovesOf, Gu as AssetModeResolver, H as readStreamPolicy, Ha as declaredPolicyDocument, Hc as refuseMalformedResourceAttributesForOrphan, Hi as supersededHeldByOtherTypeWarning, Hl as unwrittenCreateOnlyReplacement, Hn as hintSidesOf, Ho as isAlwaysLiveAttribute, Hr as planFailedOps, Hs as isImpossibleEmptyStoredAttribute, Ht as recordRetainedForReadoption, Ic as unreadableOrphanRecords, Il as displayLogicalId, In as noEchoMacVerdict, Is as recordedOutputReferenceRegions, Jc as refuseMalformedResourceEntriesForOrphan, Ji as resolveReplacementOldType, Jl as PROPERTY_COVERAGE_BY_TYPE, Jn as changedReferenceReason, Jr as attemptUsesCompletedCreate, Jt as sameMove, Ju as assertAssetBucketRegion, Ka as policyDocumentMatchesDeclared, Kc as refuseMalformedResourceEntriesForImport, Kl as NO_CC_HANDLERS_REASON, Kn as changedReferenceInDiff, Kr as IMPLICIT_DELETE_DEPENDENCIES, Ks as keepsSecretReferenceToken, Kt as refactorMarkerRefusalMessage, Ku as ensureAssetStorage, Lc as isReadableResourceEntry, Li as withStackRecords, Ll as hasReadableOutputs, Ln as noEchoValueMacsOf, Lo as getReadOnlyPropertyPaths, Lr as planRollback, Lu as rewriteTemplateAssetReferences, M as PROTECTION_PROPERTY_BY_TYPE, Mc as refuseMalformedOrphanRecordsForDestroy, Mi as DEFAULT_RESOURCE_WARN_AFTER_MS, Ml as accountArgs, Mn as NOECHO_MAC_KEY_ALIAS, Mo as UNSPECIFIED_SKIP_REASON, N as isProtectionValueActive, Nc as refuseMalformedOrphansForOrphan, Ni as maskingRetryLogger, Nl as withheldAccountClause, Nn as createNoEchoValueMacs, No as deleteIndeterminateGuards, Nr as ledgerForStack, O as serviceTokenBlockingReason, Oa as unsupportedFinalSnapshotError, Oc as malformedOrphanRecordsWarning, Oi as collectPublishedOutputNames, Ol as refuseMalformedResourcesForExport, On as planOrphanAdoption, Or as updatePartialMessage, Os as refStateLookupFromResource, Ou as buildAssetRedirectMap, P as perType, Pc as repairMalformedOrphanRecordsForReadOnly, Pl as STATE_RESOURCES_MALFORMED, Pn as noEchoMacBinding, Po as deleteLeftInPlace, Ps as keepHeldTokenProvenance, Pu as loadPublishableAssetManifest, Qc as malformedResourcePropertiesWarning, Qi as cyan, Qn as mappingPairs, Qo as resolveDynamicReferences, Qu as readBootstrapMarkerBody, Ra as LAMBDA_PERMISSION_STATEMENT_KEYS, Rc as malformedLocalResourceEntriesWarning, Ri as deleteSupersededEntry, Rl as hasReadableResources, Rn as constructPathOf$1, Ro as isWaitAbandonedError, Rr as seedsDeleteFirstGuard, Rs as recordedReferenceRegions, Ru as AssetManifestLoader, S as hasPendingMovesOut, Sa as PRE_DELETE_SNAPSHOT_TYPES, Si as carriedExportAliasExposure, Sl as refuseDivergentRecordRegionForDestroy, Sn as isHandledOrphan, So as setLocalCustomResourceRuntimeEnabled, Sr as settleUnsettledPrevious, Ss as coerceParameterTypedValue, Su as ssmResolvedValueType, T as refusePendingMovesOut, Ta as effectiveDeletionPolicy, Tc as deployRefusesOrphanRowsReason, Ti as isWholeDynamicReferenceValue, Tl as malformedStateRefusalMessage, Tn as sameJournaledOrphans, To as CloudControlProvider, Tr as equalModuloMarkedMask, Ts as AWS_NO_VALUE, Tu as decodeListingKey, Ua as efsPolicyMatchesDeclared, Uc as refuseMalformedResourceEntries, Ui as supersededHolderOf, Un as movedToHint, Uo as poisonRenderedSpellingsCollidingIn, Ur as recheckFailedPlan, Us as carriesFetchableDynamicReference, Ut as readRefactorMarker, Va as declaredMemberDocument, Vc as malformedScrubResourceEntriesRefusalMessage, Vi as supersededAfterRollback, Vn as findRefactorHints, Vo as isSelectOutOfBounds, Vr as isReplacementOrphan, Vs as getAccountInfo, Vt as keptForRetainedRecord, Wa as lambdaPermissionMatchesDeclared, Wc as refuseMalformedResourceEntriesForDeploy, Wi as supersededResourcesOf, Wn as rollbackOrphanIds, Wo as stackIdTailOf, Wr as recordUnderIdIsNotOwn, Ws as isNamelessDynamicReferenceError, Wt as readRefactorMarkerOnce, Xa as verbatimEchoDriftKeys, Xc as unreadableResourceEntries, Xi as findNestedStackTypeChanges, Xl as S3StateBackend, Xn as isPairableType, Xo as secretSegmentsOfState, Xt as macWriteOnlyKeys, Xu as getBootstrapMarkerKey, Yc as repairMalformedResourceEntriesForReadOnly, Yi as withPreviousPolicies, Yl as TemplateParser, Yn as differingRemedy, Yo as secretPhysicalIdSegment, Yr as readsRegeneratingSecret, Ys as INTRINSIC_KEYS, Yt as updateRefactorMarker, Yu as isCrossRegionRedirect, Z as declaredTagsReadback, Zc as malformedDriftResourcePropertiesWarning, Zi as bold, Zl as splitImportedOps, Zn as looselyEqual, Zo as withSecretPhysicalIdsMaskedInState, Zr as isRedactedRecordedValue, Zt as readsOnlyNoEchoParameters, Zu as parseBootstrapMarker, _ as conditionFingerprint, _a as secretNamedRecordNeedles, _d as resolveBucketRegion, _i as displayTextOrWithheld, _n as getCurrentNestedStackContext, _r as replayFailedOperations, _u as listNestedTemplateRows, a as scanActiveConsumers, aa as noEchoExactEchoLeavesOf, ac as MULTI_REGION_RECREATE_BLOCKED_TYPES, ad as hasOwnKey, ai as nameScopeOf, al as UNREADABLE_ORPHANS_CONTAINER_ROW, an as resolvePendingCloudControlRequests, ar as undeclaredGrantSiblingMembers, as as isIamRoleArn, au as applyCrossPrefixScan, b as readRecordedConditionVerdicts, ba as extractDeploymentEventError, bc as parameterInputsFor, bi as secretBearingStateKeyWarning, bl as repairMalformedOutputsForReadOnly, bn as dropFailedCommands, bo as localCustomResourceCommand, br as buildReadCurrentStateContext, c as nestedSsmNameDeferredNote, ca as createReadOnlyAttributeHealerFactory, cc as renderStatefulReason, cd as ownValue, ci as retiredNameGenerationsLeaving, cl as malformedOrphansWarning, cn as displacedPhysicalIdShown, co as applyCustomResourceResponseExpiration, cr as sgSiblingDecidedById, cs as AWS_CREDENTIAL_ENV_KEYS, cu as isNotImplemented, d as slashedSsmNameHealAdoptedNote, da as maskEventTextWithBoundBags, dd as describeFileReadFailure, di as inheritProducerRegions, dl as repairMalformedOrphansForReadOnly, dn as nestedChildStackName$1, do as TemplateNoEchoReresolver, ds as envCredentialsAreAssumedRole, du as isSecretValuedAttribute, ea as green, ed as validateContainerRepoName, ei as segmentCleanupOptions, el as refuseMalformedResourcePropertiesForDestroy, eo as ProviderRegistry, er as propertiesChangedReason, es as refuseUnreadableCdkCrossAccountRefs, eu as hasReasonlessBaselineRefusal, f as slashedSsmNameHealNote, fa as namingSecretsWithRecordedNoEcho, fd as displayAssemblyPath, fi as computeParameterTaint, fl as malformedExportNamesWarning, fn as recordDisplacedSkips, fo as readsNoEchoDeleteValues, fs as classifyRecordedSecretRegion, fu as isSensitiveAttributeName, g as makeCanonicalizePropertiesFn, gc as tryGetTopLevelWriteOnlyProperties, gi as WITHHELD_NAME_DISPLAY, gl as malformedOutputsWarning, gn as collectNestedChildUnaddressed, go as NO_LOCAL_CUSTOM_RESOURCES_FLAG, gr as canonicalizeIpProtocolValue, gs as isUnexposedRecordedIdentity, gu as isAbsoluteAssetPath, h as inheritedProvenanceForChildDiff, ha as secretNamePrintingBags, hc as getTopLevelKeysHoldingUnreadableCreateOnly, hd as resolveAssemblyPath, hi as resourcesNamingDeclaredParameter, hl as malformedOutputsRefusalMessage, hn as withNestedRevertRun, ho as withPrintingSecrets, hr as sgProtocolKey, hs as regionLessSecretName, hu as findNestedTemplateTreeDefect, i as mergeNoChangeOutputs, ia as noEchoComparisonForTemplate, ic as shownType, id as defineOwnKey, ii as nameGenerationHighWaterOf, il as repairMalformedResourcePropertiesForReadOnly, in as pendingRequestCount, ir as stripSiblingOwnedParentMembers, is as explicitRoleArnOrThrow, iu as CrossPrefixScanCache, j as recordedProtectionNote, jc as refuseMalformedOrphanRecords, ji as DEFAULT_RESOURCE_TIMEOUT_MS, jl as JSON_LISTING_HOLE_VALUE, jn as crossStackReadsForPartialSave, jo as RollbackInlinePolicyWriters, jr as replacementCreateRoutesToCloudControl, k as diffSecurity, ka as createPreDeleteFinalSnapshot, kc as malformedOrphanRowsKeptWarning, ki as isExportAliasCollision, kl as refuseMalformedState, kn as DeploymentEventsReader, kr as updatePartialReason, ks as lacksRecordedRefArn, ku as createAssetRedirectResolver, l as nestedSsmNameRowNote, la as completedReplayEntries, li as withNameGenerationReached, ll as refuseMalformedOrphans, ln as dropSettledNestedJournals, lo as customResourceResponseExpirationWarning, ls as applyCallerIdentityCredentials, lu as stackInstanceIdOf, m as crossStackOutputProvenanceSource, ma as secretNamePrintingBag, mc as getSettledWriteOnlyPropertyPaths, md as renderAssemblyPathEscape, mi as reachableDivergentParameters, ml as malformedLocalOutputsWarning, mn as revertedNestedRowIds, mr as recordedSgRuleId, ms as producerRegionsFromState, n as isSecretBearingReferenceString, na as yellow, nc as findReplacedReadersOfRecreateTargets, ni as orphanNeedsIdentity, nl as refuseMalformedResourcePropertiesForExport, no as isCustomResource, nr as referencedLogicalIds, ns as assertFlagRoleArn, nu as rebuildClientForBucketRegion, o as inRunStackKey, oa as noEchoParameterNamesOf, oc as isStatefulRecreateTargetForReplace, od as hasPlainPrototype, oi as retiredAfterRollback, ol as hasReadableOrphans, on as NESTED_PENDING_PARENT_REASON, or as recordedRuleIdOf, os as parseIamRoleArn, ou as crossPrefixDeniedWarning, p as slashedSsmNameHealPendingNote, pa as orphanRecordsPrintingBag, pi as namesAnyDeclaredParameter, pl as malformedExportSourceWarning, po as isCustomResourceType$1, pr as cfnIngressPortValue, ps as classifyReplaySecretRegion, q as streamPolicyMatchesDeclared, qa as reReadUntilSettled, qc as refuseMalformedResourceEntriesForImportSave, qi as snapshotSegmentSurvivors, ql as hasNoCloudControlHandlers, qn as changedReferencePath, qo as displayPhysicalId, qr as computeImplicitDeleteEdges, qs as withSharedDrainBudget, qt as refuseRefactorMarker, qu as buildDenyExternalAccessPolicy, r as keptWholeReasonText, ra as noEchoAttributeNamesOf, ri as nameGenerationCarriedFrom, rl as refuseMalformedResourcePropertiesForOrphan, ro as wouldReturnToSdkProvider, rr as siblingOwnedRevertDesired, rs as assertSendableRoleArn, ru as CrossPrefixReadError, s as checkNestedSsmNames, sa as withAttemptedItemsMasked, sc as isStatefulRecreateTargetSync, sd as nullPrototypeRecord, si as retiredNameGenerationsAfter, sl as malformedOrphansRefusalMessage, sn as displacedOpClause, so as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, sr as sgRuleOwnershipIdentity, ss as sendableAssumeRoleCommand, su as isAccessDenied, t as DeployEngine, ta as red, td as BOOTSTRAP_MARKER_PREFIX, ti as removeProtectionTypeList, tl as refuseMalformedResourcePropertiesForDrift, to as ccBrokenReason, tr as proposeRenames, ts as applyRoleArnIfSet, tt as tagsMatchDeclared, tu as hasUnverifiableParameterRefusal, u as healSlashedSsmParameterNames, ua as journaledOrphanPrintingBag, ul as refuseMalformedOrphansForDestroy, ur as siblingRecordedSgRuleIds, us as callerEnvCredentials, uu as withStackInstanceIdWithheld, v as conditionInputsFrom, va as stateSecretNameNeedles, vc as maskedPropertyFingerprintsOf, vi as exportAliasCollisionScrubWarning, vl as refuseMalformedOutputs, vn as withNestedStackContext, vo as customResourcesFailedWithoutApp, vr as replayRollback, vu as renderNestedTemplateTreeDefect, w as pendingMovesRefusalMessage, wa as ccRoutedInstanceTakesNoSnapshot, wc as maskedPropertyFingerprint, wi as exportNameSecretExposure, wl as malformedResourcesWarning, wn as loadJournaledOrphans, wr as calculateResourceDrift, ws as parameterTypeMayLoseSecretIdentity, x as childTemplateLoader, xa as ATOMIC_FINAL_SNAPSHOT_TYPES, xc as maskedInputProof, xi as secretSafeKeyDisplay, xl as STATE_REGION_DIVERGED, xn as dropFailedHint, xr as recordAfterRollbackUpdate, y as parentSuppliedValues, ya as storedSecretNameNeedles, yi as secretBearing, yl as refuseMalformedOutputsForDestroy, yn as deleteJournaledOrphans, yo as customResourcesRunWithoutApp, yr as DELETED_RESOURCE_REMEDY, yu as templateIdentity, zc as malformedLocalResourcesWarning, zi as holdsSupersededResources, zl as findActionableSdkUnwired, zn as findDestructiveChanges, zr as demoteSupersededOrphans, zu as getDockerImageBySourceHash } from "./deploy-engine-Bo8PtTbG.js";
|
|
10
10
|
import { n as canonicalizeRegion, r as derivePartitionAndUrlSuffix, t as PARTITION_TABLE } from "./aws-partition-DA0r2sr-.js";
|
|
11
|
-
import { C as prefetchCreateOnlyPropertyPaths, E as describeTypeWithThrottleRetry, J as parseFailureDebugDetail, K as describeJsonParseFailure, U as renderPhaseTimings, W as timePhase, X as utf8ByteLength, j as withRetry, l as setResolvedResourceTimeouts, w as templateResourceTypes, x as getCreateOnlyPropertyPaths, z as PhaseClock } 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 { C as prefetchCreateOnlyPropertyPaths, E as describeTypeWithThrottleRetry, J as parseFailureDebugDetail, K as describeJsonParseFailure, U as renderPhaseTimings, W as timePhase, X as utf8ByteLength, j as withRetry, l as setResolvedResourceTimeouts, w as templateResourceTypes, x as getCreateOnlyPropertyPaths, z as PhaseClock } from "./ec2-termination-protection-CRkl8_Wy.js";
|
|
12
|
+
import { t as expectedOwnerParam } from "./expected-bucket-owner-BjRKj3hF.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-DHIp8imD.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-JS1D0m-r.js";
|
|
15
|
+
import { S as unsettledPropertiesOf, T as withoutUnsettledProperties, b as unsettledItemsOf, w as withUnsettledProperties, y as unsettledItemsField } from "./restore-source-guard-BPEKIvrh.js";
|
|
16
|
+
import { a as parseEcrRegistryHost, i as looksLikeEcrHostWithForeignSuffix, n as hasEcrRegistryHostLabels, t as ecrRegistryHostPattern } from "./ecr-uri-DaIBuz4E.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";
|
|
@@ -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-D5IgG-fE.js");
|
|
1545
1545
|
return providerClasses;
|
|
1546
1546
|
}
|
|
1547
1547
|
function registerAllProviders(registry, classes) {
|
|
@@ -10232,6 +10232,117 @@ function canonicalizeIpProtocols(baseline, aws, resourceType) {
|
|
|
10232
10232
|
};
|
|
10233
10233
|
}
|
|
10234
10234
|
|
|
10235
|
+
// src/analyzer/drift-undeclared-grants.ts
|
|
10236
|
+
const UNDECLARED_GRANT_KEYS = {
|
|
10237
|
+
"AWS::IAM::Role": [
|
|
10238
|
+
"ManagedPolicyArns",
|
|
10239
|
+
"PermissionsBoundary",
|
|
10240
|
+
"Policies"
|
|
10241
|
+
],
|
|
10242
|
+
"AWS::IAM::User": [
|
|
10243
|
+
"Groups",
|
|
10244
|
+
"ManagedPolicyArns",
|
|
10245
|
+
"PermissionsBoundary",
|
|
10246
|
+
"Policies"
|
|
10247
|
+
],
|
|
10248
|
+
"AWS::IAM::Group": ["ManagedPolicyArns", "Policies"]
|
|
10249
|
+
};
|
|
10250
|
+
const BOUNDARY_KEY = "PermissionsBoundary";
|
|
10251
|
+
const NONE = [];
|
|
10252
|
+
function isPlainRecord$3(value) {
|
|
10253
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
10254
|
+
}
|
|
10255
|
+
function undeclaredGrantDriftKeys(resourceType, properties) {
|
|
10256
|
+
if (!hasOwnKey(UNDECLARED_GRANT_KEYS, resourceType)) return NONE;
|
|
10257
|
+
if (!isPlainRecord$3(properties)) return NONE;
|
|
10258
|
+
return UNDECLARED_GRANT_KEYS[resourceType].filter((key) => !hasOwnKey(properties, key));
|
|
10259
|
+
}
|
|
10260
|
+
function isUndeclaredGrantScalarKey(key) {
|
|
10261
|
+
return key === BOUNDARY_KEY;
|
|
10262
|
+
}
|
|
10263
|
+
function grantMemberIdentity(key, member) {
|
|
10264
|
+
if (key === "Policies") {
|
|
10265
|
+
const name = isPlainRecord$3(member) ? member["PolicyName"] : void 0;
|
|
10266
|
+
return typeof name === "string" ? name : void 0;
|
|
10267
|
+
}
|
|
10268
|
+
if (typeof member !== "string") return void 0;
|
|
10269
|
+
return key === "Groups" ? member.toLowerCase() : member;
|
|
10270
|
+
}
|
|
10271
|
+
function isNoBoundary(value) {
|
|
10272
|
+
return value === void 0 || value === null || value === "";
|
|
10273
|
+
}
|
|
10274
|
+
function withUndeclaredGrantBaseline(baseline, aws, keys, siblingRecorded = {}) {
|
|
10275
|
+
let out = baseline;
|
|
10276
|
+
const set = (key, value) => {
|
|
10277
|
+
if (out === baseline) out = { ...baseline };
|
|
10278
|
+
defineOwnKey(out, key, value);
|
|
10279
|
+
};
|
|
10280
|
+
for (const key of keys) {
|
|
10281
|
+
if (!hasOwnKey(aws, key)) continue;
|
|
10282
|
+
if (isUndeclaredGrantScalarKey(key)) {
|
|
10283
|
+
if (!hasOwnKey(baseline, key)) set(key, "");
|
|
10284
|
+
continue;
|
|
10285
|
+
}
|
|
10286
|
+
const live = aws[key];
|
|
10287
|
+
if (!Array.isArray(live)) continue;
|
|
10288
|
+
const recorded = hasOwnKey(baseline, key) ? baseline[key] : [];
|
|
10289
|
+
if (!Array.isArray(recorded)) continue;
|
|
10290
|
+
const byId = /* @__PURE__ */ new Map();
|
|
10291
|
+
for (const member of [...siblingRecorded[key] ?? [], ...recorded]) {
|
|
10292
|
+
const id = grantMemberIdentity(key, member);
|
|
10293
|
+
if (id !== void 0 && !byId.has(id)) byId.set(id, member);
|
|
10294
|
+
}
|
|
10295
|
+
const projected = [];
|
|
10296
|
+
for (const member of live) {
|
|
10297
|
+
const id = grantMemberIdentity(key, member);
|
|
10298
|
+
if (id === void 0 || !byId.has(id)) continue;
|
|
10299
|
+
projected.push(typeof member === "string" ? member : byId.get(id));
|
|
10300
|
+
byId.delete(id);
|
|
10301
|
+
}
|
|
10302
|
+
if (!(hasOwnKey(baseline, key) && projected.length === recorded.length && projected.every((m, i) => m === recorded[i]))) set(key, projected);
|
|
10303
|
+
}
|
|
10304
|
+
return out;
|
|
10305
|
+
}
|
|
10306
|
+
function undeclaredGrantIgnorePaths(baseline, aws, keys) {
|
|
10307
|
+
return keys.filter((key) => {
|
|
10308
|
+
if (hasOwnKey(aws, key)) return false;
|
|
10309
|
+
if (isUndeclaredGrantScalarKey(key)) return !hasOwnKey(baseline, key) || isNoBoundary(baseline[key]);
|
|
10310
|
+
return true;
|
|
10311
|
+
});
|
|
10312
|
+
}
|
|
10313
|
+
function withoutUndeclaredNoBoundary(desired, keys) {
|
|
10314
|
+
const absent = keys.filter((key) => isUndeclaredGrantScalarKey(key) && isNoBoundary(desired[key]));
|
|
10315
|
+
if (absent.length === 0) return {
|
|
10316
|
+
desired,
|
|
10317
|
+
absent
|
|
10318
|
+
};
|
|
10319
|
+
const out = { ...desired };
|
|
10320
|
+
for (const key of absent) delete out[key];
|
|
10321
|
+
return {
|
|
10322
|
+
desired: out,
|
|
10323
|
+
absent
|
|
10324
|
+
};
|
|
10325
|
+
}
|
|
10326
|
+
function removedGrantMembers(key, awsValue, stateValue) {
|
|
10327
|
+
if (isUndeclaredGrantScalarKey(key)) return !isNoBoundary(awsValue) && isNoBoundary(stateValue) ? [{
|
|
10328
|
+
key,
|
|
10329
|
+
member: awsValue
|
|
10330
|
+
}] : [];
|
|
10331
|
+
if (!Array.isArray(awsValue)) return [];
|
|
10332
|
+
const kept = new Set((Array.isArray(stateValue) ? stateValue : []).map((m) => grantMemberIdentity(key, m)));
|
|
10333
|
+
const out = [];
|
|
10334
|
+
for (const m of awsValue) {
|
|
10335
|
+
const id = grantMemberIdentity(key, m);
|
|
10336
|
+
if (id !== void 0 && kept.has(id)) continue;
|
|
10337
|
+
const name = key === "Policies" && isPlainRecord$3(m) ? m["PolicyName"] : void 0;
|
|
10338
|
+
out.push({
|
|
10339
|
+
key,
|
|
10340
|
+
member: typeof name === "string" ? name : m
|
|
10341
|
+
});
|
|
10342
|
+
}
|
|
10343
|
+
return out;
|
|
10344
|
+
}
|
|
10345
|
+
|
|
10235
10346
|
// src/provisioning/providers/s3-bucket/shared.ts
|
|
10236
10347
|
function manualBucketDeletionClause(bucketName, maskSecrets, journaled) {
|
|
10237
10348
|
const command = renderDisableCommand({
|
|
@@ -10887,6 +10998,57 @@ function sgSettleRuleKey(rule, direction) {
|
|
|
10887
10998
|
d: present(rule["Description"])
|
|
10888
10999
|
});
|
|
10889
11000
|
}
|
|
11001
|
+
function sgRemovalRuleKey(rule, direction) {
|
|
11002
|
+
return sgSettleRuleKey({
|
|
11003
|
+
...rule,
|
|
11004
|
+
Description: void 0
|
|
11005
|
+
}, direction);
|
|
11006
|
+
}
|
|
11007
|
+
function sgRemovedNotDeclared(removed, declared, direction) {
|
|
11008
|
+
const keep = /* @__PURE__ */ new Set();
|
|
11009
|
+
const namedPeerPorts = /* @__PURE__ */ new Set();
|
|
11010
|
+
for (const rule of declared) {
|
|
11011
|
+
if (typeof rule !== "object" || rule === null) continue;
|
|
11012
|
+
const key = sgRemovalRuleKey(rule, direction);
|
|
11013
|
+
keep.add(key);
|
|
11014
|
+
if (key !== void 0) continue;
|
|
11015
|
+
const asPeer = sgRemovalRuleKey({
|
|
11016
|
+
...rule,
|
|
11017
|
+
SourceSecurityGroupName: void 0,
|
|
11018
|
+
SourceSecurityGroupId: "named"
|
|
11019
|
+
}, direction);
|
|
11020
|
+
const ports = asPeer === void 0 ? void 0 : protocolAndPorts(asPeer);
|
|
11021
|
+
if (ports !== void 0) namedPeerPorts.add(ports);
|
|
11022
|
+
}
|
|
11023
|
+
return new Set([...removed ?? []].filter((key) => {
|
|
11024
|
+
if (keep.has(key)) return false;
|
|
11025
|
+
if (namedPeerPorts.size === 0) return true;
|
|
11026
|
+
let parsed;
|
|
11027
|
+
try {
|
|
11028
|
+
parsed = JSON.parse(key);
|
|
11029
|
+
} catch {
|
|
11030
|
+
return false;
|
|
11031
|
+
}
|
|
11032
|
+
return !(parsed.peer !== null && namedPeerPorts.has(protocolAndPorts(key) ?? ""));
|
|
11033
|
+
}));
|
|
11034
|
+
}
|
|
11035
|
+
function protocolAndPorts(key) {
|
|
11036
|
+
try {
|
|
11037
|
+
const { p, f, t } = JSON.parse(key);
|
|
11038
|
+
return JSON.stringify([
|
|
11039
|
+
p,
|
|
11040
|
+
f,
|
|
11041
|
+
t
|
|
11042
|
+
]);
|
|
11043
|
+
} catch {
|
|
11044
|
+
return;
|
|
11045
|
+
}
|
|
11046
|
+
}
|
|
11047
|
+
function sgRuleIsRemoved(rule, gone, direction) {
|
|
11048
|
+
if (gone.size === 0 || typeof rule !== "object" || rule === null) return false;
|
|
11049
|
+
const key = sgRemovalRuleKey(rule, direction);
|
|
11050
|
+
return key !== void 0 && gone.has(key);
|
|
11051
|
+
}
|
|
10890
11052
|
function declaredSgRulesRead(value, declared, direction) {
|
|
10891
11053
|
if (!Array.isArray(value)) return false;
|
|
10892
11054
|
const have = value.map((rule) => typeof rule === "object" && rule !== null ? sgSettleRuleKey(rule, direction) : void 0);
|
|
@@ -10938,6 +11100,16 @@ function mergeDeclaredSgRules(read, declared, direction) {
|
|
|
10938
11100
|
return key !== void 0 && keyOf(entry) === key;
|
|
10939
11101
|
}, (want) => typeof want === "object" && want !== null ? sgRuleReadbackShape(want, direction) : void 0);
|
|
10940
11102
|
}
|
|
11103
|
+
function sgRuleListMember(key, direction, declared, revoked, reorder, read) {
|
|
11104
|
+
const gone = sgRemovedNotDeclared(revoked, declared, direction);
|
|
11105
|
+
return {
|
|
11106
|
+
key,
|
|
11107
|
+
declared,
|
|
11108
|
+
matches: (value) => declaredSgRulesRead(value, declared, direction) && !value.some((rule) => sgRuleIsRemoved(rule, gone, direction)),
|
|
11109
|
+
whenUnsettled: (newest) => reorder(mergeDeclaredSgRules(newest, declared, direction).filter((rule) => !sgRuleIsRemoved(rule, gone, direction))),
|
|
11110
|
+
read
|
|
11111
|
+
};
|
|
11112
|
+
}
|
|
10941
11113
|
|
|
10942
11114
|
// src/provisioning/providers/iam-policy/agreeing-copies.ts
|
|
10943
11115
|
const readsWithAgreeingCopies = /* @__PURE__ */ new WeakSet();
|
|
@@ -10952,9 +11124,6 @@ function readHadAgreeingCopies(read) {
|
|
|
10952
11124
|
const UNDECLARED_UNCOMPARED_KEYS = {
|
|
10953
11125
|
"AWS::S3::Bucket": ["NotificationConfiguration"],
|
|
10954
11126
|
"AWS::Events::EventBus": ["Policy"],
|
|
10955
|
-
"AWS::IAM::User": ["Groups", "ManagedPolicyArns"],
|
|
10956
|
-
"AWS::IAM::Role": ["ManagedPolicyArns"],
|
|
10957
|
-
"AWS::IAM::Group": ["ManagedPolicyArns"],
|
|
10958
11127
|
"AWS::IAM::ManagedPolicy": [
|
|
10959
11128
|
"Groups",
|
|
10960
11129
|
"Roles",
|
|
@@ -11464,6 +11633,55 @@ function stackRegionOption$2() {
|
|
|
11464
11633
|
}
|
|
11465
11634
|
|
|
11466
11635
|
// src/cli/commands/drift/plan.ts
|
|
11636
|
+
const GRANT_REMOVAL_VERB = {
|
|
11637
|
+
ManagedPolicyArns: "detaches managed policy",
|
|
11638
|
+
Policies: "deletes inline policy",
|
|
11639
|
+
Groups: "removes the user from group",
|
|
11640
|
+
PermissionsBoundary: "deletes permissions boundary"
|
|
11641
|
+
};
|
|
11642
|
+
function restoredInlinePolicies(awsValue, stateValue) {
|
|
11643
|
+
if (!Array.isArray(awsValue) || !Array.isArray(stateValue)) return [];
|
|
11644
|
+
const nameOf = (m) => {
|
|
11645
|
+
if (typeof m !== "object" || m === null || Array.isArray(m)) return void 0;
|
|
11646
|
+
const name = m["PolicyName"];
|
|
11647
|
+
return typeof name === "string" ? name : void 0;
|
|
11648
|
+
};
|
|
11649
|
+
const recorded = /* @__PURE__ */ new Map();
|
|
11650
|
+
for (const m of stateValue) {
|
|
11651
|
+
const name = nameOf(m);
|
|
11652
|
+
if (name !== void 0 && !recorded.has(name)) recorded.set(name, m);
|
|
11653
|
+
}
|
|
11654
|
+
const out = [];
|
|
11655
|
+
for (const m of awsValue) {
|
|
11656
|
+
const name = nameOf(m);
|
|
11657
|
+
if (name !== void 0 && recorded.has(name) && !deepEqualUnordered(recorded.get(name), m)) out.push(name);
|
|
11658
|
+
}
|
|
11659
|
+
return out;
|
|
11660
|
+
}
|
|
11661
|
+
function printRemovedGrantMembers(o, properties, out) {
|
|
11662
|
+
const keys = undeclaredGrantDriftKeys(o.resourceType, properties);
|
|
11663
|
+
if (keys.length === 0) return;
|
|
11664
|
+
let printed = 0;
|
|
11665
|
+
let restored = 0;
|
|
11666
|
+
for (const change of o.changes) {
|
|
11667
|
+
if (!keys.includes(change.path)) continue;
|
|
11668
|
+
if (!isUndeclaredGrantScalarKey(change.path) && change.awsValue !== void 0 && !Array.isArray(change.awsValue)) {
|
|
11669
|
+
out.write(safeMsg` - removes each ${change.path} member no record holds (the live list is withheld)\n`);
|
|
11670
|
+
printed++;
|
|
11671
|
+
continue;
|
|
11672
|
+
}
|
|
11673
|
+
for (const { key, member } of removedGrantMembers(change.path, change.awsValue, change.stateValue)) {
|
|
11674
|
+
out.write(safeMsg` - ${GRANT_REMOVAL_VERB[key] ?? key} ${reportPlanValue(displayDriftValue(o, member))}\n`);
|
|
11675
|
+
printed++;
|
|
11676
|
+
}
|
|
11677
|
+
if (change.path === "Policies") for (const name of restoredInlinePolicies(change.awsValue, change.stateValue)) {
|
|
11678
|
+
out.write(safeMsg` ~ restores inline policy ${reportPlanValue(displayDriftValue(o, name))} to its recorded document\n`);
|
|
11679
|
+
restored++;
|
|
11680
|
+
}
|
|
11681
|
+
}
|
|
11682
|
+
if (restored > 0) out.write(" A recorded inline policy document is pinned: one adopted with --accept stays as it was then, so after the stack that owns it changes it, accept again rather than revert.\n");
|
|
11683
|
+
if (printed > 0) out.write(` The template does not declare ${printed === 1 ? "this" : "these"}, so the revert removes ${printed === 1 ? "it" : "each one"}. If ${printed === 1 ? "it was" : "they were"} granted on purpose (by another stack or tool), run ${proseQuoted(cdkdRemedy("cdkd drift", "--accept"))} for this stack instead: it records everything AWS holds on every drifted resource of the stack, so drift stops reporting ${printed === 1 ? "it" : "them"} and a later revert keeps ${printed === 1 ? "it" : "them"}. To keep only some, revert, grant those again, then accept.\n`);
|
|
11684
|
+
}
|
|
11467
11685
|
function humanTextSink(json) {
|
|
11468
11686
|
return json ? {
|
|
11469
11687
|
write: (chunk) => {
|
|
@@ -11544,6 +11762,7 @@ function printRevertPlan(reports, out, recovery, writeOnlyResend) {
|
|
|
11544
11762
|
const word = o.changes.length === 1 ? "property path" : "property paths";
|
|
11545
11763
|
out.write(` → provider.update on ${reportResource(o)}: revert ${o.changes.length} ${word}\n`);
|
|
11546
11764
|
for (const change of o.changes) out.write(reportPlanChangeLine(displayDriftPath(o, change.path), displayDriftValue(o, change.awsValue), displayDriftValue(o, change.stateValue)));
|
|
11765
|
+
printRemovedGrantMembers(o, report.state.resources[o.logicalId]?.properties, out);
|
|
11547
11766
|
const resent = writeOnlyResend?.get(o) ?? [];
|
|
11548
11767
|
if (resent.length > 0) out.write(` + also sends the template's write-only fields of ${maskSecretsInText(resent.join(", "), o.secrets)} (AWS never returns them on a read)\n`);
|
|
11549
11768
|
const stateResource = report.state.resources[o.logicalId];
|
|
@@ -12171,7 +12390,7 @@ function sameRecordedJson(candidate, recorded) {
|
|
|
12171
12390
|
|
|
12172
12391
|
// src/cli/commands/drift/compare.ts
|
|
12173
12392
|
async function compareDriftReadback(args) {
|
|
12174
|
-
const { region, resolvePrincipalUniqueId, outcomes, logger, secretResolvers, producerRegions, stackSecretNames, resource, logicalId, provider, secrets, printing, aws, readContext, readOnlyPathsLookup } = args;
|
|
12393
|
+
const { region, resolvePrincipalUniqueId, outcomes, logger, secretResolvers, producerRegions, stackSecretNames, resource, logicalId, provider, secrets, printing, aws, readContext, readOnlyPathsLookup, notComparedPolicyArns } = args;
|
|
12175
12394
|
const ignorePaths = provider.getDriftUnknownPaths ? provider.getDriftUnknownPaths(resource.resourceType, resource.properties ?? {}) : [];
|
|
12176
12395
|
const unorderedPaths = provider.getDriftUnorderedPaths ? provider.getDriftUnorderedPaths(resource.resourceType) : [];
|
|
12177
12396
|
const useObserved = resource.observedProperties !== void 0;
|
|
@@ -12215,7 +12434,8 @@ async function compareDriftReadback(args) {
|
|
|
12215
12434
|
secrets.clear();
|
|
12216
12435
|
}
|
|
12217
12436
|
if (unresolvedTokens.size > 0) logger.warn(`${logicalId} (${resource.resourceType}): cdkd cannot resolve ${maskSecretsInText([...unresolvedTokens].join(", "), secrets)} — those properties are NOT compared. A revert leaves a property whose WHOLE value is one of these tokens untouched where its position can be matched against AWS's report (a list element pairs by an identity field, or by the list's own unchanged literal values). A token EMBEDDED in a longer string is left untouched the same way when the rest of that string is exactly what AWS holds. Where it cannot be matched, the revert writes the token literal, exactly as 'cdkd deploy' does — so a resolved value AWS holds there WOULD be overwritten. cdkd resolves 'secretsmanager', 'ssm' and 'ssm-secure' references; anything else is left as written.`);
|
|
12218
|
-
const
|
|
12437
|
+
const grantKeys = undeclaredGrantDriftKeys(resource.resourceType, resource.properties);
|
|
12438
|
+
const observedIgnorePaths = useObserved ? undeclaredEmptyObservedKeys(resource.observedProperties, resource.properties ?? {}, undeclaredEmptyComparedDriftKeys(resource.resourceType)).filter((key) => !grantKeys.includes(key)) : [];
|
|
12219
12439
|
const normalized = await canonicalizePrincipalUniqueIds(comparisonBaseline, aws, resolvePrincipalUniqueId);
|
|
12220
12440
|
const protocolNormalized = canonicalizeIpProtocols(normalized.baseline, normalized.aws, resource.resourceType);
|
|
12221
12441
|
const siblingStripped = stripSiblingOwnedParentMembers(resource.resourceType, resource.physicalId, protocolNormalized.baseline, protocolNormalized.aws, resource.properties, readContext);
|
|
@@ -12229,8 +12449,9 @@ async function compareDriftReadback(args) {
|
|
|
12229
12449
|
aws: stripDerivedEchoMembers(resource.resourceType, pairCanonicalized.aws)
|
|
12230
12450
|
};
|
|
12231
12451
|
const nameBaseline = canonicalizeDerivedPatternBName(resource.resourceType, paired.baseline, paired.aws);
|
|
12232
|
-
const
|
|
12233
|
-
const
|
|
12452
|
+
const absentDefaultBaseline = useObserved ? withAbsentDefaultKeys(nameBaseline, paired.aws, driftAbsentMeansDefaultKeys(provider, resource.resourceType, resource.properties)) : nameBaseline;
|
|
12453
|
+
const comparedBaseline = withUndeclaredGrantBaseline(absentDefaultBaseline, paired.aws, grantKeys, undeclaredGrantSiblingMembers(resource.resourceType, resource.physicalId, grantKeys, resource.properties, readContext, notComparedPolicyArns));
|
|
12454
|
+
const ownedIgnorePaths = [...undeclaredUncomparedDriftKeys(resource.resourceType, resource.properties), ...undeclaredGrantIgnorePaths(comparedBaseline, paired.aws, grantKeys)];
|
|
12234
12455
|
const preFixIgnorePaths = preFixBaselineUncomparedDriftKeys(resource.resourceType, resource.observedProperties, resource.properties, aws);
|
|
12235
12456
|
const readOnlyIgnorePaths = readOnlyUncomparedDriftPaths(readOnlyPathsLookup ? await readOnlyPathsLookup : void 0, resource.properties);
|
|
12236
12457
|
const extraIgnorePaths = [
|
|
@@ -12308,6 +12529,35 @@ function canonicalizeDerivedPatternBName(resourceType, baseline, aws) {
|
|
|
12308
12529
|
return out;
|
|
12309
12530
|
}
|
|
12310
12531
|
|
|
12532
|
+
// src/cli/commands/drift/not-compared-policies.ts
|
|
12533
|
+
const MANAGED_POLICY_TYPE = "AWS::IAM::ManagedPolicy";
|
|
12534
|
+
function notComparedManagedPolicyArns(resources, outcomes) {
|
|
12535
|
+
const compared = /* @__PURE__ */ new Set();
|
|
12536
|
+
for (const o of outcomes) if (o.kind === "clean" || o.kind === "drifted") compared.add(o.logicalId);
|
|
12537
|
+
const out = /* @__PURE__ */ new Set();
|
|
12538
|
+
for (const [logicalId, record] of Object.entries(resources ?? {})) {
|
|
12539
|
+
if (record?.resourceType !== "AWS::IAM::ManagedPolicy") continue;
|
|
12540
|
+
const arn = record.physicalId;
|
|
12541
|
+
if (typeof arn !== "string" || arn === "" || compared.has(logicalId)) continue;
|
|
12542
|
+
out.add(arn);
|
|
12543
|
+
}
|
|
12544
|
+
return out;
|
|
12545
|
+
}
|
|
12546
|
+
function managedPoliciesFirst(entries) {
|
|
12547
|
+
const isPolicy = (e) => e[1]?.resourceType === MANAGED_POLICY_TYPE;
|
|
12548
|
+
return [...entries.filter(isPolicy), ...entries.filter((e) => !isPolicy(e))];
|
|
12549
|
+
}
|
|
12550
|
+
function restoreEntryOrder(outcomes, from, entries) {
|
|
12551
|
+
const rank = /* @__PURE__ */ new Map();
|
|
12552
|
+
entries.forEach(([logicalId], i) => rank.set(logicalId, i));
|
|
12553
|
+
const tail = outcomes.slice(from).map((o, i) => ({
|
|
12554
|
+
o,
|
|
12555
|
+
i,
|
|
12556
|
+
r: rank.get(o.logicalId) ?? Number.MAX_SAFE_INTEGER
|
|
12557
|
+
})).sort((a, b) => a.r - b.r || a.i - b.i).map(({ o }) => o);
|
|
12558
|
+
outcomes.splice(from, tail.length, ...tail);
|
|
12559
|
+
}
|
|
12560
|
+
|
|
12311
12561
|
// src/cli/commands/drift/detect.ts
|
|
12312
12562
|
async function runDriftForStack(stackName, region, stateBackend, providerRegistry, ccApiFallback, resolvePrincipalUniqueId, malformedRecordMode, nestedChildRecord, refusalRecovery) {
|
|
12313
12563
|
const result = await stateBackend.getState(stackName, region);
|
|
@@ -12358,11 +12608,43 @@ async function runDriftForStack(stackName, region, stateBackend, providerRegistr
|
|
|
12358
12608
|
ccApi: 0
|
|
12359
12609
|
};
|
|
12360
12610
|
const trippedReadPaths = /* @__PURE__ */ new Set();
|
|
12361
|
-
const
|
|
12611
|
+
const resetReadFailures = () => {
|
|
12362
12612
|
consecutiveReadFailures.provider = 0;
|
|
12363
12613
|
consecutiveReadFailures.ccApi = 0;
|
|
12364
12614
|
};
|
|
12365
|
-
|
|
12615
|
+
const warnBreakerTripped = (path) => {
|
|
12616
|
+
logger.warn(safeMsg`${5} reads in a row in this stack failed ` + safeMsg`${DRIFT_READ_PATH_LABELS[path]} — expired credentials, a revoked ` + "role, a permission all of them need, or a burst of throttling — so cdkd stops reading this stack's resources that way, and reports each one left as not compared. Fix the cause, or re-run if it was throttling.");
|
|
12617
|
+
};
|
|
12618
|
+
const countReadFailure = (path) => {
|
|
12619
|
+
if (trippedReadPaths.has(path)) return false;
|
|
12620
|
+
consecutiveReadFailures[path]++;
|
|
12621
|
+
if (consecutiveReadFailures[path] !== 5) return false;
|
|
12622
|
+
trippedReadPaths.add(path);
|
|
12623
|
+
return true;
|
|
12624
|
+
};
|
|
12625
|
+
const templateRank = new Map(entries.map(([id], i) => [id, i]));
|
|
12626
|
+
let inPolicyBlock = true;
|
|
12627
|
+
let currentRank = 0;
|
|
12628
|
+
const deferredPolicyReads = [];
|
|
12629
|
+
const flushPolicyReads = (beforeRank) => {
|
|
12630
|
+
while (deferredPolicyReads.length > 0 && deferredPolicyReads[0].rank < beforeRank) {
|
|
12631
|
+
const { failed } = deferredPolicyReads.shift();
|
|
12632
|
+
if (failed === void 0) resetReadFailures();
|
|
12633
|
+
else if (countReadFailure(failed)) warnBreakerTripped(failed);
|
|
12634
|
+
}
|
|
12635
|
+
};
|
|
12636
|
+
const noteReadReturned = () => {
|
|
12637
|
+
if (inPolicyBlock) deferredPolicyReads.push({ rank: currentRank });
|
|
12638
|
+
else resetReadFailures();
|
|
12639
|
+
};
|
|
12640
|
+
const walkStart = outcomes.length;
|
|
12641
|
+
let notComparedPolicyArns;
|
|
12642
|
+
for (const [logicalId, resource] of managedPoliciesFirst(entries)) {
|
|
12643
|
+
currentRank = templateRank.get(logicalId) ?? 0;
|
|
12644
|
+
if (resource.resourceType !== "AWS::IAM::ManagedPolicy") {
|
|
12645
|
+
inPolicyBlock = false;
|
|
12646
|
+
flushPolicyReads(currentRank);
|
|
12647
|
+
}
|
|
12366
12648
|
if (unreadablePropertyBags.has(logicalId)) {
|
|
12367
12649
|
outcomes.push({
|
|
12368
12650
|
kind: "notCompared",
|
|
@@ -12487,6 +12769,7 @@ async function runDriftForStack(stackName, region, stateBackend, providerRegistr
|
|
|
12487
12769
|
});
|
|
12488
12770
|
return;
|
|
12489
12771
|
}
|
|
12772
|
+
if (resource.resourceType !== "AWS::IAM::ManagedPolicy") notComparedPolicyArns ??= notComparedManagedPolicyArns(state.resources, outcomes);
|
|
12490
12773
|
await compareDriftReadback({
|
|
12491
12774
|
region,
|
|
12492
12775
|
resolvePrincipalUniqueId,
|
|
@@ -12502,7 +12785,8 @@ async function runDriftForStack(stackName, region, stateBackend, providerRegistr
|
|
|
12502
12785
|
printing,
|
|
12503
12786
|
aws,
|
|
12504
12787
|
readContext,
|
|
12505
|
-
...readOnlyPathsLookup && { readOnlyPathsLookup }
|
|
12788
|
+
...readOnlyPathsLookup && { readOnlyPathsLookup },
|
|
12789
|
+
...notComparedPolicyArns && { notComparedPolicyArns }
|
|
12506
12790
|
});
|
|
12507
12791
|
} catch (err) {
|
|
12508
12792
|
if (isNoReadHandlerError(err)) {
|
|
@@ -12524,19 +12808,21 @@ async function runDriftForStack(stackName, region, stateBackend, providerRegistr
|
|
|
12524
12808
|
let breakerTripped = false;
|
|
12525
12809
|
if (err instanceof DriftReadRefusedError) noteReadReturned();
|
|
12526
12810
|
else if (!readReturned) {
|
|
12527
|
-
|
|
12528
|
-
|
|
12529
|
-
|
|
12530
|
-
|
|
12531
|
-
|
|
12811
|
+
if (inPolicyBlock) deferredPolicyReads.push({
|
|
12812
|
+
rank: currentRank,
|
|
12813
|
+
failed: readPath
|
|
12814
|
+
});
|
|
12815
|
+
else breakerTripped = countReadFailure(readPath);
|
|
12532
12816
|
}
|
|
12533
|
-
logger.warn(`${logicalId} (${resource.resourceType}): could not be compared — the read or comparison failed, so NONE of its properties were checked. ` + (trippedReadPaths.size > 0 ? "" : `cdkd goes on with the rest of this stack. `) + `${maskSecretsInText(describeAwsFailure(err).detail, secrets)}`);
|
|
12534
|
-
if (breakerTripped)
|
|
12817
|
+
logger.warn(`${logicalId} (${resource.resourceType}): could not be compared — the read or comparison failed, so NONE of its properties were checked. ` + (trippedReadPaths.size > 0 || inPolicyBlock ? "" : `cdkd goes on with the rest of this stack. `) + `${maskSecretsInText(describeAwsFailure(err).detail, secrets)}`);
|
|
12818
|
+
if (breakerTripped) warnBreakerTripped(readPath);
|
|
12535
12819
|
if (err instanceof Error && err.stack) logger.debug(`${logicalId} (${resource.resourceType}): comparison failure detail`, maskSecretsInError(err, secrets).stack);
|
|
12536
12820
|
return;
|
|
12537
12821
|
}
|
|
12538
12822
|
});
|
|
12539
12823
|
}
|
|
12824
|
+
flushPolicyReads(Number.POSITIVE_INFINITY);
|
|
12825
|
+
restoreEntryOrder(outcomes, walkStart, entries);
|
|
12540
12826
|
const warnings = warnIfPreV10BaselineGap(state, outcomes, logger);
|
|
12541
12827
|
return {
|
|
12542
12828
|
stackName,
|
|
@@ -13393,13 +13679,18 @@ async function revertDriftedOutcome(args) {
|
|
|
13393
13679
|
let newProperties;
|
|
13394
13680
|
try {
|
|
13395
13681
|
const siblingContext = buildReadCurrentStateContext(report.state, outcome.logicalId);
|
|
13682
|
+
const grantKeys = undeclaredGrantDriftKeys(outcome.resourceType, stateResource.properties);
|
|
13683
|
+
const grantLive = grantKeys.length === 0 ? outcome.awsProperties : stripSiblingOwnedParentMembers(outcome.resourceType, stateResource.physicalId, desiredProperties, outcome.awsProperties, stateResource.properties, siblingContext).aws;
|
|
13684
|
+
const noBoundary = withoutUndeclaredNoBoundary(withUndeclaredGrantBaseline(desiredProperties, grantLive, grantKeys, undeclaredGrantSiblingMembers(outcome.resourceType, stateResource.physicalId, grantKeys, stateResource.properties, siblingContext, notComparedManagedPolicyArns(report.state.resources, report.outcomes))), grantKeys);
|
|
13685
|
+
desiredProperties = noBoundary.desired;
|
|
13396
13686
|
desiredProperties = siblingOwnedRevertDesired(outcome.resourceType, stateResource.physicalId, desiredProperties, outcome.awsProperties, stateResource.properties, siblingContext);
|
|
13397
13687
|
if (provider.canonicalizeDriftPair) desiredProperties = (await provider.canonicalizeDriftPair(outcome.resourceType, desiredProperties, outcome.awsProperties, stateResource.properties ?? {})).baseline;
|
|
13398
13688
|
desiredProperties = stripDerivedEchoMembers(outcome.resourceType, desiredProperties);
|
|
13399
13689
|
const overlaid = buildRevertNewProperties(outcome.changes, desiredProperties, outcome.awsProperties, stateResource.observedProperties === void 0 ? {
|
|
13400
13690
|
preserveUntemplated: true,
|
|
13401
|
-
verbatimKeys: verbatimEchoDriftKeys(outcome.resourceType)
|
|
13402
|
-
|
|
13691
|
+
verbatimKeys: verbatimEchoDriftKeys(outcome.resourceType),
|
|
13692
|
+
absentMeansDefault: noBoundary.absent
|
|
13693
|
+
} : { absentMeansDefault: [...driftAbsentMeansDefaultKeys(provider, outcome.resourceType, stateResource.properties), ...noBoundary.absent] });
|
|
13403
13694
|
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 ?? {}));
|
|
13404
13695
|
const tokenPreserved = unresolvedTokens.size > 0 ? preserveLiveValuesAtUnresolvedTokens(certifiedOverlay, outcome.awsProperties, unresolvedTokens, secrets) : certifiedOverlay;
|
|
13405
13696
|
const maskPreserved = preserveLiveValuesAtMaskedLeaves(tokenPreserved, outcome.awsProperties, secrets, certifiedOverlay, spelledKeysOf(stateResource.properties ?? {}));
|
|
@@ -36234,5 +36525,5 @@ function collectVerbFlags(program) {
|
|
|
36234
36525
|
return map;
|
|
36235
36526
|
}
|
|
36236
36527
|
|
|
36237
|
-
export { effectiveInventoryItem as $, tagListsMatch as A, LIFECYCLE_DEFAULT_STATUS as B, reconcileSgRules as C, singleSecurityGroupRuleId as D, sgRuleKey as E, clearLifecycleWritesOf as F, canonicalizeItemList as G, LIFECYCLE_RULE_PATH as H, lifecycleSettleTarget as I, lifecycleUsesFilterForm as J, effectiveLifecycleConfiguration as K, recordLifecycleWrite as L,
|
|
36238
|
-
//# sourceMappingURL=program-
|
|
36528
|
+
export { effectiveInventoryItem as $, tagListsMatch as A, LIFECYCLE_DEFAULT_STATUS as B, reconcileSgRules as C, singleSecurityGroupRuleId as D, sgRuleKey as E, clearLifecycleWritesOf as F, canonicalizeItemList as G, LIFECYCLE_RULE_PATH as H, lifecycleSettleTarget as I, lifecycleUsesFilterForm as J, effectiveLifecycleConfiguration as K, recordLifecycleWrite as L, sgRemovalRuleKey as M, sgRuleListMember as N, stackIngressRuleHolder as O, LIFECYCLE_BASELINE_REREAD_DELAYS_MS as P, effectiveIntelligentTieringItem as Q, settleLifecycleRead as R, narrowIngressIpProtocol as S, securityGroupRuleMatchesCfnIngress as T, LIFECYCLE_TAG_FILTERS_PATH as U, LIFECYCLE_FILTER_PATH as V, canonicalizeBlock as W, EVENTBRIDGE_CONFIG_PATH as X, parseCfnTimestamp as Y, effectiveAnalyticsItem as Z, flattenIpPermissions as _, resolveSecretDerivedPrincipals as a, declaresBucketObjectLock as at, isDefaultEgressRule as b, buildProgram, readSgIngressById as c, isPlainObject as ct, SG_RULE_PAGE_SIZE$1 as d, shownLifecycleRuleId as dt, effectiveNotificationConfiguration as et, authorizeDefinitelyNotApplied as f, descriptionKey as g, comparableIngressIdentity as h, isResolvableSecretPrincipalList as i, configItemId as it, markCopiesAgreed as j, survivingRecordOfRuleId as k, siblingIdOwnedSgRules as l, manualBucketDeletionClause as lt, canonicalizeSgRuleProtocol as m, runDestroyForStack as n, caughtErrorName as nt, refuseRevertRevokingSiblingRules as o, declaresNestedObjectLock as ot, canonicalizeSgInlineRuleProtocols as p, lifecycleRuleScope as q, holdsUnprovenSecretPrincipalToken as r, coerceCfnNumber as rt, sgRuleDiffKey as s, describeValue as st, canonicalizeIpv4Cidr as t, eventBridgeEnabledOf as tt, SG_READBACK_RETRY_DELAY_MS as u, mergeLegacySingular as ut, ingressRuleIdentity as v, securityGroupReadbackDelays as w, isResendableSocketFailure as x, isConnectTimeout as y, takeLifecycleWrite as z };
|
|
36529
|
+
//# sourceMappingURL=program-BHLjuXmA.js.map
|