@cdkd/cli 0.359.1 → 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-D1Gua-yw.js → ambient-client-defaults-7ZUTgwyy.js} +3 -3
- package/dist/{ambient-client-defaults-D1Gua-yw.js.map → ambient-client-defaults-7ZUTgwyy.js.map} +1 -1
- package/dist/{asg-provider-HLdSUkYV.js → asg-provider-Bw8ajB1r.js} +6 -6
- package/dist/{asg-provider-HLdSUkYV.js.map → asg-provider-Bw8ajB1r.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{custom-resource-runtime-D4P2W0VI.js → custom-resource-runtime-CAP2Al4I.js} +6 -6
- package/dist/{custom-resource-runtime-D4P2W0VI.js.map → custom-resource-runtime-CAP2Al4I.js.map} +1 -1
- package/dist/{db-associated-roles-CA_XrqV2.js → db-associated-roles-DSeRoEq5.js} +2 -2
- package/dist/{db-associated-roles-CA_XrqV2.js.map → db-associated-roles-DSeRoEq5.js.map} +1 -1
- package/dist/{delete-started-B0adv_Q0.js → delete-started-DHIp8imD.js} +4 -4
- package/dist/{delete-started-B0adv_Q0.js.map → delete-started-DHIp8imD.js.map} +1 -1
- package/dist/{deploy-engine-P7CPgaVx.js → deploy-engine-Bo8PtTbG.js} +153 -66
- package/dist/deploy-engine-Bo8PtTbG.js.map +1 -0
- package/dist/{ec2-termination-protection-CdyXzh7W.js → ec2-termination-protection-CRkl8_Wy.js} +6 -6
- package/dist/{ec2-termination-protection-CdyXzh7W.js.map → ec2-termination-protection-CRkl8_Wy.js.map} +1 -1
- package/dist/{ecr-uri-DrUOsysa.js → ecr-uri-DaIBuz4E.js} +2 -2
- package/dist/{ecr-uri-DrUOsysa.js.map → ecr-uri-DaIBuz4E.js.map} +1 -1
- package/dist/{expected-bucket-owner-DjxT-AqD.js → expected-bucket-owner-BjRKj3hF.js} +2 -2
- package/dist/{expected-bucket-owner-DjxT-AqD.js.map → expected-bucket-owner-BjRKj3hF.js.map} +1 -1
- package/dist/{iam-role-provider-B6Rlc_GY.js → iam-role-provider-CcK9C-mY.js} +52 -13
- package/dist/iam-role-provider-CcK9C-mY.js.map +1 -0
- package/dist/{image-plan-D_EGu-8M.js → image-plan-CwiLyeAj.js} +8 -8
- package/dist/{image-plan-D_EGu-8M.js.map → image-plan-CwiLyeAj.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-BkzZeRzu.js → logger-CjGMINd9.js} +2 -2
- package/dist/{logger-BkzZeRzu.js.map → logger-CjGMINd9.js.map} +1 -1
- package/dist/{neptune-provider-pvZ07quz.js → neptune-provider-D-jHbjCG.js} +7 -7
- package/dist/{neptune-provider-pvZ07quz.js.map → neptune-provider-D-jHbjCG.js.map} +1 -1
- package/dist/{program-Cda-eDUT.js → program-BHLjuXmA.js} +328 -36
- package/dist/program-BHLjuXmA.js.map +1 -0
- package/dist/{provider-classes--2kJfv8x.js → provider-classes-D5IgG-fE.js} +210 -96
- package/dist/provider-classes-D5IgG-fE.js.map +1 -0
- package/dist/{rds-provider-C47dGZz_.js → rds-provider-BSDygv5j.js} +10 -10
- package/dist/{rds-provider-C47dGZz_.js.map → rds-provider-BSDygv5j.js.map} +1 -1
- package/dist/{read-replica-CfVkW9fC.js → read-replica-a4eZWjUH.js} +3 -3
- package/dist/{read-replica-CfVkW9fC.js.map → read-replica-a4eZWjUH.js.map} +1 -1
- package/dist/{replacement-rules-DfitfaSq.js → replacement-rules-JS1D0m-r.js} +3 -3
- package/dist/{replacement-rules-DfitfaSq.js.map → replacement-rules-JS1D0m-r.js.map} +1 -1
- package/dist/{resource-deadline-CCBYcUI-.js → resource-deadline-DtW_JiNE.js} +4 -4
- package/dist/{resource-deadline-CCBYcUI-.js.map → resource-deadline-DtW_JiNE.js.map} +1 -1
- package/dist/{restore-source-guard-gqR_ya6m.js → restore-source-guard-BPEKIvrh.js} +4 -4
- package/dist/{restore-source-guard-gqR_ya6m.js.map → restore-source-guard-BPEKIvrh.js.map} +1 -1
- package/dist/{run-cli-fuzwJdwl.js → run-cli-F87YOoqR.js} +2 -2
- package/dist/{run-cli-fuzwJdwl.js.map → run-cli-F87YOoqR.js.map} +1 -1
- package/dist/{settle-own-write-members-B3XEent-.js → settle-own-write-members-DmDIpP0O.js} +100 -24
- package/dist/settle-own-write-members-DmDIpP0O.js.map +1 -0
- package/dist/{version-C2QpskKl.js → version-MMfHOVaa.js} +2 -2
- package/dist/{version-C2QpskKl.js.map → version-MMfHOVaa.js.map} +1 -1
- package/package.json +1 -1
- package/dist/deploy-engine-P7CPgaVx.js.map +0 -1
- package/dist/iam-role-provider-B6Rlc_GY.js.map +0 -1
- package/dist/program-Cda-eDUT.js.map +0 -1
- package/dist/provider-classes--2kJfv8x.js.map +0 -1
- package/dist/settle-own-write-members-B3XEent-.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
|
|
9
|
-
import { $a as ProviderRegistry, $c as refuseMalformedResourcePropertiesForDrift, $i as gray, $l as hasUnverifiableParameterRefusal, $n as parseMappingFile, $o as producerLookupOver, $t as formatResourceLine, $u as BOOTSTRAP_MARKER_PREFIX, A as recordedProtectionEvidence, Aa as buildFinalSnapshotIdentifier, Ac as refuseMalformedOrphanRecordsForDestroy, Ai as bindingSkippedOutputs, Al as accountArgs, An as DeploymentEventsStore, Ao as differingIdentityWarning, Ar as findUpdatePolicyReplacementRefusals, As as lacksRecordedTableArn, Bc as refuseMalformedResourceAttributesForOrphan, Bi as isSupersededResourceRecord, Bl as unwrittenCreateOnlyReplacement, Bn as formatDestructiveChange, Bo as IntrinsicFunctionResolver, Br as isJournaledOrphan, C as pendingMovesOutOf, Ca as ccRoutedFinalSnapshotError, Cc as deployRefusesOrphanRowsReason, Ci as exportNameNoEchoParameters, Cl as malformedStateRefusalMessage, Cn as journaledOrphanLines, Co as withCustomResourceStack, Cr as calculateResourceDrift, Cs as isUnboundTemplateParameter, Cu as decodeListingKey, D as findServiceTokenRefusals, Da as refusesFinalSnapshot, Dc as malformedOrphanRowsKeptWarning, Di as collectDeclaredOutputNames, Dl as refuseMalformedState, Dn as makeSiblingClaimReader, Dr as verbatimEchoDriftKeys, Ds as isStalePlaceholderArnAttribute, Du as createAssetRedirectResolver, E as deferredServiceTokenWarning, Ea as isFinalSnapshotError, Ec as malformedOrphanRecordsWarning, Ei as noEchoParameterValueSeed, El as refuseMalformedResourcesForExport, En as makeForeignHolderScan, Er as undeclaredEmptyObservedKeys, Es as cfnRefValueFromPhysicalId, Eu as buildAssetRedirectMap, F as readProtection, Fc as isReadableResourceEntry, Fi as destroyStackRecordsView, Fl as hasReadableOutputs, Fn as noEchoMacParametersOf, Fo as deleteSkipReason, Fr as withCreateTokenLedger, Fu as rewriteTemplateAssetReferences, Ga as memberReadFailure, Gc as refuseMalformedResourceEntriesForImportSave, Gi as withoutSuperseded, Gl as hasNoCloudControlHandlers, Gn as withMovedTo, Gr as replacementNeverSwapped, Gs as carriesDynamicReference, Gt as refactorMarkerMovesOf, Gu as buildDenyExternalAccessPolicy, H as readStreamPolicy, Ha as declaredPolicyDocument, Hc as refuseMalformedResourceEntriesForDeploy, Hi as supersededHeldByOtherTypeWarning, Hn as hintSidesOf, Ho as isAlwaysLiveAttribute, Hr as planFailedOps, Hs as isImpossibleEmptyStoredAttribute, Ht as recordRetainedForReadoption, Ic as malformedLocalResourceEntriesWarning, Il as hasReadableResources, In as noEchoMacVerdict, Is as recordedOutputReferenceRegions, Iu as AssetManifestLoader, Jc as unreadableResourceEntries, Ji as resolveReplacementOldType, Jl as S3StateBackend, Jn as changedReferenceReason, Jr as attemptUsesCompletedCreate, Jt as sameMove, Ju as getBootstrapMarkerKey, Ka as policyDocumentMatchesDeclared, Kc as refuseMalformedResourceEntriesForOrphan, Kl as PROPERTY_COVERAGE_BY_TYPE, Kn as changedReferenceInDiff, Kr as IMPLICIT_DELETE_DEPENDENCIES, Ks as keepsSecretReferenceToken, Kt as refactorMarkerRefusalMessage, Ku as assertAssetBucketRegion, Lc as malformedLocalResourcesWarning, Li as withStackRecords, Ll as findActionableSdkUnwired, Ln as noEchoValueMacsOf, Lo as getReadOnlyPropertyPaths, Lr as planRollback, Lu as getDockerImageBySourceHash, M as PROTECTION_PROPERTY_BY_TYPE, Mc as repairMalformedOrphanRecordsForReadOnly, Mi as DEFAULT_RESOURCE_WARN_AFTER_MS, Ml as STATE_RESOURCES_MALFORMED, Mn as NOECHO_MAC_KEY_ALIAS, Mo as UNSPECIFIED_SKIP_REASON, Mu as loadPublishableAssetManifest, N as isProtectionValueActive, Nc as unpreviewableOrphanRecords, Ni as maskingRetryLogger, Nl as UNREADABLE_RESOURCES_MAP_ROW, Nn as createNoEchoValueMacs, No as deleteIndeterminateGuards, Nr as ledgerForStack, O as serviceTokenBlockingReason, Oa as unsupportedFinalSnapshotError, Oc as previewableOrphanRecords, Oi as collectPublishedOutputNames, Ol as repairMalformedResourcesForReadOnly, On as planOrphanAdoption, Or as updatePartialMessage, Os as refStateLookupFromResource, Ou as createLazyAssetModeContext, P as perType, Pc as unreadableOrphanRecords, Pl as displayLogicalId, Pn as noEchoMacBinding, Po as deleteLeftInPlace, Ps as keepHeldTokenProvenance, Qa as CC_BROKEN_REASON, Qc as refuseMalformedResourcePropertiesForDestroy, Qi as cyan, Ql as hasReasonlessBaselineRefusal, Qn as mappingPairs, Qo as resolveDynamicReferences, Qu as validateContainerRepoName, Ra as LAMBDA_PERMISSION_STATEMENT_KEYS, Rc as malformedResourceEntriesWarning, Ri as deleteSupersededEntry, Rl as findHandledUnwrittenCreateOnly, Rn as constructPathOf$1, Ro as isWaitAbandonedError, Rr as seedsDeleteFirstGuard, Rs as recordedReferenceRegions, S as hasPendingMovesOut, Sa as PRE_DELETE_SNAPSHOT_TYPES, Sc as maskedPropertyFingerprint, Si as carriedExportAliasExposure, Sl as malformedResourcesWarning, Sn as isHandledOrphan, So as setLocalCustomResourceRuntimeEnabled, Sr as withUnprovenUnsettled, Ss as coerceParameterTypedValue, T as refusePendingMovesOut, Ta as effectiveDeletionPolicy, Tc as malformedOrphanRecordsRefusalMessage, Ti as isWholeDynamicReferenceValue, Tl as refuseMalformedResourcesForDestroy, Tn as sameJournaledOrphans, To as CloudControlProvider, Tr as equalModuloMask, Ts as AWS_NO_VALUE, Ua as efsPolicyMatchesDeclared, Uc as refuseMalformedResourceEntriesForDestroy, Ui as supersededHolderOf, Un as movedToHint, Uo as poisonRenderedSpellingsCollidingIn, Ur as recheckFailedPlan, Us as carriesFetchableDynamicReference, Ut as readRefactorMarker, Uu as AssetModeResolver, Va as declaredMemberDocument, Vc as refuseMalformedResourceEntries, Vi as supersededAfterRollback, Vn as findRefactorHints, Vo as isSelectOutOfBounds, Vr as isReplacementOrphan, Vs as getAccountInfo, Vt as keptForRetainedRecord, Wa as lambdaPermissionMatchesDeclared, Wc as refuseMalformedResourceEntriesForImport, Wi as supersededResourcesOf, Wl as NO_CC_HANDLERS_REASON, Wn as rollbackOrphanIds, Wo as stackIdTailOf, Wr as recordUnderIdIsNotOwn, Ws as isNamelessDynamicReferenceError, Wt as readRefactorMarkerOnce, Wu as ensureAssetStorage, Xc as malformedResourcePropertiesWarning, Xi as findNestedStackTypeChanges, Xn as isPairableType, Xo as secretSegmentsOfState, Xt as macWriteOnlyKeys, Xu as readBootstrapMarkerBody, Yc as malformedDriftResourcePropertiesWarning, Yi as withPreviousPolicies, Yl as splitImportedOps, Yn as differingRemedy, Yo as secretPhysicalIdSegment, Yr as readsRegeneratingSecret, Ys as INTRINSIC_KEYS, Yt as updateRefactorMarker, Yu as parseBootstrapMarker, Z as declaredTagsReadback, Zi as bold, Zl as readOnlyStateVersionOf, Zn as looselyEqual, Zo as withSecretPhysicalIdsMaskedInState, Zr as isRedactedRecordedValue, Zt as readsOnlyNoEchoParameters, Zu as validateAssetBucketName, _ as conditionFingerprint, _a as secretNamedRecordNeedles, _i as displayTextOrWithheld, _l as refuseMalformedOutputsForDestroy, _n as getCurrentNestedStackContext, _r as replayRollback, _u as templateIdentity, a as scanActiveConsumers, aa as noEchoExactEchoLeavesOf, ac as isStatefulRecreateTargetSync, ad as nullPrototypeRecord, ai as nameScopeOf, al as malformedOrphansRefusalMessage, an as resolvePendingCloudControlRequests, ar as recordedRuleIdOf, as as isIamRoleArn, au as isAccessDenied, b as readRecordedConditionVerdicts, ba as extractDeploymentEventError, bi as secretBearingStateKeyWarning, bl as refuseDivergentRecordRegionForDestroy, bn as dropFailedCommands, bo as localCustomResourceCommand, br as recordAfterRollbackUpdate, bu as ssmResolvedValueType, c as nestedSsmNameDeferredNote, ca as createReadOnlyAttributeHealerFactory, ci as retiredNameGenerationsLeaving, cl as refuseMalformedOrphansForDestroy, cn as displacedPhysicalIdShown, co as applyCustomResourceResponseExpiration, cs as AWS_CREDENTIAL_ENV_KEYS, cu as withStackInstanceIdWithheld, d as slashedSsmNameHealAdoptedNote, da as maskEventTextWithBoundBags, di as inheritProducerRegions, dl as malformedExportSourceWarning, dn as nestedChildStackName$1, do as TemplateNoEchoReresolver, ds as envCredentialsAreAssumedRole, ea as green, ec as findReplacedReadersOfRecreateTargets, ei as segmentCleanupOptions, el as refuseMalformedResourcePropertiesForExport, eo as ccBrokenReason, er as propertiesChangedReason, es as refuseUnreadableCdkCrossAccountRefs, eu as rebuildClientForBucketRegion, f as slashedSsmNameHealNote, fa as namingSecretsWithRecordedNoEcho, fc as getSettledWriteOnlyPropertyPaths, fd as renderAssemblyPathEscape, fi as computeParameterTaint, fl as malformedLocalOutputsWarning, fn as recordDisplacedSkips, fo as readsNoEchoDeleteValues, fr as cfnIngressPortValue, fs as classifyRecordedSecretRegion, g as makeCanonicalizePropertiesFn, gc as maskedPropertyFingerprintsOf, gi as WITHHELD_NAME_DISPLAY, gl as refuseMalformedOutputs, gn as collectNestedChildUnaddressed, go as NO_LOCAL_CUSTOM_RESOURCES_FLAG, gr as replayFailedOperations, gs as isUnexposedRecordedIdentity, gu as renderNestedTemplateTreeDefect, h as inheritedProvenanceForChildDiff, ha as secretNamePrintingBags, hd as resolveBucketRegion, hi as resourcesNamingDeclaredParameter, hn as withNestedRevertRun, ho as withPrintingSecrets, hr as canonicalizeIpProtocolValue, hs as regionLessSecretName, hu as listNestedTemplateRows, i as mergeNoChangeOutputs, ia as noEchoComparisonForTemplate, ic as isStatefulRecreateTargetForReplace, id as hasPlainPrototype, ii as nameGenerationHighWaterOf, il as hasReadableOrphans, in as pendingRequestCount, ir as stripSiblingOwnedParentMembers, is as explicitRoleArnOrThrow, iu as crossPrefixDeniedWarning, j as recordedProtectionNote, jc as refuseMalformedOrphansForOrphan, ji as DEFAULT_RESOURCE_TIMEOUT_MS, jl as withheldAccountClause, jn as crossStackReadsForPartialSave, jo as RollbackInlinePolicyWriters, jr as replacementCreateRoutesToCloudControl, k as diffSecurity, ka as createPreDeleteFinalSnapshot, kc as refuseMalformedOrphanRecords, ki as isExportAliasCollision, kl as JSON_LISTING_HOLE_VALUE, kn as DeploymentEventsReader, kr as updatePartialReason, ks as lacksRecordedRefArn, l as nestedSsmNameRowNote, la as completedReplayEntries, ld as describeFileReadFailure, li as withNameGenerationReached, ll as repairMalformedOrphansForReadOnly, ln as dropSettledNestedJournals, lo as customResourceResponseExpirationWarning, lr as siblingRecordedSgRuleIds, ls as applyCallerIdentityCredentials, lu as isSecretValuedAttribute, m as crossStackOutputProvenanceSource, ma as secretNamePrintingBag, mc as tryGetTopLevelWriteOnlyProperties, mi as reachableDivergentParameters, ml as malformedOutputsWarning, mn as revertedNestedRowIds, mr as sgProtocolKey, ms as producerRegionsFromState, mu as isAbsoluteAssetPath, n as isSecretBearingReferenceString, na as yellow, nc as shownType, nd as defineOwnKey, ni as orphanNeedsIdentity, nl as repairMalformedResourcePropertiesForReadOnly, no as wouldReturnToSdkProvider, nr as referencedLogicalIds, ns as assertFlagRoleArn, nu as CrossPrefixScanCache, o as inRunStackKey, oa as noEchoParameterNamesOf, oc as renderStatefulReason, od as ownValue, oi as retiredAfterRollback, ol as malformedOrphansWarning, on as NESTED_PENDING_PARENT_REASON, or as sgRuleOwnershipIdentity, os as parseIamRoleArn, ou as isNotImplemented, p as slashedSsmNameHealPendingNote, pa as orphanRecordsPrintingBag, pc as getTopLevelKeysHoldingUnreadableCreateOnly, pd as resolveAssemblyPath, pi as namesAnyDeclaredParameter, pl as malformedOutputsRefusalMessage, po as isCustomResourceType$1, pr as recordedSgRuleId, ps as classifyReplaySecretRegion, pu as findNestedTemplateTreeDefect, q as streamPolicyMatchesDeclared, qa as reReadUntilSettled, qc as repairMalformedResourceEntriesForReadOnly, qi as snapshotSegmentSurvivors, ql as TemplateParser, qn as changedReferencePath, qo as displayPhysicalId, qr as computeImplicitDeleteEdges, qs as withSharedDrainBudget, qt as refuseRefactorMarker, qu as isCrossRegionRedirect, r as keptWholeReasonText, ra as noEchoAttributeNamesOf, rc as MULTI_REGION_RECREATE_BLOCKED_TYPES, rd as hasOwnKey, ri as nameGenerationCarriedFrom, rl as UNREADABLE_ORPHANS_CONTAINER_ROW, rr as siblingOwnedRevertDesired, rs as assertSendableRoleArn, ru as applyCrossPrefixScan, s as checkNestedSsmNames, sa as withAttemptedItemsMasked, si as retiredNameGenerationsAfter, sl as refuseMalformedOrphans, sn as displacedOpClause, so as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, sr as sgSiblingDecidedById, ss as sendableAssumeRoleCommand, su as stackInstanceIdOf, t as DeployEngine, ta as red, ti as removeProtectionTypeList, tl as refuseMalformedResourcePropertiesForOrphan, to as isCustomResource, tr as proposeRenames, ts as applyRoleArnIfSet, tt as tagsMatchDeclared, tu as CrossPrefixReadError, u as healSlashedSsmParameterNames, ua as journaledOrphanPrintingBag, ud as displayAssemblyPath, ul as malformedExportNamesWarning, us as callerEnvCredentials, uu as isSensitiveAttributeName, v as conditionInputsFrom, va as stateSecretNameNeedles, vc as parameterInputsFor, vi as exportAliasCollisionScrubWarning, vl as repairMalformedOutputsForReadOnly, vn as withNestedStackContext, vo as customResourcesFailedWithoutApp, vr as DELETED_RESOURCE_REMEDY, w as pendingMovesRefusalMessage, wa as ccRoutedInstanceTakesNoSnapshot, wc as isReadableOrphanRecord, wi as exportNameSecretExposure, wl as refuseMalformedResourcesForDeploy, wn as loadJournaledOrphans, wr as equalModuloMarkedMask, ws as parameterTypeMayLoseSecretIdentity, x as childTemplateLoader, xa as ATOMIC_FINAL_SNAPSHOT_TYPES, xc as declaresNoEcho, xi as secretSafeKeyDisplay, xl as malformedRenderedContainersWarning, xn as dropFailedHint, xr as settleUnsettledPrevious, xu as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, y as parentSuppliedValues, ya as storedSecretNameNeedles, yc as maskedInputProof, yi as secretBearing, yl as STATE_REGION_DIVERGED, yn as deleteJournaledOrphans, yo as customResourcesRunWithoutApp, yr as buildReadCurrentStateContext, zc as malformedScrubResourceEntriesRefusalMessage, zi as holdsSupersededResources, zn as findDestructiveChanges, zr as demoteSupersededOrphans } from "./deploy-engine-P7CPgaVx.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) {
|
|
@@ -6367,7 +6367,8 @@ function renderChangeLines(changes, logFn, ccApiRoutes, adoptedOrphans, refactor
|
|
|
6367
6367
|
case "UPDATE":
|
|
6368
6368
|
updateCount++;
|
|
6369
6369
|
logFn(` [~] ${logicalId} (${change.resourceType})${annotateAdoption(logicalId)}${annotateRouting(logicalId)}`);
|
|
6370
|
-
if (change.providerReplacement
|
|
6370
|
+
if (change.providerReplacement === "issues a signal URL in place of the placeholder id an earlier cdkd recorded") logFn(` [new physical id: ${LEGACY_HANDLE_HEAL_REASON}]`);
|
|
6371
|
+
else if (change.providerReplacement !== void 0) logFn(` [requires replacement: ${stripForDisplay(change.providerReplacement)}; deleted, then created again]`);
|
|
6371
6372
|
if (change.propertyChanges && change.propertyChanges.length > 0) for (const propChange of change.propertyChanges) {
|
|
6372
6373
|
const requiresReplace = propChange.requiresReplacement && (propChange.inPlacePropagated === true || propChange.replacementPropagated === true) ? " [may require replacement]" : propChange.requiresReplacement ? " [requires replacement]" : "";
|
|
6373
6374
|
const propagated = propChange.replacementPropagated ? " [replacement propagated]" : propChange.readProvenancePromoted === true ? " [read value moved upstream]" : propChange.inPlacePropagated ? " [attribute propagated]" : propChange.maskedExpressionChanged === true ? " [masked input or expression changed]" : propChange.unsettled === true ? " [unsettled after a failed update; sent again]" : propChange.newValueKnownAfterDeploy === true ? " [reads a resource this deploy changes]" : "";
|
|
@@ -10231,6 +10232,117 @@ function canonicalizeIpProtocols(baseline, aws, resourceType) {
|
|
|
10231
10232
|
};
|
|
10232
10233
|
}
|
|
10233
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
|
+
|
|
10234
10346
|
// src/provisioning/providers/s3-bucket/shared.ts
|
|
10235
10347
|
function manualBucketDeletionClause(bucketName, maskSecrets, journaled) {
|
|
10236
10348
|
const command = renderDisableCommand({
|
|
@@ -10886,6 +10998,57 @@ function sgSettleRuleKey(rule, direction) {
|
|
|
10886
10998
|
d: present(rule["Description"])
|
|
10887
10999
|
});
|
|
10888
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
|
+
}
|
|
10889
11052
|
function declaredSgRulesRead(value, declared, direction) {
|
|
10890
11053
|
if (!Array.isArray(value)) return false;
|
|
10891
11054
|
const have = value.map((rule) => typeof rule === "object" && rule !== null ? sgSettleRuleKey(rule, direction) : void 0);
|
|
@@ -10937,6 +11100,16 @@ function mergeDeclaredSgRules(read, declared, direction) {
|
|
|
10937
11100
|
return key !== void 0 && keyOf(entry) === key;
|
|
10938
11101
|
}, (want) => typeof want === "object" && want !== null ? sgRuleReadbackShape(want, direction) : void 0);
|
|
10939
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
|
+
}
|
|
10940
11113
|
|
|
10941
11114
|
// src/provisioning/providers/iam-policy/agreeing-copies.ts
|
|
10942
11115
|
const readsWithAgreeingCopies = /* @__PURE__ */ new WeakSet();
|
|
@@ -10951,9 +11124,6 @@ function readHadAgreeingCopies(read) {
|
|
|
10951
11124
|
const UNDECLARED_UNCOMPARED_KEYS = {
|
|
10952
11125
|
"AWS::S3::Bucket": ["NotificationConfiguration"],
|
|
10953
11126
|
"AWS::Events::EventBus": ["Policy"],
|
|
10954
|
-
"AWS::IAM::User": ["Groups", "ManagedPolicyArns"],
|
|
10955
|
-
"AWS::IAM::Role": ["ManagedPolicyArns"],
|
|
10956
|
-
"AWS::IAM::Group": ["ManagedPolicyArns"],
|
|
10957
11127
|
"AWS::IAM::ManagedPolicy": [
|
|
10958
11128
|
"Groups",
|
|
10959
11129
|
"Roles",
|
|
@@ -11463,6 +11633,55 @@ function stackRegionOption$2() {
|
|
|
11463
11633
|
}
|
|
11464
11634
|
|
|
11465
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
|
+
}
|
|
11466
11685
|
function humanTextSink(json) {
|
|
11467
11686
|
return json ? {
|
|
11468
11687
|
write: (chunk) => {
|
|
@@ -11543,6 +11762,7 @@ function printRevertPlan(reports, out, recovery, writeOnlyResend) {
|
|
|
11543
11762
|
const word = o.changes.length === 1 ? "property path" : "property paths";
|
|
11544
11763
|
out.write(` → provider.update on ${reportResource(o)}: revert ${o.changes.length} ${word}\n`);
|
|
11545
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);
|
|
11546
11766
|
const resent = writeOnlyResend?.get(o) ?? [];
|
|
11547
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`);
|
|
11548
11768
|
const stateResource = report.state.resources[o.logicalId];
|
|
@@ -12170,7 +12390,7 @@ function sameRecordedJson(candidate, recorded) {
|
|
|
12170
12390
|
|
|
12171
12391
|
// src/cli/commands/drift/compare.ts
|
|
12172
12392
|
async function compareDriftReadback(args) {
|
|
12173
|
-
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;
|
|
12174
12394
|
const ignorePaths = provider.getDriftUnknownPaths ? provider.getDriftUnknownPaths(resource.resourceType, resource.properties ?? {}) : [];
|
|
12175
12395
|
const unorderedPaths = provider.getDriftUnorderedPaths ? provider.getDriftUnorderedPaths(resource.resourceType) : [];
|
|
12176
12396
|
const useObserved = resource.observedProperties !== void 0;
|
|
@@ -12214,7 +12434,8 @@ async function compareDriftReadback(args) {
|
|
|
12214
12434
|
secrets.clear();
|
|
12215
12435
|
}
|
|
12216
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.`);
|
|
12217
|
-
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)) : [];
|
|
12218
12439
|
const normalized = await canonicalizePrincipalUniqueIds(comparisonBaseline, aws, resolvePrincipalUniqueId);
|
|
12219
12440
|
const protocolNormalized = canonicalizeIpProtocols(normalized.baseline, normalized.aws, resource.resourceType);
|
|
12220
12441
|
const siblingStripped = stripSiblingOwnedParentMembers(resource.resourceType, resource.physicalId, protocolNormalized.baseline, protocolNormalized.aws, resource.properties, readContext);
|
|
@@ -12228,8 +12449,9 @@ async function compareDriftReadback(args) {
|
|
|
12228
12449
|
aws: stripDerivedEchoMembers(resource.resourceType, pairCanonicalized.aws)
|
|
12229
12450
|
};
|
|
12230
12451
|
const nameBaseline = canonicalizeDerivedPatternBName(resource.resourceType, paired.baseline, paired.aws);
|
|
12231
|
-
const
|
|
12232
|
-
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)];
|
|
12233
12455
|
const preFixIgnorePaths = preFixBaselineUncomparedDriftKeys(resource.resourceType, resource.observedProperties, resource.properties, aws);
|
|
12234
12456
|
const readOnlyIgnorePaths = readOnlyUncomparedDriftPaths(readOnlyPathsLookup ? await readOnlyPathsLookup : void 0, resource.properties);
|
|
12235
12457
|
const extraIgnorePaths = [
|
|
@@ -12307,6 +12529,35 @@ function canonicalizeDerivedPatternBName(resourceType, baseline, aws) {
|
|
|
12307
12529
|
return out;
|
|
12308
12530
|
}
|
|
12309
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
|
+
|
|
12310
12561
|
// src/cli/commands/drift/detect.ts
|
|
12311
12562
|
async function runDriftForStack(stackName, region, stateBackend, providerRegistry, ccApiFallback, resolvePrincipalUniqueId, malformedRecordMode, nestedChildRecord, refusalRecovery) {
|
|
12312
12563
|
const result = await stateBackend.getState(stackName, region);
|
|
@@ -12357,11 +12608,43 @@ async function runDriftForStack(stackName, region, stateBackend, providerRegistr
|
|
|
12357
12608
|
ccApi: 0
|
|
12358
12609
|
};
|
|
12359
12610
|
const trippedReadPaths = /* @__PURE__ */ new Set();
|
|
12360
|
-
const
|
|
12611
|
+
const resetReadFailures = () => {
|
|
12361
12612
|
consecutiveReadFailures.provider = 0;
|
|
12362
12613
|
consecutiveReadFailures.ccApi = 0;
|
|
12363
12614
|
};
|
|
12364
|
-
|
|
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
|
+
}
|
|
12365
12648
|
if (unreadablePropertyBags.has(logicalId)) {
|
|
12366
12649
|
outcomes.push({
|
|
12367
12650
|
kind: "notCompared",
|
|
@@ -12486,6 +12769,7 @@ async function runDriftForStack(stackName, region, stateBackend, providerRegistr
|
|
|
12486
12769
|
});
|
|
12487
12770
|
return;
|
|
12488
12771
|
}
|
|
12772
|
+
if (resource.resourceType !== "AWS::IAM::ManagedPolicy") notComparedPolicyArns ??= notComparedManagedPolicyArns(state.resources, outcomes);
|
|
12489
12773
|
await compareDriftReadback({
|
|
12490
12774
|
region,
|
|
12491
12775
|
resolvePrincipalUniqueId,
|
|
@@ -12501,7 +12785,8 @@ async function runDriftForStack(stackName, region, stateBackend, providerRegistr
|
|
|
12501
12785
|
printing,
|
|
12502
12786
|
aws,
|
|
12503
12787
|
readContext,
|
|
12504
|
-
...readOnlyPathsLookup && { readOnlyPathsLookup }
|
|
12788
|
+
...readOnlyPathsLookup && { readOnlyPathsLookup },
|
|
12789
|
+
...notComparedPolicyArns && { notComparedPolicyArns }
|
|
12505
12790
|
});
|
|
12506
12791
|
} catch (err) {
|
|
12507
12792
|
if (isNoReadHandlerError(err)) {
|
|
@@ -12523,19 +12808,21 @@ async function runDriftForStack(stackName, region, stateBackend, providerRegistr
|
|
|
12523
12808
|
let breakerTripped = false;
|
|
12524
12809
|
if (err instanceof DriftReadRefusedError) noteReadReturned();
|
|
12525
12810
|
else if (!readReturned) {
|
|
12526
|
-
|
|
12527
|
-
|
|
12528
|
-
|
|
12529
|
-
|
|
12530
|
-
|
|
12811
|
+
if (inPolicyBlock) deferredPolicyReads.push({
|
|
12812
|
+
rank: currentRank,
|
|
12813
|
+
failed: readPath
|
|
12814
|
+
});
|
|
12815
|
+
else breakerTripped = countReadFailure(readPath);
|
|
12531
12816
|
}
|
|
12532
|
-
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)}`);
|
|
12533
|
-
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);
|
|
12534
12819
|
if (err instanceof Error && err.stack) logger.debug(`${logicalId} (${resource.resourceType}): comparison failure detail`, maskSecretsInError(err, secrets).stack);
|
|
12535
12820
|
return;
|
|
12536
12821
|
}
|
|
12537
12822
|
});
|
|
12538
12823
|
}
|
|
12824
|
+
flushPolicyReads(Number.POSITIVE_INFINITY);
|
|
12825
|
+
restoreEntryOrder(outcomes, walkStart, entries);
|
|
12539
12826
|
const warnings = warnIfPreV10BaselineGap(state, outcomes, logger);
|
|
12540
12827
|
return {
|
|
12541
12828
|
stackName,
|
|
@@ -13392,13 +13679,18 @@ async function revertDriftedOutcome(args) {
|
|
|
13392
13679
|
let newProperties;
|
|
13393
13680
|
try {
|
|
13394
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;
|
|
13395
13686
|
desiredProperties = siblingOwnedRevertDesired(outcome.resourceType, stateResource.physicalId, desiredProperties, outcome.awsProperties, stateResource.properties, siblingContext);
|
|
13396
13687
|
if (provider.canonicalizeDriftPair) desiredProperties = (await provider.canonicalizeDriftPair(outcome.resourceType, desiredProperties, outcome.awsProperties, stateResource.properties ?? {})).baseline;
|
|
13397
13688
|
desiredProperties = stripDerivedEchoMembers(outcome.resourceType, desiredProperties);
|
|
13398
13689
|
const overlaid = buildRevertNewProperties(outcome.changes, desiredProperties, outcome.awsProperties, stateResource.observedProperties === void 0 ? {
|
|
13399
13690
|
preserveUntemplated: true,
|
|
13400
|
-
verbatimKeys: verbatimEchoDriftKeys(outcome.resourceType)
|
|
13401
|
-
|
|
13691
|
+
verbatimKeys: verbatimEchoDriftKeys(outcome.resourceType),
|
|
13692
|
+
absentMeansDefault: noBoundary.absent
|
|
13693
|
+
} : { absentMeansDefault: [...driftAbsentMeansDefaultKeys(provider, outcome.resourceType, stateResource.properties), ...noBoundary.absent] });
|
|
13402
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 ?? {}));
|
|
13403
13695
|
const tokenPreserved = unresolvedTokens.size > 0 ? preserveLiveValuesAtUnresolvedTokens(certifiedOverlay, outcome.awsProperties, unresolvedTokens, secrets) : certifiedOverlay;
|
|
13404
13696
|
const maskPreserved = preserveLiveValuesAtMaskedLeaves(tokenPreserved, outcome.awsProperties, secrets, certifiedOverlay, spelledKeysOf(stateResource.properties ?? {}));
|
|
@@ -36233,5 +36525,5 @@ function collectVerbFlags(program) {
|
|
|
36233
36525
|
return map;
|
|
36234
36526
|
}
|
|
36235
36527
|
|
|
36236
|
-
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,
|
|
36237
|
-
//# 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
|