@cdkd/cli 0.362.0 → 0.364.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-lvt_quOX.js → ambient-client-defaults-BKnLt9R9.js} +4 -3
- package/dist/ambient-client-defaults-BKnLt9R9.js.map +1 -0
- package/dist/{asg-provider-fEPlW1VD.js → asg-provider-D-wGQIgg.js} +6 -6
- package/dist/{asg-provider-fEPlW1VD.js.map → asg-provider-D-wGQIgg.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{custom-resource-runtime-DWIcvRGQ.js → custom-resource-runtime-BDRipTIL.js} +6 -6
- package/dist/{custom-resource-runtime-DWIcvRGQ.js.map → custom-resource-runtime-BDRipTIL.js.map} +1 -1
- package/dist/{db-associated-roles-bxCMZbZE.js → db-associated-roles-cQd3Zmr5.js} +2 -2
- package/dist/{db-associated-roles-bxCMZbZE.js.map → db-associated-roles-cQd3Zmr5.js.map} +1 -1
- package/dist/{delete-started-CdhzmNUy.js → delete-started-DHQvQxWa.js} +13 -9
- package/dist/delete-started-DHQvQxWa.js.map +1 -0
- package/dist/{deploy-engine-XCVGar9z.js → deploy-engine-9rzhYsZc.js} +518 -313
- package/dist/deploy-engine-9rzhYsZc.js.map +1 -0
- package/dist/{ec2-termination-protection-CprPM9CV.js → ec2-termination-protection-Dttj-XrE.js} +8 -6
- package/dist/ec2-termination-protection-Dttj-XrE.js.map +1 -0
- package/dist/{ecr-uri-Bco-bZxQ.js → ecr-uri-BYWBRpzv.js} +2 -2
- package/dist/{ecr-uri-Bco-bZxQ.js.map → ecr-uri-BYWBRpzv.js.map} +1 -1
- package/dist/{expected-bucket-owner-DNrpjI15.js → expected-bucket-owner-DWEAlmAk.js} +2 -2
- package/dist/{expected-bucket-owner-DNrpjI15.js.map → expected-bucket-owner-DWEAlmAk.js.map} +1 -1
- package/dist/{iam-role-provider-n08e_UqG.js → iam-role-provider-fCKVbuHw.js} +385 -14
- package/dist/iam-role-provider-fCKVbuHw.js.map +1 -0
- package/dist/{image-plan-PkDml11o.js → image-plan-XyUNOBmz.js} +8 -8
- package/dist/{image-plan-PkDml11o.js.map → image-plan-XyUNOBmz.js.map} +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-CS467GaW.js → logger-xueeC0uS.js} +2 -2
- package/dist/{logger-CS467GaW.js.map → logger-xueeC0uS.js.map} +1 -1
- package/dist/{neptune-provider-B6VK2Cbj.js → neptune-provider-ClN-LvMb.js} +7 -7
- package/dist/{neptune-provider-B6VK2Cbj.js.map → neptune-provider-ClN-LvMb.js.map} +1 -1
- package/dist/{program-BgTzsbxH.js → program-Dz-HwMKe.js} +253 -85
- package/dist/program-Dz-HwMKe.js.map +1 -0
- package/dist/{provider-classes-BPg5qXSB.js → provider-classes-Bmipcl6d.js} +397 -201
- package/dist/provider-classes-Bmipcl6d.js.map +1 -0
- package/dist/{rds-provider-6MbfXMoG.js → rds-provider-X8pB7V-7.js} +10 -10
- package/dist/{rds-provider-6MbfXMoG.js.map → rds-provider-X8pB7V-7.js.map} +1 -1
- package/dist/{read-replica-Zx5KMOal.js → read-replica-B9F3-d8h.js} +3 -3
- package/dist/{read-replica-Zx5KMOal.js.map → read-replica-B9F3-d8h.js.map} +1 -1
- package/dist/{replacement-rules-D_XjAts6.js → replacement-rules-TNt9wPax.js} +3 -3
- package/dist/{replacement-rules-D_XjAts6.js.map → replacement-rules-TNt9wPax.js.map} +1 -1
- package/dist/{resource-deadline-o6RvWixc.js → resource-deadline-CUApArbf.js} +4 -4
- package/dist/{resource-deadline-o6RvWixc.js.map → resource-deadline-CUApArbf.js.map} +1 -1
- package/dist/{restore-source-guard-ORkhNnNg.js → restore-source-guard-jCM5yJzQ.js} +4 -4
- package/dist/{restore-source-guard-ORkhNnNg.js.map → restore-source-guard-jCM5yJzQ.js.map} +1 -1
- package/dist/{run-cli-Dp5c7Am8.js → run-cli-BDjbpUsh.js} +2 -2
- package/dist/{run-cli-Dp5c7Am8.js.map → run-cli-BDjbpUsh.js.map} +1 -1
- package/dist/{settle-own-write-members-SaiOYQGZ.js → settle-own-write-members-CSkozE9A.js} +13 -135
- package/dist/settle-own-write-members-CSkozE9A.js.map +1 -0
- package/dist/{version-DFX4Mg8N.js → version-BXn3jGiB.js} +2 -2
- package/dist/{version-DFX4Mg8N.js.map → version-BXn3jGiB.js.map} +1 -1
- package/package.json +3 -3
- package/dist/ambient-client-defaults-lvt_quOX.js.map +0 -1
- package/dist/delete-started-CdhzmNUy.js.map +0 -1
- package/dist/deploy-engine-XCVGar9z.js.map +0 -1
- package/dist/ec2-termination-protection-CprPM9CV.js.map +0 -1
- package/dist/iam-role-provider-n08e_UqG.js.map +0 -1
- package/dist/program-BgTzsbxH.js.map +0 -1
- package/dist/provider-classes-BPg5qXSB.js.map +0 -1
- package/dist/settle-own-write-members-SaiOYQGZ.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 { A as assertRegionMatch, Dt as readRecordedPrincipals, Ht as maskDeep, It as resourceTypeShown, O as DriftReadRefusedError, Pt as logicalIdShown, 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, j as VALUE_NOT_SHOWN, k as RESOURCE_NOT_FOUND, 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 remedyLogicalId } from "./resource-deadline-
|
|
1
|
+
import { A as displayStackName, C as STACK_REF_MAX_CODE_POINTS, D as displayAwsMessage, E as cutMarker, F as stringifyJsonPayload, I as terminalSafe, L as truncateCodePoints, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, T as asIsMessage, _ as shellQuote, b as setPasteableVerbFlags, c as deployReplaceCommand, d as pasteableCommand, g as shellBoundedDisplay, h as quotedOrDescribed, i as SHELL_ACTIVE_WHY, j as isPasteableIdent, k as displaySafe, m as proseQuoted, o as cdkdRemedy, p as plainOrDescribed, s as commandHole, t as getCdkdVersion, u as isInertUnquoted, v as withheldTargetClause, w as UNRENDERABLE, x as SAFE_MSG_ALTERED_CHAR, y as setPasteableRunFlags } from "./version-BXn3jGiB.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-XyUNOBmz.js";
|
|
3
|
+
import { A as assertRegionMatch, Dt as readRecordedPrincipals, Ht as maskDeep, It as resourceTypeShown, O as DriftReadRefusedError, Pt as logicalIdShown, 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, j as VALUE_NOT_SHOWN, k as RESOURCE_NOT_FOUND, ln as formatLockOwner, mn as WAIT_CONDITION_SIGNAL_PREFIX, 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 remedyLogicalId } from "./resource-deadline-CUApArbf.js";
|
|
4
4
|
import { a as runWithStackAwsClients, i as resetAwsClients, l as s3ClientDefaults, o as setAwsClients, s as resolveS3ClientDefaults, t as AwsClients, u as setS3ClientDefaultsDebugLog } from "./aws-clients-DOkPjjAW.js";
|
|
5
|
-
import { $ as withStackScope, A as configStringRefusal, B as generateResourceName, E as coerceCfnBoolean, F as requireConfigString, I as PATTERN_B_NAME_OPTIONS, L as PATTERN_B_NAME_PROPERTIES, N as requireConfigArray, O as configBooleanRefusal, P as requireConfigObject, Q as withSkipPrefix, R as PATTERN_B_RESOURCE_TYPES, S as explicitNamePropertyFor, X as isNameGeneration, a as reserveStdoutForPayload, i as releaseStdoutForPayload, m as verboseAwareText, n as getLogger, p as safeStringify, r as isStdoutReservedForPayload, s as runStackBuffered, u as describeAwsFailure, y as getLiveRenderer, z as derivesPatternBName } from "./logger-
|
|
6
|
-
import { A as stripControlChars, B as retryClassificationText, F as isAmbiguousOutcomeError, H as isMarkedNonRetryable, J as DynamicReferenceRegionAmbiguousError, Q as AccountIdUnavailableError, R as isRetryableTransientError, U as isThrottlingError, V as THROTTLING_ERROR_NAMES, W as markNonRetryable, X as MalformedProducerRecordRefusalError, Y as IntrinsicResolutionRefusalError, _ as ResourceUpdateNotSupportedError, a as normalizeAwsError, at as ProvisioningError, ct as SynthesisError, et as CdkdError, g as PartialFailureError, h as NestedStackChildDirectDestroyError, i as credentialFingerprint, j as stripForDisplay, k as escapeRegExp, l as withErrorHandling, n as ambientCredentialConfig, o as formatError, ot as ResourceTimeoutError, q as CrossAccountSecretRefusalError, r as clientDefaultsFor, rt as LocalInvokeBuildError$1, s as handleError, st as StateError, t as ambientClientDefaults, tt as DeployCancelledError, u as LocalStartServiceError, v as StackHasActiveImportsError, y as StackTerminationProtectionError, z as isTransientServerError } from "./ambient-client-defaults-
|
|
5
|
+
import { $ as withStackScope, A as configStringRefusal, B as generateResourceName, E as coerceCfnBoolean, F as requireConfigString, I as PATTERN_B_NAME_OPTIONS, L as PATTERN_B_NAME_PROPERTIES, N as requireConfigArray, O as configBooleanRefusal, P as requireConfigObject, Q as withSkipPrefix, R as PATTERN_B_RESOURCE_TYPES, S as explicitNamePropertyFor, X as isNameGeneration, a as reserveStdoutForPayload, i as releaseStdoutForPayload, m as verboseAwareText, n as getLogger, p as safeStringify, r as isStdoutReservedForPayload, s as runStackBuffered, u as describeAwsFailure, y as getLiveRenderer, z as derivesPatternBName } from "./logger-xueeC0uS.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-BKnLt9R9.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 { $c as refuseMalformedResourcePropertiesForExport, $i as cyan, $l as rebuildClientForBucketRegion, $n as propertiesChangedReason, $o as assertFlagRoleArn, $s as findReplacedReadersOfRecreateTargets, $t as macWriteOnlyKeys, A as recordedProtectionEvidence, Aa as createPreDeleteFinalSnapshot, Ac as refuseMalformedOrphansForOrphan, Ai as isExportAliasCollision, Al as withheldAccountClause, An as crossStackReadsForPartialSave, Ao as deleteIndeterminateGuards, Ar as updatePartialReason, Bc as refuseMalformedResourceEntries, Bi as holdsSupersededResources, Bn as findRefactorHints, Bo as poisonRenderedSpellingsCollidingIn, Br as demoteSupersededOrphans, Bs as carriesFetchableDynamicReference, C as pendingMovesOutOf, Ca as PRE_DELETE_SNAPSHOT_TYPES, Cc as isReadableOrphanRecord, Ci as carriedExportAliasExposure, Cl as refuseMalformedResourcesForDeploy, Cn as loadJournaledOrphans, Co as setLocalCustomResourceRuntimeEnabled, Cr as settleUnsettledPrevious, Cs as cfnRefValueFromPhysicalId, D as findServiceTokenRefusals, Da as isFinalSnapshotError, Dc as previewableOrphanRecords, Di as noEchoParameterValueSeed, Dl as repairMalformedResourcesForReadOnly, Dn as planOrphanAdoption, Dr as equalModuloMask, Ds as lacksRecordedTableArn, Du as createLazyAssetModeContext, E as deferredServiceTokenWarning, Ea as effectiveDeletionPolicy, Ec as malformedOrphanRowsKeptWarning, Ei as isWholeDynamicReferenceValue, El as refuseMalformedState, En as makeSiblingClaimReader, Eo as CloudControlProvider, Er as equalModuloMarkedMask, Es as lacksRecordedRefArn, Eu as createAssetRedirectResolver, F as readProtection, Fc as malformedLocalResourceEntriesWarning, Fl as hasReadableResources, Fn as noEchoMacVerdict, Fo as isWaitAbandonedError, Fs as recordedReferenceRegions, Fu as AssetManifestLoader, Ga as lambdaPermissionMatchesDeclared, Gc as refuseMalformedResourceEntriesForOrphan, Gi as supersededResourcesOf, Gl as PROPERTY_COVERAGE_BY_TYPE, Gn as changedReferenceInDiff, Gr as recordUnderIdIsNotOwn, Gt as refactorMarkerMovesOf, Gu as assertAssetBucketRegion, H as readStreamPolicy, Ha as declaredMemberDocument, Hc as refuseMalformedResourceEntriesForDestroy, Hi as supersededAfterRollback, Hn as movedToHint, Hr as isReplacementOrphan, Hs as carriesDynamicReference, Ht as recordRetainedForReadoption, Hu as AssetModeResolver, Ic as malformedLocalResourcesWarning, Ii as destroyStackRecordsView, Il as findActionableSdkUnwired, In as noEchoValueMacsOf, Ir as withCreateTokenLedger, Iu as getDockerImageBySourceHash, Ja as reReadUntilSettled, Jc as malformedDriftResourcePropertiesWarning, Ji as snapshotSegmentSurvivors, Jl as splitImportedOps, Jn as differingRemedy, Jo as withSecretPhysicalIdsMaskedInState, Jr as computeImplicitDeleteEdges, Jt as sameMove, Ju as parseBootstrapMarker, Ka as memberReadFailure, Kc as repairMalformedResourceEntriesForReadOnly, Ki as withoutSuperseded, Kl as TemplateParser, Kn as changedReferencePath, Ko as secretPhysicalIdSegment, Kr as replacementNeverSwapped, Ks as INTRINSIC_KEYS, Kt as refactorMarkerRefusalMessage, Ku as isCrossRegionRedirect, Lc as malformedResourceEntriesWarning, Ll as findHandledUnwrittenCreateOnly, Ln as constructPathOf$1, Lo as IntrinsicFunctionResolver, M as PROTECTION_PROPERTY_BY_TYPE, Mc as unpreviewableOrphanRecords, Mi as DEFAULT_RESOURCE_TIMEOUT_MS, Ml as UNREADABLE_RESOURCES_MAP_ROW, Mn as createNoEchoValueMacs, Mo as deleteSkipReason, Mr as replacementCreateRoutesToCloudControl, N as isProtectionValueActive, Nc as unreadableOrphanRecords, Ni as DEFAULT_RESOURCE_WARN_AFTER_MS, Nl as displayLogicalId, Nn as noEchoMacBinding, Ns as recordedOutputReferenceRegions, O as serviceTokenBlockingReason, Oa as refusesFinalSnapshot, Oc as refuseMalformedOrphanRecords, Oi as collectDeclaredOutputNames, Ol as JSON_LISTING_HOLE_VALUE, On as DeploymentEventsReader, Oo as RollbackInlinePolicyWriters, Or as undeclaredEmptyObservedKeys, P as perType, Pc as isReadableResourceEntry, Pi as maskingRetryLogger, Pl as hasReadableOutputs, Pn as noEchoMacParametersOf, Po as getReadOnlyPropertyPaths, Pr as ledgerForStack, Pu as rewriteTemplateAssetReferences, Qc as refuseMalformedResourcePropertiesForDrift, Qi as bold, Ql as hasUnverifiableParameterRefusal, Qn as parseMappingFile, Qo as applyRoleArnIfSet, Qr as isRedactedRecordedValue, Qt as removeSignalReceiverNamed, Qu as BOOTSTRAP_MARKER_PREFIX, Rc as malformedScrubResourceEntriesRefusalMessage, Ri as withStackRecords, Rn as findDestructiveChanges, Ro as isSelectOutOfBounds, Rr as planRollback, Rs as getAccountInfo, S as hasPendingMovesOut, Sa as ATOMIC_FINAL_SNAPSHOT_TYPES, Sc as deployRefusesOrphanRowsReason, Si as secretSafeKeyDisplay, Sl as malformedStateRefusalMessage, Sn as journaledOrphanLines, Sr as recordAfterRollbackUpdate, Ss as AWS_NO_VALUE, Su as decodeListingKey, T as refusePendingMovesOut, Ta as ccRoutedInstanceTakesNoSnapshot, Tc as malformedOrphanRecordsWarning, Ti as exportNameSecretExposure, Tl as refuseMalformedResourcesForExport, Tn as makeForeignHolderScan, Tr as calculateResourceDrift, Ts as refStateLookupFromResource, Tu as buildAssetRedirectMap, Ua as declaredPolicyDocument, Uc as refuseMalformedResourceEntriesForImport, Ui as supersededHeldByOtherTypeWarning, Ul as NO_CC_HANDLERS_REASON, Un as rollbackOrphanIds, Ur as planFailedOps, Us as keepsSecretReferenceToken, Ut as readRefactorMarker, Uu as ensureAssetStorage, Vc as refuseMalformedResourceEntriesForDeploy, Vi as isSupersededResourceRecord, Vn as hintSidesOf, Vo as stackIdTailOf, Vr as isJournaledOrphan, Vs as isNamelessDynamicReferenceError, Vt as keptForRetainedRecord, Wa as efsPolicyMatchesDeclared, Wc as refuseMalformedResourceEntriesForImportSave, Wi as supersededHolderOf, Wl as hasNoCloudControlHandlers, Wn as withMovedTo, Wo as displayPhysicalId, Wr as recheckFailedPlan, Ws as withSharedDrainBudget, Wt as readRefactorMarkerOnce, Wu as buildDenyExternalAccessPolicy, Xi as withPreviousPolicies, Xl as readOnlyStateVersionOf, Xn as looselyEqual, Xo as producerLookupOver, Xr as readsRegeneratingSecret, Xt as deleteSignalReceiver, Xu as validateAssetBucketName, Yc as malformedResourcePropertiesWarning, Yi as resolveReplacementOldType, Yn as isPairableType, Yo as resolveDynamicReferences, Yr as attemptUsesCompletedCreate, Yt as updateRefactorMarker, Yu as readBootstrapMarkerBody, Z as declaredTagsReadback, Za as verbatimEchoDriftKeys, Zc as refuseMalformedResourcePropertiesForDestroy, Zi as findNestedStackTypeChanges, Zl as hasReasonlessBaselineRefusal, Zn as mappingPairs, Zo as refuseUnreadableCdkCrossAccountRefs, Zt as isReceiver, Zu as validateContainerRepoName, _ as conditionFingerprint, _c as parameterInputsFor, _i as WITHHELD_NAME_DISPLAY, _l as repairMalformedOutputsForReadOnly, _n as withNestedStackContext, _o as NO_LOCAL_CUSTOM_RESOURCES_FLAG, _r as replayRollback, a as scanActiveConsumers, aa as noEchoComparisonForTemplate, ac as renderStatefulReason, ad as ownValue, ai as nameGenerationHighWaterOf, al as malformedOrphansWarning, an as NESTED_PENDING_PARENT_REASON, ar as recordedRuleIdOf, as as AWS_CREDENTIAL_ENV_KEYS, au as isNotImplemented, b as readRecordedConditionVerdicts, ba as storedSecretNameNeedles, bc as declaresNoEcho, bi as secretBearing, bl as malformedRenderedContainersWarning, bn as dropFailedHint, bo as customResourcesRunWithoutApp, br as earlyDeletedOld, bs as isUnboundTemplateParameter, bu as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, c as nestedSsmNameDeferredNote, ca as withAttemptedItemsMasked, cd as describeFileReadFailure, ci as retiredNameGenerationsAfter, cl as repairMalformedOrphansForReadOnly, cn as dropSettledNestedJournals, co as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, cs as envCredentialsAreAssumedRole, cu as isSecretValuedAttribute, d as slashedSsmNameHealAdoptedNote, da as journaledOrphanPrintingBag, dc as getSettledWriteOnlyPropertyPaths, dd as renderAssemblyPathEscape, dl as malformedLocalOutputsWarning, dn as recordDisplacedSkips, ds as producerRegionsFromState, ea as gray, el as refuseMalformedResourcePropertiesForOrphan, en as readsOnlyNoEchoParameters, eo as CC_BROKEN_REASON, er as proposeRenames, es as assertSendableRoleArn, eu as CrossPrefixReadError, f as slashedSsmNameHealNote, fa as maskEventTextWithBoundBags, fc as getTopLevelKeysHoldingUnreadableCreateOnly, fd as resolveAssemblyPath, fi as inheritProducerRegions, fl as malformedOutputsRefusalMessage, fo as TemplateNoEchoReresolver, fr as cfnIngressPortValue, fs as regionLessSecretName, fu as findNestedTemplateTreeDefect, g as makeCanonicalizePropertiesFn, ga as secretNamePrintingBags, gi as resourcesNamingDeclaredParameter, gl as refuseMalformedOutputsForDestroy, gn as getCurrentNestedStackContext, go as withPrintingSecrets, gr as replayFailedOperations, gu as templateIdentity, h as inheritedProvenanceForChildDiff, ha as secretNamePrintingBag, hc as maskedPropertyFingerprintsOf, hi as reachableDivergentParameters, hl as refuseMalformedOutputs, hn as collectNestedChildUnaddressed, hr as canonicalizeIpProtocolValue, hu as renderNestedTemplateTreeDefect, i as mergeNoChangeOutputs, ia as noEchoAttributeNamesOf, ic as isStatefulRecreateTargetSync, id as nullPrototypeRecord, ii as nameGenerationCarriedFrom, il as malformedOrphansRefusalMessage, in as resolvePendingCloudControlRequests, io as wouldReturnToSdkProvider, ir as undeclaredGrantSiblingMembers, is as sendableAssumeRoleCommand, iu as isAccessDenied, j as recordedProtectionNote, ja as buildFinalSnapshotIdentifier, jc as repairMalformedOrphanRecordsForReadOnly, ji as bindingSkippedOutputs, jl as STATE_RESOURCES_MALFORMED, jn as NOECHO_MAC_KEY_ALIAS, jo as deleteLeftInPlace, jr as findUpdatePolicyReplacementRefusals, js as keepHeldTokenProvenance, ju as loadPublishableAssetManifest, k as diffSecurity, ka as unsupportedFinalSnapshotError, kc as refuseMalformedOrphanRecordsForDestroy, ki as collectPublishedOutputNames, kl as accountArgs, kn as DeploymentEventsStore, ko as UNSPECIFIED_SKIP_REASON, kr as updatePartialMessage, l as nestedSsmNameRowNote, la as createReadOnlyAttributeHealerFactory, ld as displayAssemblyPath, li as retiredNameGenerationsLeaving, ll as malformedExportNamesWarning, lo as applyCustomResourceResponseExpiration, lr as siblingRecordedSgRuleIds, ls as classifyRecordedSecretRegion, lu as isSensitiveAttributeName, m as crossStackOutputProvenanceSource, ma as orphanRecordsPrintingBag, md as resolveBucketRegion, mi as namesAnyDeclaredParameter, mn as withNestedRevertRun, mo as isCustomResourceType$1, mr as sgProtocolKey, mu as listNestedTemplateRows, n as isSecretBearingReferenceString, na as red, nc as MULTI_REGION_RECREATE_BLOCKED_TYPES, nd as hasOwnKey, ni as removeProtectionTypeList, nl as UNREADABLE_ORPHANS_CONTAINER_ROW, nn as formatResourceLine, no as ccBrokenReason, nr as siblingOwnedRevertDesired, ns as isIamRoleArn, nu as applyCrossPrefixScan, o as inRunStackKey, oa as noEchoExactEchoLeavesOf, oi as nameScopeOf, ol as refuseMalformedOrphans, on as displacedOpClause, or as sgRuleOwnershipIdentity, os as applyCallerIdentityCredentials, ou as stackInstanceIdOf, p as slashedSsmNameHealPendingNote, pa as namingSecretsWithRecordedNoEcho, pc as tryGetTopLevelWriteOnlyProperties, pi as computeParameterTaint, pl as malformedOutputsWarning, pn as revertedNestedRowIds, po as readsNoEchoDeleteValues, pr as recordedSgRuleId, ps as isUnexposedRecordedIdentity, pu as isAbsoluteAssetPath, q as streamPolicyMatchesDeclared, qa as policyDocumentMatchesDeclared, qc as unreadableResourceEntries, ql as S3StateBackend, qn as changedReferenceReason, qo as secretSegmentsOfState, qr as IMPLICIT_DELETE_DEPENDENCIES, qt as refuseRefactorMarker, qu as getBootstrapMarkerKey, r as keptWholeReasonText, ra as yellow, rc as isStatefulRecreateTargetForReplace, rd as hasPlainPrototype, ri as orphanNeedsIdentity, rl as hasReadableOrphans, rn as pendingRequestCount, ro as isCustomResource, rr as stripSiblingOwnedParentMembers, rs as parseIamRoleArn, ru as crossPrefixDeniedWarning, s as checkNestedSsmNames, sa as noEchoParameterNamesOf, si as retiredAfterRollback, sl as refuseMalformedOrphansForDestroy, sn as displacedPhysicalIdShown, sr as sgSiblingDecidedById, ss as callerEnvCredentials, su as withStackInstanceIdWithheld, t as DeployEngine, ta as green, tc as shownType, td as defineOwnKey, ti as segmentCleanupOptions, tl as repairMalformedResourcePropertiesForReadOnly, to as ProviderRegistry, tr as referencedLogicalIds, ts as explicitRoleArnOrThrow, tt as tagsMatchDeclared, tu as CrossPrefixScanCache, u as healSlashedSsmParameterNames, ua as completedReplayEntries, ui as withNameGenerationReached, ul as malformedExportSourceWarning, un as nestedChildStackName$1, uo as customResourceResponseExpirationWarning, us as classifyReplaySecretRegion, v as conditionInputsFrom, va as secretNamedRecordNeedles, vc as maskedInputProof, vi as displayTextOrWithheld, vl as STATE_REGION_DIVERGED, vn as deleteJournaledOrphans, vr as DELETED_RESOURCE_REMEDY, w as pendingMovesRefusalMessage, wa as ccRoutedFinalSnapshotError, wc as malformedOrphanRecordsRefusalMessage, wi as exportNameNoEchoParameters, wl as refuseMalformedResourcesForDestroy, wn as sameJournaledOrphans, wo as withCustomResourceStack, wr as withUnprovenUnsettled, ws as isStalePlaceholderArnAttribute, x as childTemplateLoader, xa as extractDeploymentEventError, xc as maskedPropertyFingerprint, xi as secretBearingStateKeyWarning, xl as malformedResourcesWarning, xn as isHandledOrphan, xo as localCustomResourceCommand, xr as buildReadCurrentStateContext, xs as parameterTypeMayLoseSecretIdentity, y as parentSuppliedValues, ya as stateSecretNameNeedles, yi as exportAliasCollisionScrubWarning, yl as refuseDivergentRecordRegionForDestroy, yn as dropFailedCommands, yo as customResourcesFailedWithoutApp, yr as earlyDeleteWhen, ys as coerceParameterTypedValue, yu as ssmResolvedValueType, za as LAMBDA_PERMISSION_STATEMENT_KEYS, zc as refuseMalformedResourceAttributesForOrphan, zi as deleteSupersededEntry, zl as unwrittenCreateOnlyReplacement, zn as formatDestructiveChange, zo as isAlwaysLiveAttribute, zr as seedsDeleteFirstGuard, zs as isImpossibleEmptyStoredAttribute } from "./deploy-engine-XCVGar9z.js";
|
|
8
|
+
import { $ as MIGRATE_TMP_PREFIX, A as formatDockerLoginError, B as resolveApp, C as redactDockerArgvValues, D as warnFinchArgvExposure, E as partitionSensitiveEnv, F as Synthesizer, G as resolveStateBucketWithDefaultAndSource, H as resolveCaptureObservedState, I as synthesisStatusMessage, J as resolveUseCdkBootstrapAssets, K as resolveStateBucketWithSource, L as getDefaultStateBucketName, M as runDockerForeground, N as runDockerStreaming, O as isDockerClientEnvKey, P as abortInFlightMultipartUploads, Q as CFN_TEMPLATE_URL_LIMIT, R as getLegacyStateBucketName, S as redactedDockerCause, T as finchSecretArgvRefusal, U as resolveSkipPrefix, V as resolveAutoAssetStorage, W as resolveStateBucketWithDefault, X as warnDeprecatedNoPrefixCliFlag, Y as stateBucketExistenceConfirmed, Z as CFN_TEMPLATE_BODY_LIMIT, _ as resolveDockerContextDirectory, at as bindLegacyStackAssetParameters, b as describeDockerFailure, ct as predictedAutoCreatedAssetMode, d as DagBuilder, dt as processStackMessages, et as findLargeInlineResources, f as LockManager, ft as setChildProcessAwsEnv, g as buildDockerImage, h as WorkGraph, i as mergeDeclaredEntries, it as StageLoadError, j as getDockerCmd, k as isMalformedEnvKey, l as DiffCalculator, lt as prepareLegacyStackAssets, m as AssetPublisher, n as declaredStringList, nt as refuseFailedLookups, ot as createLegacyAssetParameterBinder, p as isLockInfoExpired, q as resolveUpdatePolicy, r as inlinePoliciesAreDeclared, rt as AssemblyReader, s as stringListIsDeclared, st as legacyPlanAssetCount, t as declaredInlinePolicies, tt as uploadCfnTemplate, u as LEGACY_HANDLE_HEAL_REASON, ut as CdkToolkitBucketMissingError, w as dockerSpawnEnvWithSensitive, x as redactedCause, y as describeDockerExecFailure, z as loadCdkJson } from "./settle-own-write-members-CSkozE9A.js";
|
|
9
|
+
import { $c as malformedDriftResourcePropertiesWarning, $i as green, $n as parseMappingFile, $o as assertSendableRoleArn, $t as removeSignalReceiverNamed, $u as ensureAssetStorage, A as recordedProtectionEvidence, Ac as malformedOrphanRecordsWarning, Ai as collectDeclaredOutputNames, Al as refuseMalformedResourcesForExport, An as DeploymentEventsStore, Ar as undeclaredEmptyObservedKeys, As as keepHeldTokenProvenance, Au as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, Bc as malformedLocalResourceEntriesWarning, Bi as supersededAfterRollback, Bl as hasReadableResources, Bn as formatDestructiveChange, Bo as isWaitAbandonedError, Br as planRollback, Bs as isNamelessDynamicReferenceError, C as pendingMovesOutOf, Ca as ccRoutedInstanceTakesNoSnapshot, Cc as maskedInputProof, Ci as secretBearingStateKeyWarning, Cl as STATE_REGION_DIVERGED, Cn as journaledOrphanLines, Cr as buildReadCurrentStateContext, Cs as isStalePlaceholderArnAttribute, Cu as isAbsoluteAssetPath, D as findServiceTokenRefusals, Da as unsupportedFinalSnapshotError, Dc as deployRefusesOrphanRowsReason, Di as exportNameSecretExposure, Dl as malformedStateRefusalMessage, Dn as makeSiblingClaimReader, Dr as calculateResourceDrift, E as deferredServiceTokenWarning, Ea as refusesFinalSnapshot, Ec as maskedPropertyFingerprint, Ei as exportNameNoEchoParameters, El as malformedResourcesWarning, En as makeForeignHolderScan, Eo as localCustomResourceCommand, Er as withUnprovenUnsettled, Es as lacksRecordedTableArn, Eu as templateIdentity, F as readProtection, Fc as refuseMalformedOrphansForOrphan, Fi as DEFAULT_RESOURCE_WARN_AFTER_MS, Fl as withheldAccountClause, Fn as noEchoMacParametersOf, Fo as deleteIndeterminateGuards, Fu as buildAssetRedirectMap, Gc as refuseMalformedResourceEntries, Gn as withMovedTo, Go as poisonRenderedSpellingsCollidingIn, Gr as planFailedOps, Gs as INTRINSIC_KEYS, Gt as readRefactorMarkerOnce, Gu as AssetManifestLoader, H as readStreamPolicy, Hc as malformedResourceEntriesWarning, Hi as supersededHolderOf, Hl as findHandledUnwrittenCreateOnly, Hn as hintSidesOf, Ho as IntrinsicFunctionResolver, Hr as demoteSupersededOrphans, Hs as keepsSecretReferenceToken, Ht as keptForRetainedRecord, Ic as repairMalformedOrphanRecordsForReadOnly, Ii as maskingRetryLogger, Il as STATE_RESOURCES_MALFORMED, In as noEchoMacVerdict, Io as deleteLeftInPlace, Ir as ledgerForStack, Iu as createAssetRedirectResolver, Ja as efsPolicyMatchesDeclared, Jc as refuseMalformedResourceEntriesForImport, Ji as withPreviousPolicies, Jl as NO_CC_HANDLERS_REASON, Jn as changedReferenceReason, Jo as resolveDynamicReferences, Jr as replacementNeverSwapped, Jt as refuseRefactorMarker, Ka as declaredMemberDocument, Kc as refuseMalformedResourceEntriesForDeploy, Ki as snapshotSegmentSurvivors, Kn as changedReferenceInDiff, Ko as stackIdTailOf, Kr as recheckFailedPlan, Kt as refactorMarkerMovesOf, Ku as getDockerImageBySourceHash, La as destroyStackRecordsView, Lc as unpreviewableOrphanRecords, Li as deleteSupersededEntry, Ll as UNREADABLE_RESOURCES_MAP_ROW, Ln as noEchoValueMacsOf, Lo as deleteSkipReason, Ls as getAccountInfo, Lu as createLazyAssetModeContext, M as PROTECTION_PROPERTY_BY_TYPE, Mc as previewableOrphanRecords, Mi as isExportAliasCollision, Ml as repairMalformedResourcesForReadOnly, Mn as NOECHO_MAC_KEY_ALIAS, Mr as updatePartialReason, Ms as recordedOutputReferenceRegions, Mu as decodeListingKey, N as isProtectionValueActive, Nc as refuseMalformedOrphanRecords, Ni as bindingSkippedOutputs, Nl as JSON_LISTING_HOLE_VALUE, Nn as createNoEchoValueMacs, No as RollbackInlinePolicyWriters, Nr as findUpdatePolicyReplacementRefusals, O as serviceTokenBlockingReason, Oa as createPreDeleteFinalSnapshot, Oc as isReadableOrphanRecord, Oi as isWholeDynamicReferenceValue, Ol as refuseMalformedResourcesForDeploy, On as planOrphanAdoption, Oo as setLocalCustomResourceRuntimeEnabled, Or as equalModuloMarkedMask, P as perType, Pc as refuseMalformedOrphanRecordsForDestroy, Pi as DEFAULT_RESOURCE_TIMEOUT_MS, Pl as accountArgs, Pn as noEchoMacBinding, Po as UNSPECIFIED_SKIP_REASON, Pr as replacementCreateRoutesToCloudControl, Ps as recordedReferenceRegions, Qa as reReadUntilSettled, Qc as unreadableResourceEntries, Qi as gray, Ql as providerReplacementOldDeleted, Qn as mappingPairs, Qo as assertFlagRoleArn, Qr as readsRegeneratingSecret, Qs as findReplacedReadersOfRecreateTargets, Qt as isReceiver, Qu as AssetModeResolver, Rc as unreadableOrphanRecords, Ri as holdsSupersededResources, Rl as displayLogicalId, Rn as constructPathOf$1, Rr as withCreateTokenLedger, Rs as isImpossibleEmptyStoredAttribute, S as hasPendingMovesOut, Sa as ccRoutedFinalSnapshotError, Sc as parameterInputsFor, Sd as resolveAssemblyPath, Si as secretBearing, Sl as repairMalformedOutputsForReadOnly, Sn as isHandledOrphan, So as NO_LOCAL_CUSTOM_RESOURCES_FLAG, Sr as earlyDeletedOld, Ss as cfnRefValueFromPhysicalId, Su as findNestedTemplateTreeDefect, T as refusePendingMovesOut, Ta as isFinalSnapshotError, Tc as declaresNoEcho, Ti as carriedExportAliasExposure, Tl as malformedRenderedContainersWarning, Tn as sameJournaledOrphans, To as customResourcesRunWithoutApp, Tr as settleUnsettledPrevious, Ts as lacksRecordedRefArn, Tu as renderNestedTemplateTreeDefect, Ua as LAMBDA_PERMISSION_STATEMENT_KEYS, Uc as malformedScrubResourceEntriesRefusalMessage, Ui as supersededResourcesOf, Un as movedToHint, Uo as isSelectOutOfBounds, Ur as isJournaledOrphan, Us as withSharedDrainBudget, Ut as recordRetainedForReadoption, Va as withStackRecords, Vc as malformedLocalResourcesWarning, Vi as supersededHeldByOtherTypeWarning, Vl as findActionableSdkUnwired, Vn as findRefactorHints, Vr as seedsDeleteFirstGuard, Vs as carriesDynamicReference, Vu as loadPublishableAssetManifest, Wc as refuseMalformedResourceAttributesForOrphan, Wi as withoutSuperseded, Wl as unwrittenCreateOnlyReplacement, Wn as rollbackOrphanIds, Wo as isAlwaysLiveAttribute, Wr as isReplacementOrphan, Wt as readRefactorMarker, Wu as rewriteTemplateAssetReferences, Xa as memberReadFailure, Xc as refuseMalformedResourceEntriesForOrphan, Xi as bold, Xl as PROPERTY_COVERAGE_BY_TYPE, Xn as isPairableType, Xo as refuseUnreadableCdkCrossAccountRefs, Xr as computeImplicitDeleteEdges, Xt as updateRefactorMarker, Ya as lambdaPermissionMatchesDeclared, Yc as refuseMalformedResourceEntriesForImportSave, Yi as findNestedStackTypeChanges, Yl as hasNoCloudControlHandlers, Yn as differingRemedy, Yo as producerLookupOver, Yr as IMPLICIT_DELETE_DEPENDENCIES, Yt as sameMove, Z as declaredTagsReadback, Za as policyDocumentMatchesDeclared, Zc as repairMalformedResourceEntriesForReadOnly, Zi as cyan, Zn as looselyEqual, Zo as applyRoleArnIfSet, Zr as attemptUsesCompletedCreate, Zt as deleteSignalReceiver, _ as conditionFingerprint, _a as stateSecretNameNeedles, _c as getTopLevelKeysHoldingUnreadableCreateOnly, _i as reachableDivergentParameters, _l as malformedOutputsRefusalMessage, _n as getCurrentNestedStackContext, _o as TemplateNoEchoReresolver, _r as replayFailedOperations, _u as withStackInstanceIdWithheld, a as scanActiveConsumers, aa as noEchoParameterNamesOf, ad as readBootstrapMarkerBody, ai as orphanNeedsIdentity, al as refuseMalformedResourcePropertiesForOrphan, an as resolvePendingCloudControlRequests, ao as ProviderRegistry, ar as undeclaredGrantSiblingMembers, as as applyCallerIdentityCredentials, b as readRecordedConditionVerdicts, ba as ATOMIC_FINAL_SNAPSHOT_TYPES, bc as maskedPropertyFingerprintsOf, bi as displayTextOrWithheld, bl as refuseMalformedOutputs, bn as dropFailedCommands, br as PLANNED_EARLY_DELETE_CONSEQUENCE, bs as parameterTypeMayLoseSecretIdentity, c as nestedSsmNameDeferredNote, ca as completedReplayEntries, cd as BOOTSTRAP_MARKER_PREFIX, ci as nameScopeOf, cl as hasReadableOrphans, cn as displacedPhysicalIdShown, co as wouldReturnToSdkProvider, cr as sgSiblingDecidedById, cs as classifyRecordedSecretRegion, cu as hasUnverifiableParameterRefusal, d as slashedSsmNameHealAdoptedNote, da as namingSecretsWithRecordedNoEcho, dc as displayPhysicalId, dd as defineOwnKey, di as retiredNameGenerationsLeaving, dl as refuseMalformedOrphans, dn as nestedChildStackName$1, ds as regionLessSecretName, du as CrossPrefixScanCache, ea as red, ec as shownType, ed as buildDenyExternalAccessPolicy, ei as isRedactedRecordedValue, el as malformedResourcePropertiesWarning, en as macWriteOnlyKeys, er as propertiesChangedReason, es as explicitRoleArnOrThrow, f as slashedSsmNameHealNote, fa as orphanRecordsPrintingBag, fd as hasOwnKey, fi as withNameGenerationReached, fl as refuseMalformedOrphansForDestroy, fn as recordDisplacedSkips, fo as isSignalKey, fs as isUnexposedRecordedIdentity, fu as applyCrossPrefixScan, g as makeCanonicalizePropertiesFn, ga as secretNamedRecordNeedles, gc as getSettledWriteOnlyPropertyPaths, gi as namesAnyDeclaredParameter, gl as malformedLocalOutputsWarning, gn as collectNestedChildUnaddressed, gr as canonicalizeIpProtocolValue, gu as stackInstanceIdOf, h as inheritedProvenanceForChildDiff, hc as withSecretPhysicalIdsMaskedInState, hd as ownValue, hi as computeParameterTaint, hl as malformedExportSourceWarning, hn as withNestedRevertRun, ho as customResourceResponseExpirationWarning, hr as sgProtocolKey, hu as isNotImplemented, i as mergeNoChangeOutputs, ia as noEchoExactEchoLeavesOf, ic as renderStatefulReason, id as parseBootstrapMarker, ii as removeProtectionTypeList, il as refuseMalformedResourcePropertiesForExport, in as pendingRequestCount, io as CC_BROKEN_REASON, ir as stripSiblingOwnedParentMembers, is as AWS_CREDENTIAL_ENV_KEYS, iu as splitImportedOps, j as recordedProtectionNote, jc as malformedOrphanRowsKeptWarning, ji as collectPublishedOutputNames, jl as refuseMalformedState, jn as crossStackReadsForPartialSave, jo as CloudControlProvider, jr as updatePartialMessage, k as diffSecurity, ka as buildFinalSnapshotIdentifier, kc as malformedOrphanRecordsRefusalMessage, ki as noEchoParameterValueSeed, kl as refuseMalformedResourcesForDestroy, kn as DeploymentEventsReader, ko as withCustomResourceStack, kr as equalModuloMask, ku as ssmResolvedValueType, l as nestedSsmNameRowNote, la as journaledOrphanPrintingBag, li as retiredAfterRollback, ll as malformedOrphansRefusalMessage, ln as dropSettledNestedJournals, lo as WaitConditionSignalStore, ls as classifyReplaySecretRegion, lu as rebuildClientForBucketRegion, m as crossStackOutputProvenanceSource, ma as secretNamePrintingBags, mc as secretSegmentsOfState, md as nullPrototypeRecord, mi as inheritProducerRegions, ml as malformedExportNamesWarning, mn as revertedNestedRowIds, mo as applyCustomResourceResponseExpiration, mr as recordedSgRuleId, mu as isAccessDenied, n as isSecretBearingReferenceString, na as noEchoAttributeNamesOf, nc as isStatefulRecreateTargetForReplace, nd as isCrossRegionRedirect, nl as refuseMalformedResourcePropertiesForDestroy, nr as referencedLogicalIds, ns as parseIamRoleArn, nu as TemplateParser, o as inRunStackKey, oa as withAttemptedItemsMasked, od as validateAssetBucketName, oi as nameGenerationCarriedFrom, ol as repairMalformedResourcePropertiesForReadOnly, on as NESTED_PENDING_PARENT_REASON, oo as ccBrokenReason, or as recordedRuleIdOf, os as callerEnvCredentials, ou as readOnlyStateVersionOf, p as slashedSsmNameHealPendingNote, pa as secretNamePrintingBag, pc as secretPhysicalIdSegment, pd as hasPlainPrototype, pl as repairMalformedOrphansForReadOnly, po as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, pr as cfnIngressPortValue, pu as crossPrefixDeniedWarning, q as streamPolicyMatchesDeclared, qa as declaredPolicyDocument, qc as refuseMalformedResourceEntriesForDestroy, qi as resolveReplacementOldType, qn as changedReferencePath, qr as recordUnderIdIsNotOwn, qt as refactorMarkerRefusalMessage, r as keptWholeReasonText, ra as noEchoComparisonForTemplate, rc as isStatefulRecreateTargetSync, rd as getBootstrapMarkerKey, ri as segmentCleanupOptions, rl as refuseMalformedResourcePropertiesForDrift, rn as formatResourceLine, rr as siblingOwnedRevertDesired, rs as sendableAssumeRoleCommand, ru as S3StateBackend, s as checkNestedSsmNames, sa as createReadOnlyAttributeHealerFactory, sd as validateContainerRepoName, si as nameGenerationHighWaterOf, sl as UNREADABLE_ORPHANS_CONTAINER_ROW, sn as displacedOpClause, so as isCustomResource, sr as sgRuleOwnershipIdentity, ss as envCredentialsAreAssumedRole, su as hasReasonlessBaselineRefusal, t as DeployEngine, ta as yellow, tc as MULTI_REGION_RECREATE_BLOCKED_TYPES, td as assertAssetBucketRegion, tn as readsOnlyNoEchoParameters, to as verbatimEchoDriftKeys, tr as proposeRenames, ts as isIamRoleArn, tt as tagsMatchDeclared, u as healSlashedSsmParameterNames, ua as maskEventTextWithBoundBags, ui as retiredNameGenerationsAfter, ul as malformedOrphansWarning, uo as classifyHandleUrl, ur as siblingRecordedSgRuleIds, us as producerRegionsFromState, uu as CrossPrefixReadError, v as conditionInputsFrom, va as storedSecretNameNeedles, vc as tryGetTopLevelWriteOnlyProperties, vd as describeFileReadFailure, vi as resourcesNamingDeclaredParameter, vl as malformedOutputsWarning, vn as withNestedStackContext, vo as readsNoEchoDeleteValues, vr as replayRollback, vs as coerceParameterTypedValue, vu as isSecretValuedAttribute, w as pendingMovesRefusalMessage, wa as effectiveDeletionPolicy, wd as resolveBucketRegion, wi as secretSafeKeyDisplay, wl as refuseDivergentRecordRegionForDestroy, wn as loadJournaledOrphans, wo as customResourcesFailedWithoutApp, wr as recordAfterRollbackUpdate, ws as refStateLookupFromResource, wu as listNestedTemplateRows, x as childTemplateLoader, xa as PRE_DELETE_SNAPSHOT_TYPES, xd as renderAssemblyPathEscape, xi as exportAliasCollisionScrubWarning, xl as refuseMalformedOutputsForDestroy, xn as dropFailedHint, xo as withPrintingSecrets, xr as earlyDeleteWhen, xs as AWS_NO_VALUE, y as parentSuppliedValues, ya as extractDeploymentEventError, yd as displayAssemblyPath, yi as WITHHELD_NAME_DISPLAY, yn as deleteJournaledOrphans, yo as isCustomResourceType$1, yr as DELETED_RESOURCE_REMEDY, ys as isUnboundTemplateParameter, yu as isSensitiveAttributeName, za as revertStackRecordsView, zc as isReadableResourceEntry, zi as isSupersededResourceRecord, zl as hasReadableOutputs, zn as findDestructiveChanges, zo as getReadOnlyPropertyPaths, zs as carriesFetchableDynamicReference } from "./deploy-engine-9rzhYsZc.js";
|
|
10
10
|
import { n as canonicalizeRegion, r as derivePartitionAndUrlSuffix, t as PARTITION_TABLE } from "./aws-partition-DA0r2sr-.js";
|
|
11
|
-
import { C as prefetchCreateOnlyPropertyPaths, E as describeTypeWithThrottleRetry, J as parseFailureDebugDetail, K as describeJsonParseFailure, U as renderPhaseTimings, W as timePhase, X as utf8ByteLength, j as withRetry, l as setResolvedResourceTimeouts, w as templateResourceTypes, x as getCreateOnlyPropertyPaths, z as PhaseClock } from "./ec2-termination-protection-
|
|
12
|
-
import { t as expectedOwnerParam } from "./expected-bucket-owner-
|
|
13
|
-
import { Bt as
|
|
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-Dttj-XrE.js";
|
|
12
|
+
import { t as expectedOwnerParam } from "./expected-bucket-owner-DWEAlmAk.js";
|
|
13
|
+
import { Bt as describeRegionValueKind, Gt as isReadableBag, Ht as hasReadableExportSet, Jt as shouldRetainResource, Kt as orphansAfterRollback, Tt as differingIdentityWarning, Ut as importableOutputKeys, Vt as exportNamesCarriedFrom, Wt as importableOutputs, Xt as stackInstanceIdCarriedFrom, kt as slowCcOperationTimeoutMs, qt as orphansCarriedFrom, zt as acceptedCreateOnlyDropsOf } from "./delete-started-DHQvQxWa.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-TNt9wPax.js";
|
|
15
|
+
import { S as unsettledPropertiesOf, T as withoutUnsettledProperties, b as unsettledItemsOf, w as withUnsettledProperties, y as unsettledItemsField } from "./restore-source-guard-jCM5yJzQ.js";
|
|
16
|
+
import { a as parseEcrRegistryHost, i as looksLikeEcrHostWithForeignSuffix, n as hasEcrRegistryHostLabels, t as ecrRegistryHostPattern } from "./ecr-uri-BYWBRpzv.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";
|
|
@@ -32,7 +32,7 @@ import { execFile } from "node:child_process";
|
|
|
32
32
|
import { devNull, tmpdir } from "node:os";
|
|
33
33
|
import { BatchDeleteImageCommand, DeleteRepositoryCommand, DescribeImagesCommand as DescribeImagesCommand$1, ECRClient, GetAuthorizationTokenCommand } from "@aws-sdk/client-ecr";
|
|
34
34
|
import { CreateAliasCommand, CreateKeyCommand, DescribeKeyCommand, KMSClient, ScheduleKeyDeletionCommand } from "@aws-sdk/client-kms";
|
|
35
|
-
import { A2A_CONTAINER_PORT, A2A_PATH, AGENTCORE_A2A_PROTOCOL, AGENTCORE_AGUI_PROTOCOL, AGENTCORE_MCP_PROTOCOL, ConnectionRegistry, DEFAULT_AWS_EMULATOR_URL, DynamicReferenceResolver, EMULATOR_SCRUBBED_ENV_KEYS, EcsTaskResolutionError, MCP_CONTAINER_PORT, MCP_PATH, UNNAMED_WORKLOAD, a2aInvokeOnce, addAlbSpecificOptions, addAwsEndpointOptions, addCommonEcsServiceOptions, addImageOverrideOptions, addStartServiceSpecificOptions, albStrategy, applyWorkloadAwsWiringToEnv, attachAuthorizers, attachStageContext, availableApiIdentifiers, awaitLoopbackForwarderStatus, awsEmulatorEnvName, awsEmulatorRealServices, awsEmulatorSqsHostBlocks, bufferToBody, buildAgentCoreCodeImage, buildCognitoJwksUrl, buildConnectEvent, buildCorsConfigByApiId, buildCorsConfigFromCloudFrontChain, buildDisconnectEvent, buildJwksUrlFromIssuer, buildMessageEvent, buildMgmtEndpointEnvUrl, buildNamespaceOwnerForwarderDockerArgs, buildStageMap, canonicalizeImageOverrideKeys, classifySourceChange, containsCrossStackIntrinsic, containsDynamicReference, createAuthorizerCache, createFileWatcher, createFileWatcher as createFileWatcher$1, createJwksCache, createMixedModeStateProvider, createWatchPredicates, defaultCredentialsLoader, describeAwsFailureForWarn, describeForwarderFailure, discoverRoutes, discoverWebSocketApis, dockerRegistryEnv, downloadAndExtractS3Bundle, effectiveLoopbackPorts, enforceImageOverrideOrphans, expandNestedStacks, filterRoutesByApiIdentifier, firstUsableRegion, getActiveWorkloadAwsWiring, getAwsEndpointOverride, groupRoutesByServer, groupWorkloadsRoutedApart, handleConnectionsRequest, invokeAgentCore, invokeAgentCoreWs, isAwsServiceRoutedToEmulator, keysNotFromTemplate, keysOverriddenBy, logMixedModeForWorkload, loopbackForwarderPlan, mcpInvokeOnce, noImplicitEcrPullArgs, parseAwsEndpoint, parseConnectionsPath, parseImageOverrideFlags, parseSelectionExpressionPath, pickAgentCoreCandidateStack, pickAgentCoreCandidateStack as pickAgentCoreCandidateStack$1, readAwsEmulatorEnvVarsFile, readEmulatorRunFiles, readEnvVarsFileText, readMtlsMaterialsFromDisk, realAwsServicesOf, resolveAgentCoreTarget, resolveAwsEmulatorOption, resolveDynamicReferencesInEnv, resolveEnvVars, resolveHostDefaultCredentials, resolveImageOverrides, resolveJwtAuthorizerIntrinsics, resolveSingleTarget, resolveWatchConfig, resolveWorkloadAwsWiring, runEcsServiceEmulator, runImageOverrideBuilds, setActiveWorkloadAwsWiring, setAwsEndpointOverride, signAgentCoreInvocation, startApiServer, topLevelStacks, verifyJwtViaDiscovery, waitForAgentCorePing, withNestedDescendants, withoutKeys } from "cdk-local/internal";
|
|
35
|
+
import { A2A_CONTAINER_PORT, A2A_PATH, AGENTCORE_A2A_PROTOCOL, AGENTCORE_AGUI_PROTOCOL, AGENTCORE_MCP_PROTOCOL, ConnectionRegistry, DEFAULT_AWS_EMULATOR_URL, DynamicReferenceResolver, EMULATOR_SCRUBBED_ENV_KEYS, EcsTaskResolutionError, MCP_CONTAINER_PORT, MCP_PATH, UNNAMED_WORKLOAD, a2aInvokeOnce, addAlbSpecificOptions, addAwsEndpointOptions, addCommonEcsServiceOptions, addImageOverrideOptions, addStartServiceSpecificOptions, albStrategy, applyWorkloadAwsWiringToEnv, attachAuthorizers, attachStageContext, availableApiIdentifiers, awaitLoopbackForwarderStatus, awsEmulatorEnvName, awsEmulatorRealServices, awsEmulatorSqsHostBlocks, bufferToBody, buildAgentCoreCodeImage, buildCognitoJwksUrl, buildConnectEvent, buildCorsConfigByApiId, buildCorsConfigFromCloudFrontChain, buildDisconnectEvent, buildJwksUrlFromIssuer, buildMessageEvent, buildMgmtEndpointEnvUrl, buildNamespaceOwnerForwarderDockerArgs, buildStageMap, canonicalizeImageOverrideKeys, classifySourceChange, containsCrossStackIntrinsic, containsDynamicReference, createAuthorizerCache, createFileWatcher, createFileWatcher as createFileWatcher$1, createJwksCache, createMixedModeStateProvider, createWatchPredicates, defaultCredentialsLoader, describeAwsFailureForWarn, describeForwarderFailure, discoverRoutes, discoverWebSocketApis, dockerRegistryEnv, downloadAndExtractS3Bundle, effectiveLoopbackPorts, enforceImageOverrideOrphans, expandNestedStacks, filterRoutesByApiIdentifier, firstUsableRegion, getActiveWorkloadAwsWiring, getAwsEndpointOverride, groupRoutesByServer, groupWorkloadsRoutedApart, handleConnectionsRequest, invokeAgentCore, invokeAgentCoreWs, isAwsServiceRoutedToEmulator, keysNotFromTemplate, keysOverriddenBy, logMixedModeForWorkload, loopbackForwarderPlan, mcpInvokeOnce, noImplicitEcrPullArgs, parseAwsEndpoint, parseConnectionsPath, parseImageOverrideFlags, parseSelectionExpressionPath, pickAgentCoreCandidateStack, pickAgentCoreCandidateStack as pickAgentCoreCandidateStack$1, readAwsEmulatorEnvVarsFile, readEmulatorRunFiles, readEnvVarsFileText, readMtlsMaterialsFromDisk, realAwsServicesOf, resolveAgentCoreTarget, resolveAwsEmulatorOption, resolveDynamicReferencesInEnv, resolveEnvVars, resolveHostDefaultCredentials, resolveImageOverrides, resolveJwtAuthorizerIntrinsics, resolveSingleTarget, resolveWatchConfig, resolveWorkloadAwsWiring, runEcsServiceEmulator, runImageOverrideBuilds, setActiveWorkloadAwsWiring, setAwsEndpointOverride, signAgentCoreInvocation, startApiServer, topLevelStacks, verifyJwtViaDiscovery, waitForAgentCorePing, warnUnenforcedRouteAuthSettings, withNestedDescendants, withoutKeys } from "cdk-local/internal";
|
|
36
36
|
import { isDeepStrictEqual, promisify } from "node:util";
|
|
37
37
|
import graphlib from "graphlib";
|
|
38
38
|
import { Command, InvalidArgumentError, Option } from "commander";
|
|
@@ -1541,7 +1541,7 @@ function collectCrossStackRefs(node, onRef, unconditional) {
|
|
|
1541
1541
|
// src/provisioning/register-providers.ts
|
|
1542
1542
|
let providerClasses;
|
|
1543
1543
|
function loadProviderClasses() {
|
|
1544
|
-
providerClasses ??= import("./provider-classes-
|
|
1544
|
+
providerClasses ??= import("./provider-classes-Bmipcl6d.js");
|
|
1545
1545
|
return providerClasses;
|
|
1546
1546
|
}
|
|
1547
1547
|
function registerAllProviders(registry, classes) {
|
|
@@ -2725,7 +2725,7 @@ async function probeStatefulRecreateTargetsAsync(targets, clients, logger = getL
|
|
|
2725
2725
|
statefulReason: "has-objects"
|
|
2726
2726
|
});
|
|
2727
2727
|
else if (truncated) {
|
|
2728
|
-
logger.warn(`--recreate-via-cc-api / --recreate-via-sdk-provider: S3 answered the emptiness probe for ${target.logicalId} (bucket ${target.physicalId}) without settling it (an empty page carrying a continuation marker); treating the bucket as NOT provably empty. Re-run to retry the probe, or — only if the bucket really is disposable — re-run with --force-stateful-recreation (that flag has NO per-resource granularity and clears the guard for every target in the run).`);
|
|
2728
|
+
logger.warn(`--recreate-via-cc-api / --recreate-via-sdk-provider: S3 answered the emptiness probe for ${target.logicalId} (bucket ${displayPhysicalId(target.resourceType, target.physicalId)}) without settling it (an empty page carrying a continuation marker); treating the bucket as NOT provably empty. Re-run to retry the probe, or — only if the bucket really is disposable — re-run with --force-stateful-recreation (that flag has NO per-resource granularity and clears the guard for every target in the run).`);
|
|
2729
2729
|
promoted.push({
|
|
2730
2730
|
...target,
|
|
2731
2731
|
statefulReason: "has-objects"
|
|
@@ -2736,7 +2736,7 @@ async function probeStatefulRecreateTargetsAsync(targets, clients, logger = getL
|
|
|
2736
2736
|
promoted.push({ ...target });
|
|
2737
2737
|
continue;
|
|
2738
2738
|
}
|
|
2739
|
-
logger.warn(`--recreate-via-cc-api / --recreate-via-sdk-provider: live S3 probe failed for ${target.logicalId} (bucket ${target.physicalId}); leaving stateful guard at the sync result. If the bucket might be non-empty, re-run with --force-stateful-recreation. Underlying error: ${describeAwsFailure(e).detail}`);
|
|
2739
|
+
logger.warn(`--recreate-via-cc-api / --recreate-via-sdk-provider: live S3 probe failed for ${target.logicalId} (bucket ${displayPhysicalId(target.resourceType, target.physicalId)}); leaving stateful guard at the sync result. If the bucket might be non-empty, re-run with --force-stateful-recreation. Underlying error: ${describeAwsFailure(e).detail}`);
|
|
2740
2740
|
promoted.push({
|
|
2741
2741
|
...target,
|
|
2742
2742
|
probeUnresolved: true
|
|
@@ -2757,7 +2757,7 @@ async function probeStatefulRecreateTargetsAsync(targets, clients, logger = getL
|
|
|
2757
2757
|
statefulReason: "has-log-events"
|
|
2758
2758
|
});
|
|
2759
2759
|
else {
|
|
2760
|
-
logger.warn(`--recreate-via-cc-api / --recreate-via-sdk-provider: CloudWatch Logs answered the emptiness probe for ${target.logicalId} (log group ${target.physicalId}) without settling it (${streams === void 0 ? "no logStreams field in the response" : "an empty page carrying a continuation token"}); treating the log group as NOT provably empty. An unset or zero RetentionInDays is CloudWatch Logs' "never expire", so an unprovable emptiness must not read as empty. Re-run to retry the probe, or — only if the log group really is disposable — re-run with --force-stateful-recreation (that flag has NO per-resource granularity and clears the guard for every target in the run).`);
|
|
2760
|
+
logger.warn(`--recreate-via-cc-api / --recreate-via-sdk-provider: CloudWatch Logs answered the emptiness probe for ${target.logicalId} (log group ${displayPhysicalId(target.resourceType, target.physicalId)}) without settling it (${streams === void 0 ? "no logStreams field in the response" : "an empty page carrying a continuation token"}); treating the log group as NOT provably empty. An unset or zero RetentionInDays is CloudWatch Logs' "never expire", so an unprovable emptiness must not read as empty. Re-run to retry the probe, or — only if the log group really is disposable — re-run with --force-stateful-recreation (that flag has NO per-resource granularity and clears the guard for every target in the run).`);
|
|
2761
2761
|
promoted.push({
|
|
2762
2762
|
...target,
|
|
2763
2763
|
statefulReason: "has-log-events"
|
|
@@ -2768,7 +2768,7 @@ async function probeStatefulRecreateTargetsAsync(targets, clients, logger = getL
|
|
|
2768
2768
|
let regionVerified = true;
|
|
2769
2769
|
if (clients.expectedRegionDiverged) {
|
|
2770
2770
|
regionVerified = false;
|
|
2771
|
-
logger.warn(`--recreate-via-cc-api / --recreate-via-sdk-provider: CloudWatch Logs reported ${target.logicalId} (log group ${target.physicalId}) missing, but this stack's state record names a region that is not the one its S3 key holds, so cdkd cannot attribute that not-found to any region — run ${proseQuoted(cdkdRemedy("cdkd state show"))} with --verbose to see what the record claims, and repair it. Re-run with --force-stateful-recreation if the log group really is disposable (that flag clears the data guard for every target in the run). Until then it is treated as NOT provably empty.`);
|
|
2771
|
+
logger.warn(`--recreate-via-cc-api / --recreate-via-sdk-provider: CloudWatch Logs reported ${target.logicalId} (log group ${displayPhysicalId(target.resourceType, target.physicalId)}) missing, but this stack's state record names a region that is not the one its S3 key holds, so cdkd cannot attribute that not-found to any region — run ${proseQuoted(cdkdRemedy("cdkd state show"))} with --verbose to see what the record claims, and repair it. Re-run with --force-stateful-recreation if the log group really is disposable (that flag clears the data guard for every target in the run). Until then it is treated as NOT provably empty.`);
|
|
2772
2772
|
}
|
|
2773
2773
|
const recordedRegion = clients.expectedRegionDiverged ? void 0 : foldRegion(clients.expectedRegion);
|
|
2774
2774
|
if (recordedRegion) {
|
|
@@ -2779,11 +2779,11 @@ async function probeStatefulRecreateTargetsAsync(targets, clients, logger = getL
|
|
|
2779
2779
|
} catch {
|
|
2780
2780
|
regionVerified = false;
|
|
2781
2781
|
const cause = clientRegion ? `the client region (${clientRegion}) does not match the region cdkd state records for it (${recordedRegion}) — a not-found from the wrong region says nothing about the log group. Fix the region mismatch, or` : `the CloudWatch Logs client's own region could not be resolved, so the not-found cannot be attributed to the region cdkd state records (${recordedRegion}). Fix the client's region configuration, or`;
|
|
2782
|
-
logger.warn(`--recreate-via-cc-api / --recreate-via-sdk-provider: CloudWatch Logs reported ${target.logicalId} (log group ${target.physicalId}) missing, but ${cause} re-run with --force-stateful-recreation if the log group really is disposable (that flag clears the data guard for every target in the run). Until then it is treated as NOT provably empty.`);
|
|
2782
|
+
logger.warn(`--recreate-via-cc-api / --recreate-via-sdk-provider: CloudWatch Logs reported ${target.logicalId} (log group ${displayPhysicalId(target.resourceType, target.physicalId)}) missing, but ${cause} re-run with --force-stateful-recreation if the log group really is disposable (that flag clears the data guard for every target in the run). Until then it is treated as NOT provably empty.`);
|
|
2783
2783
|
}
|
|
2784
2784
|
}
|
|
2785
2785
|
if (regionVerified) {
|
|
2786
|
-
logger.debug(`--recreate-via-cc-api / --recreate-via-sdk-provider: log group ${target.physicalId} (${target.logicalId}) does not exist, so it holds no events — not stateful.`);
|
|
2786
|
+
logger.debug(`--recreate-via-cc-api / --recreate-via-sdk-provider: log group ${displayPhysicalId(target.resourceType, target.physicalId)} (${target.logicalId}) does not exist, so it holds no events — not stateful.`);
|
|
2787
2787
|
promoted.push({ ...target });
|
|
2788
2788
|
continue;
|
|
2789
2789
|
}
|
|
@@ -2793,7 +2793,7 @@ async function probeStatefulRecreateTargetsAsync(targets, clients, logger = getL
|
|
|
2793
2793
|
});
|
|
2794
2794
|
continue;
|
|
2795
2795
|
}
|
|
2796
|
-
logger.warn(`--recreate-via-cc-api / --recreate-via-sdk-provider: live CloudWatch Logs probe failed for ${target.logicalId} (log group ${target.physicalId}); treating the log group as NOT provably empty. An unset or zero RetentionInDays is CloudWatch Logs' "never expire", so an unprovable emptiness must not read as empty. Fixes, cheapest first: grant logs:DescribeLogStreams and re-run, or re-run as-is if this was transient (CloudWatch Logs throttles this API aggressively). Only if the log group really is disposable, re-run with --force-stateful-recreation — that flag has NO per-resource granularity and clears the guard for every target in the run. Underlying error: ${describeAwsFailure(e).detail}`);
|
|
2796
|
+
logger.warn(`--recreate-via-cc-api / --recreate-via-sdk-provider: live CloudWatch Logs probe failed for ${target.logicalId} (log group ${displayPhysicalId(target.resourceType, target.physicalId)}); treating the log group as NOT provably empty. An unset or zero RetentionInDays is CloudWatch Logs' "never expire", so an unprovable emptiness must not read as empty. Fixes, cheapest first: grant logs:DescribeLogStreams and re-run, or re-run as-is if this was transient (CloudWatch Logs throttles this API aggressively). Only if the log group really is disposable, re-run with --force-stateful-recreation — that flag has NO per-resource granularity and clears the guard for every target in the run. Underlying error: ${describeAwsFailure(e).detail}`);
|
|
2797
2797
|
promoted.push({
|
|
2798
2798
|
...target,
|
|
2799
2799
|
statefulReason: "has-log-events"
|
|
@@ -3026,7 +3026,7 @@ async function promptMigrationConfirm(renames, opts) {
|
|
|
3026
3026
|
const logger = getLogger();
|
|
3027
3027
|
logger.warn("");
|
|
3028
3028
|
logger.warn(`WARNING: --no-prefix-user-supplied-names will REPLACE ${renames.length} resource(s) whose AWS physical name is still prefixed with the stack name:`);
|
|
3029
|
-
for (const r of renames) logger.warn(` - ${r.logicalId} (${r.resourceType}): from ${r.oldPhysicalId} to ${r.newPhysicalId}`);
|
|
3029
|
+
for (const r of renames) logger.warn(` - ${r.logicalId} (${r.resourceType}): from ${displayPhysicalId(r.resourceType, r.oldPhysicalId)} to ${displayPhysicalId(r.resourceType, r.newPhysicalId)}`);
|
|
3030
3030
|
logger.warn("These resources will be REPLACED because the new naming convention drops the stack-name prefix.");
|
|
3031
3031
|
if (opts.yes) return true;
|
|
3032
3032
|
if (process.stdin.isTTY !== true) throw new Error("--no-prefix-user-supplied-names migration confirm prompt cannot run in a non-interactive environment. Pass --yes / -y to confirm the REPLACEMENT, or run the deploy from a real terminal.");
|
|
@@ -6290,12 +6290,13 @@ function diffTreeToJson(node) {
|
|
|
6290
6290
|
unreadable: node.unreadable,
|
|
6291
6291
|
unreadableContainers: node.unreadableContainers,
|
|
6292
6292
|
unreadableOrphans: node.unreadableOrphans,
|
|
6293
|
-
destructiveChanges: node.destructiveChanges.map(({ logicalId, resourceType, constructPath, impact, movedTo }) => ({
|
|
6293
|
+
destructiveChanges: node.destructiveChanges.map(({ logicalId, resourceType, constructPath, impact, movedTo, earlyDelete }) => ({
|
|
6294
6294
|
logicalId,
|
|
6295
6295
|
resourceType,
|
|
6296
6296
|
...constructPath !== void 0 && { constructPath },
|
|
6297
6297
|
impact,
|
|
6298
|
-
...movedTo !== void 0 && { movedTo }
|
|
6298
|
+
...movedTo !== void 0 && { movedTo },
|
|
6299
|
+
...earlyDelete !== void 0 && { earlyDelete }
|
|
6299
6300
|
})),
|
|
6300
6301
|
children: node.children.map(diffTreeToJson)
|
|
6301
6302
|
};
|
|
@@ -6372,7 +6373,10 @@ function renderChangeLines(changes, logFn, ccApiRoutes, adoptedOrphans, refactor
|
|
|
6372
6373
|
updateCount++;
|
|
6373
6374
|
logFn(` [~] ${logicalId} (${change.resourceType})${annotateAdoption(logicalId)}${annotateRouting(logicalId)}`);
|
|
6374
6375
|
if (change.providerReplacement === "issues a signal URL in place of the placeholder id an earlier cdkd recorded") logFn(` [new physical id: ${LEGACY_HANDLE_HEAL_REASON}]`);
|
|
6375
|
-
else if (change.providerReplacement !== void 0)
|
|
6376
|
+
else if (change.providerReplacement !== void 0) {
|
|
6377
|
+
const early = providerReplacementOldDeleted(change.resourceType);
|
|
6378
|
+
logFn(` [requires replacement: ${stripForDisplay(change.providerReplacement)}; deleted, then created again]` + (early !== void 0 ? ` — ${PLANNED_EARLY_DELETE_CONSEQUENCE}` : ""));
|
|
6379
|
+
}
|
|
6376
6380
|
if (change.propertyChanges && change.propertyChanges.length > 0) for (const propChange of change.propertyChanges) {
|
|
6377
6381
|
const requiresReplace = propChange.requiresReplacement && (propChange.inPlacePropagated === true || propChange.replacementPropagated === true) ? " [may require replacement]" : propChange.requiresReplacement ? " [requires replacement]" : "";
|
|
6378
6382
|
const propagated = propChange.replacementPropagated ? " [replacement propagated]" : propChange.readProvenancePromoted === true ? " [read value moved upstream]" : propChange.inPlacePropagated ? " [attribute propagated]" : propChange.maskedExpressionChanged === true ? " [masked input or expression changed]" : propChange.unsettled === true ? " [unsettled after a failed update; sent again]" : propChange.newValueKnownAfterDeploy === true ? " [reads a resource this deploy changes]" : "";
|
|
@@ -9651,7 +9655,7 @@ function outcomeExitSignal(outcome) {
|
|
|
9651
9655
|
drifted: () => "drifted",
|
|
9652
9656
|
notCompared: (n) => n.notComparedCause === "unresolvedToken" || n.notComparedCause === "noEchoParameter" ? "none" : "incomplete",
|
|
9653
9657
|
clean: () => "none",
|
|
9654
|
-
unsupported: () => "
|
|
9658
|
+
unsupported: () => "incomplete",
|
|
9655
9659
|
skipped: () => "none",
|
|
9656
9660
|
deleted: () => "drifted"
|
|
9657
9661
|
});
|
|
@@ -9677,6 +9681,10 @@ const UNCOMPARED_REASONS = {
|
|
|
9677
9681
|
kind: "unknown",
|
|
9678
9682
|
phrase: "not compared AT ALL: a `cdkd import` run refused to capture their observed baseline"
|
|
9679
9683
|
},
|
|
9684
|
+
unsupported: {
|
|
9685
|
+
kind: "unknown",
|
|
9686
|
+
phrase: "not compared AT ALL: their provider does not support drift detection yet"
|
|
9687
|
+
},
|
|
9680
9688
|
refused: {
|
|
9681
9689
|
kind: "unknown",
|
|
9682
9690
|
phrase: "only PARTIALLY compared: cdkd refused to resolve a dynamic reference their state records"
|
|
@@ -9693,10 +9701,6 @@ const UNCOMPARED_REASONS = {
|
|
|
9693
9701
|
kind: "unknown",
|
|
9694
9702
|
phrase: "only PARTIALLY compared: their state holds a NoEcho parameter value only as the redaction mask, which no re-run can clear"
|
|
9695
9703
|
},
|
|
9696
|
-
unsupported: {
|
|
9697
|
-
kind: "byDesign",
|
|
9698
|
-
phrase: "not compared AT ALL: their provider does not support drift detection yet"
|
|
9699
|
-
},
|
|
9700
9704
|
skipped: {
|
|
9701
9705
|
kind: "byDesign",
|
|
9702
9706
|
phrase: "not compared AT ALL: cdkd does not drift-check the type"
|
|
@@ -9729,7 +9733,9 @@ function uncomparedTally(reports) {
|
|
|
9729
9733
|
clean: () => {},
|
|
9730
9734
|
notCompared: () => {},
|
|
9731
9735
|
unsupported: () => bump("unsupported"),
|
|
9732
|
-
skipped: () =>
|
|
9736
|
+
skipped: (sk) => {
|
|
9737
|
+
if (sk.resourceType !== "AWS::CloudFormation::Stack") bump("skipped");
|
|
9738
|
+
},
|
|
9733
9739
|
deleted: () => {}
|
|
9734
9740
|
});
|
|
9735
9741
|
}
|
|
@@ -11575,11 +11581,14 @@ function writeHumanReport(reports) {
|
|
|
11575
11581
|
const inspected = inspectedCount;
|
|
11576
11582
|
const notCompared = notComparedOutcomes(report);
|
|
11577
11583
|
const checked = inspected - notCompared.length;
|
|
11584
|
+
const customExcluded = skippedCount - nestedCoveredCount;
|
|
11585
|
+
const customExcludedClause = customExcluded > 0 ? ` — excludes ${customExcluded} custom resource${customExcluded === 1 ? "" : "s"}, which cdkd does not drift-check` : "";
|
|
11578
11586
|
if (drifted.length === 0 && deleted.length === 0) {
|
|
11579
11587
|
if (notCompared.length === 0 && nestedCoveredCount > 0 && nestedCoveredCount === report.outcomes.length) process.stdout.write(`✓ ${reportHeading(report)}: no drift detected here — ${nestedCoveredCount} nested stack${nestedCoveredCount === 1 ? "" : "s"}, each checked in its own block\n`);
|
|
11580
11588
|
else if (notCompared.length === 0 && checked === 0 && report.outcomes.length > 0) process.stdout.write(`⚠ ${reportHeading(report)}: no drift detected, but NOTHING was compared — 0 of ${report.outcomes.length} resource${report.outcomes.length === 1 ? "" : "s"} checked (${unsupported.length} unsupported, ${skippedCount} skipped)\n`);
|
|
11581
|
-
else if (notCompared.length > 0) process.stdout.write(`⚠ ${reportHeading(report)}: no drift detected, but ${checked} of ${inspected} resource${inspected === 1 ? "" : "s"} fully checked ` + (notCompared.some((n) => !ANY_OF_IT_COMPARED[n.cause]) ? `(${notCompared.length} not fully compared), ` : `(${notCompared.length} only partially compared), `) + `${unsupported.length} unsupported\n`);
|
|
11582
|
-
else process.stdout.write(
|
|
11589
|
+
else if (notCompared.length > 0) process.stdout.write(`⚠ ${reportHeading(report)}: no drift detected, but ${checked} of ${inspected} resource${inspected === 1 ? "" : "s"} fully checked ` + (notCompared.some((n) => !ANY_OF_IT_COMPARED[n.cause]) ? `(${notCompared.length} not fully compared), ` : `(${notCompared.length} only partially compared), `) + `${unsupported.length} unsupported${customExcludedClause}\n`);
|
|
11590
|
+
else if (unsupported.length > 0) process.stdout.write(`⚠ ${reportHeading(report)}: no drift detected in ${checked} resource${checked === 1 ? "" : "s"} checked, but ${unsupported.length} resource${unsupported.length === 1 ? "" : "s"} could not be compared (${unsupported.length} unsupported, drift unknown)${customExcludedClause}\n`);
|
|
11591
|
+
else process.stdout.write(`✓ ${reportHeading(report)}: no drift detected (${checked} resource${checked === 1 ? "" : "s"} checked, ${unsupported.length} unsupported)${customExcludedClause}\n`);
|
|
11583
11592
|
} else {
|
|
11584
11593
|
const driftCount = drifted.length + deleted.length;
|
|
11585
11594
|
const word = driftCount === 1 ? "resource" : "resources";
|
|
@@ -13515,7 +13524,10 @@ function refuseCcGroupRevertChangingRules(logicalId, groupId, resourceType, prop
|
|
|
13515
13524
|
}
|
|
13516
13525
|
|
|
13517
13526
|
// src/cli/commands/drift/revert-apply.ts
|
|
13518
|
-
|
|
13527
|
+
function applyRevertUpdate(args) {
|
|
13528
|
+
return withStackRecords(revertStackRecordsView(args.report.state.resources), () => applyRevertUpdateInScope(args));
|
|
13529
|
+
}
|
|
13530
|
+
async function applyRevertUpdateInScope(args) {
|
|
13519
13531
|
const { logger, tally, report, narrowedByLogicalId, settledByRevert, outcome, stateResource, provider, secrets, revertBaseline, newProperties } = args;
|
|
13520
13532
|
try {
|
|
13521
13533
|
const revertPrevious = await settleUnsettledPrevious({
|
|
@@ -13541,7 +13553,7 @@ async function applyRevertUpdate(args) {
|
|
|
13541
13553
|
recordedCreateOnlyDrops: stateResource.acceptedCreateOnlyDrops,
|
|
13542
13554
|
removedProperties: /* @__PURE__ */ new Set()
|
|
13543
13555
|
}), outcome.logicalId, { logger: maskingRetryLogger(logger, secrets) });
|
|
13544
|
-
const replacedBy = revertReplacementOf(stateResource.physicalId, updateResult);
|
|
13556
|
+
const replacedBy = revertReplacementOf(stateResource.physicalId, updateResult, stateResource.resourceType);
|
|
13545
13557
|
if (replacedBy !== void 0) {
|
|
13546
13558
|
tally.totalFailed++;
|
|
13547
13559
|
logger.error(safeMsg` ✗ ${report.stackName}/${outcome.logicalId} (${outcome.resourceType}): the provider REPLACED the resource or changed its identity instead of reverting it in place (${maskSecretsInText(replacedBy, secrets)}). A drift revert must never replace a resource — this is a cdkd bug, please report it. State records the identity the provider returned for a replacement, so it is not orphaned; check its consumers.`);
|
|
@@ -13590,10 +13602,12 @@ async function applyRevertUpdate(args) {
|
|
|
13590
13602
|
logger.error(` ✗ ${report.stackName}/${outcome.logicalId} (${outcome.resourceType}): AWS update failed — ${msg}`);
|
|
13591
13603
|
}
|
|
13592
13604
|
}
|
|
13593
|
-
function revertReplacementOf(recordedPhysicalId, updateResult) {
|
|
13605
|
+
function revertReplacementOf(recordedPhysicalId, updateResult, resourceType) {
|
|
13594
13606
|
if (updateResult === void 0) return void 0;
|
|
13595
|
-
|
|
13596
|
-
|
|
13607
|
+
const idChanged = typeof updateResult.physicalId === "string" && updateResult.physicalId !== "" && updateResult.physicalId !== recordedPhysicalId;
|
|
13608
|
+
const recordedShown = displayPhysicalId(resourceType, recordedPhysicalId);
|
|
13609
|
+
if (idChanged) return `physical id ${recordedShown} became ${displayPhysicalId(resourceType, updateResult.physicalId)}`;
|
|
13610
|
+
return updateResult.wasReplaced === true ? `reported a replacement under the same physical id ${recordedShown}` : void 0;
|
|
13597
13611
|
}
|
|
13598
13612
|
function recordReturnedIdentity(args, updateResult, verdict) {
|
|
13599
13613
|
const { logger, report, reRecordedByLogicalId, outcome, stateResource, secrets, newProperties } = args;
|
|
@@ -14450,7 +14464,7 @@ async function announceOrphansAndConfirm({ state, logger, stackNoEchoValues, jou
|
|
|
14450
14464
|
logger.info(`\n${orphansAtDestroy.length} resource(s) are still in AWS from an earlier failed deploy. cdkd left them there because their DeletionPolicy is Retain (CDK's RemovalPolicy.RETAIN), and has been tracking them so a later deploy of this stack could adopt them back instead of colliding with their names.`);
|
|
14451
14465
|
logger.info("Destroying this stack deletes that record. The resources stay in AWS, may continue to incur charges, and cdkd will no longer know about them:");
|
|
14452
14466
|
const orphanListing = orphanRecordsPrintingBag(orphansAtDestroy, await stackNoEchoValues());
|
|
14453
|
-
for (const entry of orphansAtDestroy) withPrintingSecrets(orphanListing, () => logger.info(` - ${displaySafe(entry.logicalId)} (${displaySafe(entry.state.resourceType)}) ${displaySafe(entry.state.physicalId)}`));
|
|
14467
|
+
for (const entry of orphansAtDestroy) withPrintingSecrets(orphanListing, () => logger.info(` - ${displaySafe(entry.logicalId)} (${displaySafe(entry.state.resourceType)}) ${displaySafe(displayPhysicalId(entry.state.resourceType, entry.state.physicalId))}`));
|
|
14454
14468
|
}
|
|
14455
14469
|
if (journaledOrphans.count > 0) {
|
|
14456
14470
|
logger.info(`\n${journaledOrphans.count} resource(s) were created by a failed deploy and are recorded only in the rollback journal. Each is deleted first as its DeletionPolicy directs (Retain keeps it in AWS, Snapshot takes the final snapshot), unless state or a later deploy may own it, which is warned about instead:`);
|
|
@@ -15323,8 +15337,9 @@ async function destroyStackUnderLock({ stackName, state, ctx, logger, result, re
|
|
|
15323
15337
|
if (holder.resourceType !== resourceType) withPrintingSecrets(bag, () => logger.warn(safeMsg` ⚠ ${supersededHeldByOtherTypeWarning(entry, holder.resourceType)}`));
|
|
15324
15338
|
return false;
|
|
15325
15339
|
}
|
|
15340
|
+
const shownId = displayPhysicalId(resourceType, physicalId);
|
|
15326
15341
|
return withPrintingSecrets(bag, async () => {
|
|
15327
|
-
logger.info(safeMsg`Deleting ${logicalId}'s superseded ${resourceType} (${
|
|
15342
|
+
logger.info(safeMsg`Deleting ${logicalId}'s superseded ${resourceType} (${shownId})...`);
|
|
15328
15343
|
let outcome;
|
|
15329
15344
|
try {
|
|
15330
15345
|
outcome = await withStackRecords({
|
|
@@ -15362,13 +15377,13 @@ async function destroyStackUnderLock({ stackName, state, ctx, logger, result, re
|
|
|
15362
15377
|
if (outcome.kind === "gone" || outcome.kind === "notOurs") {
|
|
15363
15378
|
drop();
|
|
15364
15379
|
if (outcome.kind === "gone") logger.info(safeMsg` ✓ ${logicalId}'s superseded ${resourceType} is already gone`);
|
|
15365
|
-
else logger.warn(safeMsg` ⚠ ${logicalId}'s superseded ${resourceType} (${
|
|
15380
|
+
else logger.warn(safeMsg` ⚠ ${logicalId}'s superseded ${resourceType} (${shownId}) was not deleted: ${outcome.cause}. The replaced resource is gone, and cdkd no longer tracks it in state.`);
|
|
15366
15381
|
return false;
|
|
15367
15382
|
}
|
|
15368
15383
|
const replacement = outcome.kind === "failed" ? outcome.replacement : void 0;
|
|
15369
15384
|
if (replacement !== void 0) remainingSuperseded = (remainingSuperseded ?? []).map((row) => row === entry ? replacement : row);
|
|
15370
15385
|
if (early) {
|
|
15371
|
-
logger.info(safeMsg` ${logicalId}'s superseded ${resourceType} (${
|
|
15386
|
+
logger.info(safeMsg` ${logicalId}'s superseded ${resourceType} (${shownId}) was not deleted yet; retrying after the stack's own resources`);
|
|
15372
15387
|
return true;
|
|
15373
15388
|
}
|
|
15374
15389
|
const why = outcome.kind === "notDeleted" ? outcome.reason : maskSecretsInText(describeAwsFailure(outcome.error).detail, bag);
|
|
@@ -15376,11 +15391,11 @@ async function destroyStackUnderLock({ stackName, state, ctx, logger, result, re
|
|
|
15376
15391
|
drop();
|
|
15377
15392
|
result.skippedCount++;
|
|
15378
15393
|
result.journaledOrphanSkips++;
|
|
15379
|
-
logger.warn(safeMsg` ⚠ ${logicalId}'s superseded ${resourceType} (${
|
|
15394
|
+
logger.warn(safeMsg` ⚠ ${logicalId}'s superseded ${resourceType} (${shownId}) was not deleted: ${why}. ` + "Delete it manually — it is no longer tracked in state.");
|
|
15380
15395
|
return false;
|
|
15381
15396
|
}
|
|
15382
15397
|
result.errorCount++;
|
|
15383
|
-
logger.warn(safeMsg` ⚠ ${logicalId}'s superseded ${resourceType} (${
|
|
15398
|
+
logger.warn(safeMsg` ⚠ ${logicalId}'s superseded ${resourceType} (${shownId}) was not deleted: ${why}. ` + "State preserved: it stays recorded, and a re-run of the destroy retries it.");
|
|
15384
15399
|
return false;
|
|
15385
15400
|
});
|
|
15386
15401
|
};
|
|
@@ -17210,7 +17225,7 @@ async function printStackResources(stackName, options, setup) {
|
|
|
17210
17225
|
for (const detail of details) {
|
|
17211
17226
|
lines.push(stripForDisplay(detail.logicalId));
|
|
17212
17227
|
lines.push(` Type: ${formatAttributeValue(detail.resourceType)}`);
|
|
17213
|
-
lines.push(` PhysicalID: ${formatAttributeValue(detail.physicalId)}`);
|
|
17228
|
+
lines.push(` PhysicalID: ${formatAttributeValue(displayPhysicalId(detail.resourceType, detail.physicalId))}`);
|
|
17214
17229
|
lines.push(` Dependencies: ${formatDependencyList(detail.dependencies)}`);
|
|
17215
17230
|
const attrEntries = Object.entries(detail.attributes);
|
|
17216
17231
|
if (attrEntries.length === 0) lines.push(" Attributes: (none)");
|
|
@@ -17231,7 +17246,7 @@ async function printStackResources(stackName, options, setup) {
|
|
|
17231
17246
|
}));
|
|
17232
17247
|
const idWidth = Math.max(...rows.map((r) => r.logicalId.length));
|
|
17233
17248
|
const typeWidth = Math.max(...rows.map((r) => r.resourceType.length));
|
|
17234
|
-
for (const row of rows) process.stdout.write(`${row.logicalId.padEnd(idWidth)} ${row.resourceType.padEnd(typeWidth)} ${row.physicalId}\n`);
|
|
17249
|
+
for (const row of rows) process.stdout.write(`${row.logicalId.padEnd(idWidth)} ${row.resourceType.padEnd(typeWidth)} ${displayPhysicalId(row.resourceType, row.physicalId)}\n`);
|
|
17235
17250
|
}
|
|
17236
17251
|
function formatAttributeValue(value) {
|
|
17237
17252
|
if (value === null) return "null";
|
|
@@ -17930,12 +17945,12 @@ function restApiChildSplitter(options) {
|
|
|
17930
17945
|
return (physicalId, properties) => {
|
|
17931
17946
|
if (!physicalId.trim()) throw new Error(`empty physical id for ${resourceType} (expected a ${childField})`);
|
|
17932
17947
|
const parts = physicalId.split("|");
|
|
17933
|
-
if (parts.length > 2) throw new Error(`expected a bare ${childField} or '${compositeShape}', got ${parts.length} parts: ${showRecordValue(physicalId)}`);
|
|
17948
|
+
if (parts.length > 2) throw new Error(`expected a bare ${childField} or '${compositeShape}', got ${parts.length} parts: ${showRecordValue(displayPhysicalId(resourceType, physicalId))}`);
|
|
17934
17949
|
let restApiId;
|
|
17935
17950
|
let childValue;
|
|
17936
17951
|
if (parts.length === 2) {
|
|
17937
17952
|
const [a, b] = parts;
|
|
17938
|
-
if (!a || !b) throw new Error(`empty part in '${compositeShape}': ${showRecordValue(physicalId)}`);
|
|
17953
|
+
if (!a || !b) throw new Error(`empty part in '${compositeShape}': ${showRecordValue(displayPhysicalId(resourceType, physicalId))}`);
|
|
17939
17954
|
[restApiId, childValue] = childFirstInCompositeId ? [b, a] : [a, b];
|
|
17940
17955
|
} else {
|
|
17941
17956
|
restApiId = readStringProperty(properties, "RestApiId", resourceType);
|
|
@@ -18205,12 +18220,12 @@ const COMPOSITE_ID_SPLITTERS = {
|
|
|
18205
18220
|
propertiesOverlay: { ApiId: apiId }
|
|
18206
18221
|
};
|
|
18207
18222
|
}
|
|
18208
|
-
if (trimmed.startsWith("arn:")) throw new Error(`${showRecordValue(physicalId)} looks like an ARN but is not an AppSync API key ARN (expected arn:<partition>:appsync:<region>:<account>:apis/<apiId>/apikeys/<apiKeyId>)`);
|
|
18223
|
+
if (trimmed.startsWith("arn:")) throw new Error(`${showRecordValue(displayPhysicalId("AWS::AppSync::ApiKey", physicalId))} looks like an ARN but is not an AppSync API key ARN (expected arn:<partition>:appsync:<region>:<account>:apis/<apiId>/apikeys/<apiKeyId>)`);
|
|
18209
18224
|
const parts = trimmed.split("|");
|
|
18210
|
-
if (parts.length > 2) throw new Error(`expected 'apiId|apiKeyId', the key ARN, or a bare apiKeyId, got ${parts.length} parts: ${showRecordValue(physicalId)}`);
|
|
18225
|
+
if (parts.length > 2) throw new Error(`expected 'apiId|apiKeyId', the key ARN, or a bare apiKeyId, got ${parts.length} parts: ${showRecordValue(displayPhysicalId("AWS::AppSync::ApiKey", physicalId))}`);
|
|
18211
18226
|
if (parts.length === 2) {
|
|
18212
18227
|
const [apiId, apiKeyId] = parts;
|
|
18213
|
-
if (!apiId.trim() || !apiKeyId.trim()) throw new Error(`empty part in 'apiId|apiKeyId': ${showRecordValue(physicalId)}`);
|
|
18228
|
+
if (!apiId.trim() || !apiKeyId.trim()) throw new Error(`empty part in 'apiId|apiKeyId': ${showRecordValue(displayPhysicalId("AWS::AppSync::ApiKey", physicalId))}`);
|
|
18214
18229
|
return {
|
|
18215
18230
|
resourceIdentifier: {
|
|
18216
18231
|
ApiId: apiId,
|
|
@@ -18756,7 +18771,7 @@ function policyTemplateCheck(targets, templateProperties, recordedProperties, te
|
|
|
18756
18771
|
};
|
|
18757
18772
|
}
|
|
18758
18773
|
function preDeleteListingLines(entry) {
|
|
18759
|
-
const head = `${rowIdent(entry.logicalId)} (${rowIdent(entry.resourceType)}) — physicalId: ` + recordValueOrNotShown(entry.physicalId);
|
|
18774
|
+
const head = `${rowIdent(entry.logicalId)} (${rowIdent(entry.resourceType)}) — physicalId: ` + recordValueOrNotShown(displayPhysicalId(entry.resourceType, entry.physicalId));
|
|
18760
18775
|
if (entry.resourceType !== "AWS::IAM::Policy") return [head];
|
|
18761
18776
|
const targets = policyDetachTargets(entry);
|
|
18762
18777
|
if ("refusal" in targets) return [head, ` the pre-delete will refuse: ${targets.refusal}`];
|
|
@@ -19832,9 +19847,9 @@ async function runPerStackImportPhases(ctx) {
|
|
|
19832
19847
|
} catch (err) {
|
|
19833
19848
|
const msg = describeAwsFailure(err).detail;
|
|
19834
19849
|
const importedSummary = importedStacks.map((s) => `${quotedOrNotShown(s.cdkdStackName)} → ${quotedOrNotShown(s.cfnStackName)}`).join(", ");
|
|
19835
|
-
throw new Error(`Phase 1 (IMPORT) succeeded for cdkd stack ${quotedOrNotShown(plan.cdkdName)} (CFn name ${quotedOrNotShown(plan.cfnName)}); pre-delete of ${plainOrNotShown(entry.logicalId)} (${plainOrNotShown(entry.resourceType)}, physicalId: ${recordValueOrNotShown(entry.physicalId)}) failed: ${displayAwsMessage(msg)}\n\nStacks IMPORTed so far (each CFn-managed): ${importedSummary}. cdkd state for every stack in the tree is preserved. This stack's IMPORT-unsupported resources may still exist in AWS unmanaged. To recover: fix the failure cause, delete the remaining pre-delete resources of this stack by hand:\n` + preDeleteManualCommands(plan.recreateBeforePhase2).map((line) => ` ${line}\n`).join("") + `then run the phase-2 UPDATE for ${quotedOrNotShown(plan.cfnName)} by hand with its full synth template. ` + nestedResumeTail(i, "phase2"), { cause: err instanceof Error ? err : void 0 });
|
|
19850
|
+
throw new Error(`Phase 1 (IMPORT) succeeded for cdkd stack ${quotedOrNotShown(plan.cdkdName)} (CFn name ${quotedOrNotShown(plan.cfnName)}); pre-delete of ${plainOrNotShown(entry.logicalId)} (${plainOrNotShown(entry.resourceType)}, physicalId: ${recordValueOrNotShown(displayPhysicalId(entry.resourceType, entry.physicalId))}) failed: ${displayAwsMessage(msg)}\n\nStacks IMPORTed so far (each CFn-managed): ${importedSummary}. cdkd state for every stack in the tree is preserved. This stack's IMPORT-unsupported resources may still exist in AWS unmanaged. To recover: fix the failure cause, delete the remaining pre-delete resources of this stack by hand:\n` + preDeleteManualCommands(plan.recreateBeforePhase2).map((line) => ` ${line}\n`).join("") + `then run the phase-2 UPDATE for ${quotedOrNotShown(plan.cfnName)} by hand with its full synth template. ` + nestedResumeTail(i, "phase2"), { cause: err instanceof Error ? err : void 0 });
|
|
19836
19851
|
}
|
|
19837
|
-
logger.info(` ${preDeletedLine(entry.physicalId)}`);
|
|
19852
|
+
logger.info(` ${preDeletedLine(displayPhysicalId(entry.resourceType, entry.physicalId))}`);
|
|
19838
19853
|
}
|
|
19839
19854
|
if (plan.phase2Creates.length + plan.recreateBeforePhase2.length > 0) {
|
|
19840
19855
|
const phase2Template = applyImportOverlayForPhase2(plan.template, plan.phase1Imports);
|
|
@@ -20355,11 +20370,11 @@ async function exportCommand(stackArg, options) {
|
|
|
20355
20370
|
logger.info(`Pre-deleting AWS resource for ${rowIdent(entry.logicalId)} (${rowIdent(entry.resourceType)}) so CFn can re-CREATE in phase 2...`);
|
|
20356
20371
|
try {
|
|
20357
20372
|
await handler(entry);
|
|
20358
|
-
logger.info(` ${preDeletedLine(entry.physicalId)}`);
|
|
20373
|
+
logger.info(` ${preDeletedLine(displayPhysicalId(entry.resourceType, entry.physicalId))}`);
|
|
20359
20374
|
} catch (err) {
|
|
20360
20375
|
const msg = describeAwsFailure(err).detail;
|
|
20361
20376
|
const orphan = orphanCommandFor(resolvedStackName, targetRegion, lockRecovery);
|
|
20362
|
-
throw new Error(`Phase 1 (IMPORT) succeeded; pre-delete of ${plainOrNotShown(entry.logicalId)} (${plainOrNotShown(entry.resourceType)}, physicalId: ${recordValueOrNotShown(entry.physicalId)}) failed: ${displayAwsMessage(msg)}\n\nThe CloudFormation stack ${quotedOrNotShown(cfnStackName)} contains the phase-1 imports but the IMPORT-unsupported resources (${recreateBeforePhase2.length} total) still exist in AWS unmanaged. cdkd state is UNCHANGED. Re-running \`cdkd export\` does NOT work — the existing-stack check rejects it. To recover manually:\n 1. Fix the failure cause (typically IAM permissions for the underlying AWS API — iam:Delete{Role,User,Group}Policy for an inline policy).\n 2. Delete the remaining AWS-side IMPORT-unsupported resources by hand:\n` + preDeleteManualCommands(recreateBeforePhase2).map((line) => ` ${line}\n`).join("") + ` (one per entry in the pre-delete list logged above).
|
|
20377
|
+
throw new Error(`Phase 1 (IMPORT) succeeded; pre-delete of ${plainOrNotShown(entry.logicalId)} (${plainOrNotShown(entry.resourceType)}, physicalId: ${recordValueOrNotShown(displayPhysicalId(entry.resourceType, entry.physicalId))}) failed: ${displayAwsMessage(msg)}\n\nThe CloudFormation stack ${quotedOrNotShown(cfnStackName)} contains the phase-1 imports but the IMPORT-unsupported resources (${recreateBeforePhase2.length} total) still exist in AWS unmanaged. cdkd state is UNCHANGED. Re-running \`cdkd export\` does NOT work — the existing-stack check rejects it. To recover manually:\n 1. Fix the failure cause (typically IAM permissions for the underlying AWS API — iam:Delete{Role,User,Group}Policy for an inline policy).\n 2. Delete the remaining AWS-side IMPORT-unsupported resources by hand:\n` + preDeleteManualCommands(recreateBeforePhase2).map((line) => ` ${line}\n`).join("") + ` (one per entry in the pre-delete list logged above).
|
|
20363
20378
|
3. Run the phase-2 UPDATE manually with the full synth template:
|
|
20364
20379
|
${phase2RetryCommand(cfnStackName)}\n 4. Once phase 2 succeeds, clean up cdkd's stale state record.${orphan.note}\n Run: ${orphan.command}`);
|
|
20365
20380
|
}
|
|
@@ -20492,7 +20507,7 @@ function renderStateBlock(recordState, lockInfo, withLegend, secretSegments) {
|
|
|
20492
20507
|
lines.push("");
|
|
20493
20508
|
lines.push(stripForDisplay(logicalId));
|
|
20494
20509
|
lines.push(` Type: ${formatAttributeValue(resource.resourceType)}`);
|
|
20495
|
-
lines.push(` PhysicalID: ${formatAttributeValue(resource.physicalId)}`);
|
|
20510
|
+
lines.push(` PhysicalID: ${formatAttributeValue(displayPhysicalId(resource.resourceType, resource.physicalId))}`);
|
|
20496
20511
|
const provisionedBy = resource.provisionedBy ?? "(sdk, legacy default)";
|
|
20497
20512
|
lines.push(` ProvisionedBy: ${formatAttributeValue(provisionedBy)}`);
|
|
20498
20513
|
if (resource.observedBaselineRefused === true) {
|
|
@@ -23035,7 +23050,7 @@ function failedActionLabel(item, skipFinalSnapshot) {
|
|
|
23035
23050
|
case "orphan-failed-create-retain": return ` - orphan ${safe(op.logicalId)} (${safe(op.resourceType)}) [FAILED create, DeletionPolicy Retain — left in AWS]`;
|
|
23036
23051
|
case "skip-failed-unknown": return ` - skip ${safe(op.logicalId)} (${safe(op.resourceType)}) — failed CREATE recorded no physical id`;
|
|
23037
23052
|
case "skip-failed-noop": return ` - skip ${safe(op.logicalId)} (${safe(op.resourceType)}) — failed ${safe(op.changeType)} left nothing to revert`;
|
|
23038
|
-
case "skip-failed-replaced-deleted": return ` - skip ${logicalIdShown(op.logicalId)} (${resourceTypeShown(op.resourceType)}) — failed replacement deleted the old resource ${displacedPhysicalIdShown(op, getLogger()) ?? "a physical id"} before its create failed; nothing to revert, state still records it`;
|
|
23053
|
+
case "skip-failed-replaced-deleted": return ` - skip ${logicalIdShown(op.logicalId)} (${resourceTypeShown(op.resourceType)}) — failed replacement deleted the old resource ${displacedPhysicalIdShown(op, getLogger(), void 0, op.previousState?.resourceType ?? op.resourceType) ?? "a physical id"} before its create failed; nothing to revert, state still records it`;
|
|
23039
23054
|
case "skip-failed-superseded": return ` - skip ${logicalIdShown(op.logicalId)} (${resourceTypeShown(op.resourceType)}) — failed CREATE created ${displacedPhysicalIdShown(op, getLogger()) ?? "a physical id"} before failing; a later deploy or rollback may own it now; not deleted, needs manual attention`;
|
|
23040
23055
|
case "skip-failed-mismatch": return ` - skip ${logicalIdShown(op.logicalId)} (${resourceTypeShown(op.resourceType)}) — failed CREATE recorded ${displacedPhysicalIdShown(op, getLogger()) ?? "a physical id"}, which is not the resource state tracks under this id; not reverted, needs manual attention`;
|
|
23041
23056
|
case "skip-failed-absent": return ` - skip ${safe(op.logicalId)} (${safe(op.resourceType)}) — no previous state available`;
|
|
@@ -23993,15 +24008,132 @@ function collectAssetReferences(stateDocument, marker, refs) {
|
|
|
23993
24008
|
walk(stateDocument);
|
|
23994
24009
|
}
|
|
23995
24010
|
|
|
24011
|
+
// src/cli/commands/gc/wait-condition-signals.ts
|
|
24012
|
+
const WAIT_CONDITION_HANDLE_TYPE = "AWS::CloudFormation::WaitConditionHandle";
|
|
24013
|
+
const SIGNAL_DELETE_CONCURRENCY = 8;
|
|
24014
|
+
function signalSweepPrefix(prefix = WAIT_CONDITION_SIGNAL_PREFIX) {
|
|
24015
|
+
if (!/^[A-Za-z0-9][A-Za-z0-9-]*$/.test(prefix)) throw new CdkdError(`Refusing to sweep wait condition signal objects under ${JSON.stringify(prefix)}: the prefix must be a single non-empty segment.`, "GC_SIGNAL_PREFIX_REFUSED");
|
|
24016
|
+
return `${prefix}/`;
|
|
24017
|
+
}
|
|
24018
|
+
async function listAgedSignalObjects(stateBackend, cutoffMs, logger, prefix = signalSweepPrefix()) {
|
|
24019
|
+
const objects = await stateBackend.listRawObjects(prefix);
|
|
24020
|
+
const aged = [];
|
|
24021
|
+
for (const obj of objects) {
|
|
24022
|
+
const shown = displayIdent(obj.key, { maxCodePoints: STATE_KEY_MAX_CODE_POINTS });
|
|
24023
|
+
if (!obj.key.startsWith(prefix) || !isSignalKey(obj.key)) {
|
|
24024
|
+
logger.debug(safeMsg`gc: keeping ${shown} — not a cdkd wait condition signal key`);
|
|
24025
|
+
continue;
|
|
24026
|
+
}
|
|
24027
|
+
if (obj.lastModified.getTime() >= cutoffMs) {
|
|
24028
|
+
logger.debug(safeMsg`gc: keeping ${shown} — newer than the --older-than cutoff`);
|
|
24029
|
+
continue;
|
|
24030
|
+
}
|
|
24031
|
+
aged.push(obj);
|
|
24032
|
+
}
|
|
24033
|
+
return aged;
|
|
24034
|
+
}
|
|
24035
|
+
const EMBEDDED_SIGNAL_KEY = new RegExp(`${WAIT_CONDITION_SIGNAL_PREFIX}/[A-Za-z0-9]{1,255}-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\\.json`, "g");
|
|
24036
|
+
function addHandleReferences(physicalId, bucket, refs) {
|
|
24037
|
+
const verdict = classifyHandleUrl(physicalId, bucket);
|
|
24038
|
+
if (verdict.kind === "ours") refs.add(verdict.key);
|
|
24039
|
+
let decoded = physicalId;
|
|
24040
|
+
try {
|
|
24041
|
+
decoded = decodeURIComponent(physicalId);
|
|
24042
|
+
} catch {}
|
|
24043
|
+
for (const text of [physicalId, decoded]) for (const match of text.matchAll(EMBEDDED_SIGNAL_KEY)) refs.add(match[0]);
|
|
24044
|
+
}
|
|
24045
|
+
function isRecord(value) {
|
|
24046
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
24047
|
+
}
|
|
24048
|
+
function visitResource(record, where, bucket, refs) {
|
|
24049
|
+
if (!isRecord(record)) return `${where} is not an object`;
|
|
24050
|
+
if (record["resourceType"] === "AWS::CloudFormation::WaitCondition") {
|
|
24051
|
+
const props = record["properties"];
|
|
24052
|
+
const handle = isRecord(props) ? props["Handle"] : void 0;
|
|
24053
|
+
if (typeof handle === "string") addHandleReferences(handle, bucket, refs);
|
|
24054
|
+
return;
|
|
24055
|
+
}
|
|
24056
|
+
if (record["resourceType"] !== "AWS::CloudFormation::WaitConditionHandle") return void 0;
|
|
24057
|
+
const physicalId = record["physicalId"];
|
|
24058
|
+
if (typeof physicalId !== "string") return `${where} is a handle with no string physicalId`;
|
|
24059
|
+
addHandleReferences(physicalId, bucket, refs);
|
|
24060
|
+
}
|
|
24061
|
+
function collectSignalReferences(parsed, bucket, refs) {
|
|
24062
|
+
if (!isRecord(parsed)) return "the document is not an object";
|
|
24063
|
+
const resources = parsed["resources"];
|
|
24064
|
+
if (!isRecord(resources)) return "`resources` is not an object";
|
|
24065
|
+
for (const [logicalId, record] of Object.entries(resources)) {
|
|
24066
|
+
const bad = visitResource(record, `resources entry ${displayIdent(logicalId, { maxCodePoints: STATE_KEY_MAX_CODE_POINTS })}`, bucket, refs);
|
|
24067
|
+
if (bad !== void 0) return bad;
|
|
24068
|
+
}
|
|
24069
|
+
for (const field of ["orphans", "supersededResources"]) {
|
|
24070
|
+
const list = parsed[field];
|
|
24071
|
+
if (list === void 0) continue;
|
|
24072
|
+
if (!Array.isArray(list)) return `\`${field}\` is not a list`;
|
|
24073
|
+
for (const [index, entry] of list.entries()) {
|
|
24074
|
+
const where = `${field}[${index}]`;
|
|
24075
|
+
if (!isRecord(entry)) return `${where} is not an object`;
|
|
24076
|
+
const bad = visitResource(entry["state"], `${where}.state`, bucket, refs);
|
|
24077
|
+
if (bad !== void 0) return bad;
|
|
24078
|
+
}
|
|
24079
|
+
}
|
|
24080
|
+
}
|
|
24081
|
+
function collectRetainedSignalReferences(parsed, bucket, refs) {
|
|
24082
|
+
if (!isRecord(parsed) || !Array.isArray(parsed["resources"])) return "the document has no `resources` list";
|
|
24083
|
+
for (const [index, entry] of parsed["resources"].entries()) {
|
|
24084
|
+
const bad = visitResource(entry, `resources[${index}]`, bucket, refs);
|
|
24085
|
+
if (bad !== void 0) return bad;
|
|
24086
|
+
}
|
|
24087
|
+
}
|
|
24088
|
+
async function deleteWaitConditionSignalCandidates(candidates, remove, bucket, concurrency = 8) {
|
|
24089
|
+
const failures = [];
|
|
24090
|
+
let next = 0;
|
|
24091
|
+
const worker = async () => {
|
|
24092
|
+
while (next < candidates.length) {
|
|
24093
|
+
const candidate = candidates[next++];
|
|
24094
|
+
try {
|
|
24095
|
+
await remove(candidate.key);
|
|
24096
|
+
} catch (error) {
|
|
24097
|
+
failures.push(`${displayIdent(candidate.key, { maxCodePoints: STATE_KEY_MAX_CODE_POINTS })} (${describeAwsFailure(error).summary})`);
|
|
24098
|
+
}
|
|
24099
|
+
}
|
|
24100
|
+
};
|
|
24101
|
+
await Promise.all(Array.from({ length: Math.min(Math.max(1, concurrency), candidates.length) }, worker));
|
|
24102
|
+
if (failures.length > 0) throw new CdkdError(`Failed to delete ${failures.length} wait condition signal object(s) from ${bucket}: ` + failures.join("; "), "GC_DELETE_FAILED");
|
|
24103
|
+
}
|
|
24104
|
+
|
|
23996
24105
|
// src/cli/commands/gc/scan.ts
|
|
23997
|
-
|
|
24106
|
+
const RETAINED_FILE_SUFFIX = "/retained.json";
|
|
24107
|
+
function signalScanRefusal(key, reason) {
|
|
24108
|
+
return new CdkdError(`${displayIdent(key, { maxCodePoints: STATE_KEY_MAX_CODE_POINTS })} cannot be read for wait condition handle references (${reason}) — aborting: gc must know every handle that references a signal object before deleting any, and one could be hidden there. Repair or remove the malformed file (inspect the object at that key), then re-run.`, "GC_STATE_UNREADABLE");
|
|
24109
|
+
}
|
|
24110
|
+
async function collectRetainedReferences(stateBackend, bucket, referenced, logger) {
|
|
24111
|
+
const keys = (await stateBackend.listRawKeys("")).filter((k) => k.endsWith(RETAINED_FILE_SUFFIX));
|
|
24112
|
+
for (const key of keys) {
|
|
24113
|
+
const body = await stateBackend.getRawObject(key);
|
|
24114
|
+
if (body === null) {
|
|
24115
|
+
logger.debug(safeMsg`Retained record ${displayIdent(key, { maxCodePoints: STATE_KEY_MAX_CODE_POINTS })} disappeared during the scan — skipping`);
|
|
24116
|
+
continue;
|
|
24117
|
+
}
|
|
24118
|
+
let parsed;
|
|
24119
|
+
try {
|
|
24120
|
+
parsed = JSON.parse(body);
|
|
24121
|
+
} catch {
|
|
24122
|
+
throw signalScanRefusal(key, "not valid JSON");
|
|
24123
|
+
}
|
|
24124
|
+
const malformed = collectRetainedSignalReferences(parsed, bucket, referenced);
|
|
24125
|
+
if (malformed !== void 0) throw signalScanRefusal(key, malformed);
|
|
24126
|
+
}
|
|
24127
|
+
}
|
|
24128
|
+
async function scanReferencedAssets(stateBackend, marker, logger, account, signals) {
|
|
23998
24129
|
const refs = {
|
|
23999
24130
|
s3Keys: /* @__PURE__ */ new Set(),
|
|
24000
24131
|
imageTags: /* @__PURE__ */ new Set(),
|
|
24001
24132
|
imageDigests: /* @__PURE__ */ new Set()
|
|
24002
24133
|
};
|
|
24003
24134
|
const stateKeys = await listAllStateKeys(stateBackend);
|
|
24004
|
-
|
|
24135
|
+
const purpose = marker !== null && signals !== void 0 ? "asset and wait condition handle references" : marker !== null ? "asset references" : "wait condition handle references";
|
|
24136
|
+
logger.info(safeMsg`Scanning ${stateKeys.length} state file(s) for ${purpose}...`);
|
|
24005
24137
|
for (const key of stateKeys) {
|
|
24006
24138
|
const body = await stateBackend.getRawObject(key);
|
|
24007
24139
|
if (body === null) {
|
|
@@ -24037,7 +24169,15 @@ async function scanReferencedAssets(stateBackend, marker, logger, account) {
|
|
|
24037
24169
|
logger.debug(safeMsg`State file ${displayIdent(key, { maxCodePoints: STATE_KEY_MAX_CODE_POINTS })} failed to parse: ${displaySafe(describeAwsFailure(error).detail, { asciiOnly: true }) || "<unrenderable>"}`);
|
|
24038
24170
|
throw new CdkdError(`State file ${displayIdent(key, { maxCodePoints: STATE_KEY_MAX_CODE_POINTS })} is not valid JSON — aborting: gc must know every referenced asset before deleting anything, and this file's references are unreadable. Repair or remove the corrupt state file (${inspect}), then re-run.` + (accountClause === "" ? "" : ` ${accountClause}`) + (inspectHint === void 0 ? "" : `\nInspect it with: ${inspectHint}`), "GC_STATE_UNREADABLE");
|
|
24039
24171
|
}
|
|
24040
|
-
collectAssetReferences(parsed, marker, refs);
|
|
24172
|
+
if (marker !== null) collectAssetReferences(parsed, marker, refs);
|
|
24173
|
+
if (signals !== void 0) {
|
|
24174
|
+
const malformed = collectSignalReferences(parsed, account.stateBucket, signals.referenced);
|
|
24175
|
+
if (malformed !== void 0) throw signalScanRefusal(key, malformed);
|
|
24176
|
+
}
|
|
24177
|
+
}
|
|
24178
|
+
if (signals !== void 0) {
|
|
24179
|
+
await collectRetainedReferences(stateBackend, account.stateBucket, signals.referenced, logger);
|
|
24180
|
+
logger.debug(safeMsg`Referenced: ${signals.referenced.size} wait condition signal key(s)`);
|
|
24041
24181
|
}
|
|
24042
24182
|
logger.debug(`Referenced: ${refs.s3Keys.size} S3 key(s), ${refs.imageTags.size} image tag(s), ${refs.imageDigests.size} image digest(s)`);
|
|
24043
24183
|
return refs;
|
|
@@ -24277,47 +24417,51 @@ async function gcCommand(options) {
|
|
|
24277
24417
|
}
|
|
24278
24418
|
throw error;
|
|
24279
24419
|
}
|
|
24280
|
-
|
|
24281
|
-
if (lockKeys.length > 0) {
|
|
24282
|
-
const listing = lockKeys.map((k) => ` - ${describeStateKey(k, LOCK_FILE_SUFFIX, DEFAULT_STATE_PREFIX)} [${displayIdent(k, { maxCodePoints: STATE_KEY_MAX_CODE_POINTS })}]`).join("\n");
|
|
24283
|
-
throw new CdkdError(`Refusing to gc while ${lockKeys.length} stack(s) hold an active lock (a deploy in flight may have published assets whose state write has not landed yet):\n${listing}\nWait for the operation(s) to finish — or clear a stale lock with ${pasteableCommand("cdkd force-unlock", [{ hole: "stack" }]).command} — then re-run ${proseQuoted(cdkdRemedy("cdkd gc"))}.`, "GC_LOCKED");
|
|
24284
|
-
}
|
|
24420
|
+
await refuseWhileLocked(stateBackend);
|
|
24285
24421
|
const cutoffMs = Date.now() - options.olderThan;
|
|
24286
24422
|
const responseCandidates = await listResponsePlaceholderCandidates(stateBackend, cutoffMs, logger);
|
|
24423
|
+
const agedSignals = await listAgedSignalObjects(stateBackend, cutoffMs, logger);
|
|
24424
|
+
const marker = markerBody === null ? null : parseBootstrapMarker(markerBody, resolvedMarkerKey);
|
|
24425
|
+
const referencedSignals = /* @__PURE__ */ new Set();
|
|
24426
|
+
let refs = null;
|
|
24427
|
+
if (marker !== null || agedSignals.length > 0) refs = await scanReferencedAssets(stateBackend, marker, logger, {
|
|
24428
|
+
profile: options.profile,
|
|
24429
|
+
stateBucket: bucketName
|
|
24430
|
+
}, agedSignals.length > 0 ? { referenced: referencedSignals } : void 0);
|
|
24431
|
+
const signalCandidates = agedSignals.filter((c) => !referencedSignals.has(c.key));
|
|
24432
|
+
if (signalCandidates.length > 0) await refuseWhileLocked(stateBackend);
|
|
24287
24433
|
if (markerBody === null) {
|
|
24288
24434
|
const probed = rawMarkerKey === markerKey ? markerKey : `${markerKey}, ${rawMarkerKey}`;
|
|
24289
|
-
if (responseCandidates.length === 0) {
|
|
24435
|
+
if (responseCandidates.length === 0 && signalCandidates.length === 0) {
|
|
24290
24436
|
logger.info(`No bootstrap marker for region '${region}' (${probed}) — the region is not opted in to cdkd asset storage; nothing to garbage-collect. (CDK bootstrap storage is 'cdk gc' territory.)`);
|
|
24291
24437
|
return;
|
|
24292
24438
|
}
|
|
24293
|
-
logger.info(`No bootstrap marker for region '${region}' (${probed}) — the region is not opted in to cdkd asset storage, so no assets are in scope. (CDK bootstrap storage is 'cdk gc' territory.) Continuing with the state bucket's
|
|
24439
|
+
logger.info(`No bootstrap marker for region '${region}' (${probed}) — the region is not opted in to cdkd asset storage, so no assets are in scope. (CDK bootstrap storage is 'cdk gc' territory.) Continuing with the state bucket's ${stateBucketArmsNoun(responseCandidates.length, signalCandidates.length)}.`);
|
|
24294
24440
|
}
|
|
24295
|
-
const marker = markerBody === null ? null : parseBootstrapMarker(markerBody, resolvedMarkerKey);
|
|
24296
24441
|
let s3Candidates = [];
|
|
24297
24442
|
let ecrCandidates = [];
|
|
24298
|
-
if (marker !== null) {
|
|
24299
|
-
const refs = await scanReferencedAssets(stateBackend, marker, logger, {
|
|
24300
|
-
profile: options.profile,
|
|
24301
|
-
stateBucket: bucketName
|
|
24302
|
-
});
|
|
24443
|
+
if (marker !== null && refs !== null) {
|
|
24303
24444
|
s3Candidates = await listS3Candidates(awsClients.s3, marker.assetBucket, accountId, refs, cutoffMs, logger);
|
|
24304
24445
|
ecrCandidates = await listEcrCandidates(ecrClient, marker.containerRepo, refs, cutoffMs, logger);
|
|
24305
24446
|
}
|
|
24306
|
-
if (marker !== null && s3Candidates.length === 0 && ecrCandidates.length === 0 && responseCandidates.length === 0) {
|
|
24307
|
-
logger.info(`Nothing to garbage-collect in region '${region}': every object in ${marker.assetBucket} / image in ${marker.containerRepo} is either referenced by a deployed stack or newer than the --older-than cutoff, and no abandoned custom-resource response placeholder is older than it either.`);
|
|
24447
|
+
if (marker !== null && s3Candidates.length === 0 && ecrCandidates.length === 0 && responseCandidates.length === 0 && signalCandidates.length === 0) {
|
|
24448
|
+
logger.info(`Nothing to garbage-collect in region '${region}': every object in ${marker.assetBucket} / image in ${marker.containerRepo} is either referenced by a deployed stack or newer than the --older-than cutoff, and no abandoned custom-resource response placeholder or orphaned wait condition signal object is older than it either.`);
|
|
24308
24449
|
return;
|
|
24309
24450
|
}
|
|
24310
24451
|
const s3Bytes = s3Candidates.reduce((sum, c) => sum + c.size, 0);
|
|
24311
24452
|
const ecrBytes = ecrCandidates.reduce((sum, c) => sum + c.size, 0);
|
|
24312
24453
|
const responseBytes = responseCandidates.reduce((sum, c) => sum + c.size, 0);
|
|
24454
|
+
const signalBytes = signalCandidates.reduce((sum, c) => sum + c.size, 0);
|
|
24455
|
+
const reclaimBytes = s3Bytes + ecrBytes + responseBytes + signalBytes;
|
|
24313
24456
|
const assetBucket = marker !== null ? marker.assetBucket : "";
|
|
24314
24457
|
const containerRepo = marker !== null ? marker.containerRepo : "";
|
|
24315
24458
|
const planLines = [
|
|
24316
24459
|
...s3Candidates.map((c) => `s3://${assetBucket}/${c.key} (${formatBytes(c.size)}, ${formatAge(c.lastModified)})`),
|
|
24317
24460
|
...ecrCandidates.map((c) => `${containerRepo}${c.tags.length > 0 ? `:${c.tags.join(",")}` : ""}@${c.digest} (${formatBytes(c.size)}, ${formatAge(c.pushedAt)})`),
|
|
24318
|
-
...responseCandidates.map((c) => `s3://${bucketName}/${c.key} (${formatBytes(c.size)}, ${formatAge(c.lastModified)}) [abandoned custom-resource response]`)
|
|
24461
|
+
...responseCandidates.map((c) => `s3://${bucketName}/${c.key} (${formatBytes(c.size)}, ${formatAge(c.lastModified)}) [abandoned custom-resource response]`),
|
|
24462
|
+
...signalCandidates.map((c) => `s3://${bucketName}/${c.key} (${formatBytes(c.size)}, ${formatAge(c.lastModified)}) [orphaned wait condition signal, all versions]`)
|
|
24319
24463
|
];
|
|
24320
|
-
const totals = `Total: ${s3Candidates.length} S3 object(s) (${formatBytes(s3Bytes)}) + ${ecrCandidates.length} ECR image(s) (${formatBytes(ecrBytes)}) + ${responseCandidates.length} custom-resource response placeholder(s) (${formatBytes(responseBytes)})
|
|
24464
|
+
const totals = `Total: ${s3Candidates.length} S3 object(s) (${formatBytes(s3Bytes)}) + ${ecrCandidates.length} ECR image(s) (${formatBytes(ecrBytes)}) + ${responseCandidates.length} custom-resource response placeholder(s) (${formatBytes(responseBytes)})` + (signalCandidates.length > 0 ? ` + ${signalCandidates.length} wait condition signal object(s) (${formatBytes(signalBytes)}, current versions)` : "") + ` = ${formatBytes(reclaimBytes)} reclaimable`;
|
|
24321
24465
|
if (options.dryRun) {
|
|
24322
24466
|
logger.info("");
|
|
24323
24467
|
logger.info(`Dry run — the following would be deleted in ${region}:`);
|
|
@@ -24355,13 +24499,31 @@ async function gcCommand(options) {
|
|
|
24355
24499
|
}
|
|
24356
24500
|
logger.info(`✓ Deleted ${responseCandidates.length} abandoned custom-resource response placeholder(s) (${formatBytes(responseBytes)}) from ${bucketName}`);
|
|
24357
24501
|
}
|
|
24358
|
-
|
|
24502
|
+
if (signalCandidates.length > 0) {
|
|
24503
|
+
await refuseWhileLocked(stateBackend);
|
|
24504
|
+
const store = new WaitConditionSignalStore();
|
|
24505
|
+
store.setBucket(bucketName);
|
|
24506
|
+
await deleteWaitConditionSignalCandidates(signalCandidates, (key) => store.removeSignalObjects(key), bucketName);
|
|
24507
|
+
logger.info(safeMsg`✓ Deleted ${signalCandidates.length} orphaned wait condition signal object(s) (${formatBytes(signalBytes)}) from ${bucketName}`);
|
|
24508
|
+
}
|
|
24509
|
+
logger.info(`\n✓ gc completed: ${formatBytes(reclaimBytes)} reclaimed`);
|
|
24359
24510
|
} finally {
|
|
24360
24511
|
ecrClient.destroy();
|
|
24361
24512
|
markerS3Client.destroy();
|
|
24362
24513
|
awsClients.destroy();
|
|
24363
24514
|
}
|
|
24364
24515
|
}
|
|
24516
|
+
async function refuseWhileLocked(stateBackend) {
|
|
24517
|
+
const lockKeys = await listAllLockKeys(stateBackend);
|
|
24518
|
+
if (lockKeys.length === 0) return;
|
|
24519
|
+
const listing = lockKeys.map((k) => ` - ${describeStateKey(k, LOCK_FILE_SUFFIX, DEFAULT_STATE_PREFIX)} [${displayIdent(k, { maxCodePoints: STATE_KEY_MAX_CODE_POINTS })}]`).join("\n");
|
|
24520
|
+
throw new CdkdError(`Refusing to gc while ${lockKeys.length} stack(s) hold an active lock (a deploy in flight may have published assets whose state write has not landed yet):\n${listing}\nWait for the operation(s) to finish — or clear a stale lock with ${pasteableCommand("cdkd force-unlock", [{ hole: "stack" }]).command} — then re-run ${proseQuoted(cdkdRemedy("cdkd gc"))}.`, "GC_LOCKED");
|
|
24521
|
+
}
|
|
24522
|
+
function stateBucketArmsNoun(responses, signals) {
|
|
24523
|
+
if (signals === 0) return "abandoned custom-resource response placeholders";
|
|
24524
|
+
if (responses === 0) return "orphaned wait condition signal objects";
|
|
24525
|
+
return "abandoned custom-resource response placeholders and orphaned wait condition signal objects";
|
|
24526
|
+
}
|
|
24365
24527
|
|
|
24366
24528
|
// src/cli/commands/gc.ts
|
|
24367
24529
|
const DEFAULT_OLDER_THAN_MS = 2592e6;
|
|
@@ -26539,7 +26701,7 @@ function printSummary(rows) {
|
|
|
26539
26701
|
for (const r of rows) {
|
|
26540
26702
|
counts[r.outcome]++;
|
|
26541
26703
|
const tag = formatOutcome(r.outcome);
|
|
26542
|
-
const detail = r.outcome === "imported" ? ` (${r.physicalIdShown ?? r.physicalId})` : r.reason ? ` — ${r.reason}` : "";
|
|
26704
|
+
const detail = r.outcome === "imported" ? ` (${r.physicalIdShown ?? displayPhysicalId(r.resourceType, r.physicalId)})` : r.reason ? ` — ${r.reason}` : "";
|
|
26543
26705
|
logger.info(` ${tag} ${logicalIdShown(r.logicalId)} (${resourceTypeShown(r.resourceType)})${detail}`);
|
|
26544
26706
|
}
|
|
26545
26707
|
logger.info("");
|
|
@@ -31989,9 +32151,14 @@ async function loadStateForRoutedStacks(stacks, routes, routesWithAuth, options)
|
|
|
31989
32151
|
if (resource && envHasIntrinsicValue$1(getTemplateEnv$1(resource))) intrinsicEnvStacks.add(owner.stackName);
|
|
31990
32152
|
}
|
|
31991
32153
|
const jwtAuthorizerStacks = /* @__PURE__ */ new Set();
|
|
31992
|
-
|
|
31993
|
-
jwtAuthorizerStacks.add(
|
|
31994
|
-
reachableStackNames.add(
|
|
32154
|
+
const addAuthorizerStack = (stackName) => {
|
|
32155
|
+
jwtAuthorizerStacks.add(stackName);
|
|
32156
|
+
reachableStackNames.add(stackName);
|
|
32157
|
+
};
|
|
32158
|
+
for (const { authorizer } of routesWithAuth) {
|
|
32159
|
+
if ((authorizer?.kind === "jwt" || authorizer?.kind === "cognito") && authorizer.pending) addAuthorizerStack(authorizer.pending.stackName);
|
|
32160
|
+
if ((authorizer?.kind === "jwt" || authorizer?.kind === "cognito") && authorizer.scopes?.state === "unresolved") addAuthorizerStack(authorizer.scopes.stackName);
|
|
32161
|
+
if ((authorizer?.kind === "lambda-token" || authorizer?.kind === "cognito") && authorizer.identityValidation?.state === "unresolved") addAuthorizerStack(authorizer.identityValidation.stackName);
|
|
31995
32162
|
}
|
|
31996
32163
|
const stackHasIntrinsicEnv = (stackName) => intrinsicEnvStacks.has(stackName);
|
|
31997
32164
|
rejectExplicitCfnStackWithMultipleStacks(options, new Set([...reachableStackNames].map((name) => name.split("~")[0])).size);
|
|
@@ -32485,6 +32652,7 @@ async function localStartApiCommand(target, options) {
|
|
|
32485
32652
|
...pseudoParameters && { pseudoParameters }
|
|
32486
32653
|
};
|
|
32487
32654
|
}, jwtIntrinsicWarned);
|
|
32655
|
+
warnUnenforcedRouteAuthSettings(targetStacks, routesWithAuth, jwtIntrinsicWarned);
|
|
32488
32656
|
const profileCredentials = await profileCredentialsForWorkload(options.profile, resolveProfileCredentials);
|
|
32489
32657
|
if (options.profile && profileCredentials && !profileCredsFile) profileCredsFile = await writeProfileCredentialsFile(options.profile, profileCredentials, {
|
|
32490
32658
|
onDirCreated: (hostPath) => {
|
|
@@ -36559,4 +36727,4 @@ function collectVerbFlags(program) {
|
|
|
36559
36727
|
}
|
|
36560
36728
|
|
|
36561
36729
|
export { effectiveInventoryItem as $, tagListsMatch as A, LIFECYCLE_DEFAULT_STATUS as B, reconcileSgRules as C, singleSecurityGroupRuleId as D, sgRuleKey as E, clearLifecycleWritesOf as F, canonicalizeItemList as G, LIFECYCLE_RULE_PATH as H, lifecycleSettleTarget as I, lifecycleUsesFilterForm as J, effectiveLifecycleConfiguration as K, recordLifecycleWrite as L, sgRemovalRuleKey as M, sgRuleListMember as N, stackIngressRuleHolder as O, LIFECYCLE_BASELINE_REREAD_DELAYS_MS as P, effectiveIntelligentTieringItem as Q, settleLifecycleRead as R, narrowIngressIpProtocol as S, securityGroupRuleMatchesCfnIngress as T, LIFECYCLE_TAG_FILTERS_PATH as U, LIFECYCLE_FILTER_PATH as V, canonicalizeBlock as W, EVENTBRIDGE_CONFIG_PATH as X, parseCfnTimestamp as Y, effectiveAnalyticsItem as Z, flattenIpPermissions as _, resolveSecretDerivedPrincipals as a, declaresBucketObjectLock as at, isDefaultEgressRule as b, buildProgram, readSgIngressById as c, isPlainObject as ct, SG_RULE_PAGE_SIZE$1 as d, shownLifecycleRuleId as dt, effectiveNotificationConfiguration as et, authorizeDefinitelyNotApplied as f, descriptionKey as g, comparableIngressIdentity as h, isResolvableSecretPrincipalList as i, configItemId as it, markCopiesAgreed as j, survivingRecordOfRuleId as k, siblingIdOwnedSgRules as l, manualBucketDeletionClause as lt, canonicalizeSgRuleProtocol as m, runDestroyForStack as n, caughtErrorName as nt, refuseRevertRevokingSiblingRules as o, declaresNestedObjectLock as ot, canonicalizeSgInlineRuleProtocols as p, lifecycleRuleScope as q, holdsUnprovenSecretPrincipalToken as r, coerceCfnNumber as rt, sgRuleDiffKey as s, describeValue as st, canonicalizeIpv4Cidr as t, eventBridgeEnabledOf as tt, SG_READBACK_RETRY_DELAY_MS as u, mergeLegacySingular as ut, ingressRuleIdentity as v, securityGroupReadbackDelays as w, isResendableSocketFailure as x, isConnectTimeout as y, takeLifecycleWrite as z };
|
|
36562
|
-
//# sourceMappingURL=program-
|
|
36730
|
+
//# sourceMappingURL=program-Dz-HwMKe.js.map
|