@cdkd/cli 0.350.2 → 0.350.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ambient-client-defaults-nYbcw8Dc.js → ambient-client-defaults-CepgBr_y.js} +6 -4
- package/dist/{ambient-client-defaults-nYbcw8Dc.js.map → ambient-client-defaults-CepgBr_y.js.map} +1 -1
- package/dist/{asg-provider-C2lKCOu5.js → asg-provider-26AfIhcd.js} +6 -6
- package/dist/{asg-provider-C2lKCOu5.js.map → asg-provider-26AfIhcd.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{custom-resource-runtime-BcxDxd28.js → custom-resource-runtime-2Kfh-v8P.js} +6 -6
- package/dist/{custom-resource-runtime-BcxDxd28.js.map → custom-resource-runtime-2Kfh-v8P.js.map} +1 -1
- package/dist/{db-instance-modify-retry-EpoVdg4u.js → db-instance-modify-retry-BoKzNMfz.js} +4 -4
- package/dist/{db-instance-modify-retry-EpoVdg4u.js.map → db-instance-modify-retry-BoKzNMfz.js.map} +1 -1
- package/dist/{delete-started-Co5Gt1jH.js → delete-started-Bq_G9e4j.js} +26 -3
- package/dist/delete-started-Bq_G9e4j.js.map +1 -0
- package/dist/{deploy-engine-DWLm19jg.js → deploy-engine-DLmPF7r5.js} +994 -271
- package/dist/deploy-engine-DLmPF7r5.js.map +1 -0
- package/dist/{diff-calculator-DNuEc3vO.js → diff-calculator-DYUmMeew.js} +24 -15
- package/dist/{diff-calculator-DNuEc3vO.js.map → diff-calculator-DYUmMeew.js.map} +1 -1
- package/dist/{ec2-termination-protection-BrCiVso0.js → ec2-termination-protection-Di3eM8PN.js} +6 -6
- package/dist/{ec2-termination-protection-BrCiVso0.js.map → ec2-termination-protection-Di3eM8PN.js.map} +1 -1
- package/dist/{ecr-uri-JpCbWN50.js → ecr-uri-6HdJfJPR.js} +2 -2
- package/dist/{ecr-uri-JpCbWN50.js.map → ecr-uri-6HdJfJPR.js.map} +1 -1
- package/dist/{expected-bucket-owner-IaiC3JwO.js → expected-bucket-owner-Drp-CSQY.js} +2 -2
- package/dist/{expected-bucket-owner-IaiC3JwO.js.map → expected-bucket-owner-Drp-CSQY.js.map} +1 -1
- package/dist/{iam-role-provider-fNKzA1U5.js → iam-role-provider-B5c4V2kT.js} +7 -7
- package/dist/{iam-role-provider-fNKzA1U5.js.map → iam-role-provider-B5c4V2kT.js.map} +1 -1
- package/dist/{image-plan-C87HDsmb.js → image-plan-CYouJkYM.js} +19 -11
- package/dist/image-plan-CYouJkYM.js.map +1 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-CD1O0WGI.js → logger-6lyGJVGE.js} +3 -5
- package/dist/logger-6lyGJVGE.js.map +1 -0
- package/dist/{neptune-provider-BYb2XZFH.js → neptune-provider-Dhody0jz.js} +7 -7
- package/dist/{neptune-provider-BYb2XZFH.js.map → neptune-provider-Dhody0jz.js.map} +1 -1
- package/dist/{program-DJWAG98-.js → program-BMBei2v9.js} +340 -81
- package/dist/program-BMBei2v9.js.map +1 -0
- package/dist/{provider-classes-B8WD5ucF.js → provider-classes-B3qqzXp-.js} +179 -28
- package/dist/provider-classes-B3qqzXp-.js.map +1 -0
- package/dist/{rds-provider-B5Ox8FBm.js → rds-provider-CXjWWFKT.js} +13 -25
- package/dist/{rds-provider-B5Ox8FBm.js.map → rds-provider-CXjWWFKT.js.map} +1 -1
- package/dist/{read-replica-6SDKYiLa.js → read-replica-iA8yd-HO.js} +3 -3
- package/dist/{read-replica-6SDKYiLa.js.map → read-replica-iA8yd-HO.js.map} +1 -1
- package/dist/{replacement-rules-Dpkm5pWN.js → replacement-rules-B4fLD_Ru.js} +3 -3
- package/dist/{replacement-rules-Dpkm5pWN.js.map → replacement-rules-B4fLD_Ru.js.map} +1 -1
- package/dist/{resource-deadline-P1IssiEh.js → resource-deadline-BcEyGRdL.js} +19 -19
- package/dist/{resource-deadline-P1IssiEh.js.map → resource-deadline-BcEyGRdL.js.map} +1 -1
- package/dist/{run-cli-CXI5umz9.js → run-cli-Dp938GHN.js} +2 -2
- package/dist/{run-cli-CXI5umz9.js.map → run-cli-Dp938GHN.js.map} +1 -1
- package/dist/{update-removal-C8I2P2bf.js → update-removal-1ZPAMzvz.js} +5 -5
- package/dist/{update-removal-C8I2P2bf.js.map → update-removal-1ZPAMzvz.js.map} +1 -1
- package/dist/{version-Cu2oblwQ.js → version-D_7vFUjp.js} +2 -2
- package/dist/{version-Cu2oblwQ.js.map → version-D_7vFUjp.js.map} +1 -1
- package/package.json +2 -2
- package/dist/delete-started-Co5Gt1jH.js.map +0 -1
- package/dist/deploy-engine-DWLm19jg.js.map +0 -1
- package/dist/image-plan-C87HDsmb.js.map +0 -1
- package/dist/logger-CD1O0WGI.js.map +0 -1
- package/dist/program-DJWAG98-.js.map +0 -1
- package/dist/provider-classes-B8WD5ucF.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 renderUnmatchedPatternsWarning, $t as
|
|
3
|
-
import { $t as
|
|
1
|
+
import { A as displayStackName, C as STACK_REF_MAX_CODE_POINTS, D as displayAwsMessage, E as cutMarker, F as stringifyJsonPayload, I as terminalSafe, L as truncateCodePoints, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, T as asIsMessage, _ as shellQuote, b as setPasteableVerbFlags, c as deployReplaceCommand, d as pasteableCommand, g as shellBoundedDisplay, h as quotedOrDescribed, i as SHELL_ACTIVE_WHY, j as isPasteableIdent, k as displaySafe, m as proseQuoted, o as cdkdRemedy, p as plainOrDescribed, s as commandHole, t as getCdkdVersion, u as isInertUnquoted, v as withheldTargetClause, w as UNRENDERABLE, x as SAFE_MSG_ALTERED_CHAR, y as setPasteableRunFlags } from "./version-D_7vFUjp.js";
|
|
2
|
+
import { $ as renderUnmatchedPatternsWarning, $t as deprecatedRegionOption, A as followContainerLogs, At as recordEmulatorDefaultRegion, B as resolveRuntimeCodeMountPath, Bt as regionShown, C as waitForRieReady, Cn as STATE_KEY_MAX_CODE_POINTS, Ct as setContainerRegion, Dn as parseStateKey, Dt as workloadGetsEmulatorKeysOnly, E as SENSITIVE_ENV_KEYS, En as listAllStateKeys, Et as warnAwsEmulatorStateSourceHint, F as removeContainer, Ft as namedCliRegion, G as partitionTopLevel, Gt as strandedProfileCredentialsNotice, H as resolveRuntimeImage, Ht as stackRegionResolver, It as rawCliRegion, J as renderAllNoTopLevelStacks, Jt as appOptions, K as refuseStackNameRegionCollisions, Kt as writeProfileCredentialsFile, L as runDetached, Lt as reconcileExportIndexRegion, M as killAndDrainContainerLogs, Mt as exportInferredRegionForSdk, N as pickFreePort, Nt as foldRegionOption, O as ensureDockerAvailable, Ot as emulatorDefaultRegion, P as pullImage, Pt as legacyStateBucketFallbackRegion, Q as renderStacksNoLongerSelected, Qt as deployOptions, Rt as reconcileMarkerRegionWithLegacyDefault, S as invokeRie, Sn as STATE_FILE_SUFFIX, St as resolveContainerRegion, T as DockerRunnerError, Tn as listAllLockKeys, Tt as taskRoleAssumedInRealAws, U as describeStack, Ut as stateWithRegion, V as resolveRuntimeFileExtension, Vt as resolveEffectiveRegion, W as matchStacks, Wt as withOtherIndexRemoval, X as renderNoStackMatch, Xt as commonOptions, Y as renderAmbiguousTargetStack, Yt as applyWaitFlagEnv, Z as renderNotInAppWarning, Zt as contextOptions, _ as copyLayerTreeLastWins, _n as resourceTimeoutOptions, _t as mixedModeActive, a as materializeLayerFromArn, an as parseContextOptions, at as buildCdkPathIndex, b as probeHostGatewaySupport, bn as parsePositiveIntegerOption, bt as profileCredentialsForWorkload, cn as stackOptions, ct as stackForConstructPath, d as resolveAssetCodeDirectory, dn as warnIfDeprecatedRegion, dt as assertAwsEmulatorValue, en as destroyOptions, et as selectTargetStack, f as derivePseudoParametersFromRegion$1, fn as effectiveAssumeRoleArn, ft as attachLocalLoopbackForwarder, g as buildContainerImage$1, gn as parseDuration, gt as localAwsEmulatorCredentials, h as architectureToPlatform, hn as allowUnsupportedTypesOption, ht as localAwsEmulatorActive, i as resolveInlineCodeFilePath, in as noLocalCustomResourcesOption, it as unmatchedPatterns, jt as adoptDeprecatedRegionFlag, k as flushStdio, kt as namedEnvAwsRegion, l as resolveLambdaLayers, ln as stateOptions, lt as stackForPathFormTarget, m as tryResolveImageFnJoin, mn as parseAssumeRoleToken, mt as keepEmulatorIssuedCredentials, n as resolveTmpfsForLambda, nn as guardStackRegionOptions, nt as stacksForDependency, o as resolveLambdaTarget, on as parseStackRegion, ot as readCdkPathOrUndefined, p as substituteImagePlaceholders, pn as normalizeStartApiAssumeRole, pt as getActiveWorkloadAwsWiring$1, q as renderAllLeftOutStageStacks, qt as annotationMessageOptions, r as resolveZipImagePlan, rn as noCfnFallbackOption, rt as stacksNoLongerSelected, s as extractEphemeralStorageMb, sn as skipFinalSnapshotOption, st as resolveCdkPathToLogicalIds, t as resolveLocalBuildPlan$1, tn as exclusivelyOption, tt as stackMatchesPattern, u as assetPathDirs, un as useCdkBootstrapAssetsOption, ut as activateLocalAwsAndRoleArn, v as layerAssetDirectory, vn as validateResourceTimeouts, vt as mixedModeEmulatorOverride, w as CONTAINER_LOG_DRAIN_TIMEOUT_MS, wn as describeStateKey, wt as stateRoleRecordIsEmulatorSide, x as resolveHostGatewayExtraHosts, xn as LOCK_FILE_SUFFIX, xt as realAwsException, y as HOST_GATEWAY_MIN_VERSION, yn as cliArgParser, yt as prepareLocalLoopbackForwarder, z as streamLogs, zt as regionNeedsReconciliation } from "./image-plan-CYouJkYM.js";
|
|
3
|
+
import { $t as buildForceUnlockCommand, Ct as isInterruptedWaitError, G as isMarkedNotGone, N as VALUE_NOT_SHOWN, Qt as UNREPRODUCIBLE_LOCK_CLAUSE, St as interruptWatchListenerCount, U as RESOURCE_NOT_FOUND, V as remedyLogicalId, W as assertRegionMatch, bt as beginCommandInterruptScope, cn as DEFAULT_STATE_PREFIX, dn as producerCoordinateKey, en as buildLockContentionMessage, fn as producerRecordKey, gt as isAwsCliLiteral, hn as withPasteableAwsProfile, in as formatLockOwner, jt as resourceTypeShown, kt as logicalIdShown, ln as injectiveKey, lt as runDeleteAttempt, m as RESOLVED_PREVIOUS_PRINCIPAL_KEYS, mn as setPasteableAwsProfile, nn as formatLockExpiry, p as IAM_PRINCIPAL_NAME, pn as setPasteableAwsCaBundle, rn as formatLockOperation, sn as CUSTOM_RESOURCE_RESPONSE_PREFIX, tn as forceQuitRecoveryClause, xt as endCommandInterruptScope, y as readRecordedPrincipals } from "./update-removal-1ZPAMzvz.js";
|
|
4
4
|
import { a as runWithStackAwsClients, i as resetAwsClients, l as s3ClientDefaults, o as setAwsClients, s as resolveS3ClientDefaults, t as AwsClients, u as setS3ClientDefaultsDebugLog } from "./aws-clients-DOkPjjAW.js";
|
|
5
|
-
import { $ as withStackScope, B as generateResourceName, E as coerceCfnBoolean, I as PATTERN_B_NAME_OPTIONS, L as PATTERN_B_NAME_PROPERTIES, Q as withSkipPrefix, R as PATTERN_B_RESOURCE_TYPES, S as explicitNamePropertyFor, X as isNameGeneration, a as reserveStdoutForPayload, i as releaseStdoutForPayload, m as verboseAwareText, n as getLogger, p as safeStringify, r as isStdoutReservedForPayload, s as runStackBuffered, u as describeAwsFailure, y as getLiveRenderer, z as derivesPatternBName } from "./logger-
|
|
6
|
-
import { A as stripControlChars, B as retryClassificationText, F as isAmbiguousOutcomeError, H as isMarkedNonRetryable, J as DynamicReferenceRegionAmbiguousError, Q as AccountIdUnavailableError, R as isRetryableTransientError, U as isThrottlingError, W as markNonRetryable, X as MalformedProducerRecordRefusalError, Y as IntrinsicResolutionRefusalError, _ as ResourceUpdateNotSupportedError, a as normalizeAwsError, at as ProvisioningError, ct as SynthesisError, et as CdkdError, g as PartialFailureError, h as NestedStackChildDirectDestroyError, i as credentialFingerprint, j as stripForDisplay, k as escapeRegExp, l as withErrorHandling, n as ambientCredentialConfig, o as formatError, ot as ResourceTimeoutError, q as CrossAccountSecretRefusalError, r as clientDefaultsFor, rt as LocalInvokeBuildError$1, s as handleError, st as StateError, t as ambientClientDefaults, tt as DeployCancelledError, u as LocalStartServiceError, v as StackHasActiveImportsError, y as StackTerminationProtectionError, z as isTransientServerError } from "./ambient-client-defaults-
|
|
5
|
+
import { $ as withStackScope, B as generateResourceName, E as coerceCfnBoolean, I as PATTERN_B_NAME_OPTIONS, L as PATTERN_B_NAME_PROPERTIES, Q as withSkipPrefix, R as PATTERN_B_RESOURCE_TYPES, S as explicitNamePropertyFor, X as isNameGeneration, a as reserveStdoutForPayload, i as releaseStdoutForPayload, m as verboseAwareText, n as getLogger, p as safeStringify, r as isStdoutReservedForPayload, s as runStackBuffered, u as describeAwsFailure, y as getLiveRenderer, z as derivesPatternBName } from "./logger-6lyGJVGE.js";
|
|
6
|
+
import { A as stripControlChars, B as retryClassificationText, F as isAmbiguousOutcomeError, H as isMarkedNonRetryable, J as DynamicReferenceRegionAmbiguousError, Q as AccountIdUnavailableError, R as isRetryableTransientError, U as isThrottlingError, W as markNonRetryable, X as MalformedProducerRecordRefusalError, Y as IntrinsicResolutionRefusalError, _ as ResourceUpdateNotSupportedError, a as normalizeAwsError, at as ProvisioningError, ct as SynthesisError, et as CdkdError, g as PartialFailureError, h as NestedStackChildDirectDestroyError, i as credentialFingerprint, j as stripForDisplay, k as escapeRegExp, l as withErrorHandling, n as ambientCredentialConfig, o as formatError, ot as ResourceTimeoutError, q as CrossAccountSecretRefusalError, r as clientDefaultsFor, rt as LocalInvokeBuildError$1, s as handleError, st as StateError, t as ambientClientDefaults, tt as DeployCancelledError, u as LocalStartServiceError, v as StackHasActiveImportsError, y as StackTerminationProtectionError, z as isTransientServerError } from "./ambient-client-defaults-CepgBr_y.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 { A as loadCdkJson, B as warnDeprecatedNoPrefixCliFlag, C as runDockerForeground, D as synthesisStatusMessage, E as Synthesizer, F as resolveStateBucketWithDefault, G as uploadCfnTemplate, H as CFN_TEMPLATE_URL_LIMIT, I as resolveStateBucketWithDefaultAndSource, J as StageLoadError, K as refuseFailedLookups, L as resolveStateBucketWithSource, M as resolveAutoAssetStorage, N as resolveCaptureObservedState, O as getDefaultStateBucketName, P as resolveSkipPrefix, R as resolveUseCdkBootstrapAssets, S as getDockerCmd, T as abortInFlightMultipartUploads, U as MIGRATE_TMP_PREFIX, V as CFN_TEMPLATE_BODY_LIMIT, W as findLargeInlineResources, X as setChildProcessAwsEnv, Y as processStackMessages, _ as partitionSensitiveEnv, a as AssetPublisher, b as isMalformedEnvKey, c as resolveDockerContextDirectory, d as describeDockerFailure, f as redactedCause, g as finchSecretArgvRefusal, h as dockerSpawnEnvWithSensitive, i as isLockInfoExpired, j as resolveApp, k as getLegacyStateBucketName, m as redactDockerArgvValues, n as DagBuilder, o as WorkGraph, p as redactedDockerCause, q as AssemblyReader, r as LockManager, s as buildDockerImage, t as DiffCalculator, u as describeDockerExecFailure, v as warnFinchArgvExposure, w as runDockerStreaming, x as formatDockerLoginError, y as isDockerClientEnvKey, z as stateBucketExistenceConfirmed } from "./diff-calculator-
|
|
9
|
-
import { $a as sendableAssumeRoleCommand, $i as isFinalSnapshotError, $n as equalModuloMarkedMask, $r as noEchoParameterValueSeed, $s as malformedExportSourceWarning, $t as dropSettledNestedJournals, A as PROTECTION_PROPERTY_BY_TYPE, Aa as setResolvedResourceTimeouts, Ai as withAttemptedItemsMasked, Al as decodeListingKey, An as findRefactorHints, Ar as nameGenerationCarriedFrom, As as refuseMalformedResourceEntriesForDeploy, At as keptForRetainedRecord, Ba as isAlwaysLiveAttribute, Bc as rebuildClientForBucketRegion, Bi as secretNamedRecordNeedles, Bl as describeFileReadFailure, Bn as looselyEqual, Br as namesAnyDeclaredParameter, Bs as refuseMalformedResourcePropertiesForDestroy, Bt as readsOnlyNoEchoParameters, C as refusePendingMovesOut, Cc as hasReadableOutputs, Ci as green, Cn as noEchoMacBinding, Cs as isReadableResourceEntry, D as diffSecurity, Da as CloudControlProvider, Di as noEchoComparisonForTemplate, Dl as ssmResolvedValueType, Dn as constructPathOf$1, Dr as segmentCleanupOptions, Ds as malformedScrubResourceEntriesRefusalMessage, E as serviceTokenBlockingReason, Ec as findHandledUnwrittenCreateOnly, Ei as noEchoAttributeNamesOf, En as noEchoValueMacsOf, Eo as recordedOutputReferenceRegions, Es as malformedResourceEntriesWarning, Fa as deleteSkipReason, Fc as S3StateBackend, Fi as namingSecretsWithRecordedNoEcho, Fl as hasPlainPrototype, Fn as changedReferenceInDiff, Fo as carriesDynamicReference, Fr as retiredNameGenerationsLeaving, Fs as repairMalformedResourceEntriesForReadOnly, Ft as refactorMarkerRefusalMessage, Ga as producerLookupOver, Gc as isAccessDenied, Gn as referencedLogicalIds, Gr as exportAliasCollisionScrubWarning, Gs as UNREADABLE_ORPHANS_CONTAINER_ROW, Ha as stackIdTailOf, Hc as CrossPrefixScanCache, Hi as storedSecretNameNeedles, Hn as parseMappingFile, Hr as resourcesNamingDeclaredParameter, Hs as refuseMalformedResourcePropertiesForExport, Ic as splitImportedOps, Ii as orphanRecordsPrintingBag, Il as nullPrototypeRecord, In as changedReferencePath, Io as keepsSecretReferenceToken, Ir as withNameGenerationReached, Is as unreadableResourceEntries, It as refuseRefactorMarker, Ja as assertFlagRoleArn, Jc as withStackInstanceIdWithheld, Ji as ATOMIC_FINAL_SNAPSHOT_TYPES, Jn as DELETED_RESOURCE_REMEDY, Jo as isStatefulRecreateTargetForReplace, Jr as secretSafeKeyDisplay, Js as malformedOrphansWarning, Jt as pendingRequestCount, Ka as refuseUnreadableCdkCrossAccountRefs, Kc as isNotImplemented, Ki as secretSegmentsOfState, Kl as resolveBucketRegion, Kn as replayFailedOperations, Ko as shownType, Kr as secretBearing, Ks as hasReadableOrphans, La as isWaitAbandonedError, Li as secretNamePrintingBag, Ll as ownValue, Ln as changedReferenceReason, Lo as withSharedDrainBudget, Ls as malformedDriftResourcePropertiesWarning, Lt as sameMove, M as perType, Ma as UNSPECIFIED_SKIP_REASON, Mc as NO_CC_HANDLERS_REASON, Mi as completedReplayEntries, Mn as movedToHint, Mo as isImpossibleEmptyStoredAttribute, Mr as nameScopeOf, Ms as refuseMalformedResourceEntriesForImport, Mt as readRefactorMarker, N as readProtection, Na as deleteIndeterminateGuards, Nc as hasNoCloudControlHandlers, Ni as journaledOrphanPrintingBag, Nl as defineOwnKey, Nn as rollbackOrphanIds, No as carriesFetchableDynamicReference, Nr as retiredAfterRollback, Ns as refuseMalformedResourceEntriesForImportSave, Nt as readRefactorMarkerOnce, O as recordedProtectionEvidence, Oc as unwrittenCreateOnlyReplacement, Oi as noEchoExactEchoLeavesOf, Ol as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, On as findDestructiveChanges, Oo as recordedReferenceRegions, Or as removeProtectionTypeList, Os as refuseMalformedResourceAttributesForOrphan, Pa as deleteLeftInPlace, Pc as TemplateParser, Pi as maskEventTextWithBoundBags, Pl as hasOwnKey, Pn as withMovedTo, Po as isNamelessDynamicReferenceError, Pr as retiredNameGenerationsAfter, Ps as refuseMalformedResourceEntriesForOrphan, Pt as refactorMarkerMovesOf, Qa as parseIamRoleArn, Qc as createAssetRedirectResolver, Qi as effectiveDeletionPolicy, Qn as calculateResourceDrift, Qr as isWholeDynamicReferenceValue, Qs as malformedExportNamesWarning, Qt as displacedPhysicalIdShown, Ra as IntrinsicFunctionResolver, Rc as hasReasonlessBaselineRefusal, Ri as secretNamePrintingBags, Rn as differingRemedy, Rr as inheritProducerRegions, Rs as malformedResourcePropertiesWarning, Rt as updateRefactorMarker, S as pendingMovesRefusalMessage, Sa as localCustomResourceCommand, Sc as displayLogicalId, Si as gray, Sn as createNoEchoValueMacs, Sr as findNestedStackTypeChanges, Ss as unreadableOrphanRecords, T as findServiceTokenRefusals, Ta as withCustomResourceStack, Tc as findActionableSdkUnwired, Ti as yellow, Tn as noEchoMacVerdict, Ts as malformedLocalResourcesWarning, Uc as applyCrossPrefixScan, Ui as extractDeploymentEventError, Ul as renderAssemblyPathEscape, Un as propertiesChangedReason, Ur as WITHHELD_NAME_DISPLAY, Us as refuseMalformedResourcePropertiesForOrphan, Ut as formatResourceLine, Va as poisonRenderedSpellingsCollidingIn, Vc as CrossPrefixReadError, Vi as stateSecretNameNeedles, Vl as displayAssemblyPath, Vn as mappingPairs, Vr as reachableDivergentParameters, Vs as refuseMalformedResourcePropertiesForDrift, Wa as resolveDynamicReferences, Wc as crossPrefixDeniedWarning, Wl as resolveAssemblyPath, Wn as proposeRenames, Wo as findReplacedReadersOfRecreateTargets, Wr as displayTextOrWithheld, Ws as repairMalformedResourcePropertiesForReadOnly, Xa as explicitRoleArnOrThrow, Xi as ccRoutedFinalSnapshotError, Xn as settleUnsettledPrevious, Xo as renderStatefulReason, Xr as exportNameNoEchoParameters, Xs as refuseMalformedOrphansForDestroy, Xt as NESTED_PENDING_PARENT_REASON, Ya as assertSendableRoleArn, Yc as isSensitiveAttributeName, Yi as PRE_DELETE_SNAPSHOT_TYPES, Yn as recordAfterRollbackUpdate, Yo as isStatefulRecreateTargetSync, Yr as carriedExportAliasExposure, Ys as refuseMalformedOrphans, Yt as resolvePendingCloudControlRequests, Za as isIamRoleArn, Zc as buildAssetRedirectMap, Zi as ccRoutedInstanceTakesNoSnapshot, Zn as withUnprovenUnsettled, Zr as exportNameSecretExposure, Zs as repairMalformedOrphansForReadOnly, Zt as displacedOpClause, _ as listNestedTemplateRows, _a as withPrintingSecrets, _c as JSON_LISTING_HOLE_VALUE, _i as supersededHolderOf, _l as AssetManifestLoader, _n as makeSiblingClaimReader, _o as cfnRefValueFromPhysicalId, _r as replacementNeverSwapped, _s as refuseMalformedOrphanRecords, a as scanActiveConsumers, aa as ProviderRegistry, ac as refuseMalformedOutputsForDestroy, ai as DEFAULT_RESOURCE_WARN_AFTER_MS, al as rewriteTemplateAssetReferences, an as withNestedRevertRun, ao as classifyReplaySecretRegion, ar as ledgerForStack, b as hasPendingMovesOut, ba as customResourcesFailedWithoutApp, bc as STATE_RESOURCES_MALFORMED, bi as bold, bn as DeploymentEventsStore, bo as refStateLookupFromResource, br as resolveReplacementOldType, bs as repairMalformedOrphanRecordsForReadOnly, c as inheritedProvenanceForChildDiff, ca as wouldReturnToSdkProvider, cc as refuseDivergentRecordRegionForDestroy, ci as destroyStackRecordsView, cl as buildDenyExternalAccessPolicy, cn as withNestedStackContext, d as conditionInputsFrom, da as customResourceResponseExpirationWarning, dc as malformedStateRefusalMessage, dl as getBootstrapMarkerKey, dn as dropFailedHint, dr as demoteSupersededOrphans, ds as deployRefusesOrphanRowsReason, ea as refusesFinalSnapshot, ec as malformedLocalOutputsWarning, ei as collectDeclaredOutputNames, eo as AWS_CREDENTIAL_ENV_KEYS, er as equalModuloMask, f as parentSuppliedValues, fc as refuseMalformedResourcesForDeploy, fi as deleteSupersededEntry, fl as parseBootstrapMarker, fn as isHandledOrphan, fr as isJournaledOrphan, fs as isReadableOrphanRecord, g as isAbsoluteAssetPath, gc as repairMalformedResourcesForReadOnly, gi as supersededHeldByOtherTypeWarning, gl as BOOTSTRAP_MARKER_PREFIX, gn as makeForeignHolderScan, go as AWS_NO_VALUE, gr as recordUnderIdIsNotOwn, gs as previewableOrphanRecords, h as findNestedTemplateTreeDefect, ha as isCustomResourceType$1, hc as refuseMalformedState, hi as supersededAfterRollback, hl as validateContainerRepoName, hn as sameJournaledOrphans, ho as parameterTypeMayLoseSecretIdentity, hr as recheckFailedPlan, hs as malformedOrphanRowsKeptWarning, i as mergeNoChangeOutputs, ia as CC_BROKEN_REASON, ic as refuseMalformedOutputs, ii as DEFAULT_RESOURCE_TIMEOUT_MS, in as revertedNestedRowIds, io as classifyRecordedSecretRegion, is as maskedPropertyFingerprintsOf, j as isProtectionValueActive, ja as RollbackInlinePolicyWriters, ji as createReadOnlyAttributeHealerFactory, jn as hintSidesOf, jo as getAccountInfo, jr as nameGenerationHighWaterOf, js as refuseMalformedResourceEntriesForDestroy, jt as recordRetainedForReadoption, k as recordedProtectionNote, ki as noEchoParameterNamesOf, kn as formatDestructiveChange, kr as orphanNeedsIdentity, ks as refuseMalformedResourceEntries, l as makeCanonicalizePropertiesFn, la as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, lc as malformedRenderedContainersWarning, ll as assertAssetBucketRegion, ln as deleteJournaledOrphans, lr as planRollback, ls as declaresNoEcho, m as childTemplateLoader, ma as readsNoEchoDeleteValues, mc as refuseMalformedResourcesForExport, mi as isSupersededResourceRecord, ml as validateAssetBucketName, mn as loadJournaledOrphans, mo as isUnboundTemplateParameter, mr as planFailedOps, ms as malformedOrphanRecordsWarning, n as isSecretBearingReferenceString, na as createPreDeleteFinalSnapshot, nc as malformedOutputsWarning, ni as isExportAliasCollision, nl as loadPublishableAssetManifest, nn as recordDisplacedSkips, no as callerEnvCredentials, nr as updatePartialMessage, o as inRunStackKey, oa as ccBrokenReason, oc as repairMalformedOutputsForReadOnly, oi as maskingRetryLogger, ol as AssetModeResolver, on as collectNestedChildUnaddressed, oo as producerRegionsFromState, os as parameterInputsFor, p as readRecordedConditionVerdicts, pa as TemplateNoEchoReresolver, pc as refuseMalformedResourcesForDestroy, pi as holdsSupersededResources, pl as readBootstrapMarkerBody, pn as journaledOrphanLines, po as coerceParameterTypedValue, pr as isReplacementOrphan, ps as malformedOrphanRecordsRefusalMessage, qa as applyRoleArnIfSet, qc as stackInstanceIdOf, qi as withSecretPhysicalIdsMaskedInState, qn as replayRollback, qo as MULTI_REGION_RECREATE_BLOCKED_TYPES, qr as secretBearingStateKeyWarning, qs as malformedOrphansRefusalMessage, r as keptWholeReasonText, ra as buildFinalSnapshotIdentifier, ri as bindingSkippedOutputs, ro as envCredentialsAreAssumedRole, rr as updatePartialReason, s as crossStackOutputProvenanceSource, sa as isCustomResource, sc as STATE_REGION_DIVERGED, sl as ensureAssetStorage, sn as getCurrentNestedStackContext, so as regionLessSecretName, sr as withCreateTokenLedger, ss as maskedInputProof, t as DeployEngine, ta as unsupportedFinalSnapshotError, tc as malformedOutputsRefusalMessage, ti as collectPublishedOutputNames, tn as nestedChildStackName$1, to as applyCallerIdentityCredentials, tr as undeclaredEmptyObservedKeys, u as conditionFingerprint, ua as applyCustomResourceResponseExpiration, uc as malformedResourcesWarning, ui as withStackRecords, ul as isCrossRegionRedirect, un as dropFailedCommands, ur as seedsDeleteFirstGuard, us as maskedPropertyFingerprint, v as renderNestedTemplateTreeDefect, va as NO_LOCAL_CUSTOM_RESOURCES_FLAG, vc as accountArgs, vi as supersededResourcesOf, vl as getDockerImageBySourceHash, vn as planOrphanAdoption, vo as isStalePlaceholderArnAttribute, vr as IMPLICIT_DELETE_DEPENDENCIES, vs as refuseMalformedOrphanRecordsForDestroy, w as deferredServiceTokenWarning, wa as setLocalCustomResourceRuntimeEnabled, wc as hasReadableResources, wi as red, wn as noEchoMacParametersOf, wo as keepHeldTokenProvenance, ws as malformedLocalResourceEntriesWarning, x as pendingMovesOutOf, xa as customResourcesRunWithoutApp, xc as UNREADABLE_RESOURCES_MAP_ROW, xi as cyan, xn as NOECHO_MAC_KEY_ALIAS, xr as withPreviousPolicies, xs as unpreviewableOrphanRecords, y as templateIdentity, yc as withheldAccountClause, yi as withoutSuperseded, yn as DeploymentEventsReader, yo as lacksRecordedTableArn, yr as computeImplicitDeleteEdges, ys as refuseMalformedOrphansForOrphan, za as isSelectOutOfBounds, zc as hasUnverifiableParameterRefusal, zn as isPairableType, zo as INTRINSIC_KEYS, zr as computeParameterTaint, zt as macWriteOnlyKeys } from "./deploy-engine-DWLm19jg.js";
|
|
8
|
+
import { A as loadCdkJson, B as warnDeprecatedNoPrefixCliFlag, C as runDockerForeground, D as synthesisStatusMessage, E as Synthesizer, F as resolveStateBucketWithDefault, G as uploadCfnTemplate, H as CFN_TEMPLATE_URL_LIMIT, I as resolveStateBucketWithDefaultAndSource, J as StageLoadError, K as refuseFailedLookups, L as resolveStateBucketWithSource, M as resolveAutoAssetStorage, N as resolveCaptureObservedState, O as getDefaultStateBucketName, P as resolveSkipPrefix, R as resolveUseCdkBootstrapAssets, S as getDockerCmd, T as abortInFlightMultipartUploads, U as MIGRATE_TMP_PREFIX, V as CFN_TEMPLATE_BODY_LIMIT, W as findLargeInlineResources, X as setChildProcessAwsEnv, Y as processStackMessages, _ as partitionSensitiveEnv, a as AssetPublisher, b as isMalformedEnvKey, c as resolveDockerContextDirectory, d as describeDockerFailure, f as redactedCause, g as finchSecretArgvRefusal, h as dockerSpawnEnvWithSensitive, i as isLockInfoExpired, j as resolveApp, k as getLegacyStateBucketName, m as redactDockerArgvValues, n as DagBuilder, o as WorkGraph, p as redactedDockerCause, q as AssemblyReader, r as LockManager, s as buildDockerImage, t as DiffCalculator, u as describeDockerExecFailure, v as warnFinchArgvExposure, w as runDockerStreaming, x as formatDockerLoginError, y as isDockerClientEnvKey, z as stateBucketExistenceConfirmed } from "./diff-calculator-DYUmMeew.js";
|
|
9
|
+
import { $a as refuseUnreadableCdkCrossAccountRefs, $c as isAccessDenied, $i as ccRoutedFinalSnapshotError, $l as resolveAssemblyPath, $n as replayFailedOperations, $r as secretBearing, $s as UNREADABLE_ORPHANS_CONTAINER_ROW, A as refusePendingMovesOut, Aa as CloudControlProvider, Ac as displayLogicalId, Ai as green, An as noEchoMacBinding, As as unreadableOrphanRecords, B as readProtection, Ba as isWaitAbandonedError, Bc as NO_CC_HANDLERS_REASON, Bi as journaledOrphanPrintingBag, Bn as rollbackOrphanIds, Bo as isImpossibleEmptyStoredAttribute, Br as retiredAfterRollback, Bs as refuseMalformedResourceEntriesForImport, Bt as readRefactorMarkerOnce, C as isAbsoluteAssetPath, Ca as customResourcesFailedWithoutApp, Cc as refuseMalformedState, Ci as supersededHeldByOtherTypeWarning, Cl as validateAssetBucketName, Cn as makeForeignHolderScan, Co as AWS_NO_VALUE, Cr as recordUnderIdIsNotOwn, Cs as malformedOrphanRowsKeptWarning, D as hasPendingMovesOut, Da as setLocalCustomResourceRuntimeEnabled, Dc as withheldAccountClause, Di as bold, Dl as getDockerImageBySourceHash, Dn as DeploymentEventsStore, Do as lacksRecordedRefArn, Dr as resolveReplacementOldType, Ds as refuseMalformedOrphansForOrphan, E as templateIdentity, Ec as accountArgs, Ei as withoutSuperseded, El as AssetManifestLoader, En as DeploymentEventsReader, Eo as refStateLookupFromResource, Er as computeImplicitDeleteEdges, Es as refuseMalformedOrphanRecordsForDestroy, F as recordedProtectionEvidence, Fa as UNSPECIFIED_SKIP_REASON, Fi as noEchoExactEchoLeavesOf, Fn as findDestructiveChanges, Fr as removeProtectionTypeList, Fs as malformedScrubResourceEntriesRefusalMessage, Ga as stackIdTailOf, Gi as secretNamePrintingBags, Gl as nullPrototypeRecord, Gn as differingRemedy, Go as withSharedDrainBudget, Gr as inheritProducerRegions, Gs as malformedDriftResourcePropertiesWarning, Gt as updateRefactorMarker, Ha as isSelectOutOfBounds, Hc as TemplateParser, Hi as namingSecretsWithRecordedNoEcho, Hl as defineOwnKey, Hn as changedReferenceInDiff, Ho as isNamelessDynamicReferenceError, Hr as retiredNameGenerationsLeaving, Hs as refuseMalformedResourceEntriesForOrphan, Ht as refactorMarkerRefusalMessage, I as recordedProtectionNote, Ia as deleteIndeterminateGuards, Ic as unwrittenCreateOnlyReplacement, Ii as noEchoParameterNamesOf, Il as ssmResolvedValueType, In as formatDestructiveChange, Io as recordedReferenceRegions, Ir as orphanNeedsIdentity, Is as refuseMalformedResourceAttributesForOrphan, Jc as rebuildClientForBucketRegion, Ji as stateSecretNameNeedles, Jn as mappingPairs, Jr as reachableDivergentParameters, Js as refuseMalformedResourcePropertiesForDestroy, Kc as hasReasonlessBaselineRefusal, Kl as ownValue, Kn as isPairableType, Kr as computeParameterTaint, Ks as malformedResourcePropertiesWarning, Kt as macWriteOnlyKeys, L as PROTECTION_PROPERTY_BY_TYPE, La as deleteLeftInPlace, Li as withAttemptedItemsMasked, Ll as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, Ln as findRefactorHints, Lr as nameGenerationCarriedFrom, Ls as refuseMalformedResourceEntries, Lt as keptForRetainedRecord, M as findServiceTokenRefusals, Mc as hasReadableResources, Mi as yellow, Mn as noEchoMacVerdict, Mo as keepHeldTokenProvenance, Ms as malformedLocalResourceEntriesWarning, N as serviceTokenBlockingReason, Na as setResolvedResourceTimeouts, Nc as findActionableSdkUnwired, Ni as noEchoAttributeNamesOf, Nn as noEchoValueMacsOf, Ns as malformedLocalResourcesWarning, O as pendingMovesOutOf, Oa as withCustomResourceStack, Oc as STATE_RESOURCES_MALFORMED, Oi as cyan, On as NOECHO_MAC_KEY_ALIAS, Oo as lacksRecordedTableArn, Or as withPreviousPolicies, Os as repairMalformedOrphanRecordsForReadOnly, P as diffSecurity, Pa as RollbackInlinePolicyWriters, Pc as findHandledUnwrittenCreateOnly, Pi as noEchoComparisonForTemplate, Pn as constructPathOf$1, Po as recordedOutputReferenceRegions, Pr as segmentCleanupOptions, Ps as malformedResourceEntriesWarning, Qa as producerLookupOver, Qc as crossPrefixDeniedWarning, Qi as PRE_DELETE_SNAPSHOT_TYPES, Ql as renderAssemblyPathEscape, Qn as referencedLogicalIds, Qo as findReplacedReadersOfRecreateTargets, Qr as exportAliasCollisionScrubWarning, Qs as repairMalformedResourcePropertiesForReadOnly, R as isProtectionValueActive, Ra as deleteSkipReason, Ri as createReadOnlyAttributeHealerFactory, Rn as hintSidesOf, Rr as nameGenerationHighWaterOf, Rs as refuseMalformedResourceEntriesForDeploy, Rt as recordRetainedForReadoption, S as findNestedTemplateTreeDefect, Sc as refuseMalformedResourcesForExport, Si as supersededAfterRollback, Sl as readBootstrapMarkerBody, Sn as sameJournaledOrphans, So as parameterTypeMayLoseSecretIdentity, Sr as recheckFailedPlan, Ss as malformedOrphanRecordsWarning, T as renderNestedTemplateTreeDefect, Ta as localCustomResourceCommand, Tc as JSON_LISTING_HOLE_VALUE, Ti as supersededResourcesOf, Tl as BOOTSTRAP_MARKER_PREFIX, Tn as planOrphanAdoption, To as isStalePlaceholderArnAttribute, Tr as IMPLICIT_DELETE_DEPENDENCIES, Ts as refuseMalformedOrphanRecords, Ua as isAlwaysLiveAttribute, Uc as S3StateBackend, Ui as orphanRecordsPrintingBag, Ul as hasOwnKey, Un as changedReferencePath, Uo as carriesDynamicReference, Ur as withNameGenerationReached, Us as repairMalformedResourceEntriesForReadOnly, Ut as refuseRefactorMarker, Va as IntrinsicFunctionResolver, Vc as hasNoCloudControlHandlers, Vi as maskEventTextWithBoundBags, Vn as withMovedTo, Vo as carriesFetchableDynamicReference, Vr as retiredNameGenerationsAfter, Vs as refuseMalformedResourceEntriesForImportSave, Vt as refactorMarkerMovesOf, Wa as poisonRenderedSpellingsCollidingIn, Wc as splitImportedOps, Wi as secretNamePrintingBag, Wl as hasPlainPrototype, Wn as changedReferenceReason, Wo as keepsSecretReferenceToken, Ws as unreadableResourceEntries, Wt as sameMove, Xa as withSecretPhysicalIdsMaskedInState, Xc as CrossPrefixScanCache, Xi as extractDeploymentEventError, Xl as displayAssemblyPath, Xn as propertiesChangedReason, Xr as WITHHELD_NAME_DISPLAY, Xs as refuseMalformedResourcePropertiesForExport, Xt as formatResourceLine, Ya as secretSegmentsOfState, Yc as CrossPrefixReadError, Yi as storedSecretNameNeedles, Yl as describeFileReadFailure, Yn as parseMappingFile, Yr as resourcesNamingDeclaredParameter, Ys as refuseMalformedResourcePropertiesForDrift, Za as resolveDynamicReferences, Zc as applyCrossPrefixScan, Zi as ATOMIC_FINAL_SNAPSHOT_TYPES, Zn as proposeRenames, Zr as displayTextOrWithheld, Zs as refuseMalformedResourcePropertiesForOrphan, _ as conditionFingerprint, _a as readsNoEchoDeleteValues, _c as malformedRenderedContainersWarning, _i as withStackRecords, _l as buildDenyExternalAccessPolicy, _n as dropFailedCommands, _r as seedsDeleteFirstGuard, _s as declaresNoEcho, a as scanActiveConsumers, aa as createPreDeleteFinalSnapshot, ac as repairMalformedOrphansForReadOnly, ai as isWholeDynamicReferenceValue, an as displacedPhysicalIdShown, ao as parseIamRoleArn, ar as calculateResourceDrift, b as readRecordedConditionVerdicts, ba as withPrintingSecrets, bc as refuseMalformedResourcesForDeploy, bi as holdsSupersededResources, bl as getBootstrapMarkerKey, bn as journaledOrphanLines, bo as coerceParameterTypedValue, br as isReplacementOrphan, bs as isReadableOrphanRecord, c as nestedSsmNameDeferredNote, ca as ProviderRegistry, cc as malformedLocalOutputsWarning, ci as collectPublishedOutputNames, cn as nestedChildStackName$1, co as applyCallerIdentityCredentials, cr as undeclaredEmptyObservedKeys, d as slashedSsmNameHealAdoptedNote, da as wouldReturnToSdkProvider, di as DEFAULT_RESOURCE_TIMEOUT_MS, dl as loadPublishableAssetManifest, dn as revertedNestedRowIds, do as classifyRecordedSecretRegion, ea as ccRoutedInstanceTakesNoSnapshot, ec as hasReadableOrphans, ei as secretBearingStateKeyWarning, el as isNotImplemented, eo as applyRoleArnIfSet, er as replayRollback, es as shownType, f as slashedSsmNameHealNote, fa as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, fc as refuseMalformedOutputs, fi as DEFAULT_RESOURCE_WARN_AFTER_MS, fn as withNestedRevertRun, fo as classifyReplaySecretRegion, fr as ledgerForStack, fs as maskedPropertyFingerprintsOf, g as makeCanonicalizePropertiesFn, ga as TemplateNoEchoReresolver, gc as refuseDivergentRecordRegionForDestroy, gl as ensureAssetStorage, gn as deleteJournaledOrphans, gr as planRollback, h as inheritedProvenanceForChildDiff, hc as STATE_REGION_DIVERGED, hi as destroyStackRecordsView, hl as AssetModeResolver, hn as withNestedStackContext, hs as maskedInputProof, i as mergeNoChangeOutputs, ia as unsupportedFinalSnapshotError, ic as refuseMalformedOrphansForDestroy, ii as exportNameSecretExposure, il as isSensitiveAttributeName, in as displacedOpClause, io as isIamRoleArn, ir as withUnprovenUnsettled, is as renderStatefulReason, j as deferredServiceTokenWarning, jc as hasReadableOutputs, ji as red, jn as noEchoMacParametersOf, js as isReadableResourceEntry, k as pendingMovesRefusalMessage, kc as UNREADABLE_RESOURCES_MAP_ROW, ki as gray, kn as createNoEchoValueMacs, kr as findNestedStackTypeChanges, ks as unpreviewableOrphanRecords, l as nestedSsmNameRowNote, la as ccBrokenReason, lc as malformedOutputsRefusalMessage, li as isExportAliasCollision, ln as recordDisplacedSkips, lo as callerEnvCredentials, lr as updatePartialMessage, m as crossStackOutputProvenanceSource, ma as customResourceResponseExpirationWarning, mc as repairMalformedOutputsForReadOnly, ml as rewriteTemplateAssetReferences, mn as getCurrentNestedStackContext, mo as regionLessSecretName, mr as withCreateTokenLedger, ms as parameterInputsFor, n as isSecretBearingReferenceString, na as isFinalSnapshotError, nc as malformedOrphansWarning, ni as carriedExportAliasExposure, nl as withStackInstanceIdWithheld, nn as resolvePendingCloudControlRequests, no as assertSendableRoleArn, nr as recordAfterRollbackUpdate, ns as isStatefulRecreateTargetForReplace, o as inRunStackKey, oa as buildFinalSnapshotIdentifier, oc as malformedExportNamesWarning, oi as noEchoParameterValueSeed, ol as buildAssetRedirectMap, on as dropSettledNestedJournals, oo as sendableAssumeRoleCommand, or as equalModuloMarkedMask, p as slashedSsmNameHealPendingNote, pa as applyCustomResourceResponseExpiration, pc as refuseMalformedOutputsForDestroy, pi as maskingRetryLogger, pn as collectNestedChildUnaddressed, po as producerRegionsFromState, qc as hasUnverifiableParameterRefusal, qi as secretNamedRecordNeedles, qn as looselyEqual, qo as INTRINSIC_KEYS, qr as namesAnyDeclaredParameter, qt as readsOnlyNoEchoParameters, r as keptWholeReasonText, ra as refusesFinalSnapshot, rc as refuseMalformedOrphans, ri as exportNameNoEchoParameters, rl as isSecretValuedAttribute, rn as NESTED_PENDING_PARENT_REASON, ro as explicitRoleArnOrThrow, rr as settleUnsettledPrevious, rs as isStatefulRecreateTargetSync, s as checkNestedSsmNames, sa as CC_BROKEN_REASON, sc as malformedExportSourceWarning, si as collectDeclaredOutputNames, sl as createAssetRedirectResolver, so as AWS_CREDENTIAL_ENV_KEYS, sr as equalModuloMask, t as DeployEngine, ta as effectiveDeletionPolicy, tc as malformedOrphansRefusalMessage, ti as secretSafeKeyDisplay, tl as stackInstanceIdOf, tn as pendingRequestCount, to as assertFlagRoleArn, tr as DELETED_RESOURCE_REMEDY, ts as MULTI_REGION_RECREATE_BLOCKED_TYPES, tu as resolveBucketRegion, u as healSlashedSsmParameterNames, ua as isCustomResource, uc as malformedOutputsWarning, ui as bindingSkippedOutputs, uo as envCredentialsAreAssumedRole, ur as updatePartialReason, v as conditionInputsFrom, va as isCustomResourceType$1, vc as malformedResourcesWarning, vl as assertAssetBucketRegion, vn as dropFailedHint, vr as demoteSupersededOrphans, vs as maskedPropertyFingerprint, w as listNestedTemplateRows, wa as customResourcesRunWithoutApp, wc as repairMalformedResourcesForReadOnly, wi as supersededHolderOf, wl as validateContainerRepoName, wn as makeSiblingClaimReader, wo as cfnRefValueFromPhysicalId, wr as replacementNeverSwapped, ws as previewableOrphanRecords, x as childTemplateLoader, xa as NO_LOCAL_CUSTOM_RESOURCES_FLAG, xc as refuseMalformedResourcesForDestroy, xi as isSupersededResourceRecord, xl as parseBootstrapMarker, xn as loadJournaledOrphans, xo as isUnboundTemplateParameter, xr as planFailedOps, xs as malformedOrphanRecordsRefusalMessage, y as parentSuppliedValues, yc as malformedStateRefusalMessage, yi as deleteSupersededEntry, yl as isCrossRegionRedirect, yn as isHandledOrphan, yr as isJournaledOrphan, ys as deployRefusesOrphanRowsReason, z as perType, zi as completedReplayEntries, zl as decodeListingKey, zn as movedToHint, zo as getAccountInfo, zr as nameScopeOf, zs as refuseMalformedResourceEntriesForDestroy, zt as readRefactorMarker } from "./deploy-engine-DLmPF7r5.js";
|
|
10
10
|
import { n as canonicalizeRegion, r as derivePartitionAndUrlSuffix, t as PARTITION_TABLE } from "./aws-partition-DA0r2sr-.js";
|
|
11
|
-
import { A as describeJsonParseFailure, C as PhaseClock, D as renderPhaseTimings, M as parseFailureDebugDetail, O as timePhase, P as utf8ByteLength, d as getCreateOnlyPropertyPaths, g as describeTypeWithThrottleRetry, m as templateResourceTypes, p as prefetchCreateOnlyPropertyPaths, x as withRetry } from "./ec2-termination-protection-
|
|
12
|
-
import { t as expectedOwnerParam } from "./expected-bucket-owner-
|
|
13
|
-
import {
|
|
14
|
-
import { An as recordProvenPublicExpression, Cn as provenPublicValue, D as recordedNoEchoValuesOf, Dn as recordMaskOnlyValuesIn, En as recordMaskOnlyValue, Fn as isSingleDynamicReferenceToken, Ft as spelledKeysOf, It as pathCrossesDottedKey, Mt as DYNAMIC_REFERENCE_TOKEN_SCAN, Nn as WHOLE_DYNAMIC_REFERENCE_PATTERN, Nt as dynamicReferenceTokens, On as recordNoEchoAttributeValues, Ot as scrubResourceRecord, Pt as isUncertifiedBaselineMaskPosition, Rt as identityKeyFor, T as readsNoEchoSource, W as redactForState, _t as maskSecretsInText, an as physicalNameCopiesOf, at as literalSplitDelimitersOf, b as noEchoOutputsComparison, cn as recordNestedStackParameterExpressions, ct as recordLogOnlyParameterValue, dn as splitGetAttStringForm, dt as shareLogOnlyValues, et as carryLogOnlyValues, f as isMarkedCoordinate, fn as carriesSecretMask, ft as unionOfSecretBags, g as maskedLeafCoordinatesOf, gt as maskSecretsInError, h as maskWholeValue, it as hasMaskableValues, j as liveMatchesUnresolvedTokenFrame, jn as wholeStringLeavesOf, k as valueAtCoordinate, kn as recordNoEchoParameterFreshValue, kt as withPhysicalNameCopies, m as maskReadbackAtCoordinates, mt as errorCauseChain, nt as createUnionSecretMasker, ot as logOnlyValueCount, p as maskAtCoordinates, pt as createSecretMasker, qt as inheritNestedStackParameterAssociations, sn as recordPhysicalNameCopy, st as printingCorpusOf, u as canonicalCoordinates, ut as recordLogOnlyValue, v as noEchoCoordinatesOf, y as noEchoLeavesOf } from "./replacement-rules-
|
|
15
|
-
import { D as withoutUnsettledProperties, E as withUnsettledProperties, S as unsettledItemsOf, i as withResourceDeadline, w as unsettledPropertiesOf, x as unsettledItemsField } from "./resource-deadline-
|
|
16
|
-
import { a as parseEcrRegistryHost, i as looksLikeEcrHostWithForeignSuffix, n as hasEcrRegistryHostLabels, t as ecrRegistryHostPattern } from "./ecr-uri-
|
|
11
|
+
import { A as describeJsonParseFailure, C as PhaseClock, D as renderPhaseTimings, M as parseFailureDebugDetail, O as timePhase, P as utf8ByteLength, d as getCreateOnlyPropertyPaths, g as describeTypeWithThrottleRetry, m as templateResourceTypes, p as prefetchCreateOnlyPropertyPaths, x as withRetry } from "./ec2-termination-protection-Di3eM8PN.js";
|
|
12
|
+
import { t as expectedOwnerParam } from "./expected-bucket-owner-Drp-CSQY.js";
|
|
13
|
+
import { _ as stackInstanceIdCarriedFrom, a as slowCcOperationTimeoutMs, c as exportNamesCarriedFrom, d as importableOutputs, f as isReadableBag, h as shouldRetainResource, l as hasReadableExportSet, m as orphansCarriedFrom, o as acceptedCreateOnlyDropsOf, p as orphansAfterRollback, s as describeRegionValueKind, u as importableOutputKeys } from "./delete-started-Bq_G9e4j.js";
|
|
14
|
+
import { An as recordProvenPublicExpression, Cn as provenPublicValue, D as recordedNoEchoValuesOf, Dn as recordMaskOnlyValuesIn, En as recordMaskOnlyValue, Fn as isSingleDynamicReferenceToken, Ft as spelledKeysOf, It as pathCrossesDottedKey, Mt as DYNAMIC_REFERENCE_TOKEN_SCAN, Nn as WHOLE_DYNAMIC_REFERENCE_PATTERN, Nt as dynamicReferenceTokens, On as recordNoEchoAttributeValues, Ot as scrubResourceRecord, Pt as isUncertifiedBaselineMaskPosition, Rt as identityKeyFor, T as readsNoEchoSource, W as redactForState, _t as maskSecretsInText, an as physicalNameCopiesOf, at as literalSplitDelimitersOf, b as noEchoOutputsComparison, cn as recordNestedStackParameterExpressions, ct as recordLogOnlyParameterValue, dn as splitGetAttStringForm, dt as shareLogOnlyValues, et as carryLogOnlyValues, f as isMarkedCoordinate, fn as carriesSecretMask, ft as unionOfSecretBags, g as maskedLeafCoordinatesOf, gt as maskSecretsInError, h as maskWholeValue, it as hasMaskableValues, j as liveMatchesUnresolvedTokenFrame, jn as wholeStringLeavesOf, k as valueAtCoordinate, kn as recordNoEchoParameterFreshValue, kt as withPhysicalNameCopies, m as maskReadbackAtCoordinates, mt as errorCauseChain, nt as createUnionSecretMasker, ot as logOnlyValueCount, p as maskAtCoordinates, pt as createSecretMasker, qt as inheritNestedStackParameterAssociations, sn as recordPhysicalNameCopy, st as printingCorpusOf, u as canonicalCoordinates, ut as recordLogOnlyValue, v as noEchoCoordinatesOf, y as noEchoLeavesOf } from "./replacement-rules-B4fLD_Ru.js";
|
|
15
|
+
import { D as withoutUnsettledProperties, E as withUnsettledProperties, S as unsettledItemsOf, i as withResourceDeadline, w as unsettledPropertiesOf, x as unsettledItemsField } from "./resource-deadline-BcEyGRdL.js";
|
|
16
|
+
import { a as parseEcrRegistryHost, i as looksLikeEcrHostWithForeignSuffix, n as hasEcrRegistryHostLabels, t as ecrRegistryHostPattern } from "./ecr-uri-6HdJfJPR.js";
|
|
17
17
|
import { t as cdkdCacheHome } from "./cli.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 { CreateAliasCommand, CreateKeyCommand, DescribeKeyCommand, KMSClient, ScheduleKeyDeletionCommand } from "@aws-sdk/client-kms";
|
|
34
34
|
import { BatchDeleteImageCommand, DeleteRepositoryCommand, DescribeImagesCommand as DescribeImagesCommand$1, ECRClient, GetAuthorizationTokenCommand } from "@aws-sdk/client-ecr";
|
|
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, containsDynamicReference, createAuthorizerCache, createFileWatcher, createFileWatcher as createFileWatcher$1, createJwksCache, createMixedModeStateProvider, createWatchPredicates, defaultCredentialsLoader, describeAwsFailureForWarn, describeForwarderFailure, discoverRoutes, discoverWebSocketApis, dockerRegistryEnv, downloadAndExtractS3Bundle, effectiveLoopbackPorts, enforceImageOverrideOrphans, 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, resolveSingleTarget, resolveWatchConfig, resolveWorkloadAwsWiring, runEcsServiceEmulator, runImageOverrideBuilds, setActiveWorkloadAwsWiring, setAwsEndpointOverride, signAgentCoreInvocation, startApiServer, verifyJwtViaDiscovery, waitForAgentCorePing, 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, 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, resolveSingleTarget, resolveWatchConfig, resolveWorkloadAwsWiring, runEcsServiceEmulator, runImageOverrideBuilds, setActiveWorkloadAwsWiring, setAwsEndpointOverride, signAgentCoreInvocation, startApiServer, verifyJwtViaDiscovery, waitForAgentCorePing, 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";
|
|
@@ -181,7 +181,9 @@ function onStderr(fn) {
|
|
|
181
181
|
return result;
|
|
182
182
|
}
|
|
183
183
|
function pointEnvironmentAtEmulator(url, port, caBundle) {
|
|
184
|
-
|
|
184
|
+
const pointed = emulatorEnvironment(url, port, process.env);
|
|
185
|
+
Object.assign(process.env, pointed);
|
|
186
|
+
if (pointed["AWS_REGION"] !== void 0) recordEmulatorDefaultRegion(pointed["AWS_REGION"]);
|
|
185
187
|
const run = readEmulatorRunFiles(port);
|
|
186
188
|
const caPath = join(run.dir, "ca.pem");
|
|
187
189
|
const runCa = run.present && existsSync(caPath) ? caPath : devNull;
|
|
@@ -1448,7 +1450,7 @@ function collectCrossStackRefs(node, onRef, unconditional) {
|
|
|
1448
1450
|
// src/provisioning/register-providers.ts
|
|
1449
1451
|
let providerClasses;
|
|
1450
1452
|
function loadProviderClasses() {
|
|
1451
|
-
providerClasses ??= import("./provider-classes-
|
|
1453
|
+
providerClasses ??= import("./provider-classes-B3qqzXp-.js");
|
|
1452
1454
|
return providerClasses;
|
|
1453
1455
|
}
|
|
1454
1456
|
function registerAllProviders(registry, classes) {
|
|
@@ -5460,8 +5462,19 @@ async function previewNoEchoMacChanges(args) {
|
|
|
5460
5462
|
}
|
|
5461
5463
|
|
|
5462
5464
|
// src/cli/commands/diff-recursive/compute-stack-diff.ts
|
|
5463
|
-
async function computeStackDiff(
|
|
5464
|
-
const { parameters, canonicalizeProperties, ccRouteUnavailableReason, cfnFallback, producerLookup, consumerAccount, noEchoMacCache, macWriteOnlyLookups, inheritSecretBearingTemplate, inheritedSecrets, inheritedSecretTokens, inheritedDerivedNames, attributeHealer: unboundAttributeHealer, parentUnresolvedParameters, inheritedNoEchoParameters, inheritedNoEchoParametersAnyVerdict } = options;
|
|
5465
|
+
async function computeStackDiff(loadedState, template, region, stackName, stateBackend, diffCalculator, options = {}) {
|
|
5466
|
+
const { parameters, canonicalizeProperties, ccRouteUnavailableReason, cfnFallback, producerLookup, consumerAccount, noEchoMacCache, macWriteOnlyLookups, inheritSecretBearingTemplate, inheritedSecrets, inheritedSecretTokens, inheritedDerivedNames, attributeHealer: unboundAttributeHealer, parentUnresolvedParameters, inheritedNoEchoParameters, inheritedNoEchoParametersAnyVerdict, ssmNameHeal = "apply" } = options;
|
|
5467
|
+
const healSsmNames = (state) => {
|
|
5468
|
+
const healed = healSlashedSsmParameterNames(state, template, stackName);
|
|
5469
|
+
if (healed.heals.length === 0) return state;
|
|
5470
|
+
for (const heal of healed.heals) if (ssmNameHeal === "apply") logger.info(slashedSsmNameHealNote(heal));
|
|
5471
|
+
else logger.info(slashedSsmNameHealPendingNote(heal, stackName));
|
|
5472
|
+
return ssmNameHeal === "apply" ? {
|
|
5473
|
+
...state,
|
|
5474
|
+
resources: healed.resources
|
|
5475
|
+
} : state;
|
|
5476
|
+
};
|
|
5477
|
+
const currentState = healSsmNames(loadedState);
|
|
5465
5478
|
let healResources = currentState.resources ?? {};
|
|
5466
5479
|
let healNamingSecrets;
|
|
5467
5480
|
const attributeHealer = unboundAttributeHealer && healerUnderRecordPrintingBag(unboundAttributeHealer, () => healResources, (map) => healNamingSecrets?.(map));
|
|
@@ -5572,7 +5585,15 @@ async function computeStackDiff(currentState, template, region, stackName, state
|
|
|
5572
5585
|
healResources = resources;
|
|
5573
5586
|
}
|
|
5574
5587
|
});
|
|
5575
|
-
const { adoptedOrphans, adoptedRecords, deployRefusals,
|
|
5588
|
+
const { adoptedOrphans, adoptedRecords, deployRefusals, unreadableOrphans } = orphanSplice;
|
|
5589
|
+
const { stateForDiff } = orphanSplice;
|
|
5590
|
+
if (Object.keys(adoptedRecords ?? {}).length > 0) {
|
|
5591
|
+
const adopted = {
|
|
5592
|
+
...currentState,
|
|
5593
|
+
resources: adoptedRecords
|
|
5594
|
+
};
|
|
5595
|
+
for (const heal of healSlashedSsmParameterNames(adopted, template, stackName).heals) logger.info(slashedSsmNameHealAdoptedNote(heal));
|
|
5596
|
+
}
|
|
5576
5597
|
let { blocking } = orphanSplice;
|
|
5577
5598
|
let maskedInputs;
|
|
5578
5599
|
if (options.previewMaskedInputs === true) {
|
|
@@ -5613,7 +5634,7 @@ async function computeStackDiff(currentState, template, region, stackName, state
|
|
|
5613
5634
|
const changes = await diffCalculator.calculateDiff(stateForDiff, effectiveTemplate, resolveFn, canonicalizeProperties, void 0, void 0, maskForLog, void 0, maskedInputs, options.refusalRecovery, noEchoComparisonForTemplate(effectiveTemplate, conditions === void 0 ? void 0 : Object.fromEntries(Object.entries(conditions).filter(([name]) => !stillUnknown.includes(name))), mergedParameters, stateForDiff.resources, /* @__PURE__ */ new Set([region, stackName]), inheritedNoEchoParameters), {
|
|
5614
5635
|
...options.inheritedReferenceProvenance && { inherited: options.inheritedReferenceProvenance },
|
|
5615
5636
|
crossStackOutputs: crossStackOutputProvenanceSource(crossStackReads, crossStackReads, stateBackend)
|
|
5616
|
-
});
|
|
5637
|
+
}, options.forcedNestedChildRuns);
|
|
5617
5638
|
const macConditions = conditions === void 0 ? void 0 : Object.fromEntries(Object.entries(conditions).filter(([name]) => !stillUnknown.includes(name)));
|
|
5618
5639
|
const macMoved = await previewNoEchoMacChanges({
|
|
5619
5640
|
changes,
|
|
@@ -5847,13 +5868,28 @@ function collectCcApiRoutes(template, state, changes, ccRouteUnavailableReason)
|
|
|
5847
5868
|
}
|
|
5848
5869
|
|
|
5849
5870
|
// src/cli/commands/diff-recursive/build-tree.ts
|
|
5871
|
+
function childRowRunsEngine(row) {
|
|
5872
|
+
if (row?.changeType === "CREATE") return true;
|
|
5873
|
+
if (row?.changeType === "UPDATE" && row.nestedChildHeal === true) return true;
|
|
5874
|
+
return row?.changeType === "UPDATE" && (row.propertyChanges?.length ?? 0) > 0;
|
|
5875
|
+
}
|
|
5850
5876
|
async function buildDiffTree(args) {
|
|
5851
|
-
const { stackName, displayName, region, template, nestedTemplates, recursive, stateBackend, diffCalculator, parentHasSecretReference, parameters, parentUnresolvedParameters, canonicalizeProperties, ccRouteUnavailableReason, assetRedirect, cfnFallback, producerLookup, consumerAccount, previewOrphanAdoption, attributeHealerFor, ancestorTemplatePaths, isNestedChild, inheritedSecrets, inheritedDerivedNames, inheritedNoEchoParameters, inheritedNoEchoParametersAnyVerdict, refusalRecovery, inheritedReferenceProvenance, inheritedSecretTokens } = args;
|
|
5877
|
+
const { stackName, displayName, region, template, nestedTemplates, recursive, stateBackend, diffCalculator, parentHasSecretReference, parameters, parentUnresolvedParameters, canonicalizeProperties, ccRouteUnavailableReason, assetRedirect, cfnFallback, producerLookup, consumerAccount, previewOrphanAdoption, attributeHealerFor, ancestorTemplatePaths, isNestedChild, ssmNameHeal, inheritedSecrets, inheritedDerivedNames, inheritedNoEchoParameters, inheritedNoEchoParametersAnyVerdict, refusalRecovery, inheritedReferenceProvenance, inheritedSecretTokens } = args;
|
|
5852
5878
|
const unboundHealer = attributeHealerFor?.(stackName, region);
|
|
5853
5879
|
const { state, unreadable, unreadableContainers, deployRefusals, found } = await loadStateOrEmpty(stackName, region, stateBackend, refusalRecovery);
|
|
5854
5880
|
const attributeHealer = unboundHealer;
|
|
5855
5881
|
const createOnlyPrefetch = prefetchCreateOnlyPropertyPaths(templateResourceTypes(recordedTemplateResources(template, state)));
|
|
5856
5882
|
const secretBearingAbove = parentHasSecretReference === true || templateHasSecretDynamicReference(template);
|
|
5883
|
+
const nestedSsmCheck = ssmNameHeal === "pending" ? void 0 : await checkNestedSsmNames({
|
|
5884
|
+
state,
|
|
5885
|
+
template,
|
|
5886
|
+
stackName,
|
|
5887
|
+
region,
|
|
5888
|
+
nestedTemplates,
|
|
5889
|
+
readRecord: async (name, childRegion) => (await stateBackend.getState(name, childRegion))?.state
|
|
5890
|
+
});
|
|
5891
|
+
for (const row of nestedSsmCheck?.forcedRows ?? []) logger.info(nestedSsmNameRowNote(row));
|
|
5892
|
+
for (const row of nestedSsmCheck?.deferredRows ?? []) logger.info(nestedSsmNameDeferredNote(row));
|
|
5857
5893
|
let stackDiff;
|
|
5858
5894
|
try {
|
|
5859
5895
|
stackDiff = await computeStackDiff(state, template, region, stackName, stateBackend, diffCalculator, {
|
|
@@ -5875,6 +5911,8 @@ async function buildDiffTree(args) {
|
|
|
5875
5911
|
...refusalRecovery && { refusalRecovery },
|
|
5876
5912
|
inheritSecretBearingTemplate: false,
|
|
5877
5913
|
previewMaskedInputs: !isNestedChild,
|
|
5914
|
+
...ssmNameHeal && { ssmNameHeal },
|
|
5915
|
+
...nestedSsmCheck && { forcedNestedChildRuns: nestedSsmCheck.forcedRows },
|
|
5878
5916
|
nestedTemplates
|
|
5879
5917
|
});
|
|
5880
5918
|
} finally {
|
|
@@ -5970,6 +6008,7 @@ async function buildDiffTree(args) {
|
|
|
5970
6008
|
...attributeHealerFor && { attributeHealerFor },
|
|
5971
6009
|
ancestorTemplatePaths: childAncestorTemplatePaths,
|
|
5972
6010
|
isNestedChild: true,
|
|
6011
|
+
ssmNameHeal: ssmNameHeal !== "pending" && childRowRunsEngine(changes.get(logicalId)) ? "apply" : "pending",
|
|
5973
6012
|
parentHasSecretReference: secretBearingAbove,
|
|
5974
6013
|
inheritedSecrets: printingSecrets,
|
|
5975
6014
|
...hasMaskableValues(childDerivedNames) && { inheritedDerivedNames: childDerivedNames },
|
|
@@ -6081,6 +6120,7 @@ function diffTreeToJson(node) {
|
|
|
6081
6120
|
resourceType: change.resourceType,
|
|
6082
6121
|
...change.propertyChanges && change.propertyChanges.length > 0 ? { propertyChanges: change.propertyChanges } : {},
|
|
6083
6122
|
...change.attributeChanges && change.attributeChanges.length > 0 ? { attributeChanges: change.attributeChanges } : {},
|
|
6123
|
+
...change.nestedChildHeal === true && { nestedChildHeal: true },
|
|
6084
6124
|
...ccApi && ccApi.length > 0 ? { ccApi } : {},
|
|
6085
6125
|
...movedTo !== void 0 && { movedTo }
|
|
6086
6126
|
});
|
|
@@ -6199,6 +6239,7 @@ function renderChangeLines(changes, logFn, ccApiRoutes, adoptedOrphans, refactor
|
|
|
6199
6239
|
logFn(` old: ${attrChange.oldValue ?? "(unset)"}`);
|
|
6200
6240
|
logFn(` new: ${attrChange.newValue ?? "(unset)"}`);
|
|
6201
6241
|
}
|
|
6242
|
+
if (change.nestedChildHeal === true) logFn(" - [nested stack deployed to re-spell an SSM parameter name; go-to-k/cdkd#6282]");
|
|
6202
6243
|
break;
|
|
6203
6244
|
case "DELETE":
|
|
6204
6245
|
deleteCount++;
|
|
@@ -18249,17 +18290,12 @@ function isResolvableOrphanRecord(entry) {
|
|
|
18249
18290
|
const physicalId = entry.physicalId;
|
|
18250
18291
|
return typeof physicalId === "string" && physicalId !== "";
|
|
18251
18292
|
}
|
|
18252
|
-
const SECRET_VALUED_ATTRIBUTES = /* @__PURE__ */ new Map([
|
|
18253
|
-
["AWS::AppSync::ApiKey", ["ApiKey"]],
|
|
18254
|
-
["AWS::EC2::IpamExternalResourceVerificationToken", ["TokenValue"]],
|
|
18255
|
-
["AWS::IVS::StreamKey", ["Value"]]
|
|
18256
|
-
]);
|
|
18257
18293
|
function carriesSensitiveNamedLeaf(value) {
|
|
18258
18294
|
if (value === null || typeof value !== "object") return false;
|
|
18259
18295
|
return Object.entries(value).some(([key, leaf]) => isSensitiveAttributeName(key) || carriesSensitiveNamedLeaf(leaf));
|
|
18260
18296
|
}
|
|
18261
18297
|
function servableRecordedAttribute(orphan, attribute) {
|
|
18262
|
-
if (isAlwaysLiveAttribute(orphan.resourceType, attribute) || isSensitiveAttributeName(attribute) || isCustomResourceType$1(orphan.resourceType) ||
|
|
18298
|
+
if (isAlwaysLiveAttribute(orphan.resourceType, attribute) || isSensitiveAttributeName(attribute) || isCustomResourceType$1(orphan.resourceType) || isSecretValuedAttribute(orphan.resourceType, attribute)) return { served: false };
|
|
18263
18299
|
const bag = orphan.attributes;
|
|
18264
18300
|
if (bag === void 0 || !isReadableBag(bag)) return { served: false };
|
|
18265
18301
|
const attributes = bag;
|
|
@@ -18286,7 +18322,7 @@ function servableRecordedAttribute(orphan, attribute) {
|
|
|
18286
18322
|
function unsplicableCachedAttribute(resourceType, attribute, cached) {
|
|
18287
18323
|
if (isSensitiveAttributeName(attribute)) return "a credential-named attribute";
|
|
18288
18324
|
if (isCustomResourceType$1(resourceType)) return "a custom resource's attribute";
|
|
18289
|
-
if (
|
|
18325
|
+
if (isSecretValuedAttribute(resourceType, attribute)) return "a secret-valued attribute";
|
|
18290
18326
|
if (carriesSecretMask(cached)) return `the redaction mask ('${"***"}')`;
|
|
18291
18327
|
if (carriesDynamicReference(cached)) return "an unresolved dynamic reference";
|
|
18292
18328
|
if (carriesSensitiveNamedLeaf(cached)) return "a value with a credential-named field";
|
|
@@ -18315,6 +18351,11 @@ var AttributeFetcher = class {
|
|
|
18315
18351
|
ok: false,
|
|
18316
18352
|
reason: "state records no usable 'TableARN' for this S3 Tables table, the value CloudFormation's Ref returns, and the physical id is NOT that value"
|
|
18317
18353
|
};
|
|
18354
|
+
const healedAttribute = lacksRecordedRefArn(o);
|
|
18355
|
+
if (healedAttribute !== void 0) return {
|
|
18356
|
+
ok: false,
|
|
18357
|
+
reason: `state records no usable '${healedAttribute}' for this resource, the value CloudFormation's Ref returns, and the physical id is NOT that value`
|
|
18358
|
+
};
|
|
18318
18359
|
let maskedKey;
|
|
18319
18360
|
const value = cfnRefValueFromPhysicalId(o.resourceType, o.physicalId, refStateLookupFromResource(o, (key) => {
|
|
18320
18361
|
maskedKey = key;
|
|
@@ -25119,7 +25160,7 @@ async function loadStateForStack(stackName, synthRegion, opts) {
|
|
|
25119
25160
|
const logger = getLogger();
|
|
25120
25161
|
const prefix = opts.logPrefix ?? "--from-state";
|
|
25121
25162
|
const warn = opts.warn ?? ((message) => logger.warn(message));
|
|
25122
|
-
const region = canonicalizeRegion(opts.region ??
|
|
25163
|
+
const region = canonicalizeRegion(opts.region ?? namedEnvAwsRegion() ?? process.env["AWS_DEFAULT_REGION"] ?? synthRegion ?? emulatorDefaultRegion() ?? "us-east-1");
|
|
25123
25164
|
const clientRegion = canonicalizeRegion(opts.region) || void 0;
|
|
25124
25165
|
let stateBucket;
|
|
25125
25166
|
try {
|
|
@@ -27906,6 +27947,12 @@ function detectEcsImageResolutionNeeds(stack) {
|
|
|
27906
27947
|
const flat = extractImageString(image);
|
|
27907
27948
|
if (flat !== void 0 && extractEcrRepoComponent(flat) !== void 0 && !CDK_ASSET_IMAGE_REPO_RE.test(flat)) needsAssetRepoMarker = true;
|
|
27908
27949
|
if (containerHasIntrinsicEnvOrSecret(co)) needsEnvOrSecretSubstitution = true;
|
|
27950
|
+
const argv = containerArgvElements(co);
|
|
27951
|
+
if (argv.some((v) => v !== null && typeof v === "object")) needsEnvOrSecretSubstitution = true;
|
|
27952
|
+
if (argv.some(isCrossStackIntrinsic)) {
|
|
27953
|
+
needsEnvOrSecretSubstitution = true;
|
|
27954
|
+
needsCrossStackResolver = true;
|
|
27955
|
+
}
|
|
27909
27956
|
if (containerHasCrossStackEnvOrSecret(co)) {
|
|
27910
27957
|
needsEnvOrSecretSubstitution = true;
|
|
27911
27958
|
needsCrossStackResolver = true;
|
|
@@ -27945,10 +27992,16 @@ function containerHasCrossStackEnvOrSecret(c) {
|
|
|
27945
27992
|
}
|
|
27946
27993
|
return false;
|
|
27947
27994
|
}
|
|
27995
|
+
function containerArgvElements(c) {
|
|
27996
|
+
const health = c["HealthCheck"];
|
|
27997
|
+
return [
|
|
27998
|
+
c["Command"],
|
|
27999
|
+
c["EntryPoint"],
|
|
28000
|
+
health && typeof health === "object" ? health["Command"] : void 0
|
|
28001
|
+
].flatMap((l) => Array.isArray(l) ? l : []);
|
|
28002
|
+
}
|
|
27948
28003
|
function isCrossStackIntrinsic(value) {
|
|
27949
|
-
|
|
27950
|
-
const obj = value;
|
|
27951
|
-
return "Fn::ImportValue" in obj || "Fn::GetStackOutput" in obj;
|
|
28004
|
+
return containsCrossStackIntrinsic(value);
|
|
27952
28005
|
}
|
|
27953
28006
|
function volumeHasIntrinsicSourcePath(v) {
|
|
27954
28007
|
if (!v || typeof v !== "object") return false;
|
|
@@ -28074,10 +28127,11 @@ function parseContainerDefinition(raw, idx, taskLogicalId, resources, stack, con
|
|
|
28074
28127
|
const name = pickString(c["Name"]);
|
|
28075
28128
|
if (!name) throw new EcsTaskResolutionError(`Task '${taskLogicalId}' ContainerDefinitions[${idx}] has no Name.`);
|
|
28076
28129
|
const image = parseContainerImage(c["Image"], name, taskLogicalId, resources, stack, context);
|
|
28077
|
-
const command = pickStringArray(c["Command"]);
|
|
28078
|
-
const entryPoint = pickStringArray(c["EntryPoint"]);
|
|
28079
|
-
const workingDirectory = pickString(c["WorkingDirectory"]);
|
|
28080
28130
|
const subContext = buildSubstitutionContextFromImageContext(context);
|
|
28131
|
+
const unresolvedCommandElements = [];
|
|
28132
|
+
const command = resolveArgvArray(c["Command"], "Command", subContext, unresolvedCommandElements);
|
|
28133
|
+
const entryPoint = resolveArgvArray(c["EntryPoint"], "EntryPoint", subContext, unresolvedCommandElements);
|
|
28134
|
+
const workingDirectory = pickString(c["WorkingDirectory"]);
|
|
28081
28135
|
const environment = {};
|
|
28082
28136
|
const droppedEnvKeys = [];
|
|
28083
28137
|
if (Array.isArray(c["Environment"])) for (const entry of c["Environment"]) {
|
|
@@ -28185,7 +28239,7 @@ function parseContainerDefinition(raw, idx, taskLogicalId, resources, stack, con
|
|
|
28185
28239
|
let healthCheck;
|
|
28186
28240
|
if (c["HealthCheck"] && typeof c["HealthCheck"] === "object") {
|
|
28187
28241
|
const h = c["HealthCheck"];
|
|
28188
|
-
const command2 =
|
|
28242
|
+
const command2 = resolveArgvArray(h["Command"], "HealthCheck.Command", subContext, unresolvedCommandElements);
|
|
28189
28243
|
if (command2 && command2.length > 0) {
|
|
28190
28244
|
healthCheck = { command: command2 };
|
|
28191
28245
|
if (typeof h["Interval"] === "number") healthCheck.interval = h["Interval"];
|
|
@@ -28235,8 +28289,133 @@ function parseContainerDefinition(raw, idx, taskLogicalId, resources, stack, con
|
|
|
28235
28289
|
if (privileged !== void 0) out.privileged = privileged;
|
|
28236
28290
|
if (readonlyRootFilesystem !== void 0) out.readonlyRootFilesystem = readonlyRootFilesystem;
|
|
28237
28291
|
if (droppedSecretKeys.length > 0) out.droppedSecretNames = droppedSecretKeys.map((d) => d.key);
|
|
28292
|
+
if (unresolvedCommandElements.length > 0) out.unresolvedCommandElements = unresolvedCommandElements;
|
|
28293
|
+
return out;
|
|
28294
|
+
}
|
|
28295
|
+
function resolveArgvArray(raw, field, subContext, unresolved) {
|
|
28296
|
+
if (!Array.isArray(raw)) return void 0;
|
|
28297
|
+
return raw.map((element, index) => {
|
|
28298
|
+
if (typeof element === "string") return element;
|
|
28299
|
+
if (typeof element === "number" || typeof element === "boolean") return String(element);
|
|
28300
|
+
if (!element || typeof element !== "object" || Array.isArray(element)) {
|
|
28301
|
+
unresolved.push({
|
|
28302
|
+
field,
|
|
28303
|
+
index,
|
|
28304
|
+
reason: "not a string or an intrinsic"
|
|
28305
|
+
});
|
|
28306
|
+
return "";
|
|
28307
|
+
}
|
|
28308
|
+
if (isCrossStackIntrinsic(element)) {
|
|
28309
|
+
unresolved.push({
|
|
28310
|
+
field,
|
|
28311
|
+
index,
|
|
28312
|
+
reason: CROSS_STACK_ARGV_REASON
|
|
28313
|
+
});
|
|
28314
|
+
return "";
|
|
28315
|
+
}
|
|
28316
|
+
if (!subContext) {
|
|
28317
|
+
unresolved.push({
|
|
28318
|
+
field,
|
|
28319
|
+
index,
|
|
28320
|
+
reason: NO_STATE_ARGV_REASON
|
|
28321
|
+
});
|
|
28322
|
+
return "";
|
|
28323
|
+
}
|
|
28324
|
+
const secret = secretAttributeRead(element, subContext.resources);
|
|
28325
|
+
if (secret !== void 0) {
|
|
28326
|
+
unresolved.push({
|
|
28327
|
+
field,
|
|
28328
|
+
index,
|
|
28329
|
+
reason: secret
|
|
28330
|
+
});
|
|
28331
|
+
return "";
|
|
28332
|
+
}
|
|
28333
|
+
const sub = substituteAgainstState(element, subContext);
|
|
28334
|
+
if (sub.kind !== "literal") {
|
|
28335
|
+
unresolved.push({
|
|
28336
|
+
field,
|
|
28337
|
+
index,
|
|
28338
|
+
reason: sub.reason
|
|
28339
|
+
});
|
|
28340
|
+
return "";
|
|
28341
|
+
}
|
|
28342
|
+
const arg = argvValue(sub.value);
|
|
28343
|
+
if ("value" in arg) return arg.value;
|
|
28344
|
+
unresolved.push({
|
|
28345
|
+
field,
|
|
28346
|
+
index,
|
|
28347
|
+
reason: arg.reason
|
|
28348
|
+
});
|
|
28349
|
+
return "";
|
|
28350
|
+
});
|
|
28351
|
+
}
|
|
28352
|
+
function secretAttributeRead(element, stateResources) {
|
|
28353
|
+
for (const [logicalId, attribute] of getAttReads(element)) {
|
|
28354
|
+
const record = Object.hasOwn(stateResources, logicalId) ? stateResources[logicalId] : void 0;
|
|
28355
|
+
const recorded = record?.attributes;
|
|
28356
|
+
const stored = recorded && Object.hasOwn(recorded, attribute) ? recorded[attribute] : void 0;
|
|
28357
|
+
if (isSensitiveAttributeName(attribute) || isSecretValuedAttribute(record?.resourceType, attribute) || stored === "***") return `reads the secret attribute ${logicalId}.${attribute}, which cdkd will not put on the docker run command line; pass the value through Environment or Secrets instead`;
|
|
28358
|
+
}
|
|
28359
|
+
}
|
|
28360
|
+
function computedAttributeRead(node) {
|
|
28361
|
+
if (node === null || typeof node !== "object") return void 0;
|
|
28362
|
+
if (Array.isArray(node)) {
|
|
28363
|
+
for (const item of node) {
|
|
28364
|
+
const r = computedAttributeRead(item);
|
|
28365
|
+
if (r !== void 0) return r;
|
|
28366
|
+
}
|
|
28367
|
+
return;
|
|
28368
|
+
}
|
|
28369
|
+
for (const [key, value] of Object.entries(node)) {
|
|
28370
|
+
if (key === "Fn::GetAtt" && isCrossStackIntrinsic(value)) return "a Fn::GetAtt whose logical ID or attribute name is a cross-stack reference, which CloudFormation does not accept";
|
|
28371
|
+
if (key === "Fn::Sub") {
|
|
28372
|
+
const template = Array.isArray(value) ? value[0] : value;
|
|
28373
|
+
if (isCrossStackIntrinsic(template)) return "a Fn::Sub whose template is a cross-stack reference, which CloudFormation does not accept";
|
|
28374
|
+
}
|
|
28375
|
+
const r = computedAttributeRead(value);
|
|
28376
|
+
if (r !== void 0) return r;
|
|
28377
|
+
}
|
|
28378
|
+
}
|
|
28379
|
+
function getAttReads(node, out = []) {
|
|
28380
|
+
if (node === null || typeof node !== "object") return out;
|
|
28381
|
+
if (Array.isArray(node)) {
|
|
28382
|
+
for (const item of node) getAttReads(item, out);
|
|
28383
|
+
return out;
|
|
28384
|
+
}
|
|
28385
|
+
for (const [key, value] of Object.entries(node)) {
|
|
28386
|
+
if (key === "Fn::GetAtt") {
|
|
28387
|
+
if (Array.isArray(value) && typeof value[0] === "string" && typeof value[1] === "string") out.push([value[0], value[1]]);
|
|
28388
|
+
else if (typeof value === "string" && value.includes(".")) {
|
|
28389
|
+
const dot = value.indexOf(".");
|
|
28390
|
+
out.push([value.slice(0, dot), value.slice(dot + 1)]);
|
|
28391
|
+
}
|
|
28392
|
+
} else if (key === "Fn::Sub") {
|
|
28393
|
+
const template = Array.isArray(value) ? value[0] : value;
|
|
28394
|
+
if (typeof template === "string") for (const m of template.matchAll(/\$\{([^}!]+)\}/g)) {
|
|
28395
|
+
const ref = m[1];
|
|
28396
|
+
const dot = ref.indexOf(".");
|
|
28397
|
+
if (dot > 0 && !ref.startsWith("AWS::")) out.push([ref.slice(0, dot), ref.slice(dot + 1)]);
|
|
28398
|
+
}
|
|
28399
|
+
}
|
|
28400
|
+
getAttReads(value, out);
|
|
28401
|
+
}
|
|
28238
28402
|
return out;
|
|
28239
28403
|
}
|
|
28404
|
+
const NO_STATE_ARGV_REASON = "intrinsic-valued and no deployed state was loaded: deploy the stack and pass --from-state (cdkd-deployed) or --from-cfn-stack (cdk-deployed) to substitute it against that state (Ref, Fn::GetAtt, Fn::Sub, Fn::Join, Fn::Select, Fn::Split and pseudo parameters resolve; Fn::If and Fn::FindInMap do not)";
|
|
28405
|
+
const CROSS_STACK_ARGV_REASON = "a cross-stack reference (Fn::ImportValue / Fn::GetStackOutput): it resolves only from a state source (--from-state / --from-cfn-stack) with the producer stack deployed";
|
|
28406
|
+
function argvValue(value) {
|
|
28407
|
+
if (typeof value === "number" || typeof value === "boolean") return { value: String(value) };
|
|
28408
|
+
if (typeof value !== "string") return { reason: "resolved to a non-string value" };
|
|
28409
|
+
if (value === "***") return { reason: `resolved to the secret mask (${"***"}), not the deployed value` };
|
|
28410
|
+
if (containsDynamicReference(value)) return { reason: "resolved to a CloudFormation dynamic reference ({{resolve:...}}), which cdkd resolves only in Environment, because resolving one here would put the secret on the docker run argv; move the value into an Environment variable or a Secrets entry" };
|
|
28411
|
+
return { value };
|
|
28412
|
+
}
|
|
28413
|
+
function assertEcsTaskCommandsResolved(task) {
|
|
28414
|
+
const lines = [];
|
|
28415
|
+
for (const container of task.containers) for (const u of container.unresolvedCommandElements ?? []) lines.push(` - Container '${container.name}' ${u.field}[${u.index}]: ${u.reason}`);
|
|
28416
|
+
if (lines.length === 0) return;
|
|
28417
|
+
throw new EcsTaskResolutionError(`Task '${task.taskDefinitionLogicalId}' has container command elements cdkd could not resolve:\n${lines.join("\n")}\ncdkd refuses to run the task with these arguments missing, since that runs a different command than the deployed task. Deploy the stack and pass --from-state (cdkd-deployed) or --from-cfn-stack (cdk-deployed) so each element resolves against deployed state.`);
|
|
28418
|
+
}
|
|
28240
28419
|
function buildSubstitutionContextFromImageContext(context) {
|
|
28241
28420
|
if (!context?.stateResources) return void 0;
|
|
28242
28421
|
const subContext = { resources: context.stateResources };
|
|
@@ -28445,6 +28624,21 @@ function notFoundError(target, stack, resources) {
|
|
|
28445
28624
|
}
|
|
28446
28625
|
|
|
28447
28626
|
// src/local/ecs-task-resolver/cross-stack.ts
|
|
28627
|
+
function argvTarget(container, field) {
|
|
28628
|
+
if (field === "Command") return container.command;
|
|
28629
|
+
if (field === "EntryPoint") return container.entryPoint;
|
|
28630
|
+
return container.healthCheck?.command;
|
|
28631
|
+
}
|
|
28632
|
+
function rawArgv(c, field) {
|
|
28633
|
+
let raw;
|
|
28634
|
+
if (field === "Command") raw = c["Command"];
|
|
28635
|
+
else if (field === "EntryPoint") raw = c["EntryPoint"];
|
|
28636
|
+
else {
|
|
28637
|
+
const h = c["HealthCheck"];
|
|
28638
|
+
raw = h && typeof h === "object" ? h["Command"] : void 0;
|
|
28639
|
+
}
|
|
28640
|
+
return Array.isArray(raw) ? raw : void 0;
|
|
28641
|
+
}
|
|
28448
28642
|
async function applyCrossStackResolverToTask(task, context) {
|
|
28449
28643
|
if (!context.crossStackResolver) return;
|
|
28450
28644
|
const { resolveDynamicReferences: _envOnly, ...secretContext } = context;
|
|
@@ -28503,6 +28697,38 @@ async function applyCrossStackResolverToTask(task, context) {
|
|
|
28503
28697
|
if (container.droppedSecretNames) container.droppedSecretNames = container.droppedSecretNames.filter((n) => n !== sName);
|
|
28504
28698
|
}
|
|
28505
28699
|
}
|
|
28700
|
+
if (container.unresolvedCommandElements?.length) {
|
|
28701
|
+
const remaining = [];
|
|
28702
|
+
for (const u of container.unresolvedCommandElements) {
|
|
28703
|
+
const target = argvTarget(container, u.field);
|
|
28704
|
+
const rawElement = rawArgv(c, u.field)?.[u.index];
|
|
28705
|
+
if (!target || !isCrossStackIntrinsic(rawElement)) {
|
|
28706
|
+
remaining.push(u);
|
|
28707
|
+
continue;
|
|
28708
|
+
}
|
|
28709
|
+
const refusal = secretAttributeRead(rawElement, secretContext.resources) ?? computedAttributeRead(rawElement);
|
|
28710
|
+
if (refusal !== void 0) {
|
|
28711
|
+
remaining.push({
|
|
28712
|
+
...u,
|
|
28713
|
+
reason: refusal
|
|
28714
|
+
});
|
|
28715
|
+
continue;
|
|
28716
|
+
}
|
|
28717
|
+
const masked = { hit: false };
|
|
28718
|
+
const sub = await substituteAgainstStateAsync(rawElement, withMaskWatch(secretContext, masked));
|
|
28719
|
+
const arg = masked.hit ? { reason: `resolved a cross-stack value recorded as the secret mask (${"***"}), not the deployed value` } : sub.kind === "literal" ? argvValue(sub.value) : { reason: sub.reason };
|
|
28720
|
+
if ("value" in arg) {
|
|
28721
|
+
target[u.index] = arg.value;
|
|
28722
|
+
continue;
|
|
28723
|
+
}
|
|
28724
|
+
remaining.push({
|
|
28725
|
+
...u,
|
|
28726
|
+
reason: arg.reason
|
|
28727
|
+
});
|
|
28728
|
+
}
|
|
28729
|
+
if (remaining.length > 0) container.unresolvedCommandElements = remaining;
|
|
28730
|
+
else delete container.unresolvedCommandElements;
|
|
28731
|
+
}
|
|
28506
28732
|
if (resolvedEnvKeys.size > 0 || resolvedSecretNames.size > 0) {
|
|
28507
28733
|
container.warnings = container.warnings.filter((w) => {
|
|
28508
28734
|
for (const k of resolvedEnvKeys) if (w.startsWith(`Environment '${k}' dropped:`)) return false;
|
|
@@ -28517,6 +28743,22 @@ async function applyCrossStackResolverToTask(task, context) {
|
|
|
28517
28743
|
}
|
|
28518
28744
|
}
|
|
28519
28745
|
}
|
|
28746
|
+
function withMaskWatch(context, masked) {
|
|
28747
|
+
const inner = context.crossStackResolver;
|
|
28748
|
+
if (!inner) return context;
|
|
28749
|
+
const watch = (v) => {
|
|
28750
|
+
if (v === "***") masked.hit = true;
|
|
28751
|
+
return v;
|
|
28752
|
+
};
|
|
28753
|
+
const resolver = {
|
|
28754
|
+
resolveImport: async (exportName) => watch(await inner.resolveImport(exportName)),
|
|
28755
|
+
resolveGetStackOutput: async (stack, region, output) => watch(await inner.resolveGetStackOutput(stack, region, output))
|
|
28756
|
+
};
|
|
28757
|
+
return {
|
|
28758
|
+
...context,
|
|
28759
|
+
crossStackResolver: resolver
|
|
28760
|
+
};
|
|
28761
|
+
}
|
|
28520
28762
|
|
|
28521
28763
|
// src/cli/commands/local-start-api/state.ts
|
|
28522
28764
|
function stateBundleKey(stackName, workload) {
|
|
@@ -28602,7 +28844,7 @@ async function loadStateForRoutedStacks(stacks, routes, routesWithAuth, options)
|
|
|
28602
28844
|
}
|
|
28603
28845
|
async function resolvePseudoParametersForStartApi(stateRegion, options) {
|
|
28604
28846
|
const logger = getLogger();
|
|
28605
|
-
const region = canonicalizeRegion(options.region ??
|
|
28847
|
+
const region = canonicalizeRegion(options.region ?? namedEnvAwsRegion() ?? process.env["AWS_DEFAULT_REGION"] ?? stateRegion);
|
|
28606
28848
|
const sourceFlag = options.fromState ? "--from-state" : "--from-cfn-stack";
|
|
28607
28849
|
let accountId;
|
|
28608
28850
|
try {
|
|
@@ -28873,6 +29115,21 @@ async function materializeLambdaLayers(layers, layerTmpDirs, layerRoleArn, workl
|
|
|
28873
29115
|
return dir;
|
|
28874
29116
|
}
|
|
28875
29117
|
|
|
29118
|
+
// src/utils/shutdown-signals.ts
|
|
29119
|
+
function shutdownSignalExitCode(signal) {
|
|
29120
|
+
return signal === "SIGINT" ? 130 : 143;
|
|
29121
|
+
}
|
|
29122
|
+
function onShutdownSignals(handler) {
|
|
29123
|
+
const onSigint = () => handler("SIGINT");
|
|
29124
|
+
const onSigterm = () => handler("SIGTERM");
|
|
29125
|
+
process.on("SIGINT", onSigint);
|
|
29126
|
+
process.on("SIGTERM", onSigterm);
|
|
29127
|
+
return () => {
|
|
29128
|
+
process.removeListener("SIGINT", onSigint);
|
|
29129
|
+
process.removeListener("SIGTERM", onSigterm);
|
|
29130
|
+
};
|
|
29131
|
+
}
|
|
29132
|
+
|
|
28876
29133
|
// src/cli/commands/local-start-api/reload.ts
|
|
28877
29134
|
async function reloadAllServers(args) {
|
|
28878
29135
|
const { synthesizeAndBuild, servers, buildPool, logger, isClosing, retiredPoolDisposals } = args;
|
|
@@ -29023,7 +29280,7 @@ async function localStartApiCommand(target, options) {
|
|
|
29023
29280
|
assumeRole: options.assumeRole,
|
|
29024
29281
|
containerHost: options.containerHost,
|
|
29025
29282
|
...debugPortBase !== void 0 && { debugPort: debugPortBase + index },
|
|
29026
|
-
stsRegion: canonicalizeRegion(options.region ??
|
|
29283
|
+
stsRegion: canonicalizeRegion(options.region ?? namedEnvAwsRegion() ?? process.env["AWS_DEFAULT_REGION"]),
|
|
29027
29284
|
inlineTmpDirs,
|
|
29028
29285
|
layerTmpDirs,
|
|
29029
29286
|
stateByStack,
|
|
@@ -29202,11 +29459,8 @@ async function localStartApiCommand(target, options) {
|
|
|
29202
29459
|
await runCleanup();
|
|
29203
29460
|
process.exit(firstExitCode);
|
|
29204
29461
|
};
|
|
29205
|
-
|
|
29206
|
-
shutdown(
|
|
29207
|
-
});
|
|
29208
|
-
process.on("SIGTERM", () => {
|
|
29209
|
-
shutdown("SIGTERM", 0);
|
|
29462
|
+
onShutdownSignals((signal) => {
|
|
29463
|
+
shutdown(signal, shutdownSignalExitCode(signal));
|
|
29210
29464
|
});
|
|
29211
29465
|
installFatalShutdownHandlers(logger, shutdown);
|
|
29212
29466
|
await new Promise(() => void 0);
|
|
@@ -30532,7 +30786,7 @@ async function resolveStackAccountId$1(source) {
|
|
|
30532
30786
|
// src/cli/commands/local-run-task/image-context.ts
|
|
30533
30787
|
function resolveEcsConsumerRegion(stateRecordRegion, options, synthRegion) {
|
|
30534
30788
|
if (stateRecordRegion) return stateRecordRegion;
|
|
30535
|
-
return canonicalizeRegion((options.region ||
|
|
30789
|
+
return canonicalizeRegion((options.region || namedEnvAwsRegion()) ?? process.env["AWS_DEFAULT_REGION"] ?? synthRegion ?? emulatorDefaultRegion() ?? "us-east-1");
|
|
30536
30790
|
}
|
|
30537
30791
|
async function buildEcsImageResolutionContext$1(candidate, stateProvider, options) {
|
|
30538
30792
|
const logger = getLogger();
|
|
@@ -30546,7 +30800,7 @@ async function buildEcsImageResolutionContext$1(candidate, stateProvider, option
|
|
|
30546
30800
|
let stateRecordRegion;
|
|
30547
30801
|
const wantsPseudoForEnvOrSecret = !!stateProvider && needs.needsEnvOrSecretSubstitution;
|
|
30548
30802
|
if (needs.needsPseudoParameters || wantsPseudoForEnvOrSecret) {
|
|
30549
|
-
const region = canonicalizeRegion(options.region ??
|
|
30803
|
+
const region = canonicalizeRegion(options.region ?? namedEnvAwsRegion() ?? process.env["AWS_DEFAULT_REGION"] ?? candidate.region ?? emulatorDefaultRegion());
|
|
30550
30804
|
if (!region) logger.warn("Resolver references ${AWS::Region} but cdkd could not determine the target region. Pass --region, set AWS_REGION, or declare env.region on the CDK stack.");
|
|
30551
30805
|
let accountId;
|
|
30552
30806
|
try {
|
|
@@ -30578,7 +30832,7 @@ async function buildEcsImageResolutionContext$1(candidate, stateProvider, option
|
|
|
30578
30832
|
}
|
|
30579
30833
|
} else if (!stateProvider && needs.needsStateResources) {
|
|
30580
30834
|
if (!options.imageOverride?.length) logger.warn("Container Image references a same-stack AWS::ECR::Repository. Pass --from-state (cdkd-deployed) or --from-cfn-stack (cdk-deployed) to substitute the deployed repository URI, or --image-override to build it from a local Dockerfile. Otherwise the run stops before any container starts.");
|
|
30581
|
-
} else if (!stateProvider && needs.needsEnvOrSecretSubstitution) logger.warn("Container Environment / Secrets entries contain CloudFormation intrinsics (Ref / Fn::GetAtt / Fn::Sub / Fn::Join). Pass --from-state (cdkd-deployed) or --from-cfn-stack (cdk-deployed) to substitute them against deployed state. Without a state source
|
|
30835
|
+
} else if (!stateProvider && needs.needsEnvOrSecretSubstitution) logger.warn("Container Environment / Secrets / Command entries contain CloudFormation intrinsics (Ref / Fn::GetAtt / Fn::Sub / Fn::Join). Pass --from-state (cdkd-deployed) or --from-cfn-stack (cdk-deployed) to substitute them against deployed state. Without a state source Environment / Secrets entries are dropped (per-key warnings will follow) and an intrinsic Command / EntryPoint / HealthCheck.Command element refuses the run.");
|
|
30582
30836
|
if (needs.needsAssetRepoMarker && options.fromState) {
|
|
30583
30837
|
const containerRepo = await loadBootstrapContainerRepo(candidate.region, {
|
|
30584
30838
|
statePrefix: options.statePrefix,
|
|
@@ -30777,8 +31031,9 @@ async function localRunTaskCommand(target, options) {
|
|
|
30777
31031
|
options.stackRegion = canonicalizeRegion(options.stackRegion);
|
|
30778
31032
|
}
|
|
30779
31033
|
const state = createEcsRunState();
|
|
30780
|
-
let
|
|
30781
|
-
let
|
|
31034
|
+
let removeSignalHandlers;
|
|
31035
|
+
let signalCount = 0;
|
|
31036
|
+
let firstSignal;
|
|
30782
31037
|
let detachedSuccessfully = false;
|
|
30783
31038
|
let stateProvider;
|
|
30784
31039
|
let channels;
|
|
@@ -30868,18 +31123,20 @@ async function localRunTaskCommand(target, options) {
|
|
|
30868
31123
|
dynamicRefs.dispose();
|
|
30869
31124
|
}
|
|
30870
31125
|
}
|
|
30871
|
-
} else if (!stateProvider && taskNeeds.needsCrossStackResolver) logger.warn("Container Environment / Secrets entries contain Fn::ImportValue / Fn::GetStackOutput intrinsics. Pass --from-state (cdkd-deployed) or --from-cfn-stack (cdk-deployed) to substitute them against deployed state.");
|
|
30872
|
-
|
|
30873
|
-
|
|
30874
|
-
|
|
31126
|
+
} else if (!stateProvider && taskNeeds.needsCrossStackResolver) logger.warn("Container Environment / Secrets / Command entries contain Fn::ImportValue / Fn::GetStackOutput intrinsics. Pass --from-state (cdkd-deployed) or --from-cfn-stack (cdk-deployed) to substitute them against deployed state.");
|
|
31127
|
+
assertEcsTaskCommandsResolved(task);
|
|
31128
|
+
const onShutdownSignal = (signal) => {
|
|
31129
|
+
signalCount += 1;
|
|
31130
|
+
if (signalCount >= 2) {
|
|
30875
31131
|
const stranded = strandedProfileCredentialsNotice(credsHostPath);
|
|
30876
|
-
process.stderr.write(
|
|
30877
|
-
process.exit(
|
|
31132
|
+
process.stderr.write(`${forceExitLead(signal, firstSignal)}; container cleanup skipped.${stranded ? ` ${stranded}` : ""}\n`);
|
|
31133
|
+
process.exit(shutdownSignalExitCode(signal));
|
|
30878
31134
|
}
|
|
31135
|
+
firstSignal = signal;
|
|
30879
31136
|
logger.info("Stopping task...");
|
|
30880
|
-
cleanup().then(() => process.exit(
|
|
31137
|
+
cleanup().then(() => process.exit(shutdownSignalExitCode(signal)));
|
|
30881
31138
|
};
|
|
30882
|
-
|
|
31139
|
+
removeSignalHandlers = onShutdownSignals(onShutdownSignal);
|
|
30883
31140
|
const envOverrides = readEnvOverridesFile$2(options.envVars);
|
|
30884
31141
|
const roleRequested = options.assumeTaskRole === true || typeof options.assumeTaskRole === "string";
|
|
30885
31142
|
const plan = planTaskRoleCredentials(task.containers, envOverrides, roleRequested);
|
|
@@ -30943,7 +31200,7 @@ async function localRunTaskCommand(target, options) {
|
|
|
30943
31200
|
const detachedNotice = strandedProfileCredentialsNotice(channels.profileCredsFile?.hostPath);
|
|
30944
31201
|
if (detachedNotice) logger.info(`Detached mode leaves the mounted credentials file behind. ${detachedNotice}`);
|
|
30945
31202
|
detachedSuccessfully = true;
|
|
30946
|
-
|
|
31203
|
+
signalCount = 99;
|
|
30947
31204
|
return;
|
|
30948
31205
|
}
|
|
30949
31206
|
if (result.essentialContainerName) logger.info(`Essential container '${result.essentialContainerName}' exited with code ${result.exitCode}.`);
|
|
@@ -30951,7 +31208,7 @@ async function localRunTaskCommand(target, options) {
|
|
|
30951
31208
|
} finally {
|
|
30952
31209
|
if (stateProvider) stateProvider.dispose();
|
|
30953
31210
|
if (!detachedSuccessfully) await cleanup();
|
|
30954
|
-
if (
|
|
31211
|
+
if (removeSignalHandlers) removeSignalHandlers();
|
|
30955
31212
|
}
|
|
30956
31213
|
}
|
|
30957
31214
|
async function applyPerContainerNames(task, target, stacks, candidate, options, baseContext) {
|
|
@@ -30974,12 +31231,21 @@ async function applyPerContainerNames(task, target, stacks, candidate, options,
|
|
|
30974
31231
|
if (!mine || !into) continue;
|
|
30975
31232
|
into.environment = mine.environment;
|
|
30976
31233
|
into.secrets = mine.secrets;
|
|
31234
|
+
if (mine.command) into.command = mine.command;
|
|
31235
|
+
if (mine.entryPoint) into.entryPoint = mine.entryPoint;
|
|
31236
|
+
if (mine.healthCheck) into.healthCheck = mine.healthCheck;
|
|
31237
|
+
if (mine.unresolvedCommandElements) into.unresolvedCommandElements = mine.unresolvedCommandElements;
|
|
31238
|
+
else delete into.unresolvedCommandElements;
|
|
30977
31239
|
}
|
|
30978
31240
|
} finally {
|
|
30979
31241
|
provider.dispose();
|
|
30980
31242
|
}
|
|
30981
31243
|
}
|
|
30982
31244
|
}
|
|
31245
|
+
function forceExitLead(signal, first) {
|
|
31246
|
+
const label = signal === "SIGINT" ? "^C" : "SIGTERM";
|
|
31247
|
+
return first !== void 0 && first !== signal ? `Force-exit on a second signal (${label})` : `Force-exit on second ${label}`;
|
|
31248
|
+
}
|
|
30983
31249
|
|
|
30984
31250
|
// src/cli/commands/local-run-task.ts
|
|
30985
31251
|
function createLocalRunTaskCommand() {
|
|
@@ -31716,7 +31982,7 @@ async function resolveAgentCoreCodeImageFromS3(resolved, code, s3Source, options
|
|
|
31716
31982
|
key: s3Source.key,
|
|
31717
31983
|
...s3Source.versionId !== void 0 && { versionId: s3Source.versionId }
|
|
31718
31984
|
};
|
|
31719
|
-
const region = canonicalizeRegion(options.region ?? options.stackRegion ??
|
|
31985
|
+
const region = canonicalizeRegion(options.region ?? options.stackRegion ?? namedEnvAwsRegion() ?? process.env["AWS_DEFAULT_REGION"] ?? resolved.stack.region ?? emulatorDefaultRegion());
|
|
31720
31986
|
const assumeRoleArn = resolveAssumeRoleArn(options, resolved, loaded);
|
|
31721
31987
|
let credentials;
|
|
31722
31988
|
if (assumeRoleArn) try {
|
|
@@ -31784,7 +32050,7 @@ function describeIntrinsic(value) {
|
|
|
31784
32050
|
}
|
|
31785
32051
|
async function buildAgentCoreImageContext(candidate, stateProvider, options) {
|
|
31786
32052
|
const logger = getLogger();
|
|
31787
|
-
const region = canonicalizeRegion(options.region ??
|
|
32053
|
+
const region = canonicalizeRegion(options.region ?? namedEnvAwsRegion() ?? process.env["AWS_DEFAULT_REGION"] ?? candidate.region ?? emulatorDefaultRegion());
|
|
31788
32054
|
let accountId;
|
|
31789
32055
|
try {
|
|
31790
32056
|
accountId = await resolveStackAccountId(region, options.profile, options.fromState, options.fromCfnStack);
|
|
@@ -31931,7 +32197,7 @@ async function buildSigV4HeadersIfRequested(options, resolved, loaded, host, por
|
|
|
31931
32197
|
getLogger().warn(`Runtime '${resolved.logicalId}' declares a customJwtAuthorizer; --sigv4 ignored (JWT path takes precedence).`);
|
|
31932
32198
|
return;
|
|
31933
32199
|
}
|
|
31934
|
-
const region = canonicalizeRegion(options.region ?? options.stackRegion ??
|
|
32200
|
+
const region = canonicalizeRegion(options.region ?? options.stackRegion ?? namedEnvAwsRegion() ?? process.env["AWS_DEFAULT_REGION"] ?? resolved.stack.region ?? emulatorDefaultRegion());
|
|
31935
32201
|
if (!region) throw new CdkdError("--sigv4: no region resolved for the AgentCore signing scope. Pass --region '<region>', set AWS_REGION, or use --from-cfn-stack with a region-bound stack.", "LOCAL_INVOKE_AGENTCORE_SIGV4_NO_REGION");
|
|
31936
32202
|
const credentials = await resolveHostCredentialsForSigV4(options, resolved, loaded, region);
|
|
31937
32203
|
const signed = await signAgentCoreInvocation({
|
|
@@ -32010,7 +32276,7 @@ async function localInvokeAgentCoreCommand(target, options) {
|
|
|
32010
32276
|
}
|
|
32011
32277
|
let containerId;
|
|
32012
32278
|
let logStream;
|
|
32013
|
-
let
|
|
32279
|
+
let removeSignalHandlers;
|
|
32014
32280
|
let profileCredsFile;
|
|
32015
32281
|
let stateProvider;
|
|
32016
32282
|
let drainInFlight;
|
|
@@ -32161,10 +32427,9 @@ async function localInvokeAgentCoreCommand(target, options) {
|
|
|
32161
32427
|
containerId = boot.containerId;
|
|
32162
32428
|
const hostPort = boot.hostPort;
|
|
32163
32429
|
logStream = boot.logStream;
|
|
32164
|
-
|
|
32165
|
-
cleanup().then(() => process.exit(
|
|
32166
|
-
};
|
|
32167
|
-
process.on("SIGINT", sigintHandler);
|
|
32430
|
+
removeSignalHandlers = onShutdownSignals((signal) => {
|
|
32431
|
+
cleanup().then(() => process.exit(shutdownSignalExitCode(signal)));
|
|
32432
|
+
});
|
|
32168
32433
|
if (isMcp && mcpRequest) {
|
|
32169
32434
|
logger.info(`MCP request: ${mcpRequest.method}`);
|
|
32170
32435
|
const mcp = await mcpInvokeOnce(containerHost, hostPort, mcpRequest, { requestTimeoutMs: options.timeout });
|
|
@@ -32313,7 +32578,7 @@ async function localInvokeAgentCoreCommand(target, options) {
|
|
|
32313
32578
|
}
|
|
32314
32579
|
} finally {
|
|
32315
32580
|
await cleanup();
|
|
32316
|
-
if (
|
|
32581
|
+
if (removeSignalHandlers) removeSignalHandlers();
|
|
32317
32582
|
}
|
|
32318
32583
|
}
|
|
32319
32584
|
function agentCoreTargetWorkload(target, stacks) {
|
|
@@ -32539,16 +32804,11 @@ function envHasIntrinsicValue(templateEnv) {
|
|
|
32539
32804
|
}
|
|
32540
32805
|
function envHasCrossStackIntrinsic(templateEnv) {
|
|
32541
32806
|
if (!templateEnv) return false;
|
|
32542
|
-
|
|
32543
|
-
if (!v || typeof v !== "object") continue;
|
|
32544
|
-
const obj = v;
|
|
32545
|
-
if ("Fn::ImportValue" in obj || "Fn::GetStackOutput" in obj) return true;
|
|
32546
|
-
}
|
|
32547
|
-
return false;
|
|
32807
|
+
return Object.values(templateEnv).some(containsCrossStackIntrinsic);
|
|
32548
32808
|
}
|
|
32549
32809
|
async function resolvePseudoParametersForInvoke(stackRegion, options) {
|
|
32550
32810
|
const logger = getLogger();
|
|
32551
|
-
const region = canonicalizeRegion(options.region ??
|
|
32811
|
+
const region = canonicalizeRegion(options.region ?? namedEnvAwsRegion() ?? process.env["AWS_DEFAULT_REGION"] ?? stackRegion ?? emulatorDefaultRegion());
|
|
32552
32812
|
const sourceFlag = options.fromState ? "--from-state" : "--from-cfn-stack";
|
|
32553
32813
|
if (!region) logger.warn(`${sourceFlag}: resolver references \${AWS::Region} but cdkd could not determine the target region. Pass --region, set AWS_REGION, or declare env.region on the CDK stack.`);
|
|
32554
32814
|
let accountId;
|
|
@@ -32633,7 +32893,7 @@ async function localInvokeCommand(target, options) {
|
|
|
32633
32893
|
let imagePlan;
|
|
32634
32894
|
let containerId;
|
|
32635
32895
|
let logStream;
|
|
32636
|
-
let
|
|
32896
|
+
let removeSignalHandlers;
|
|
32637
32897
|
let profileCredsFile;
|
|
32638
32898
|
const drainLogs = singleFlight(async () => {
|
|
32639
32899
|
await killAndDrainContainerLogs(containerId, logStream);
|
|
@@ -32781,12 +33041,11 @@ async function localInvokeCommand(target, options) {
|
|
|
32781
33041
|
...imagePlan.tmpfs !== void 0 && { tmpfs: imagePlan.tmpfs }
|
|
32782
33042
|
});
|
|
32783
33043
|
logStream = followContainerLogs(containerId);
|
|
32784
|
-
|
|
33044
|
+
removeSignalHandlers = onShutdownSignals((signal) => {
|
|
32785
33045
|
cleanup().then(() => {
|
|
32786
|
-
process.exit(
|
|
33046
|
+
process.exit(shutdownSignalExitCode(signal));
|
|
32787
33047
|
});
|
|
32788
|
-
};
|
|
32789
|
-
process.on("SIGINT", sigintHandler);
|
|
33048
|
+
});
|
|
32790
33049
|
await waitForRieReady(containerHost, hostPort, 5e3);
|
|
32791
33050
|
const invokeTimeoutMs = Math.max(3e4, lambda.timeoutSec * 2 * 1e3);
|
|
32792
33051
|
const result = await invokeRie(containerHost, hostPort, event, invokeTimeoutMs);
|
|
@@ -32794,7 +33053,7 @@ async function localInvokeCommand(target, options) {
|
|
|
32794
33053
|
process.stdout.write(`${result.raw}\n`);
|
|
32795
33054
|
} finally {
|
|
32796
33055
|
await cleanup();
|
|
32797
|
-
if (
|
|
33056
|
+
if (removeSignalHandlers) removeSignalHandlers();
|
|
32798
33057
|
}
|
|
32799
33058
|
}
|
|
32800
33059
|
async function resolveInvokeTemplateEnv(lambda, options) {
|
|
@@ -33068,4 +33327,4 @@ function collectVerbFlags(program) {
|
|
|
33068
33327
|
}
|
|
33069
33328
|
|
|
33070
33329
|
export { resolveSecretDerivedPrincipals as a, buildProgram, isResolvableSecretPrincipalList as i, runDestroyForStack as n, canonicalizeIpProtocolValue as o, holdsUnprovenSecretPrincipalToken as r, canonicalizeIpv4Cidr as t };
|
|
33071
|
-
//# sourceMappingURL=program-
|
|
33330
|
+
//# sourceMappingURL=program-BMBei2v9.js.map
|