@cdkd/cli 0.358.7 → 0.359.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ambient-client-defaults-DvXDYfs8.js → ambient-client-defaults-BNqC0q-Z.js} +3 -3
- package/dist/{ambient-client-defaults-DvXDYfs8.js.map → ambient-client-defaults-BNqC0q-Z.js.map} +1 -1
- package/dist/{asg-provider-BReZap7O.js → asg-provider-BDCUGWZV.js} +6 -6
- package/dist/{asg-provider-BReZap7O.js.map → asg-provider-BDCUGWZV.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{custom-resource-runtime-CpziCILQ.js → custom-resource-runtime-DMkX_oQo.js} +6 -6
- package/dist/{custom-resource-runtime-CpziCILQ.js.map → custom-resource-runtime-DMkX_oQo.js.map} +1 -1
- package/dist/{db-associated-roles-DTMCw2Ka.js → db-associated-roles-Bx5ML-MI.js} +2 -2
- package/dist/{db-associated-roles-DTMCw2Ka.js.map → db-associated-roles-Bx5ML-MI.js.map} +1 -1
- package/dist/{delete-started-DNc0CPAc.js → delete-started-V5NHQ1O-.js} +4 -4
- package/dist/{delete-started-DNc0CPAc.js.map → delete-started-V5NHQ1O-.js.map} +1 -1
- package/dist/{deploy-engine-Db00WvIx.js → deploy-engine-BjSv27_M.js} +2025 -859
- package/dist/deploy-engine-BjSv27_M.js.map +1 -0
- package/dist/{ec2-termination-protection-Gf-1-VVU.js → ec2-termination-protection-hc3MeuqF.js} +11 -7
- package/dist/ec2-termination-protection-hc3MeuqF.js.map +1 -0
- package/dist/{ecr-uri-zC_A2VLB.js → ecr-uri-D1ijxg7D.js} +2 -2
- package/dist/{ecr-uri-zC_A2VLB.js.map → ecr-uri-D1ijxg7D.js.map} +1 -1
- package/dist/{expected-bucket-owner-Am4J3ano.js → expected-bucket-owner-CQimj8gv.js} +2 -2
- package/dist/{expected-bucket-owner-Am4J3ano.js.map → expected-bucket-owner-CQimj8gv.js.map} +1 -1
- package/dist/{iam-role-provider-BisBYgT3.js → iam-role-provider-b46RdZD5.js} +27 -13
- package/dist/iam-role-provider-b46RdZD5.js.map +1 -0
- package/dist/{image-plan-CNMyGwzi.js → image-plan-DtFbiJj5.js} +8 -8
- package/dist/{image-plan-CNMyGwzi.js.map → image-plan-DtFbiJj5.js.map} +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-BZmINj0f.js → logger-CqKPJ_tV.js} +2 -2
- package/dist/{logger-BZmINj0f.js.map → logger-CqKPJ_tV.js.map} +1 -1
- package/dist/{neptune-provider-DM4GhUTb.js → neptune-provider-DiyWADaS.js} +7 -7
- package/dist/{neptune-provider-DM4GhUTb.js.map → neptune-provider-DiyWADaS.js.map} +1 -1
- package/dist/{program-CCtcOCaP.js → program-Cdwgr3Yv.js} +626 -40
- package/dist/program-Cdwgr3Yv.js.map +1 -0
- package/dist/{provider-classes-CgZzBNg8.js → provider-classes-DhmwW7hI.js} +465 -391
- package/dist/provider-classes-DhmwW7hI.js.map +1 -0
- package/dist/{rds-provider-Cef0DBFH.js → rds-provider-DpOZv_UG.js} +10 -10
- package/dist/{rds-provider-Cef0DBFH.js.map → rds-provider-DpOZv_UG.js.map} +1 -1
- package/dist/{read-replica-DCjUkLOl.js → read-replica-Ct0oakPU.js} +3 -3
- package/dist/{read-replica-DCjUkLOl.js.map → read-replica-Ct0oakPU.js.map} +1 -1
- package/dist/{replacement-rules-iQkausbv.js → replacement-rules-CMnMy7rf.js} +3 -3
- package/dist/{replacement-rules-iQkausbv.js.map → replacement-rules-CMnMy7rf.js.map} +1 -1
- package/dist/{resource-deadline-6tnCx6Yj.js → resource-deadline-DlZTHrBj.js} +123 -122
- package/dist/resource-deadline-DlZTHrBj.js.map +1 -0
- package/dist/{restore-source-guard-Dj_CS7r6.js → restore-source-guard-DIs6rqZm.js} +4 -4
- package/dist/{restore-source-guard-Dj_CS7r6.js.map → restore-source-guard-DIs6rqZm.js.map} +1 -1
- package/dist/{run-cli-Db8hPv4V.js → run-cli-BLZnjA32.js} +2 -2
- package/dist/{run-cli-Db8hPv4V.js.map → run-cli-BLZnjA32.js.map} +1 -1
- package/dist/{settle-own-write-members-CXG2uUvJ.js → settle-own-write-members-C1uPhq2z.js} +49 -304
- package/dist/settle-own-write-members-C1uPhq2z.js.map +1 -0
- package/dist/{version-DSeV-Tyv.js → version-DyE_oClc.js} +2 -2
- package/dist/{version-DSeV-Tyv.js.map → version-DyE_oClc.js.map} +1 -1
- package/package.json +1 -1
- package/dist/deploy-engine-Db00WvIx.js.map +0 -1
- package/dist/ec2-termination-protection-Gf-1-VVU.js.map +0 -1
- package/dist/iam-role-provider-BisBYgT3.js.map +0 -1
- package/dist/program-CCtcOCaP.js.map +0 -1
- package/dist/provider-classes-CgZzBNg8.js.map +0 -1
- package/dist/resource-deadline-6tnCx6Yj.js.map +0 -1
- package/dist/settle-own-write-members-CXG2uUvJ.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 {
|
|
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-DyE_oClc.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-DtFbiJj5.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-DlZTHrBj.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, 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, 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-CqKPJ_tV.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-BNqC0q-Z.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 getReadOnlyPropertyPaths, $i as secretNamePrintingBag, $n as sgProtocolKey, $r as reachableDivergentParameters, $s as malformedScrubResourceEntriesRefusalMessage, $t as displacedPhysicalIdShown, A as recordedProtectionEvidence, Ac as refuseMalformedOutputs, Ai as isSupersededResourceRecord, Al as renderNestedTemplateTreeDefect, An as findDestructiveChanges, Ao as regionLessSecretName, Ar as replacementNeverSwapped, As as maskedPropertyFingerprintsOf, Ba as localCustomResourceCommand, Bc as refuseMalformedResourcesForExport, Bi as red, Bl as buildAssetRedirectMap, Bn as differingRemedy, Bo as cfnRefValueFromPhysicalId, Br as removeProtectionTypeList, Bs as malformedOrphanRecordsWarning, Bt as sameMove, C as pendingMovesOutOf, Ca as ProviderRegistry, Cc as repairMalformedOrphansForReadOnly, Cl as isSecretValuedAttribute, Cn as NOECHO_MAC_KEY_ALIAS, Co as AWS_CREDENTIAL_ENV_KEYS, Cr as seedsDeleteFirstGuard, Cu as describeFileReadFailure, D as findServiceTokenRefusals, Da as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, Dc as malformedOutputsRefusalMessage, Di as findNestedStackTypeChanges, Dl as findNestedTemplateTreeDefect, Dn as noEchoMacVerdict, Do as classifyRecordedSecretRegion, Dr as planFailedOps, Ds as getTopLevelKeysHoldingUnreadableCreateOnly, Du as resolveAssemblyPath, E as deferredServiceTokenWarning, Ea as wouldReturnToSdkProvider, Ec as malformedLocalOutputsWarning, Ei as withPreviousPolicies, En as noEchoMacParametersOf, Eo as envCredentialsAreAssumedRole, Er as isReplacementOrphan, Es as getSettledWriteOnlyPropertyPaths, Eu as renderAssemblyPathEscape, F as readProtection, Fa as withPrintingSecrets, Fc as malformedRenderedContainersWarning, Fi as withoutSuperseded, Fl as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, Fn as rollbackOrphanIds, Fs as declaresNoEcho, Ft as readRefactorMarker, Ga as CloudControlProvider, Gc as withheldAccountClause, Gi as noEchoParameterNamesOf, Gn as propertiesChangedReason, Gr as retiredAfterRollback, Gs as refuseMalformedOrphansForOrphan, H as readStreamPolicy, Ha as setLocalCustomResourceRuntimeEnabled, Hc as repairMalformedResourcesForReadOnly, Hi as noEchoAttributeNamesOf, Hl as createLazyAssetModeContext, Hn as looselyEqual, Ho as refStateLookupFromResource, Hr as nameGenerationCarriedFrom, Hs as previewableOrphanRecords, Ht as macWriteOnlyKeys, Ia as NO_LOCAL_CUSTOM_RESOURCES_FLAG, Ic as malformedResourcesWarning, Ii as bold, In as withMovedTo, Io as coerceParameterTypedValue, Is as maskedPropertyFingerprint, It as readRefactorMarkerOnce, Ja as UNSPECIFIED_SKIP_REASON, Jc as displayLogicalId, Ji as completedReplayEntries, Jn as siblingOwnedRevertDesired, Jo as keepHeldTokenProvenance, Jr as withNameGenerationReached, Js as unreadableOrphanRecords, Kc as STATE_RESOURCES_MALFORMED, Ki as withAttemptedItemsMasked, Kl as loadPublishableAssetManifest, Kn as proposeRenames, Kr as retiredNameGenerationsAfter, Ks as repairMalformedOrphanRecordsForReadOnly, Lc as malformedStateRefusalMessage, Li as cyan, Ll as decodeListingKey, Ln as changedReferenceInDiff, Lo as isUnboundTemplateParameter, Ls as deployRefusesOrphanRowsReason, Lt as refactorMarkerMovesOf, M as PROTECTION_PROPERTY_BY_TYPE, Ma as readsNoEchoDeleteValues, Mc as repairMalformedOutputsForReadOnly, Mi as supersededHeldByOtherTypeWarning, Mn as findRefactorHints, Mr as computeImplicitDeleteEdges, Ms as parameterInputsFor, N as isProtectionValueActive, Na as isCustomResourceType$1, Nc as STATE_REGION_DIVERGED, Ni as supersededHolderOf, Nn as hintSidesOf, Nr as attemptUsesCompletedCreate, Ns as maskedInputProof, Nt as keptForRetainedRecord, O as serviceTokenBlockingReason, Oa as applyCustomResourceResponseExpiration, Oc as malformedOutputsWarning, Oi as deleteSupersededEntry, Ol as isAbsoluteAssetPath, On as noEchoValueMacsOf, Oo as classifyReplaySecretRegion, Or as recheckFailedPlan, Os as tryGetTopLevelWriteOnlyProperties, P as perType, Pc as refuseDivergentRecordRegionForDestroy, Pi as supersededResourcesOf, Pl as ssmResolvedValueType, Pn as movedToHint, Pr as readsRegeneratingSecret, Pt as recordRetainedForReadoption, Qc as findHandledUnwrittenCreateOnly, Qi as orphanRecordsPrintingBag, Qn as cfnIngressPortValue, Qo as recordedReferenceRegions, Qr as namesAnyDeclaredParameter, Qs as malformedResourceEntriesWarning, Qt as displacedOpClause, Ra as customResourcesFailedWithoutApp, Rc as refuseMalformedResourcesForDeploy, Ri as gray, Rn as changedReferencePath, Ro as parameterTypeMayLoseSecretIdentity, Rs as isReadableOrphanRecord, Rt as refactorMarkerRefusalMessage, S as hasPendingMovesOut, Sa as CC_BROKEN_REASON, Sc as refuseMalformedOrphansForDestroy, Si as withStackRecords, Sl as withStackInstanceIdWithheld, Sn as crossStackReadsForPartialSave, So as sendableAssumeRoleCommand, Sr as planRollback, T as refusePendingMovesOut, Ta as isCustomResource, Tc as malformedExportSourceWarning, Ti as resolveReplacementOldType, Tn as noEchoMacBinding, To as callerEnvCredentials, Tr as isJournaledOrphan, Ua as withCustomResourceStack, Uc as JSON_LISTING_HOLE_VALUE, Ui as noEchoComparisonForTemplate, Un as mappingPairs, Uo as lacksRecordedRefArn, Ur as nameGenerationHighWaterOf, Us as refuseMalformedOrphanRecords, Ut as readsOnlyNoEchoParameters, Vc as refuseMalformedState, Vi as yellow, Vl as createAssetRedirectResolver, Vn as isPairableType, Vo as isStalePlaceholderArnAttribute, Vr as orphanNeedsIdentity, Vs as malformedOrphanRowsKeptWarning, Vt as updateRefactorMarker, Wc as accountArgs, Wi as noEchoExactEchoLeavesOf, Wn as parseMappingFile, Wo as lacksRecordedTableArn, Wr as nameScopeOf, Ws as refuseMalformedOrphanRecordsForDestroy, Wt as formatResourceLine, Xa as deleteLeftInPlace, Xc as hasReadableResources, Xi as maskEventTextWithBoundBags, Xl as AssetManifestLoader, Xo as recordedOutputReferenceRegions, Xr as inheritProducerRegions, Xs as malformedLocalResourceEntriesWarning, Xt as resolvePendingCloudControlRequests, Ya as deleteIndeterminateGuards, Yc as hasReadableOutputs, Yi as journaledOrphanPrintingBag, Yl as rewriteTemplateAssetReferences, Yn as stripSiblingOwnedParentMembers, Ys as isReadableResourceEntry, Yt as pendingRequestCount, Za as deleteSkipReason, Zc as findActionableSdkUnwired, Zi as namingSecretsWithRecordedNoEcho, Zl as getDockerImageBySourceHash, Zr as computeParameterTaint, Zs as malformedLocalResourcesWarning, Zt as NESTED_PENDING_PARENT_REASON, _ as conditionFingerprint, _c as UNREADABLE_ORPHANS_CONTAINER_ROW, _i as DEFAULT_RESOURCE_WARN_AFTER_MS, _l as applyCrossPrefixScan, _n as makeForeignHolderScan, _o as assertFlagRoleArn, _s as MULTI_REGION_RECREATE_BLOCKED_TYPES, _u as hasOwnKey, a as scanActiveConsumers, aa as extractDeploymentEventError, ac as refuseMalformedResourceEntriesForImportSave, ai as secretBearingStateKeyWarning, al as hasNoCloudControlHandlers, an as revertedNestedRowIds, ao as poisonRenderedSpellingsCollidingIn, ar as recordAfterRollbackUpdate, as as carriesDynamicReference, au as buildDenyExternalAccessPolicy, b as readRecordedConditionVerdicts, bc as malformedOrphansWarning, bi as destroyStackRecordsView, bl as isNotImplemented, bn as DeploymentEventsReader, bo as isIamRoleArn, br as withCreateTokenLedger, bs as renderStatefulReason, bu as ownValue, c as nestedSsmNameDeferredNote, ca as ccRoutedFinalSnapshotError, cc as unreadableResourceEntries, ci as exportNameNoEchoParameters, cl as S3StateBackend, cn as getCurrentNestedStackContext, cr as calculateResourceDrift, cu as getBootstrapMarkerKey, d as slashedSsmNameHealAdoptedNote, da as isFinalSnapshotError, di as noEchoParameterValueSeed, dl as readOnlyStateVersionOf, dn as dropFailedCommands, do as secretSegmentsOfState, dr as undeclaredEmptyObservedKeys, du as validateAssetBucketName, ea as secretNamePrintingBags, ec as refuseMalformedResourceAttributesForOrphan, ei as resourcesNamingDeclaredParameter, el as unwrittenCreateOnlyReplacement, en as dropSettledNestedJournals, eo as isWaitAbandonedError, er as canonicalizeIpProtocolValue, f as slashedSsmNameHealNote, fa as refusesFinalSnapshot, fc as refuseMalformedResourcePropertiesForDestroy, fi as collectDeclaredOutputNames, fl as hasReasonlessBaselineRefusal, fn as dropFailedHint, fo as withSecretPhysicalIdsMaskedInState, fr as verbatimEchoDriftKeys, fu as validateContainerRepoName, g as makeCanonicalizePropertiesFn, gc as repairMalformedResourcePropertiesForReadOnly, gi as DEFAULT_RESOURCE_TIMEOUT_MS, gl as CrossPrefixScanCache, gn as sameJournaledOrphans, go as applyRoleArnIfSet, gr as replacementCreateRoutesToCloudControl, gs as shownType, gu as defineOwnKey, h as inheritedProvenanceForChildDiff, ha as buildFinalSnapshotIdentifier, hc as refuseMalformedResourcePropertiesForOrphan, hi as bindingSkippedOutputs, hl as CrossPrefixReadError, hn as loadJournaledOrphans, ho as refuseUnreadableCdkCrossAccountRefs, hr as findUpdatePolicyReplacementRefusals, i as mergeNoChangeOutputs, ia as storedSecretNameNeedles, ic as refuseMalformedResourceEntriesForImport, ii as secretBearing, il as NO_CC_HANDLERS_REASON, io as isAlwaysLiveAttribute, ir as buildReadCurrentStateContext, is as isNamelessDynamicReferenceError, iu as ensureAssetStorage, j as recordedProtectionNote, ja as TemplateNoEchoReresolver, jc as refuseMalformedOutputsForDestroy, ji as supersededAfterRollback, jl as templateIdentity, jn as formatDestructiveChange, jr as IMPLICIT_DELETE_DEPENDENCIES, k as diffSecurity, ka as customResourceResponseExpirationWarning, ki as holdsSupersededResources, kl as listNestedTemplateRows, kn as constructPathOf$1, ko as producerRegionsFromState, kr as recordUnderIdIsNotOwn, ku as resolveBucketRegion, l as nestedSsmNameRowNote, la as ccRoutedInstanceTakesNoSnapshot, lc as malformedDriftResourcePropertiesWarning, li as exportNameSecretExposure, ll as splitImportedOps, ln as withNestedStackContext, lr as equalModuloMarkedMask, ls as INTRINSIC_KEYS, lu as parseBootstrapMarker, m as crossStackOutputProvenanceSource, ma as createPreDeleteFinalSnapshot, mc as refuseMalformedResourcePropertiesForExport, mi as isExportAliasCollision, ml as rebuildClientForBucketRegion, mn as journaledOrphanLines, mo as producerLookupOver, mr as updatePartialReason, ms as findReplacedReadersOfRecreateTargets, n as isSecretBearingReferenceString, na as secretNamedRecordNeedles, nc as refuseMalformedResourceEntriesForDeploy, ni as displayTextOrWithheld, nn as nestedChildStackName$1, no as IntrinsicFunctionResolver, nr as replayRollback, ns as isImpossibleEmptyStoredAttribute, o as inRunStackKey, oa as ATOMIC_FINAL_SNAPSHOT_TYPES, oc as refuseMalformedResourceEntriesForOrphan, oi as secretSafeKeyDisplay, ol as PROPERTY_COVERAGE_BY_TYPE, on as withNestedRevertRun, oo as stackIdTailOf, or as settleUnsettledPrevious, os as keepsSecretReferenceToken, ou as assertAssetBucketRegion, p as slashedSsmNameHealPendingNote, pa as unsupportedFinalSnapshotError, pc as refuseMalformedResourcePropertiesForDrift, pi as collectPublishedOutputNames, pl as hasUnverifiableParameterRefusal, pn as isHandledOrphan, po as resolveDynamicReferences, pr as updatePartialMessage, pu as BOOTSTRAP_MARKER_PREFIX, q as streamPolicyMatchesDeclared, qa as RollbackInlinePolicyWriters, qc as UNREADABLE_RESOURCES_MAP_ROW, qi as createReadOnlyAttributeHealerFactory, qn as referencedLogicalIds, qr as retiredNameGenerationsLeaving, qs as unpreviewableOrphanRecords, r as keptWholeReasonText, ra as stateSecretNameNeedles, rc as refuseMalformedResourceEntriesForDestroy, ri as exportAliasCollisionScrubWarning, rn as recordDisplacedSkips, ro as isSelectOutOfBounds, rr as DELETED_RESOURCE_REMEDY, rs as carriesFetchableDynamicReference, ru as AssetModeResolver, s as checkNestedSsmNames, sa as PRE_DELETE_SNAPSHOT_TYPES, sc as repairMalformedResourceEntriesForReadOnly, si as carriedExportAliasExposure, sl as TemplateParser, sn as collectNestedChildUnaddressed, sr as withUnprovenUnsettled, ss as withSharedDrainBudget, su as isCrossRegionRedirect, t as DeployEngine, tc as refuseMalformedResourceEntries, ti as WITHHELD_NAME_DISPLAY, tr as replayFailedOperations, ts as getAccountInfo, u as healSlashedSsmParameterNames, ua as effectiveDeletionPolicy, uc as malformedResourcePropertiesWarning, ui as isWholeDynamicReferenceValue, un as deleteJournaledOrphans, uo as secretPhysicalIdSegment, ur as equalModuloMask, uu as readBootstrapMarkerBody, v as conditionInputsFrom, vc as hasReadableOrphans, vi as maskingRetryLogger, vl as crossPrefixDeniedWarning, vn as makeSiblingClaimReader, vo as assertSendableRoleArn, vr as ledgerForStack, vs as isStatefulRecreateTargetForReplace, vu as hasPlainPrototype, w as pendingMovesRefusalMessage, wa as ccBrokenReason, wc as malformedExportNamesWarning, wi as snapshotSegmentSurvivors, wl as isSensitiveAttributeName, wn as createNoEchoValueMacs, wo as applyCallerIdentityCredentials, wr as demoteSupersededOrphans, wu as displayAssemblyPath, x as childTemplateLoader, xc as refuseMalformedOrphans, xl as stackInstanceIdOf, xn as DeploymentEventsStore, xo as parseIamRoleArn, y as parentSuppliedValues, yc as malformedOrphansRefusalMessage, yl as isAccessDenied, yn as planOrphanAdoption, yo as explicitRoleArnOrThrow, ys as isStatefulRecreateTargetSync, yu as nullPrototypeRecord, za as customResourcesRunWithoutApp, zc as refuseMalformedResourcesForDestroy, zi as green, zn as changedReferenceReason, zo as AWS_NO_VALUE, zr as segmentCleanupOptions, zs as malformedOrphanRecordsRefusalMessage, zt as refuseRefactorMarker } from "./deploy-engine-Db00WvIx.js";
|
|
8
|
+
import { $ as CFN_TEMPLATE_URL_LIMIT, A as isMalformedEnvKey, B as loadCdkJson, C as redactedDockerCause, D as partitionSensitiveEnv, E as finchSecretArgvRefusal, F as abortInFlightMultipartUploads, G as resolveStateBucketWithDefault, H as resolveAutoAssetStorage, I as Synthesizer, J as resolveUpdatePolicy, K as resolveStateBucketWithDefaultAndSource, L as synthesisStatusMessage, M as getDockerCmd, N as runDockerForeground, O as warnFinchArgvExposure, P as runDockerStreaming, Q as CFN_TEMPLATE_BODY_LIMIT, R as getDefaultStateBucketName, S as redactedCause, T as dockerSpawnEnvWithSensitive, U as resolveCaptureObservedState, V as resolveApp, W as resolveSkipPrefix, X as stateBucketExistenceConfirmed, Y as resolveUseCdkBootstrapAssets, Z as warnDeprecatedNoPrefixCliFlag, _ as buildDockerImage, at as StageLoadError, b as describeDockerExecFailure, ct as legacyPlanAssetCount, dt as CdkToolkitBucketMissingError, et as MIGRATE_TMP_PREFIX, f as DagBuilder, ft as processStackMessages, g as WorkGraph, h as AssetPublisher, i as mergeDeclaredEntries, it as AssemblyReader, j as formatDockerLoginError, k as isDockerClientEnvKey, l as DiffCalculator, lt as predictedAutoCreatedAssetMode, m as isLockInfoExpired, n as declaredStringList, nt as uploadCfnTemplate, ot as bindLegacyStackAssetParameters, p as LockManager, pt as setChildProcessAwsEnv, q as resolveStateBucketWithSource, r as inlinePoliciesAreDeclared, rt as refuseFailedLookups, s as stringListIsDeclared, st as createLegacyAssetParameterBinder, t as declaredInlinePolicies, tt as findLargeInlineResources, ut as prepareLegacyStackAssets, v as resolveDockerContextDirectory, w as redactDockerArgvValues, x as describeDockerFailure, z as getLegacyStateBucketName } from "./settle-own-write-members-C1uPhq2z.js";
|
|
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-BjSv27_M.js";
|
|
10
10
|
import { n as canonicalizeRegion, r as derivePartitionAndUrlSuffix, t as PARTITION_TABLE } from "./aws-partition-DA0r2sr-.js";
|
|
11
|
-
import {
|
|
12
|
-
import { t as expectedOwnerParam } from "./expected-bucket-owner-
|
|
13
|
-
import { Ct as isReadableBag, Et as shouldRetainResource, Ot as stackInstanceIdCarriedFrom, St as importableOutputs, Tt as orphansCarriedFrom, _t as acceptedCreateOnlyDropsOf, bt as hasReadableExportSet, gt as slowCcOperationTimeoutMs, vt as describeRegionValueKind, wt as orphansAfterRollback, xt as importableOutputKeys, yt as exportNamesCarriedFrom } from "./delete-started-
|
|
14
|
-
import { An as recordNoEchoAttributeValues, Bt as identityKeyFor, D as recordedNoEchoValuesOf, Fn as WHOLE_DYNAMIC_REFERENCE_PATTERN, Ft as keepTemplateLiteralLeaves, Ln as isSingleDynamicReferenceToken, Lt as spelledKeysOf, Mn as recordProvenPublicExpression, Mt as DYNAMIC_REFERENCE_TOKEN_SCAN, Nn as wholeStringLeavesOf, Nt as dynamicReferenceTokens, On as recordMaskOnlyValue, Ot as scrubResourceRecord, Pt as isUncertifiedBaselineMaskPosition, Rt as pathCrossesDottedKey, T as readsNoEchoSource, Tn as provenPublicValue, W as redactForState, Yt as inheritNestedStackParameterAssociations, _t as maskSecretsInText, at as literalSplitDelimitersOf, b as noEchoOutputsComparison, ct as recordLogOnlyParameterValue, dt as shareLogOnlyValues, et as carryLogOnlyValues, f as isMarkedCoordinate, ft as unionOfSecretBags, g as maskedLeafCoordinatesOf, gt as maskSecretsInError, h as maskWholeValue, it as hasMaskableValues, j as liveMatchesUnresolvedTokenFrame, jn as recordNoEchoParameterFreshValue, k as valueAtCoordinate, kn as recordMaskOnlyValuesIn, kt as withPhysicalNameCopies, ln as recordPhysicalNameCopy, m as maskReadbackAtCoordinates, mn as carriesSecretMask, mt as errorCauseChain, nt as createUnionSecretMasker, ot as logOnlyValueCount, p as maskAtCoordinates, pn as splitGetAttStringForm, pt as createSecretMasker, sn as physicalNameCopiesOf, st as printingCorpusOf, u as canonicalCoordinates, un as recordNestedStackParameterExpressions, ut as recordLogOnlyValue, v as noEchoCoordinatesOf, y as noEchoLeavesOf } from "./replacement-rules-
|
|
15
|
-
import { S as unsettledPropertiesOf, T as withoutUnsettledProperties, b as unsettledItemsOf, w as withUnsettledProperties, y as unsettledItemsField } from "./restore-source-guard-
|
|
16
|
-
import { a as parseEcrRegistryHost, i as looksLikeEcrHostWithForeignSuffix, n as hasEcrRegistryHostLabels, t as ecrRegistryHostPattern } from "./ecr-uri-
|
|
11
|
+
import { 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-hc3MeuqF.js";
|
|
12
|
+
import { t as expectedOwnerParam } from "./expected-bucket-owner-CQimj8gv.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-V5NHQ1O-.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-CMnMy7rf.js";
|
|
15
|
+
import { S as unsettledPropertiesOf, T as withoutUnsettledProperties, b as unsettledItemsOf, w as withUnsettledProperties, y as unsettledItemsField } from "./restore-source-guard-DIs6rqZm.js";
|
|
16
|
+
import { a as parseEcrRegistryHost, i as looksLikeEcrHostWithForeignSuffix, n as hasEcrRegistryHostLabels, t as ecrRegistryHostPattern } from "./ecr-uri-D1ijxg7D.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,11 +1541,11 @@ 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-DhmwW7hI.js");
|
|
1545
1545
|
return providerClasses;
|
|
1546
1546
|
}
|
|
1547
1547
|
function registerAllProviders(registry, classes) {
|
|
1548
|
-
const { IAMRoleProvider, IAMPolicyProvider, IAMManagedPolicyProvider, IAMInstanceProfileProvider, IAMAccessKeyProvider, IAMUserGroupProvider, S3BucketProvider, S3BucketPolicyProvider, SQSQueueProvider, SQSQueuePolicyProvider, SNSTopicProvider, SNSSubscriptionProvider, SNSTopicPolicyProvider, LambdaFunctionProvider, LambdaPermissionProvider, LambdaUrlProvider, LambdaEventSourceMappingProvider, LambdaLayerVersionProvider, LambdaEventInvokeConfigProvider, LambdaMicrovmImageProvider, LambdaWebFunctionRevisionProvider, LambdaWebFunctionEndpointProvider, LambdaNetworkConnectorProvider, DynamoDBTableProvider, DynamoDBGlobalTableProvider, LogsLogGroupProvider, LogsDeliverySourceProvider, LogsDeliveryDestinationProvider, LogsDeliveryProvider, CloudWatchAlarmProvider, CloudWatchAnomalyDetectorProvider, SecretsManagerSecretProvider, SSMParameterProvider, EventBridgeRuleProvider, EventBridgeBusProvider, EventBridgeArchiveProvider, EC2Provider, ApiGatewayProvider, ApiGatewayV2Provider, CloudFrontOAIProvider, CloudFrontOACProvider, CloudFrontDistributionProvider, AgentCoreRuntimeProvider, AgentCoreBrowserProvider, AgentCoreCodeInterpreterProvider, AgentCoreEvaluatorProvider, StepFunctionsProvider, ECSProvider, ELBv2Provider, RDSProvider, RDSDBProxyProvider, RDSDBProxyEndpointProvider, RDSDBProxyTargetGroupProvider, DocDBProvider, DocDBSubnetGroupProvider, AppConfigEnvironmentProvider, NeptuneProvider, Route53Provider, WAFv2WebACLProvider, CognitoUserPoolProvider, ElastiCacheProvider, ServiceDiscoveryProvider, AppSyncProvider, GlueProvider, GlueWorkflowProvider, GlueSecurityConfigurationProvider, GlueJobProvider, GlueCrawlerProvider, GlueConnectionProvider, GlueTriggerProvider, KMSProvider, BudgetsBudgetProvider, KinesisStreamProvider, KinesisStreamConsumerProvider, SchedulerScheduleProvider, PipesPipeProvider, EFSProvider, FSxFileSystemProvider, EMRClusterProvider, EMRInstanceGroupConfigProvider, EMRInstanceFleetConfigProvider, FirehoseProvider, CloudTrailProvider, CodeBuildProvider, CodeCommitRepositoryProvider, DLMLifecyclePolicyProvider, S3VectorsProvider, S3DirectoryBucketProvider, S3TablesProvider, ECRProvider, ASGProvider, NestedStackProvider, WaitConditionHandleProvider, ACMCertificateProvider } = classes;
|
|
1548
|
+
const { IAMRoleProvider, IAMPolicyProvider, IAMManagedPolicyProvider, IAMInstanceProfileProvider, IAMAccessKeyProvider, IAMUserGroupProvider, S3BucketProvider, S3BucketPolicyProvider, SQSQueueProvider, SQSQueuePolicyProvider, SNSTopicProvider, SNSSubscriptionProvider, SNSTopicPolicyProvider, LambdaFunctionProvider, LambdaPermissionProvider, LambdaUrlProvider, LambdaEventSourceMappingProvider, LambdaLayerVersionProvider, LambdaEventInvokeConfigProvider, LambdaMicrovmImageProvider, LambdaWebFunctionRevisionProvider, LambdaWebFunctionEndpointProvider, LambdaNetworkConnectorProvider, DynamoDBTableProvider, DynamoDBGlobalTableProvider, LogsLogGroupProvider, LogsDeliverySourceProvider, LogsDeliveryDestinationProvider, LogsDeliveryProvider, CloudWatchAlarmProvider, CloudWatchAnomalyDetectorProvider, SecretsManagerSecretProvider, SSMParameterProvider, EventBridgeRuleProvider, EventBridgeBusProvider, EventBridgeArchiveProvider, EC2Provider, ApiGatewayProvider, ApiGatewayV2Provider, CloudFrontOAIProvider, CloudFrontOACProvider, CloudFrontDistributionProvider, AgentCoreRuntimeProvider, AgentCoreBrowserProvider, AgentCoreCodeInterpreterProvider, AgentCoreEvaluatorProvider, StepFunctionsProvider, ECSProvider, ELBv2Provider, RDSProvider, RDSDBProxyProvider, RDSDBProxyEndpointProvider, RDSDBProxyTargetGroupProvider, DocDBProvider, DocDBSubnetGroupProvider, AppConfigEnvironmentProvider, NeptuneProvider, Route53Provider, WAFv2WebACLProvider, CognitoUserPoolProvider, ElastiCacheProvider, ServiceDiscoveryProvider, AppSyncProvider, GlueProvider, GlueWorkflowProvider, GlueSecurityConfigurationProvider, GlueJobProvider, GlueCrawlerProvider, GlueConnectionProvider, GlueTriggerProvider, KMSProvider, BudgetsBudgetProvider, KinesisStreamProvider, KinesisStreamConsumerProvider, SchedulerScheduleProvider, PipesPipeProvider, EFSProvider, FSxFileSystemProvider, EMRClusterProvider, EMRInstanceGroupConfigProvider, EMRInstanceFleetConfigProvider, FirehoseProvider, CloudTrailProvider, CodeBuildProvider, CodeCommitRepositoryProvider, DLMLifecyclePolicyProvider, S3VectorsProvider, S3DirectoryBucketProvider, S3TablesProvider, ECRProvider, ASGProvider, NestedStackProvider, WaitConditionHandleProvider, WaitConditionProvider, ACMCertificateProvider } = classes;
|
|
1549
1549
|
registry.register("AWS::IAM::Role", new IAMRoleProvider());
|
|
1550
1550
|
registry.register("AWS::IAM::Policy", new IAMPolicyProvider());
|
|
1551
1551
|
registry.register("AWS::IAM::ManagedPolicy", new IAMManagedPolicyProvider());
|
|
@@ -1707,7 +1707,8 @@ function registerAllProviders(registry, classes) {
|
|
|
1707
1707
|
registry.register("AWS::S3Tables::Table", s3TablesProvider);
|
|
1708
1708
|
registry.register("AWS::Budgets::Budget", new BudgetsBudgetProvider());
|
|
1709
1709
|
registry.register("AWS::CloudFormation::Stack", new NestedStackProvider());
|
|
1710
|
-
registry.register("AWS::CloudFormation::WaitConditionHandle", new WaitConditionHandleProvider());
|
|
1710
|
+
registry.register("AWS::CloudFormation::WaitConditionHandle", new WaitConditionHandleProvider(registry.waitConditionSignals));
|
|
1711
|
+
registry.register("AWS::CloudFormation::WaitCondition", new WaitConditionProvider(registry.waitConditionSignals));
|
|
1711
1712
|
}
|
|
1712
1713
|
|
|
1713
1714
|
// src/cli/commands/registry-release.ts
|
|
@@ -9530,6 +9531,26 @@ function collectPrincipalForms(value) {
|
|
|
9530
9531
|
arns
|
|
9531
9532
|
};
|
|
9532
9533
|
}
|
|
9534
|
+
function holdsPrincipalForm(value, form) {
|
|
9535
|
+
if (typeof value !== "string" && collectPrincipalForms(value)[form].size > 0) return true;
|
|
9536
|
+
return embeddedJsonDocuments(value).some((document) => holdsPrincipalForm(document, form));
|
|
9537
|
+
}
|
|
9538
|
+
function embeddedJsonDocuments(value) {
|
|
9539
|
+
const out = [];
|
|
9540
|
+
const walk = (node) => {
|
|
9541
|
+
if (typeof node === "string") {
|
|
9542
|
+
if (!node.trimStart().startsWith("{")) return;
|
|
9543
|
+
try {
|
|
9544
|
+
out.push(JSON.parse(node));
|
|
9545
|
+
} catch {}
|
|
9546
|
+
return;
|
|
9547
|
+
}
|
|
9548
|
+
if (!node || typeof node !== "object") return;
|
|
9549
|
+
for (const member of Array.isArray(node) ? node : Object.values(node)) walk(member);
|
|
9550
|
+
};
|
|
9551
|
+
walk(value);
|
|
9552
|
+
return out;
|
|
9553
|
+
}
|
|
9533
9554
|
function rewritePrincipalUniqueIds(value, arnByUniqueId) {
|
|
9534
9555
|
if (Array.isArray(value)) return value.map((el) => rewritePrincipalUniqueIds(el, arnByUniqueId));
|
|
9535
9556
|
if (!value || typeof value !== "object") return value;
|
|
@@ -10957,8 +10978,14 @@ function undeclaredUncomparedDriftKeys(resourceType, properties) {
|
|
|
10957
10978
|
}
|
|
10958
10979
|
function preFixBaselineUncomparedDriftKeys(resourceType, observed, properties, aws) {
|
|
10959
10980
|
if (observed === void 0) return [];
|
|
10981
|
+
return preFixBaselineKeys(resourceType, observed, properties, aws).filter((key) => !(holdsPrincipalForm({ [key]: observed[key] }, "uniqueIds") && holdsPrincipalForm({ [key]: aws[key] }, "arns")));
|
|
10982
|
+
}
|
|
10983
|
+
function preFixBaselineKeys(resourceType, observed, properties, aws) {
|
|
10960
10984
|
if (typeof properties !== "object" || properties === null || Array.isArray(properties)) return [];
|
|
10961
|
-
if (resourceType === "AWS::DynamoDB::Table")
|
|
10985
|
+
if (resourceType === "AWS::DynamoDB::Table") {
|
|
10986
|
+
const bag = properties;
|
|
10987
|
+
return [...staleTablePolicyBaseline(observed, bag, aws) ? ["ResourcePolicy"] : [], ...tagsHeal.liveIsDeclared(bag, aws) ? [tagsHeal.key] : []];
|
|
10988
|
+
}
|
|
10962
10989
|
if (resourceType === "AWS::SQS::QueuePolicy" || resourceType === "AWS::SNS::TopicPolicy") {
|
|
10963
10990
|
const declared = declaredPolicyDocument(properties);
|
|
10964
10991
|
return declared !== void 0 && policyDocumentMatchesDeclared(aws["PolicyDocument"], declared) && !policyDocumentMatchesDeclared(observed["PolicyDocument"], declared) ? ["PolicyDocument"] : [];
|
|
@@ -11004,6 +11031,13 @@ const sgRulesHeal = (key, direction) => ({
|
|
|
11004
11031
|
key,
|
|
11005
11032
|
liveIsDeclared: (properties, aws) => sgRulesAreDeclared(aws[key], properties[key], direction)
|
|
11006
11033
|
});
|
|
11034
|
+
const tagsHeal = {
|
|
11035
|
+
key: "Tags",
|
|
11036
|
+
liveIsDeclared: (properties, aws) => {
|
|
11037
|
+
const declared = declaredTagsReadback(properties["Tags"]);
|
|
11038
|
+
return declared !== void 0 && tagsMatchDeclared(aws["Tags"], declared);
|
|
11039
|
+
}
|
|
11040
|
+
};
|
|
11007
11041
|
const OWN_WRITE_MEMBERS = new Map(Object.entries({
|
|
11008
11042
|
"AWS::KMS::Key": [documentHeal("KeyPolicy")],
|
|
11009
11043
|
"AWS::Logs::DeliveryDestination": [{
|
|
@@ -11045,6 +11079,7 @@ const OWN_WRITE_MEMBERS = new Map(Object.entries({
|
|
|
11045
11079
|
return declared.kind === "absent" ? lifecycleReadIsAbsent(liveBag) : lifecycleMatchesDeclared(liveBag, declared.expected);
|
|
11046
11080
|
}
|
|
11047
11081
|
}],
|
|
11082
|
+
"AWS::SecretsManager::Secret": [tagsHeal],
|
|
11048
11083
|
"AWS::CodeBuild::Project": [{
|
|
11049
11084
|
key: "Visibility",
|
|
11050
11085
|
liveIsDeclared: (properties, aws) => typeof properties["Visibility"] === "string" && properties["Visibility"] !== "" && aws["Visibility"] === properties["Visibility"]
|
|
@@ -11752,9 +11787,9 @@ function corroboratedLeafCount(send, live, wildcardLeaf = isMaskLeaf) {
|
|
|
11752
11787
|
}
|
|
11753
11788
|
return total;
|
|
11754
11789
|
}
|
|
11755
|
-
if (isPlainRecord(send)) {
|
|
11790
|
+
if (isPlainRecord$2(send)) {
|
|
11756
11791
|
if (!hasPlainPrototype(send)) return void 0;
|
|
11757
|
-
if (!isPlainRecord(live) || !hasPlainPrototype(live)) return void 0;
|
|
11792
|
+
if (!isPlainRecord$2(live) || !hasPlainPrototype(live)) return void 0;
|
|
11758
11793
|
const keys = Object.keys(send);
|
|
11759
11794
|
if (keys.length !== Object.keys(live).length) return void 0;
|
|
11760
11795
|
let total = 0;
|
|
@@ -11874,8 +11909,8 @@ function preserveLiveValuesAtMaskedLeaves(send, awsProperties, secrets, corrobor
|
|
|
11874
11909
|
if (carriesSecretMask(value)) unpreservablePaths.push(path);
|
|
11875
11910
|
return value;
|
|
11876
11911
|
}
|
|
11877
|
-
const liveObject = isPlainRecord(live) ? live : void 0;
|
|
11878
|
-
const corrObject = isPlainRecord(corr) ? corr : void 0;
|
|
11912
|
+
const liveObject = isPlainRecord$2(live) ? live : void 0;
|
|
11913
|
+
const corrObject = isPlainRecord$2(corr) ? corr : void 0;
|
|
11879
11914
|
const out = Object.create(null);
|
|
11880
11915
|
for (const [k, v] of Object.entries(value)) out[k] = walk(v, corrObject === void 0 ? void 0 : ownValue(corrObject, k), liveObject === void 0 ? void 0 : ownValue(liveObject, k), path === "" ? k : `${path}.${k}`);
|
|
11881
11916
|
return out;
|
|
@@ -11898,7 +11933,7 @@ function isTagListKey(key) {
|
|
|
11898
11933
|
return key === "Tags" || key.endsWith("Tags");
|
|
11899
11934
|
}
|
|
11900
11935
|
function isCfnTagList(value) {
|
|
11901
|
-
return Array.isArray(value) && value.length > 0 && value.every((t) => isPlainRecord(t) && typeof t.Key === "string");
|
|
11936
|
+
return Array.isArray(value) && value.length > 0 && value.every((t) => isPlainRecord$2(t) && typeof t.Key === "string");
|
|
11902
11937
|
}
|
|
11903
11938
|
function tagKeys(tags) {
|
|
11904
11939
|
return tags.map((t) => t["Key"]);
|
|
@@ -11965,8 +12000,8 @@ function collectMissingPaths(awsValue, desiredValue, path, out, isPreservedKey)
|
|
|
11965
12000
|
}
|
|
11966
12001
|
return;
|
|
11967
12002
|
}
|
|
11968
|
-
if (!isPlainRecord(awsValue)) return;
|
|
11969
|
-
if (!isPlainRecord(desiredValue)) {
|
|
12003
|
+
if (!isPlainRecord$2(awsValue)) return;
|
|
12004
|
+
if (!isPlainRecord$2(desiredValue)) {
|
|
11970
12005
|
if (desiredValue === void 0) out.add(path);
|
|
11971
12006
|
return;
|
|
11972
12007
|
}
|
|
@@ -11982,7 +12017,7 @@ function collectMissingPaths(awsValue, desiredValue, path, out, isPreservedKey)
|
|
|
11982
12017
|
function isKeyedList(value) {
|
|
11983
12018
|
return Array.isArray(value) && value.length > 0 && value.every((e) => typeof e === "object" && e !== null && typeof e.Key === "string");
|
|
11984
12019
|
}
|
|
11985
|
-
function isPlainRecord(value) {
|
|
12020
|
+
function isPlainRecord$2(value) {
|
|
11986
12021
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
11987
12022
|
}
|
|
11988
12023
|
function mergeUntemplatedValue(awsValue, desiredValue) {
|
|
@@ -12004,7 +12039,7 @@ function mergeUntemplatedValue(awsValue, desiredValue) {
|
|
|
12004
12039
|
}
|
|
12005
12040
|
return merged;
|
|
12006
12041
|
}
|
|
12007
|
-
if (!isPlainRecord(awsValue) || !isPlainRecord(desiredValue)) return desiredValue;
|
|
12042
|
+
if (!isPlainRecord$2(awsValue) || !isPlainRecord$2(desiredValue)) return desiredValue;
|
|
12008
12043
|
if (!hasPlainPrototype(awsValue) || !hasPlainPrototype(desiredValue)) return desiredValue;
|
|
12009
12044
|
const merged = Object.create(null);
|
|
12010
12045
|
for (const [key, value] of Object.entries(awsValue)) merged[key] = hasOwnKey(desiredValue, key) ? mergeUntemplatedValue(value, desiredValue[key]) : value;
|
|
@@ -12024,7 +12059,7 @@ function preserveLiveValuesAtUnresolvedTokens(send, awsProperties, unresolvedTok
|
|
|
12024
12059
|
}
|
|
12025
12060
|
if (value !== null && typeof value === "object") {
|
|
12026
12061
|
if (!hasPlainPrototype(value)) return value;
|
|
12027
|
-
const liveObject = isPlainRecord(live) ? live : void 0;
|
|
12062
|
+
const liveObject = isPlainRecord$2(live) ? live : void 0;
|
|
12028
12063
|
const out = Object.create(null);
|
|
12029
12064
|
for (const [k, v] of Object.entries(value)) out[k] = walk(v, liveObject === void 0 ? void 0 : ownValue(liveObject, k));
|
|
12030
12065
|
return out;
|
|
@@ -12078,7 +12113,7 @@ function buildRevertNewProperties(drifts, desiredProperties, awsProperties, opti
|
|
|
12078
12113
|
return result;
|
|
12079
12114
|
}
|
|
12080
12115
|
function driftAbsentMeansDefaultKeys(provider, resourceType, properties) {
|
|
12081
|
-
if (provider.getDriftAbsentMeansDefaultKeys === void 0 || !isPlainRecord(properties)) return [];
|
|
12116
|
+
if (provider.getDriftAbsentMeansDefaultKeys === void 0 || !isPlainRecord$2(properties)) return [];
|
|
12082
12117
|
const keys = provider.getDriftAbsentMeansDefaultKeys(resourceType, properties);
|
|
12083
12118
|
const dotted = keys.filter((key) => key.includes("."));
|
|
12084
12119
|
if (dotted.length === 0) return keys;
|
|
@@ -12517,7 +12552,7 @@ async function runDriftForStack(stackName, region, stateBackend, providerRegistr
|
|
|
12517
12552
|
|
|
12518
12553
|
// src/cli/commands/drift/revert-write-only.ts
|
|
12519
12554
|
function revertWriteOnlyResendNames(resourceType, properties, writeOnlyNames) {
|
|
12520
|
-
if (!writeOnlyNames || writeOnlyNames.size === 0 || !isPlainRecord(properties)) return [];
|
|
12555
|
+
if (!writeOnlyNames || writeOnlyNames.size === 0 || !isPlainRecord$2(properties)) return [];
|
|
12521
12556
|
const unreadableCreateOnly = getTopLevelKeysHoldingUnreadableCreateOnly(resourceType, properties);
|
|
12522
12557
|
const names = [];
|
|
12523
12558
|
for (const name of writeOnlyNames) {
|
|
@@ -12532,7 +12567,7 @@ function revertWriteOnlyResendNames(resourceType, properties, writeOnlyNames) {
|
|
|
12532
12567
|
function withDeclaredWriteOnlyValues(send, resolvedProperties, names, paths) {
|
|
12533
12568
|
const skipped = [];
|
|
12534
12569
|
const wholesale = [];
|
|
12535
|
-
if (names.length === 0 || !isPlainRecord(resolvedProperties)) return {
|
|
12570
|
+
if (names.length === 0 || !isPlainRecord$2(resolvedProperties)) return {
|
|
12536
12571
|
properties: send,
|
|
12537
12572
|
skipped,
|
|
12538
12573
|
wholesale
|
|
@@ -12605,11 +12640,11 @@ function graftAt(send, declared, path, writeOnly) {
|
|
|
12605
12640
|
ok
|
|
12606
12641
|
};
|
|
12607
12642
|
}
|
|
12608
|
-
if (!isPlainRecord(declared) || !hasOwnKey(declared, segment)) return {
|
|
12643
|
+
if (!isPlainRecord$2(declared) || !hasOwnKey(declared, segment)) return {
|
|
12609
12644
|
value: send,
|
|
12610
12645
|
ok: true
|
|
12611
12646
|
};
|
|
12612
|
-
if (!isPlainRecord(send)) return {
|
|
12647
|
+
if (!isPlainRecord$2(send)) return {
|
|
12613
12648
|
value: send,
|
|
12614
12649
|
ok: false
|
|
12615
12650
|
};
|
|
@@ -12640,7 +12675,7 @@ function withoutPaths(value, paths) {
|
|
|
12640
12675
|
const inner = paths.filter((p) => p[0] === "*").map((p) => p.slice(1));
|
|
12641
12676
|
return value.map((item) => withoutPaths(item, inner));
|
|
12642
12677
|
}
|
|
12643
|
-
if (!isPlainRecord(value)) return value;
|
|
12678
|
+
if (!isPlainRecord$2(value)) return value;
|
|
12644
12679
|
const out = {};
|
|
12645
12680
|
for (const [key, child] of Object.entries(value)) {
|
|
12646
12681
|
const inner = paths.filter((p) => p[0] === key).map((p) => p.slice(1));
|
|
@@ -12650,8 +12685,8 @@ function withoutPaths(value, paths) {
|
|
|
12650
12685
|
return out;
|
|
12651
12686
|
}
|
|
12652
12687
|
function covers(template, actual) {
|
|
12653
|
-
if (isPlainRecord(template)) {
|
|
12654
|
-
if (!isPlainRecord(actual)) return false;
|
|
12688
|
+
if (isPlainRecord$2(template)) {
|
|
12689
|
+
if (!isPlainRecord$2(actual)) return false;
|
|
12655
12690
|
return Object.entries(template).every(([key, child]) => hasOwnKey(actual, key) && covers(child, actual[key]));
|
|
12656
12691
|
}
|
|
12657
12692
|
if (Array.isArray(template)) return Array.isArray(actual) && template.length === actual.length && template.every((child, index) => covers(child, actual[index]));
|
|
@@ -12665,6 +12700,528 @@ function carriesIntrinsicObject(value) {
|
|
|
12665
12700
|
return Object.values(value).some(carriesIntrinsicObject);
|
|
12666
12701
|
}
|
|
12667
12702
|
|
|
12703
|
+
// src/provisioning/providers/ec2/sg-support.ts
|
|
12704
|
+
const SG_INGRESS_IP_PROTOCOL_DEFAULT = "-1";
|
|
12705
|
+
const SG_INGRESS_IP_PROTOCOL_PATH = "AWS::EC2::SecurityGroupIngress IpProtocol";
|
|
12706
|
+
const SG_READBACK_RETRY_DELAY_MS = 1e3;
|
|
12707
|
+
const securityGroupReadbackDelays = {};
|
|
12708
|
+
const SG_RULE_PAGE_SIZE$1 = 1e3;
|
|
12709
|
+
function narrowIngressIpProtocol(properties, onUnusable) {
|
|
12710
|
+
const declared = properties["IpProtocol"];
|
|
12711
|
+
const ipProtocol = requireConfigString(declared, SG_INGRESS_IP_PROTOCOL_DEFAULT, SG_INGRESS_IP_PROTOCOL_PATH, {
|
|
12712
|
+
coerceNumber: true,
|
|
12713
|
+
...onUnusable && { onUnusable }
|
|
12714
|
+
});
|
|
12715
|
+
if (declared === void 0 || declared === ipProtocol) return {
|
|
12716
|
+
ipProtocol,
|
|
12717
|
+
narrowed: properties
|
|
12718
|
+
};
|
|
12719
|
+
return {
|
|
12720
|
+
ipProtocol,
|
|
12721
|
+
narrowed: {
|
|
12722
|
+
...properties,
|
|
12723
|
+
IpProtocol: ipProtocol
|
|
12724
|
+
}
|
|
12725
|
+
};
|
|
12726
|
+
}
|
|
12727
|
+
function canonicalizeSgRuleProtocol(rule) {
|
|
12728
|
+
if (!("IpProtocol" in rule)) return rule;
|
|
12729
|
+
const next = canonicalizeIpProtocolValue(rule["IpProtocol"]);
|
|
12730
|
+
if (next === rule["IpProtocol"]) return rule;
|
|
12731
|
+
return {
|
|
12732
|
+
...rule,
|
|
12733
|
+
IpProtocol: next
|
|
12734
|
+
};
|
|
12735
|
+
}
|
|
12736
|
+
function canonicalizeSgInlineRuleProtocols(properties) {
|
|
12737
|
+
let out = properties;
|
|
12738
|
+
for (const key of ["SecurityGroupIngress", "SecurityGroupEgress"]) {
|
|
12739
|
+
const list = out[key];
|
|
12740
|
+
if (!Array.isArray(list)) continue;
|
|
12741
|
+
let changed = false;
|
|
12742
|
+
const mapped = list.map((el) => {
|
|
12743
|
+
if (el === null || typeof el !== "object" || Array.isArray(el)) return el;
|
|
12744
|
+
const next = canonicalizeSgRuleProtocol(el);
|
|
12745
|
+
if (next !== el) changed = true;
|
|
12746
|
+
return next;
|
|
12747
|
+
});
|
|
12748
|
+
if (changed) out = {
|
|
12749
|
+
...out,
|
|
12750
|
+
[key]: mapped
|
|
12751
|
+
};
|
|
12752
|
+
}
|
|
12753
|
+
return out;
|
|
12754
|
+
}
|
|
12755
|
+
function flattenIpPermissions(perms, direction) {
|
|
12756
|
+
const out = [];
|
|
12757
|
+
for (const p of perms) {
|
|
12758
|
+
const base = {};
|
|
12759
|
+
if (p.IpProtocol !== void 0) base["IpProtocol"] = p.IpProtocol;
|
|
12760
|
+
if (p.FromPort !== void 0) base["FromPort"] = p.FromPort;
|
|
12761
|
+
if (p.ToPort !== void 0) base["ToPort"] = p.ToPort;
|
|
12762
|
+
for (const ip of p.IpRanges ?? []) {
|
|
12763
|
+
const rule = { ...base };
|
|
12764
|
+
if (ip.CidrIp !== void 0) rule["CidrIp"] = ip.CidrIp;
|
|
12765
|
+
if (ip.Description !== void 0) rule["Description"] = ip.Description;
|
|
12766
|
+
out.push(rule);
|
|
12767
|
+
}
|
|
12768
|
+
for (const ipv6 of p.Ipv6Ranges ?? []) {
|
|
12769
|
+
const rule = { ...base };
|
|
12770
|
+
if (ipv6.CidrIpv6 !== void 0) rule["CidrIpv6"] = ipv6.CidrIpv6;
|
|
12771
|
+
if (ipv6.Description !== void 0) rule["Description"] = ipv6.Description;
|
|
12772
|
+
out.push(rule);
|
|
12773
|
+
}
|
|
12774
|
+
for (const grp of p.UserIdGroupPairs ?? []) {
|
|
12775
|
+
const rule = { ...base };
|
|
12776
|
+
if (direction === "ingress") {
|
|
12777
|
+
if (grp.GroupId !== void 0) rule["SourceSecurityGroupId"] = grp.GroupId;
|
|
12778
|
+
if (grp.UserId !== void 0) rule["SourceSecurityGroupOwnerId"] = grp.UserId;
|
|
12779
|
+
} else if (grp.GroupId !== void 0) rule["DestinationSecurityGroupId"] = grp.GroupId;
|
|
12780
|
+
if (grp.Description !== void 0) rule["Description"] = grp.Description;
|
|
12781
|
+
out.push(rule);
|
|
12782
|
+
}
|
|
12783
|
+
for (const pl of p.PrefixListIds ?? []) {
|
|
12784
|
+
const rule = { ...base };
|
|
12785
|
+
if (direction === "ingress") {
|
|
12786
|
+
if (pl.PrefixListId !== void 0) rule["SourcePrefixListId"] = pl.PrefixListId;
|
|
12787
|
+
} else if (pl.PrefixListId !== void 0) rule["DestinationPrefixListId"] = pl.PrefixListId;
|
|
12788
|
+
if (pl.Description !== void 0) rule["Description"] = pl.Description;
|
|
12789
|
+
out.push(rule);
|
|
12790
|
+
}
|
|
12791
|
+
if ((p.IpRanges?.length ?? 0) === 0 && (p.Ipv6Ranges?.length ?? 0) === 0 && (p.UserIdGroupPairs?.length ?? 0) === 0 && (p.PrefixListIds?.length ?? 0) === 0) out.push({ ...base });
|
|
12792
|
+
}
|
|
12793
|
+
return out;
|
|
12794
|
+
}
|
|
12795
|
+
function ingressRuleIdentity(groupId, properties) {
|
|
12796
|
+
const source = (key) => properties[key] ?? null;
|
|
12797
|
+
return JSON.stringify({
|
|
12798
|
+
g: groupId ?? null,
|
|
12799
|
+
p: sgProtocolKey(properties["IpProtocol"]),
|
|
12800
|
+
f: cfnIngressPortValue(properties["FromPort"]),
|
|
12801
|
+
t: cfnIngressPortValue(properties["ToPort"]),
|
|
12802
|
+
c4: source("CidrIp"),
|
|
12803
|
+
c6: source("CidrIpv6"),
|
|
12804
|
+
sg: source("SourceSecurityGroupId"),
|
|
12805
|
+
sgName: source("SourceSecurityGroupName"),
|
|
12806
|
+
sgOwner: source("SourceSecurityGroupOwnerId"),
|
|
12807
|
+
pl: source("SourcePrefixListId")
|
|
12808
|
+
});
|
|
12809
|
+
}
|
|
12810
|
+
const INGRESS_IDENTITY_KEYS$1 = [
|
|
12811
|
+
"IpProtocol",
|
|
12812
|
+
"FromPort",
|
|
12813
|
+
"ToPort",
|
|
12814
|
+
"CidrIp",
|
|
12815
|
+
"CidrIpv6",
|
|
12816
|
+
"SourceSecurityGroupId",
|
|
12817
|
+
"SourceSecurityGroupName",
|
|
12818
|
+
"SourceSecurityGroupOwnerId",
|
|
12819
|
+
"SourcePrefixListId"
|
|
12820
|
+
];
|
|
12821
|
+
function comparableIngressIdentity(group, rule) {
|
|
12822
|
+
if (!isPlainRecord$1(rule) || typeof group !== "string" || group === "" || isRedactedRecordedValue(group) || !INGRESS_IDENTITY_KEYS$1.every((key) => !isRedactedRecordedValue(rule[key])) || !Number.isFinite(cfnIngressPortValue(rule["FromPort"])) || !Number.isFinite(cfnIngressPortValue(rule["ToPort"]))) return;
|
|
12823
|
+
return ingressRuleIdentity(group, rule);
|
|
12824
|
+
}
|
|
12825
|
+
function survivingRecordOfRuleId(records, selfLogicalId, ruleId) {
|
|
12826
|
+
for (const [lid, record] of records ?? []) {
|
|
12827
|
+
if (lid === selfLogicalId || record.resourceType !== "AWS::EC2::SecurityGroupIngress") continue;
|
|
12828
|
+
if (recordedSgRuleId(record.attributes) === ruleId) return lid;
|
|
12829
|
+
}
|
|
12830
|
+
}
|
|
12831
|
+
function stackIngressRuleHolder(records, selfLogicalId, groupId, rule, idCheck) {
|
|
12832
|
+
if (records === void 0) return void 0;
|
|
12833
|
+
const wanted = comparableIngressIdentity(groupId, rule);
|
|
12834
|
+
if (wanted === void 0) return void 0;
|
|
12835
|
+
for (const [lid, record] of records) {
|
|
12836
|
+
if (lid === selfLogicalId) continue;
|
|
12837
|
+
const props = record.properties;
|
|
12838
|
+
if (record.resourceType === "AWS::EC2::SecurityGroupIngress") {
|
|
12839
|
+
if (!isPlainRecord$1(props) || comparableIngressIdentity(props["GroupId"], props) !== wanted) continue;
|
|
12840
|
+
const ruleId = recordedSgRuleId(record.attributes);
|
|
12841
|
+
if (ruleId !== void 0 && idCheck !== void 0) {
|
|
12842
|
+
if ("live" in idCheck && ruleId !== idCheck.live) continue;
|
|
12843
|
+
if ("own" in idCheck && idCheck.own !== void 0 && ruleId !== idCheck.own) continue;
|
|
12844
|
+
}
|
|
12845
|
+
return lid;
|
|
12846
|
+
}
|
|
12847
|
+
if (record.resourceType === "AWS::EC2::SecurityGroup" && record.physicalId === groupId) {
|
|
12848
|
+
const inline = isPlainRecord$1(props) ? props["SecurityGroupIngress"] : void 0;
|
|
12849
|
+
if (Array.isArray(inline) && inline.some((entry) => comparableIngressIdentity(groupId, entry) === wanted)) return lid;
|
|
12850
|
+
}
|
|
12851
|
+
}
|
|
12852
|
+
}
|
|
12853
|
+
function tagListsMatch(live, declared) {
|
|
12854
|
+
const pairs = (list) => list.every((entry) => isPlainRecord$1(entry) && typeof entry["Key"] === "string") ? list.map((entry) => {
|
|
12855
|
+
const tag = entry;
|
|
12856
|
+
return JSON.stringify([tag["Key"], tag["Value"] ?? ""]);
|
|
12857
|
+
}).sort() : void 0;
|
|
12858
|
+
const a = pairs(live);
|
|
12859
|
+
const b = pairs(declared);
|
|
12860
|
+
return a !== void 0 && b !== void 0 && JSON.stringify(a) === JSON.stringify(b);
|
|
12861
|
+
}
|
|
12862
|
+
function isPlainRecord$1(value) {
|
|
12863
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
12864
|
+
}
|
|
12865
|
+
function descriptionKey(value) {
|
|
12866
|
+
return typeof value === "string" ? value : "";
|
|
12867
|
+
}
|
|
12868
|
+
const NEVER_CONNECTED_SOCKET_CODES = /* @__PURE__ */ new Set([
|
|
12869
|
+
"ECONNREFUSED",
|
|
12870
|
+
"ENOTFOUND",
|
|
12871
|
+
"EHOSTUNREACH",
|
|
12872
|
+
"ENETUNREACH",
|
|
12873
|
+
"EAI_AGAIN"
|
|
12874
|
+
]);
|
|
12875
|
+
const RESENDABLE_SOCKET_CODES = /* @__PURE__ */ new Set([
|
|
12876
|
+
"ECONNRESET",
|
|
12877
|
+
"EPIPE",
|
|
12878
|
+
"ETIMEDOUT",
|
|
12879
|
+
"EADDRNOTAVAIL"
|
|
12880
|
+
]);
|
|
12881
|
+
function errorCode(error) {
|
|
12882
|
+
return error?.code;
|
|
12883
|
+
}
|
|
12884
|
+
function isConnectTimeout(error) {
|
|
12885
|
+
const e = error;
|
|
12886
|
+
return e?.name === "TimeoutError" && e.code === void 0 && typeof e.message === "string" && e.message.includes("did not establish a connection");
|
|
12887
|
+
}
|
|
12888
|
+
function neverReachedAws(error) {
|
|
12889
|
+
if (isConnectTimeout(error)) return true;
|
|
12890
|
+
const code = errorCode(error);
|
|
12891
|
+
if (typeof code === "string" && NEVER_CONNECTED_SOCKET_CODES.has(code)) return true;
|
|
12892
|
+
return error?.name === "CredentialsProviderError";
|
|
12893
|
+
}
|
|
12894
|
+
function isResendableSocketFailure(error) {
|
|
12895
|
+
if (isConnectTimeout(error)) return false;
|
|
12896
|
+
const code = errorCode(error);
|
|
12897
|
+
if (typeof code === "string" && RESENDABLE_SOCKET_CODES.has(code)) return true;
|
|
12898
|
+
return error?.name === "TimeoutError";
|
|
12899
|
+
}
|
|
12900
|
+
function authorizeDefinitelyNotApplied(error) {
|
|
12901
|
+
if (neverReachedAws(error)) return true;
|
|
12902
|
+
const e = error;
|
|
12903
|
+
if (typeof e?.name === "string" && THROTTLING_ERROR_NAMES.has(e.name)) return true;
|
|
12904
|
+
if (e?.$retryable?.throttling === true) return true;
|
|
12905
|
+
const status = e?.$metadata?.httpStatusCode;
|
|
12906
|
+
return typeof status === "number" && status >= 400 && status < 500;
|
|
12907
|
+
}
|
|
12908
|
+
function singleSecurityGroupRuleId(rules) {
|
|
12909
|
+
const ids = (rules ?? []).map((rule) => rule.SecurityGroupRuleId).filter((id) => typeof id === "string" && id.trim() !== "");
|
|
12910
|
+
return ids.length === 1 ? ids[0] : void 0;
|
|
12911
|
+
}
|
|
12912
|
+
function securityGroupRuleMatchesCfnIngress(rule, properties) {
|
|
12913
|
+
if (sgProtocolKey(rule.IpProtocol) !== sgProtocolKey(properties["IpProtocol"])) return false;
|
|
12914
|
+
if ((rule.FromPort ?? -1) !== cfnIngressPortValue(properties["FromPort"])) return false;
|
|
12915
|
+
if ((rule.ToPort ?? -1) !== cfnIngressPortValue(properties["ToPort"])) return false;
|
|
12916
|
+
const sources = [
|
|
12917
|
+
[properties["CidrIp"], rule.CidrIpv4],
|
|
12918
|
+
[properties["CidrIpv6"], rule.CidrIpv6],
|
|
12919
|
+
[properties["SourceSecurityGroupId"], rule.ReferencedGroupInfo?.GroupId],
|
|
12920
|
+
[properties["SourcePrefixListId"], rule.PrefixListId]
|
|
12921
|
+
];
|
|
12922
|
+
for (const [declared, actual] of sources) if (declared !== void 0 && declared !== null && declared !== actual) return false;
|
|
12923
|
+
return true;
|
|
12924
|
+
}
|
|
12925
|
+
function sgRuleKey(rule, direction) {
|
|
12926
|
+
const peerKey = direction === "egress" ? rule["DestinationSecurityGroupId"] : rule["SourceSecurityGroupId"];
|
|
12927
|
+
const prefixKey = direction === "egress" ? rule["DestinationPrefixListId"] : rule["SourcePrefixListId"];
|
|
12928
|
+
const peerOwner = direction === "ingress" ? rule["SourceSecurityGroupOwnerId"] : void 0;
|
|
12929
|
+
return JSON.stringify({
|
|
12930
|
+
p: sgProtocolKey(rule["IpProtocol"]),
|
|
12931
|
+
f: rule["FromPort"] ?? null,
|
|
12932
|
+
t: rule["ToPort"] ?? null,
|
|
12933
|
+
c4: rule["CidrIp"] ?? null,
|
|
12934
|
+
c6: rule["CidrIpv6"] ?? null,
|
|
12935
|
+
peer: peerKey ?? null,
|
|
12936
|
+
peerOwner: peerOwner ?? null,
|
|
12937
|
+
pl: prefixKey ?? null,
|
|
12938
|
+
d: rule["Description"] ?? null
|
|
12939
|
+
});
|
|
12940
|
+
}
|
|
12941
|
+
function reconcileSgRules(awsRules, stateRules, direction) {
|
|
12942
|
+
if (!stateRules || stateRules.length === 0) return awsRules;
|
|
12943
|
+
const remaining = [...awsRules];
|
|
12944
|
+
const reordered = [];
|
|
12945
|
+
for (const sr of stateRules) {
|
|
12946
|
+
const key = sgRuleKey(sr, direction);
|
|
12947
|
+
const idx = remaining.findIndex((ar) => sgRuleKey(ar, direction) === key);
|
|
12948
|
+
if (idx >= 0) reordered.push(remaining.splice(idx, 1)[0]);
|
|
12949
|
+
}
|
|
12950
|
+
return [...reordered, ...remaining];
|
|
12951
|
+
}
|
|
12952
|
+
function isDefaultEgressRule(rule) {
|
|
12953
|
+
if (rule["IpProtocol"] !== "-1") return false;
|
|
12954
|
+
if (rule["CidrIp"] !== "0.0.0.0/0") return false;
|
|
12955
|
+
if (rule["CidrIpv6"] !== void 0) return false;
|
|
12956
|
+
if (rule["DestinationSecurityGroupId"] !== void 0) return false;
|
|
12957
|
+
if (rule["DestinationPrefixListId"] !== void 0) return false;
|
|
12958
|
+
if (rule["Description"] !== void 0) return false;
|
|
12959
|
+
if (rule["FromPort"] !== void 0 && rule["FromPort"] !== -1) return false;
|
|
12960
|
+
if (rule["ToPort"] !== void 0 && rule["ToPort"] !== -1) return false;
|
|
12961
|
+
return true;
|
|
12962
|
+
}
|
|
12963
|
+
|
|
12964
|
+
// src/provisioning/providers/ec2/sg-rule-by-id.ts
|
|
12965
|
+
function isPlainRecord(value) {
|
|
12966
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
12967
|
+
}
|
|
12968
|
+
const LIST_KEY = {
|
|
12969
|
+
ingress: "SecurityGroupIngress",
|
|
12970
|
+
egress: "SecurityGroupEgress"
|
|
12971
|
+
};
|
|
12972
|
+
const DENIED = /* @__PURE__ */ new Set([
|
|
12973
|
+
"UnauthorizedOperation",
|
|
12974
|
+
"AccessDenied",
|
|
12975
|
+
"AccessDeniedException"
|
|
12976
|
+
]);
|
|
12977
|
+
function sgRulesReadFailure(err) {
|
|
12978
|
+
const name = err?.name;
|
|
12979
|
+
const summary = describeAwsFailure(err).summary;
|
|
12980
|
+
return typeof name === "string" && DENIED.has(name) ? `${summary}; this read needs ec2:DescribeSecurityGroupRules` : summary;
|
|
12981
|
+
}
|
|
12982
|
+
function cfnSgRuleOfDescribed(rule) {
|
|
12983
|
+
const egress = rule.IsEgress === true;
|
|
12984
|
+
const out = {};
|
|
12985
|
+
if (rule.IpProtocol !== void 0) out["IpProtocol"] = rule.IpProtocol;
|
|
12986
|
+
if (rule.IpProtocol !== "-1") {
|
|
12987
|
+
if (rule.FromPort !== void 0) out["FromPort"] = rule.FromPort;
|
|
12988
|
+
if (rule.ToPort !== void 0) out["ToPort"] = rule.ToPort;
|
|
12989
|
+
}
|
|
12990
|
+
if (rule.CidrIpv4 !== void 0) out["CidrIp"] = rule.CidrIpv4;
|
|
12991
|
+
if (rule.CidrIpv6 !== void 0) out["CidrIpv6"] = rule.CidrIpv6;
|
|
12992
|
+
const peer = rule.ReferencedGroupInfo;
|
|
12993
|
+
if (peer?.GroupId !== void 0) {
|
|
12994
|
+
out[egress ? "DestinationSecurityGroupId" : "SourceSecurityGroupId"] = peer.GroupId;
|
|
12995
|
+
if (!egress && peer.UserId !== void 0) out["SourceSecurityGroupOwnerId"] = peer.UserId;
|
|
12996
|
+
}
|
|
12997
|
+
if (rule.PrefixListId !== void 0) out[egress ? "DestinationPrefixListId" : "SourcePrefixListId"] = rule.PrefixListId;
|
|
12998
|
+
if (rule.Description !== void 0) out["Description"] = rule.Description;
|
|
12999
|
+
return out;
|
|
13000
|
+
}
|
|
13001
|
+
async function siblingIdOwnedSgRules(provider, groupId, properties, context) {
|
|
13002
|
+
if (context?.afterOwnWrite === true) return void 0;
|
|
13003
|
+
const records = Object.entries(context?.siblings ?? {});
|
|
13004
|
+
const byId = /* @__PURE__ */ new Map();
|
|
13005
|
+
for (const [lid, sibling] of records) {
|
|
13006
|
+
const props = sibling.properties;
|
|
13007
|
+
if (!isPlainRecord(props) || props["GroupId"] !== groupId) continue;
|
|
13008
|
+
if (!sgSiblingDecidedById(lid, sibling, records, properties)) continue;
|
|
13009
|
+
const id = recordedRuleIdOf(sibling);
|
|
13010
|
+
if (id !== void 0) byId.set(id, lid);
|
|
13011
|
+
}
|
|
13012
|
+
if (byId.size === 0) return void 0;
|
|
13013
|
+
let rules;
|
|
13014
|
+
let failure = "more pages than cdkd reads";
|
|
13015
|
+
try {
|
|
13016
|
+
rules = await provider.listGroupRules(groupId);
|
|
13017
|
+
} catch (err) {
|
|
13018
|
+
failure = sgRulesReadFailure(err);
|
|
13019
|
+
}
|
|
13020
|
+
if (rules === void 0) {
|
|
13021
|
+
provider.logger.warn(safeMsg`readCurrentState: the rules of ${groupId} could not be read with their ids (${failure}), so its standalone rules are matched by protocol, ports and peer`);
|
|
13022
|
+
return;
|
|
13023
|
+
}
|
|
13024
|
+
const out = {
|
|
13025
|
+
owned: {
|
|
13026
|
+
ingress: /* @__PURE__ */ new Set(),
|
|
13027
|
+
egress: /* @__PURE__ */ new Set()
|
|
13028
|
+
},
|
|
13029
|
+
decided: /* @__PURE__ */ new Set()
|
|
13030
|
+
};
|
|
13031
|
+
for (const rule of rules) {
|
|
13032
|
+
const id = rule.SecurityGroupRuleId;
|
|
13033
|
+
const lid = id === void 0 ? void 0 : byId.get(id);
|
|
13034
|
+
if (rule.GroupId !== groupId || lid === void 0) continue;
|
|
13035
|
+
const direction = rule.IsEgress === true ? "egress" : "ingress";
|
|
13036
|
+
if ((context?.siblings?.[lid])?.resourceType !== (direction === "egress" ? "AWS::EC2::SecurityGroupEgress" : "AWS::EC2::SecurityGroupIngress")) continue;
|
|
13037
|
+
const identity = sgRuleOwnershipIdentity(cfnSgRuleOfDescribed(rule), direction);
|
|
13038
|
+
if (identity === void 0) continue;
|
|
13039
|
+
out.owned[direction].add(identity);
|
|
13040
|
+
out.decided.add(lid);
|
|
13041
|
+
}
|
|
13042
|
+
for (const direction of ["ingress", "egress"]) {
|
|
13043
|
+
const inline = properties?.[LIST_KEY[direction]];
|
|
13044
|
+
if (!Array.isArray(inline)) continue;
|
|
13045
|
+
for (const entry of inline) {
|
|
13046
|
+
const identity = sgRuleOwnershipIdentity(entry, direction);
|
|
13047
|
+
if (identity !== void 0) out.owned[direction].delete(identity);
|
|
13048
|
+
}
|
|
13049
|
+
}
|
|
13050
|
+
return out;
|
|
13051
|
+
}
|
|
13052
|
+
function sgRevokesHeldBySiblings(rules, groupId, toRevoke, direction, siblingIds) {
|
|
13053
|
+
const heldIdentities = /* @__PURE__ */ new Map();
|
|
13054
|
+
for (const rule of rules) {
|
|
13055
|
+
const id = rule.SecurityGroupRuleId;
|
|
13056
|
+
if (id === void 0 || !siblingIds.has(id) || rule.GroupId !== groupId) continue;
|
|
13057
|
+
if (rule.IsEgress === true !== (direction === "egress")) continue;
|
|
13058
|
+
const identity = sgRuleOwnershipIdentity(cfnSgRuleOfDescribed(rule), direction);
|
|
13059
|
+
if (identity !== void 0) heldIdentities.set(identity, id);
|
|
13060
|
+
}
|
|
13061
|
+
const held = /* @__PURE__ */ new Map();
|
|
13062
|
+
for (const rule of toRevoke) {
|
|
13063
|
+
const identity = sgRuleOwnershipIdentity(rule, direction);
|
|
13064
|
+
if (identity === void 0) held.set(rule, "a rule it would revoke cannot be compared with its standalone rules");
|
|
13065
|
+
else {
|
|
13066
|
+
const id = heldIdentities.get(identity);
|
|
13067
|
+
if (id !== void 0) held.set(rule, `a rule it would revoke is ${id}, a standalone rule's`);
|
|
13068
|
+
}
|
|
13069
|
+
}
|
|
13070
|
+
return held;
|
|
13071
|
+
}
|
|
13072
|
+
function cidrKey(value) {
|
|
13073
|
+
if (typeof value !== "string") return value;
|
|
13074
|
+
const [address, prefix, ...rest] = value.trim().split("/");
|
|
13075
|
+
if (address === void 0 || prefix === void 0 || rest.length > 0) return value;
|
|
13076
|
+
const length = Number(prefix);
|
|
13077
|
+
if (!Number.isInteger(length)) return value;
|
|
13078
|
+
const octets = address.split(".");
|
|
13079
|
+
if (octets.length === 4 && length >= 0 && length <= 32) {
|
|
13080
|
+
const parts = octets.map(Number);
|
|
13081
|
+
if (parts.some((p) => !Number.isInteger(p) || p < 0 || p > 255)) return value;
|
|
13082
|
+
const n = parts.reduce((acc, p) => acc * 256 + p, 0);
|
|
13083
|
+
const network = length === 0 ? 0 : n - n % 2 ** (32 - length);
|
|
13084
|
+
return `${[
|
|
13085
|
+
24,
|
|
13086
|
+
16,
|
|
13087
|
+
8,
|
|
13088
|
+
0
|
|
13089
|
+
].map((shift) => Math.floor(network / 2 ** shift) % 256).join(".")}/${length}`;
|
|
13090
|
+
}
|
|
13091
|
+
try {
|
|
13092
|
+
return `${new URL(`http://[${address}]`).hostname}/${length}`;
|
|
13093
|
+
} catch {
|
|
13094
|
+
return value;
|
|
13095
|
+
}
|
|
13096
|
+
}
|
|
13097
|
+
const INGRESS_IDENTITY_KEYS = [
|
|
13098
|
+
"IpProtocol",
|
|
13099
|
+
"FromPort",
|
|
13100
|
+
"ToPort",
|
|
13101
|
+
"CidrIp",
|
|
13102
|
+
"CidrIpv6",
|
|
13103
|
+
"SourceSecurityGroupId",
|
|
13104
|
+
"SourceSecurityGroupName",
|
|
13105
|
+
"SourceSecurityGroupOwnerId",
|
|
13106
|
+
"SourcePrefixListId"
|
|
13107
|
+
];
|
|
13108
|
+
function describedRuleMatchesRecord(rule, properties) {
|
|
13109
|
+
if (sgProtocolKey(rule.IpProtocol) !== sgProtocolKey(properties["IpProtocol"])) return false;
|
|
13110
|
+
if ((rule.FromPort ?? -1) !== cfnIngressPortValue(properties["FromPort"])) return false;
|
|
13111
|
+
if ((rule.ToPort ?? -1) !== cfnIngressPortValue(properties["ToPort"])) return false;
|
|
13112
|
+
if ([
|
|
13113
|
+
[cidrKey(properties["CidrIp"] ?? void 0), cidrKey(rule.CidrIpv4)],
|
|
13114
|
+
[cidrKey(properties["CidrIpv6"] ?? void 0), cidrKey(rule.CidrIpv6)],
|
|
13115
|
+
[properties["SourceSecurityGroupId"] ?? void 0, rule.ReferencedGroupInfo?.GroupId],
|
|
13116
|
+
[properties["SourcePrefixListId"] ?? void 0, rule.PrefixListId]
|
|
13117
|
+
].some(([declared, live]) => declared !== live)) return false;
|
|
13118
|
+
const owner = properties["SourceSecurityGroupOwnerId"];
|
|
13119
|
+
return owner == null || owner === rule.ReferencedGroupInfo?.UserId;
|
|
13120
|
+
}
|
|
13121
|
+
async function readSgIngressById(provider, groupId, properties, context) {
|
|
13122
|
+
if (context?.afterOwnWrite === true) return "fallback";
|
|
13123
|
+
const recordedId = recordedSgRuleId(context?.attributes);
|
|
13124
|
+
if (recordedId === void 0) return "fallback";
|
|
13125
|
+
const records = Object.entries(context?.siblings ?? {});
|
|
13126
|
+
const groupRecord = records.find(([, r]) => r.resourceType === "AWS::EC2::SecurityGroup" && r.physicalId === groupId)?.[1];
|
|
13127
|
+
const self = {
|
|
13128
|
+
resourceType: "AWS::EC2::SecurityGroupIngress",
|
|
13129
|
+
properties: {
|
|
13130
|
+
...properties,
|
|
13131
|
+
GroupId: groupId
|
|
13132
|
+
},
|
|
13133
|
+
attributes: context?.attributes
|
|
13134
|
+
};
|
|
13135
|
+
if (!sgSiblingDecidedById(void 0, self, records, groupRecord?.properties)) return "fallback";
|
|
13136
|
+
const rules = await provider.listGroupRules(groupId);
|
|
13137
|
+
if (rules === void 0) return "fallback";
|
|
13138
|
+
const rule = rules.find((r) => r.SecurityGroupRuleId === recordedId);
|
|
13139
|
+
if (rule === void 0) return "fallback";
|
|
13140
|
+
if (rule.GroupId !== groupId || rule.IsEgress === true) return "gone";
|
|
13141
|
+
const live = cfnSgRuleOfDescribed(rule);
|
|
13142
|
+
if (properties["SourceSecurityGroupOwnerId"] == null) delete live["SourceSecurityGroupOwnerId"];
|
|
13143
|
+
if (describedRuleMatchesRecord(rule, properties)) {
|
|
13144
|
+
for (const key of INGRESS_IDENTITY_KEYS) if (properties[key] != null) live[key] = properties[key];
|
|
13145
|
+
return live;
|
|
13146
|
+
}
|
|
13147
|
+
if (sgProtocolKey(rule.IpProtocol) === sgProtocolKey(properties["IpProtocol"])) {
|
|
13148
|
+
if (properties["IpProtocol"] != null) live["IpProtocol"] = properties["IpProtocol"];
|
|
13149
|
+
}
|
|
13150
|
+
for (const key of ["FromPort", "ToPort"]) {
|
|
13151
|
+
const declared = properties[key];
|
|
13152
|
+
if (declared != null && cfnIngressPortValue(declared) === cfnIngressPortValue(live[key])) live[key] = declared;
|
|
13153
|
+
}
|
|
13154
|
+
return live;
|
|
13155
|
+
}
|
|
13156
|
+
|
|
13157
|
+
// src/provisioning/providers/ec2/sg-revert-guard.ts
|
|
13158
|
+
function sgRuleDiffKey(rule, direction) {
|
|
13159
|
+
const peerKey = direction === "egress" ? rule["DestinationSecurityGroupId"] : rule["SourceSecurityGroupId"];
|
|
13160
|
+
const prefixKey = direction === "egress" ? rule["DestinationPrefixListId"] : rule["SourcePrefixListId"];
|
|
13161
|
+
const peerOwner = direction === "ingress" ? rule["SourceSecurityGroupOwnerId"] : void 0;
|
|
13162
|
+
const peerName = direction === "ingress" ? rule["SourceSecurityGroupName"] : void 0;
|
|
13163
|
+
return JSON.stringify({
|
|
13164
|
+
p: sgProtocolKey(rule["IpProtocol"]),
|
|
13165
|
+
f: rule["FromPort"] ?? null,
|
|
13166
|
+
t: rule["ToPort"] ?? null,
|
|
13167
|
+
c4: rule["CidrIp"] ?? null,
|
|
13168
|
+
c6: rule["CidrIpv6"] ?? null,
|
|
13169
|
+
peer: peerKey ?? null,
|
|
13170
|
+
peerName: peerKey ? null : peerName ?? null,
|
|
13171
|
+
peerOwner: peerOwner ?? null,
|
|
13172
|
+
pl: prefixKey ?? null
|
|
13173
|
+
});
|
|
13174
|
+
}
|
|
13175
|
+
function sgRulesToRevoke(previous, next, direction) {
|
|
13176
|
+
const nextKeys = new Set(next.map((rule) => sgRuleDiffKey(rule, direction)));
|
|
13177
|
+
const seen = /* @__PURE__ */ new Set();
|
|
13178
|
+
return previous.filter((rule) => {
|
|
13179
|
+
const key = sgRuleDiffKey(rule, direction);
|
|
13180
|
+
if (nextKeys.has(key) || seen.has(key)) return false;
|
|
13181
|
+
seen.add(key);
|
|
13182
|
+
return true;
|
|
13183
|
+
});
|
|
13184
|
+
}
|
|
13185
|
+
async function refuseRevertRevokingSiblingRules(listRules, logicalId, groupId, resourceType, properties, previousProperties, siblingIds) {
|
|
13186
|
+
const list = (bag, key) => Array.isArray(bag[key]) ? bag[key] : [];
|
|
13187
|
+
const toRevoke = {
|
|
13188
|
+
ingress: sgRulesToRevoke(list(previousProperties, "SecurityGroupIngress"), list(properties, "SecurityGroupIngress"), "ingress"),
|
|
13189
|
+
egress: sgRulesToRevoke(list(previousProperties, "SecurityGroupEgress"), list(properties, "SecurityGroupEgress"), "egress")
|
|
13190
|
+
};
|
|
13191
|
+
if (toRevoke.ingress.length === 0 && toRevoke.egress.length === 0) return;
|
|
13192
|
+
let rules;
|
|
13193
|
+
let failure = "more pages than cdkd reads";
|
|
13194
|
+
try {
|
|
13195
|
+
rules = await listRules(groupId);
|
|
13196
|
+
} catch (err) {
|
|
13197
|
+
failure = sgRulesReadFailure(err);
|
|
13198
|
+
}
|
|
13199
|
+
if (rules === void 0) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `its rules could not be read with their ids (${failure}), so cdkd cannot tell whether a rule the revert would revoke is a standalone rule's of this stack. Nothing was changed`);
|
|
13200
|
+
const reasons = /* @__PURE__ */ new Set();
|
|
13201
|
+
for (const direction of ["ingress", "egress"]) for (const reason of sgRevokesHeldBySiblings(rules, groupId, toRevoke[direction], direction, siblingIds).values()) reasons.add(reason);
|
|
13202
|
+
if (reasons.size > 0) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `${[...reasons].join("; ")}, and a group's revert never revokes a standalone rule of its stack. Nothing was changed; the standalone rule's own drift is reported on its resource`);
|
|
13203
|
+
}
|
|
13204
|
+
function refuseCcGroupRevertChangingRules(logicalId, groupId, resourceType, properties, previousProperties, records, groupName) {
|
|
13205
|
+
const named = (value) => typeof value === "string" && value !== "" && !isRedactedRecordedValue(value);
|
|
13206
|
+
let hasSibling = false;
|
|
13207
|
+
for (const [, record] of records) {
|
|
13208
|
+
if (typeof record !== "object" || record === null) continue;
|
|
13209
|
+
if (record.resourceType !== "AWS::EC2::SecurityGroupIngress" && record.resourceType !== "AWS::EC2::SecurityGroupEgress") continue;
|
|
13210
|
+
const props = record.properties;
|
|
13211
|
+
const id = typeof props === "object" && props !== null ? props["GroupId"] : void 0;
|
|
13212
|
+
const name = typeof props === "object" && props !== null ? props["GroupName"] : void 0;
|
|
13213
|
+
if (id === groupId || named(groupName) && name === groupName || !named(id) && !named(name)) {
|
|
13214
|
+
hasSibling = true;
|
|
13215
|
+
break;
|
|
13216
|
+
}
|
|
13217
|
+
}
|
|
13218
|
+
if (!hasSibling) return;
|
|
13219
|
+
const list = (bag, key) => JSON.stringify(Array.isArray(bag[key]) ? bag[key] : []);
|
|
13220
|
+
const changed = ["SecurityGroupIngress", "SecurityGroupEgress"].filter((key) => list(properties, key) !== list(previousProperties, key));
|
|
13221
|
+
if (changed.length === 0) return;
|
|
13222
|
+
throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `its ${changed.join(" and ")} would change, and a security group provisioned through Cloud Control replaces the whole list, which would drop the rules this stack's standalone rule resources own. Nothing was changed; revert it by redeploying the stack`);
|
|
13223
|
+
}
|
|
13224
|
+
|
|
12668
13225
|
// src/cli/commands/drift/revert-apply.ts
|
|
12669
13226
|
async function applyRevertUpdate(args) {
|
|
12670
13227
|
const { logger, tally, report, narrowedByLogicalId, settledByRevert, outcome, stateResource, provider, secrets, revertBaseline, newProperties } = args;
|
|
@@ -12680,10 +13237,12 @@ async function applyRevertUpdate(args) {
|
|
|
12680
13237
|
previous: outcome.awsProperties,
|
|
12681
13238
|
desired: newProperties
|
|
12682
13239
|
});
|
|
13240
|
+
if (outcome.resourceType === "AWS::EC2::SecurityGroup" && stateResource.provisionedBy === "cc-api") refuseCcGroupRevertChangingRules(outcome.logicalId, stateResource.physicalId, outcome.resourceType, newProperties, revertPrevious, Object.entries(report.state.resources ?? {}).filter(([lid]) => lid !== outcome.logicalId), revertPrevious["GroupName"] ?? stateResource.properties?.["GroupName"]);
|
|
12683
13241
|
const updateResult = await withRetry(() => provider.update(outcome.logicalId, stateResource.physicalId, outcome.resourceType, newProperties, revertPrevious, {
|
|
12684
13242
|
desiredFromAwsReadback: true,
|
|
12685
13243
|
declaredEmptyProperties: declaredEmptyProperties(stateResource.properties),
|
|
12686
13244
|
declaredTrueProperties: declaredTrueProperties(stateResource.properties),
|
|
13245
|
+
...outcome.resourceType === "AWS::EC2::SecurityGroup" && { siblingSgRuleIds: new Set(siblingRecordedSgRuleIds(stateResource.physicalId, Object.entries(report.state.resources ?? {}).filter(([lid]) => lid !== outcome.logicalId)).keys()) },
|
|
12687
13246
|
maskSecrets: createSecretMasker(secrets),
|
|
12688
13247
|
expectedRegion: report.region,
|
|
12689
13248
|
recordedAttributes: stateResource.attributes,
|
|
@@ -12749,7 +13308,7 @@ function recordReturnedIdentity(args, updateResult, verdict) {
|
|
|
12749
13308
|
try {
|
|
12750
13309
|
if (updateResult !== void 0) {
|
|
12751
13310
|
const noEchoDeclared = recordNoEchoAttributeValues(updateResult, secrets, newProperties);
|
|
12752
|
-
const next = recordAfterRollbackUpdate(stateResource, updateResult);
|
|
13311
|
+
const next = recordAfterRollbackUpdate(stateResource, updateResult, (key) => logger.warn(differingIdentityWarning(outcome.logicalId, outcome.resourceType, key)));
|
|
12753
13312
|
const keptAttributes = next.attributes === void 0 ? void 0 : keepRecordedAttributesOverMask(redactForState(next.attributes, {
|
|
12754
13313
|
provenance: "value-scan",
|
|
12755
13314
|
secrets
|
|
@@ -13314,6 +13873,7 @@ function resolveTargetRefs(stacks, stateRefs, options) {
|
|
|
13314
13873
|
function createIamPrincipalUniqueIdResolver(awsClients) {
|
|
13315
13874
|
const cache = /* @__PURE__ */ new Map();
|
|
13316
13875
|
let warnedOnDenied = false;
|
|
13876
|
+
let warnedOnOtherEntity = false;
|
|
13317
13877
|
return async (arn) => {
|
|
13318
13878
|
if (cache.has(arn)) return cache.get(arn);
|
|
13319
13879
|
let uniqueId;
|
|
@@ -13331,7 +13891,13 @@ function createIamPrincipalUniqueIdResolver(awsClients) {
|
|
|
13331
13891
|
entityId = user?.UserId;
|
|
13332
13892
|
}
|
|
13333
13893
|
if (entityArn !== void 0 && entityArn.toLowerCase() === arn.toLowerCase()) uniqueId = entityId;
|
|
13334
|
-
else
|
|
13894
|
+
else {
|
|
13895
|
+
if (!warnedOnOtherEntity) {
|
|
13896
|
+
warnedOnOtherEntity = true;
|
|
13897
|
+
getLogger().warn("A resource policy principal ARN names another account or IAM path, so its unique id (AROA…/AIDA…) cannot be matched to it; a difference between the two spellings may be reported as drift. If the principal is the intended one, drift with --accept records the ARN form and clears " + safeMsg`it${verboseAwareText("; re-run with --verbose to see which principal", " (the principal is named in the debug output)")}.`);
|
|
13898
|
+
}
|
|
13899
|
+
getLogger().debug(`Principal ${displayIdent(arn, { maxCodePoints: 613 })} resolved to ${entityArn === void 0 ? "no entity" : displayIdent(entityArn, { maxCodePoints: 613 })} — same name in this account or under another IAM path; leaving the policy principal comparison untouched.`);
|
|
13900
|
+
}
|
|
13335
13901
|
} catch (error) {
|
|
13336
13902
|
const message = describeAwsFailure(error).detail;
|
|
13337
13903
|
const name = error instanceof Error ? error.name : "";
|
|
@@ -14468,6 +15034,8 @@ async function destroyStackUnderLock({ stackName, state, ctx, logger, result, re
|
|
|
14468
15034
|
...ctx.stackDestroy === true && { stackDestroy: true },
|
|
14469
15035
|
maskSecrets: createUnionSecretMasker([bag]),
|
|
14470
15036
|
stop: () => lock.interrupted,
|
|
15037
|
+
holderProvider: () => destroyProviderRegistry.getProvider(resourceType),
|
|
15038
|
+
warn: (m) => logger.warn(safeMsg` ⚠ ${logicalId}'s superseded ${resourceType}: ${m}`),
|
|
14471
15039
|
preDeleteSnapshot: {
|
|
14472
15040
|
clients: destroyAwsClients ?? ctx.baseAwsClients,
|
|
14473
15041
|
logger: maskedSnapshotLogger(logger, createUnionSecretMasker([bag]))
|
|
@@ -14485,6 +15053,12 @@ async function destroyStackUnderLock({ stackName, state, ctx, logger, result, re
|
|
|
14485
15053
|
logger.info(safeMsg` ✓ Deleted ${logicalId}'s superseded ${resourceType}`);
|
|
14486
15054
|
return false;
|
|
14487
15055
|
}
|
|
15056
|
+
if (outcome.kind === "gone" || outcome.kind === "notOurs") {
|
|
15057
|
+
drop();
|
|
15058
|
+
if (outcome.kind === "gone") logger.info(safeMsg` ✓ ${logicalId}'s superseded ${resourceType} is already gone`);
|
|
15059
|
+
else logger.warn(safeMsg` ⚠ ${logicalId}'s superseded ${resourceType} (${physicalId}) was not deleted: ${outcome.cause}. The replaced resource is gone, and cdkd no longer tracks it in state.`);
|
|
15060
|
+
return false;
|
|
15061
|
+
}
|
|
14488
15062
|
const replacement = outcome.kind === "failed" ? outcome.replacement : void 0;
|
|
14489
15063
|
if (replacement !== void 0) remainingSuperseded = (remainingSuperseded ?? []).map((row) => row === entry ? replacement : row);
|
|
14490
15064
|
if (early) {
|
|
@@ -19797,6 +20371,10 @@ var AttributeFetcher = class {
|
|
|
19797
20371
|
ok: false,
|
|
19798
20372
|
reason: UNREADABLE_ORPHAN_RECORD_REASON
|
|
19799
20373
|
};
|
|
20374
|
+
if (isUnexposedRecordedIdentity(orphan.resourceType, attribute)) return {
|
|
20375
|
+
ok: false,
|
|
20376
|
+
reason: `CloudFormation does not expose ${displaySafe(attribute, { asciiOnly: true })} as an attribute of ${displaySafe(orphan.resourceType, { asciiOnly: true })}; cdkd records it for its own identity checks only`
|
|
20377
|
+
};
|
|
19800
20378
|
const recorded = servableRecordedAttribute(orphan, attribute);
|
|
19801
20379
|
let provider;
|
|
19802
20380
|
try {
|
|
@@ -22814,7 +23392,7 @@ async function eventsCommand(stackName, options) {
|
|
|
22814
23392
|
const events = await reader.readRunEvents(stackName, targetRegion, options.run);
|
|
22815
23393
|
if (events === null) throw new CdkdError(`No deployment-event stream found for run ${displayIdent(options.run)} of stack ${displayStackName(stackName)} in region ${displayIdent(targetRegion)}.`, "EVENTS_RUN_NOT_FOUND");
|
|
22816
23394
|
if (asJson) {
|
|
22817
|
-
process.stdout.write(`${stringifyJsonPayload(events)}\n`);
|
|
23395
|
+
process.stdout.write(`${stringifyJsonPayload(events.map(withDisplayedPhysicalId))}\n`);
|
|
22818
23396
|
return;
|
|
22819
23397
|
}
|
|
22820
23398
|
printRunEvents(stackName, targetRegion, options.run, events);
|
|
@@ -22907,6 +23485,14 @@ async function eventsPruneCommand(stackName, options) {
|
|
|
22907
23485
|
async function confirmPrompt$1(prompt) {
|
|
22908
23486
|
return confirmOrRefuse(prompt, { refusal: "The cdkd events prune confirmation prompt cannot run in a non-interactive environment. Pass -y / --yes to confirm the prune, or run the command from a real terminal. Nothing has been deleted." });
|
|
22909
23487
|
}
|
|
23488
|
+
function withDisplayedPhysicalId(event) {
|
|
23489
|
+
if (typeof event.physicalId !== "string") return event;
|
|
23490
|
+
const shown = displayPhysicalId(event.resourceType, event.physicalId);
|
|
23491
|
+
return shown === event.physicalId ? event : {
|
|
23492
|
+
...event,
|
|
23493
|
+
physicalId: shown
|
|
23494
|
+
};
|
|
23495
|
+
}
|
|
22910
23496
|
function printRunList(stackName, region, runs) {
|
|
22911
23497
|
const logger = getLogger();
|
|
22912
23498
|
logger.info(`${bold("Deployment runs for")} ${cyan(plainOrDescribed(stackName, "stack name"))} ` + gray(`(${plainOrDescribed(region, "region")})`));
|
|
@@ -35647,5 +36233,5 @@ function collectVerbFlags(program) {
|
|
|
35647
36233
|
return map;
|
|
35648
36234
|
}
|
|
35649
36235
|
|
|
35650
|
-
export {
|
|
35651
|
-
//# sourceMappingURL=program-
|
|
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, declaredSgRulesRead as M, mergeDeclaredSgRules 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 };
|
|
36237
|
+
//# sourceMappingURL=program-Cdwgr3Yv.js.map
|