@cdkd/cli 0.343.0 → 0.343.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/{asg-provider-Bppos8EY.js → asg-provider-CWB0lHRb.js} +2 -2
  2. package/dist/{asg-provider-Bppos8EY.js.map → asg-provider-CWB0lHRb.js.map} +1 -1
  3. package/dist/cli.js +2 -2
  4. package/dist/{db-instance-modify-retry-NFYmLL_I.js → db-instance-modify-retry-sToRRDYL.js} +2 -2
  5. package/dist/{db-instance-modify-retry-NFYmLL_I.js.map → db-instance-modify-retry-sToRRDYL.js.map} +1 -1
  6. package/dist/{deploy-engine-9vVOF1h_.js → deploy-engine-CJ363Jh0.js} +5 -5
  7. package/dist/{deploy-engine-9vVOF1h_.js.map → deploy-engine-CJ363Jh0.js.map} +1 -1
  8. package/dist/{ecr-uri-NwcD6PUe.js → ecr-uri-BUjy2DZJ.js} +2 -2
  9. package/dist/{ecr-uri-NwcD6PUe.js.map → ecr-uri-BUjy2DZJ.js.map} +1 -1
  10. package/dist/{iam-role-provider-D3txh4Jy.js → iam-role-provider-DXZrowSp.js} +2 -2
  11. package/dist/{iam-role-provider-D3txh4Jy.js.map → iam-role-provider-DXZrowSp.js.map} +1 -1
  12. package/dist/index.js +2 -2
  13. package/dist/{neptune-provider-DZOT1xuJ.js → neptune-provider-BaG6dNvC.js} +3 -3
  14. package/dist/{neptune-provider-DZOT1xuJ.js.map → neptune-provider-BaG6dNvC.js.map} +1 -1
  15. package/dist/{program-DP4g5uS3.js → program-DvCw1Vlz.js} +203 -55
  16. package/dist/program-DvCw1Vlz.js.map +1 -0
  17. package/dist/{provider-classes-CHzimhh6.js → provider-classes-XzlF2NN6.js} +8 -8
  18. package/dist/{provider-classes-CHzimhh6.js.map → provider-classes-XzlF2NN6.js.map} +1 -1
  19. package/dist/{rds-provider-CePynqbO.js → rds-provider-B9nEPi0J.js} +4 -4
  20. package/dist/{rds-provider-CePynqbO.js.map → rds-provider-B9nEPi0J.js.map} +1 -1
  21. package/dist/{read-replica-CngiOJmt.js → read-replica-CuWA09yj.js} +2 -2
  22. package/dist/{read-replica-CngiOJmt.js.map → read-replica-CuWA09yj.js.map} +1 -1
  23. package/dist/{version-ZgB66ZVw.js → version-sV00MIFa.js} +2 -2
  24. package/dist/{version-ZgB66ZVw.js.map → version-sV00MIFa.js.map} +1 -1
  25. package/package.json +2 -2
  26. package/dist/program-DP4g5uS3.js.map +0 -1
@@ -1,11 +1,11 @@
1
- import { t as getCdkdVersion } from "./version-ZgB66ZVw.js";
1
+ import { t as getCdkdVersion } from "./version-sV00MIFa.js";
2
2
  import { $ as UNRENDERABLE, F as generateResourceName, G as isNameGeneration, J as withStackScope, M as PATTERN_B_NAME_PROPERTIES, N as PATTERN_B_RESOURCE_TYPES, P as derivesPatternBName, Q as STACK_REF_MAX_CODE_POINTS, X as SAFE_MSG_ALTERED_CHAR, Z as SECRET_REF_MAX_CODE_POINTS, _ as explicitNamePropertyFor, a as safeStringify, at as displayStackName, c as isStdoutReservedForPayload, ct as plainIdentOr, d as runStackBuffered, dt as terminalSafe, et as asIsMessage, ft as truncateCodePoints, it as displaySafe, j as PATTERN_B_NAME_OPTIONS, l as reserveStdoutForPayload, lt as safeMsg, m as getLiveRenderer, n as describeAwsFailure, nt as displayAwsMessage, ot as isPasteableIdent, q as withSkipPrefix, rt as displayIdent, s as getLogger, tt as cutMarker, ut as stringifyJsonPayload, x as coerceCfnBoolean } from "./aws-failure-text-zxW2CTmF.js";
3
- import { $a as applyRoleArnIfSet, $i as buildFinalSnapshotIdentifier, $l as isReadableBag, $n as updatePartialMessage, $r as DEFAULT_RESOURCE_TIMEOUT_MS, $s as malformedOutputsWarning, $t as NESTED_PENDING_PARENT_REASON, $u as runDockerForeground, A as PROTECTION_PROPERTY_BY_TYPE, Aa as RollbackInlinePolicyWriters, Ad as AssemblyReader, Ai as maskEventTextWithBoundBags, Al as recordPhysicalNameCopy, An as rollbackOrphanIds, Ao as recordedReferenceRegions, Ar as retiredNameGenerationsLeaving, As as refuseMalformedResourceEntriesForImport, Au as isCrossRegionRedirect, Bc as maskAtCoordinates, Bd as ownValue, Bl as wholeStringLeavesOf, Bn as propertiesChangedReason, Bo as unsettledItemsField, Br as exportAliasCollisionScrubWarning, Bs as refuseMalformedResourcePropertiesForOrphan, Bt as refactorMarkerRefusalMessage, Bu as describeDockerExecFailure, C as refusePendingMovesOut, Ca as withPrintingSecrets, Cc as findHandledUnwrittenCreateOnly, Cd as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, Ci as noEchoComparisonForTemplate, Cl as spelledKeysOf, Cn as DeploymentEventsStore, Co as isStalePlaceholderArnAttribute, Cr as removeProtectionTypeList, Cs as malformedLocalResourcesWarning, Cu as createAssetRedirectResolver, D as diffSecurity, Dc as NO_CC_HANDLERS_REASON, Dd as canonicalizeRegion, Di as createReadOnlyAttributeHealerFactory, Dn as findRefactorHints, Do as keepHeldTokenProvenance, Dr as nameScopeOf, Ds as refuseMalformedResourceEntries, Du as ensureAssetStorage, E as serviceTokenBlockingReason, Ed as PARTITION_TABLE, Ei as withAttemptedItemsMasked, El as inheritNestedStackParameterAssociations, En as formatDestructiveChange, Er as nameGenerationHighWaterOf, Es as refuseMalformedResourceAttributesForOrphan, Eu as AssetModeResolver, Fd as utf8ByteLength, Fl as recordMaskOnlyValue, Fn as differingRemedy, Fo as carriesDynamicReference, Fr as namesAnyDeclaredParameter, Fs as malformedDriftResourcePropertiesWarning, Ft as keptForRetainedRecord, Fu as validateContainerRepoName, Ga as DiffCalculator, Gc as noEchoLeavesOf, Gd as resolveAssemblyPath, Gi as PRE_DELETE_SNAPSHOT_TYPES, Gl as S3StateBackend, Gn as DELETED_RESOURCE_REMEDY, Go as findReplacedReadersOfRecreateTargets, Gr as exportNameNoEchoParameters, Gs as malformedOrphansWarning, Gu as dockerSpawnEnvWithSensitive, Hc as maskWholeValue, Hd as describeFileReadFailure, Hi as secretSegmentsOfState, Hl as isSingleDynamicReferenceToken, Hn as referencedLogicalIds, Ho as unsettledPropertiesOf, Hr as secretBearingStateKeyWarning, Hs as UNREADABLE_ORPHANS_CONTAINER_ROW, Ht as sameMove, Hu as redactedCause, Ic as DagBuilder, Id as defineOwnKey, Ii as secretNamedRecordNeedles, Il as recordMaskOnlyValuesIn, In as isPairableType, Io as keepsSecretReferenceToken, Ir as reachableDivergentParameters, Is as malformedResourcePropertiesWarning, It as recordRetainedForReadoption, Iu as BOOTSTRAP_MARKER_PREFIX, Ja as poisonRenderedSpellingsCollidingIn, Jc as readbackPathFor, Ji as effectiveDeletionPolicy, Jl as describeRegionValueKind, Jn as withUnprovenUnsettled, Jo as isStatefulRecreateTargetForReplace, Jr as noEchoParameterValueSeed, Js as repairMalformedOrphansForReadOnly, Ju as warnFinchArgvExposure, Ka as IntrinsicFunctionResolver, Kc as noEchoOutputsComparison, Kd as injectAwsRegion, Ki as ccRoutedFinalSnapshotError, Kl as splitImportedOps, Kn as recordAfterRollbackUpdate, Ko as shownType, Kr as exportNameSecretExposure, Ks as refuseMalformedOrphans, Kt as formatResourceLine, Ku as finchSecretArgvRefusal, Lc as TemplateParser, Ld as hasOwnKey, Li as stateSecretNameNeedles, Ll as recordNoEchoAttributeValues, Ln as looselyEqual, Lo as withSharedDrainBudget, Lr as resourcesNamingDeclaredParameter, Ls as refuseMalformedResourcePropertiesForDestroy, Lt as readRefactorMarker, Lu as buildDockerImage, M as perType, Ma as deleteIndeterminateGuards, Md as processStackMessages, Mi as orphanRecordsPrintingBag, Ml as splitGetAttStringForm, Mn as changedReferenceInDiff, Mo as isImpossibleEmptyStoredAttribute, Ms as refuseMalformedResourceEntriesForOrphan, Mt as withResourceDeadline, Mu as parseBootstrapMarker, N as readProtection, Na as deleteLeftInPlace, Nd as describeJsonParseFailure, Ni as secretNamePrintingBag, Nl as carriesSecretMask, Nn as changedReferencePath, No as carriesFetchableDynamicReference, Nr as inheritProducerRegions, Ns as repairMalformedResourceEntriesForReadOnly, Nt as IMPLICIT_DELETE_DEPENDENCIES, Nu as readBootstrapMarkerBody, O as recordedProtectionEvidence, Oa as setResolvedResourceTimeouts, Oc as hasNoCloudControlHandlers, Od as derivePartitionAndUrlSuffix, Oi as completedReplayEntries, Ol as physicalNameCopiesOf, On as hintSidesOf, Or as retiredAfterRollback, Os as refuseMalformedResourceEntriesForDeploy, Ou as buildDenyExternalAccessPolicy, Pa as deleteSkipReason, Pd as parseFailureDebugDetail, Pi as secretNamePrintingBags, Pl as provenPublicValue, Pn as changedReferenceReason, Po as isNamelessDynamicReferenceError, Pr as computeParameterTaint, Ps as unreadableResourceEntries, Pt as computeImplicitDeleteEdges, Pu as validateAssetBucketName, Qa as refuseUnreadableCdkCrossAccountRefs, Qc as liveMatchesUnresolvedTokenFrame, Qi as createPreDeleteFinalSnapshot, Ql as importableOutputs, Qn as undeclaredEmptyObservedKeys, Qr as bindingSkippedOutputs, Qs as malformedOutputsRefusalMessage, Qt as resolvePendingCloudControlRequests, Qu as getDockerCmd, Rc as canonicalCoordinates, Rd as hasPlainPrototype, Ri as storedSecretNameNeedles, Rl as recordNoEchoParameterFreshValue, Rn as mappingPairs, Ro as INTRINSIC_KEYS, Rr as WITHHELD_NAME_DISPLAY, Rs as refuseMalformedResourcePropertiesForDrift, Rt as readRefactorMarkerOnce, Ru as resolveDockerContextDirectory, S as pendingMovesRefusalMessage, Sc as findActionableSdkUnwired, Sd as uploadCfnTemplate, Si as noEchoAttributeNamesOf, Sl as isUncertifiedBaselineMaskPosition, Sn as DeploymentEventsReader, So as cfnRefValueFromPhysicalId, Sr as segmentCleanupOptions, Ss as malformedLocalResourceEntriesWarning, Su as buildAssetRedirectMap, T as findServiceTokenRefusals, Ta as CloudControlProvider, Tc as unwrittenCreateOnlyReplacement, Td as expectedOwnerParam, Ti as noEchoParameterNamesOf, Tl as identityKeyFor, Tn as findDestructiveChanges, To as refStateLookupFromResource, Tr as nameGenerationCarriedFrom, Ts as malformedScrubResourceEntriesRefusalMessage, Tu as rewriteTemplateAssetReferences, Uc as maskedLeafCoordinatesOf, Ud as displayAssemblyPath, Ui as withSecretPhysicalIdsMaskedInState, Ul as LockManager, Un as replayFailedOperations, Uo as withUnsettledProperties, Ur as secretSafeKeyDisplay, Us as hasReadableOrphans, Ut as updateRefactorMarker, Uu as redactedDockerCause, Vc as maskReadbackAtCoordinates, Vd as absoluteAssemblyPathEscape, Vl as WHOLE_DYNAMIC_REFERENCE_PATTERN, Vn as proposeRenames, Vo as unsettledItemsOf, Vr as secretBearing, Vs as repairMalformedResourcePropertiesForReadOnly, Vt as refuseRefactorMarker, Vu as describeDockerFailure, Wa as isWaitAbandonedError, Wc as noEchoCoordinatesOf, Wd as renderAssemblyPathEscape, Wi as ATOMIC_FINAL_SNAPSHOT_TYPES, Wl as isLockInfoExpired, Wn as replayRollback, Wo as withoutUnsettledProperties, Wr as carriedExportAliasExposure, Ws as malformedOrphansRefusalMessage, Wu as redactDockerArgvValues, Xa as resolveDynamicReferences, Xc as recordedNoEchoValuesOf, Xi as refusesFinalSnapshot, Xl as hasReadableExportSet, Xn as equalModuloMarkedMask, Xo as renderStatefulReason, Xr as collectPublishedOutputNames, Xs as malformedExportSourceWarning, Xu as isMalformedEnvKey, Yc as readsNoEchoSource, Yd as resolveBucketRegion, Yi as isFinalSnapshotError, Yl as exportNamesCarriedFrom, Yn as calculateResourceDrift, Yo as isStatefulRecreateTargetSync, Yr as collectDeclaredOutputNames, Ys as malformedExportNamesWarning, Yu as isDockerClientEnvKey, Za as producerLookupOver, Zc as valueAtCoordinate, Zi as unsupportedFinalSnapshotError, Zl as importableOutputKeys, Zn as equalModuloMask, Zr as isExportAliasCollision, Zs as malformedLocalOutputsWarning, Zt as pendingRequestCount, Zu as formatDockerLoginError, _ as listNestedTemplateRows, _a as applyCustomResourceResponseExpiration, _c as STATE_RESOURCES_MALFORMED, _d as ssmResolvedValueType, _i as cyan, _l as scrubResourceRecord, _n as loadJournaledOrphans, _r as findNestedStackTypeChanges, _s as refuseMalformedOrphansForOrphan, _u as withStackInstanceIdWithheld, a as scanActiveConsumers, ac as refuseDivergentRecordRegionForDestroy, ad as getDefaultStateBucketName, ai as withStackRecords, al as hasMaskableValues, an as recordDisplacedSkips, ao as AWS_CREDENTIAL_ENV_KEYS, as as withRetry, au as hasUnverifiableParameterRefusal, b as hasPendingMovesOut, ba as readsNoEchoDeleteValues, bc as hasReadableOutputs, bd as MIGRATE_TMP_PREFIX, bi as red, bl as DYNAMIC_REFERENCE_TOKEN_SCAN, bn as makeSiblingClaimReader, bo as parameterTypeMayLoseSecretIdentity, bs as unreadableOrphanRecords, bu as stringifyValue, c as inheritedProvenanceForChildDiff, cc as malformedStateRefusalMessage, cd as resolveApp, ci as holdsSupersededResources, cl as printingCorpusOf, cn as withNestedRevertRun, co as envCredentialsAreAssumedRole, cr as demoteSupersededOrphans, cs as declaresNoEcho, cu as timePhase, d as conditionInputsFrom, da as CC_BROKEN_REASON, dc as refuseMalformedResourcesForExport, dd as resolveSkipPrefix, di as supersededHeldByOtherTypeWarning, dl as shareLogOnlyValues, dn as withNestedStackContext, do as producerRegionsFromState, dr as planFailedOps, ds as malformedOrphanRecordsRefusalMessage, du as CrossPrefixScanCache, ed as runDockerStreaming, ei as DEFAULT_RESOURCE_WARN_AFTER_MS, el as redactForState, en as displacedOpClause, eo as assertFlagRoleArn, er as updatePartialReason, eu as orphansAfterRollback, f as parentSuppliedValues, fa as ProviderRegistry, fc as refuseMalformedState, fd as resolveStateBucketWithDefault, fi as supersededHolderOf, fl as unionOfSecretBags, fn as deleteJournaledOrphans, fo as regionLessSecretName, fr as recheckFailedPlan, fs as malformedOrphanRecordsWarning, fu as applyCrossPrefixScan, g as isAbsoluteAssetPath, ga as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, gc as withheldAccountClause, gd as warnDeprecatedNoPrefixCliFlag, gi as bold, gl as maskSecretsInText, gn as journaledOrphanLines, gr as withPreviousPolicies, gs as refuseMalformedOrphanRecordsForDestroy, gu as stackInstanceIdOf, h as findNestedTemplateTreeDefect, ha as wouldReturnToSdkProvider, hc as accountArgs, hd as stateBucketExistenceConfirmed, hl as maskSecretsInError, hn as isHandledOrphan, hr as resolveReplacementOldType, hs as refuseMalformedOrphanRecords, hu as isNotImplemented, i as mergeNoChangeOutputs, ic as STATE_REGION_DIVERGED, id as synthesisStatusMessage, il as createUnionSecretMasker, in as nestedChildStackName$1, io as sendableAssumeRoleCommand, ir as withCreateTokenLedger, is as describeTypeWithThrottleRetry, iu as hasReasonlessBaselineRefusal, j as isProtectionValueActive, ja as UNSPECIFIED_SKIP_REASON, jd as StageLoadError, ji as namingSecretsWithRecordedNoEcho, jl as recordNestedStackParameterExpressions, jn as withMovedTo, jo as getAccountInfo, jr as withNameGenerationReached, js as refuseMalformedResourceEntriesForImportSave, ju as getBootstrapMarkerKey, k as recordedProtectionNote, ka as slowCcOperationTimeoutMs, kd as refuseFailedLookups, ki as journaledOrphanPrintingBag, kn as movedToHint, ko as recordedOutputReferenceRegions, kr as retiredNameGenerationsAfter, ks as refuseMalformedResourceEntriesForDestroy, ku as assertAssetBucketRegion, l as makeCanonicalizePropertiesFn, lc as refuseMalformedResourcesForDeploy, ld as resolveAutoAssetStorage, li as isSupersededResourceRecord, ll as recordLogOnlyParameterValue, ln as collectNestedChildUnaddressed, lo as classifyRecordedSecretRegion, lr as isJournaledOrphan, ls as deployRefusesOrphanRowsReason, lu as rebuildClientForBucketRegion, m as childTemplateLoader, ma as isCustomResource, mc as JSON_LISTING_HOLE_VALUE, md as resolveUseCdkBootstrapAssets, mi as withoutSuperseded, ml as errorCauseChain, mn as dropFailedHint, mr as replacementNeverSwapped, ms as previewableOrphanRecords, mu as isAccessDenied, n as isSecretBearingReferenceString, nc as refuseMalformedOutputsForDestroy, nd as getDockerImageBySourceHash, nn as dropSettledNestedJournals, no as explicitRoleArnOrThrow, nr as ledgerForStack, ns as prefetchCreateOnlyPropertyPaths, nu as shouldRetainResource, o as inRunStackKey, oc as malformedRenderedContainersWarning, od as getLegacyStateBucketName, ol as literalSplitDelimitersOf, oo as applyCallerIdentityCredentials, or as planRollback, os as parameterInputsFor, ou as PhaseClock, p as readRecordedConditionVerdicts, pa as ccBrokenReason, pc as repairMalformedResourcesForReadOnly, pd as resolveStateBucketWithDefaultAndSource, pi as supersededResourcesOf, pl as createSecretMasker, pn as dropFailedCommands, pr as recordUnderIdIsNotOwn, ps as malformedOrphanRowsKeptWarning, pu as crossPrefixDeniedWarning, qa as isAlwaysLiveAttribute, qd as injectedAwsRegionValue, qi as ccRoutedInstanceTakesNoSnapshot, ql as acceptedCreateOnlyDropsOf, qn as settleUnsettledPrevious, qo as MULTI_REGION_RECREATE_BLOCKED_TYPES, qr as isWholeDynamicReferenceValue, qs as refuseMalformedOrphansForDestroy, qu as partitionSensitiveEnv, r as keptWholeReasonText, rc as repairMalformedOutputsForReadOnly, rd as Synthesizer, ri as destroyStackRecordsView, rl as carryLogOnlyValues, ro as isIamRoleArn, rs as templateResourceTypes, ru as stackInstanceIdCarriedFrom, s as crossStackOutputProvenanceSource, sc as malformedResourcesWarning, sd as loadCdkJson, si as deleteSupersededEntry, sl as logOnlyValueCount, sn as revertedNestedRowIds, so as callerEnvCredentials, sr as seedsDeleteFirstGuard, su as renderPhaseTimings, t as DeployEngine, tc as refuseMalformedOutputs, td as AssetManifestLoader, ti as maskingRetryLogger, tn as displacedPhysicalIdShown, to as assertSendableRoleArn, tu as orphansCarriedFrom, u as conditionFingerprint, uc as refuseMalformedResourcesForDestroy, ud as resolveCaptureObservedState, ui as supersededAfterRollback, ul as recordLogOnlyValue, un as getCurrentNestedStackContext, uo as classifyReplaySecretRegion, ur as isReplacementOrphan, us as isReadableOrphanRecord, uu as CrossPrefixReadError, v as renderNestedTemplateTreeDefect, va as customResourceResponseExpirationWarning, vc as UNREADABLE_RESOURCES_MAP_ROW, vd as CFN_TEMPLATE_BODY_LIMIT, vi as gray, vl as withPhysicalNameCopies, vn as sameJournaledOrphans, vo as coerceParameterTypedValue, vs as repairMalformedOrphanRecordsForReadOnly, vu as AssetPublisher, w as deferredServiceTokenWarning, wd as decodeListingKey, wi as noEchoExactEchoLeavesOf, wl as pathCrossesDottedKey, wn as constructPathOf$1, wo as lacksRecordedTableArn, wr as orphanNeedsIdentity, ws as malformedResourceEntriesWarning, wu as loadPublishableAssetManifest, x as pendingMovesOutOf, xa as isCustomResourceType$1, xc as hasReadableResources, xd as findLargeInlineResources, xi as yellow, xl as dynamicReferenceTokens, xn as planOrphanAdoption, xo as AWS_NO_VALUE, xs as isReadableResourceEntry, xu as WorkGraph, y as templateIdentity, ya as TemplateNoEchoReresolver, yc as displayLogicalId, yd as CFN_TEMPLATE_URL_LIMIT, yi as green, yn as makeForeignHolderScan, yo as isUnboundTemplateParameter, ys as unpreviewableOrphanRecords, yu as isSensitiveAttributeName, zc as isMarkedCoordinate, zd as nullPrototypeRecord, zi as extractDeploymentEventError, zl as recordProvenPublicExpression, zn as parseMappingFile, zr as displayTextOrWithheld, zs as refuseMalformedResourcePropertiesForExport, zt as refactorMarkerMovesOf, zu as describeDockerCapturedOutput } from "./deploy-engine-9vVOF1h_.js";
3
+ import { $a as applyRoleArnIfSet, $i as buildFinalSnapshotIdentifier, $l as isReadableBag, $n as updatePartialMessage, $r as DEFAULT_RESOURCE_TIMEOUT_MS, $s as malformedOutputsWarning, $t as NESTED_PENDING_PARENT_REASON, $u as runDockerForeground, A as PROTECTION_PROPERTY_BY_TYPE, Aa as RollbackInlinePolicyWriters, Ad as AssemblyReader, Ai as maskEventTextWithBoundBags, Al as recordPhysicalNameCopy, An as rollbackOrphanIds, Ao as recordedReferenceRegions, Ar as retiredNameGenerationsLeaving, As as refuseMalformedResourceEntriesForImport, Au as isCrossRegionRedirect, Bc as maskAtCoordinates, Bd as ownValue, Bl as wholeStringLeavesOf, Bn as propertiesChangedReason, Bo as unsettledItemsField, Br as exportAliasCollisionScrubWarning, Bs as refuseMalformedResourcePropertiesForOrphan, Bt as refactorMarkerRefusalMessage, Bu as describeDockerExecFailure, C as refusePendingMovesOut, Ca as withPrintingSecrets, Cc as findHandledUnwrittenCreateOnly, Cd as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, Ci as noEchoComparisonForTemplate, Cl as spelledKeysOf, Cn as DeploymentEventsStore, Co as isStalePlaceholderArnAttribute, Cr as removeProtectionTypeList, Cs as malformedLocalResourcesWarning, Cu as createAssetRedirectResolver, D as diffSecurity, Dc as NO_CC_HANDLERS_REASON, Dd as canonicalizeRegion, Di as createReadOnlyAttributeHealerFactory, Dn as findRefactorHints, Do as keepHeldTokenProvenance, Dr as nameScopeOf, Ds as refuseMalformedResourceEntries, Du as ensureAssetStorage, E as serviceTokenBlockingReason, Ed as PARTITION_TABLE, Ei as withAttemptedItemsMasked, El as inheritNestedStackParameterAssociations, En as formatDestructiveChange, Er as nameGenerationHighWaterOf, Es as refuseMalformedResourceAttributesForOrphan, Eu as AssetModeResolver, Fd as utf8ByteLength, Fl as recordMaskOnlyValue, Fn as differingRemedy, Fo as carriesDynamicReference, Fr as namesAnyDeclaredParameter, Fs as malformedDriftResourcePropertiesWarning, Ft as keptForRetainedRecord, Fu as validateContainerRepoName, Ga as DiffCalculator, Gc as noEchoLeavesOf, Gd as resolveAssemblyPath, Gi as PRE_DELETE_SNAPSHOT_TYPES, Gl as S3StateBackend, Gn as DELETED_RESOURCE_REMEDY, Go as findReplacedReadersOfRecreateTargets, Gr as exportNameNoEchoParameters, Gs as malformedOrphansWarning, Gu as dockerSpawnEnvWithSensitive, Hc as maskWholeValue, Hd as describeFileReadFailure, Hi as secretSegmentsOfState, Hl as isSingleDynamicReferenceToken, Hn as referencedLogicalIds, Ho as unsettledPropertiesOf, Hr as secretBearingStateKeyWarning, Hs as UNREADABLE_ORPHANS_CONTAINER_ROW, Ht as sameMove, Hu as redactedCause, Ic as DagBuilder, Id as defineOwnKey, Ii as secretNamedRecordNeedles, Il as recordMaskOnlyValuesIn, In as isPairableType, Io as keepsSecretReferenceToken, Ir as reachableDivergentParameters, Is as malformedResourcePropertiesWarning, It as recordRetainedForReadoption, Iu as BOOTSTRAP_MARKER_PREFIX, Ja as poisonRenderedSpellingsCollidingIn, Jc as readbackPathFor, Ji as effectiveDeletionPolicy, Jl as describeRegionValueKind, Jn as withUnprovenUnsettled, Jo as isStatefulRecreateTargetForReplace, Jr as noEchoParameterValueSeed, Js as repairMalformedOrphansForReadOnly, Ju as warnFinchArgvExposure, Ka as IntrinsicFunctionResolver, Kc as noEchoOutputsComparison, Kd as injectAwsRegion, Ki as ccRoutedFinalSnapshotError, Kl as splitImportedOps, Kn as recordAfterRollbackUpdate, Ko as shownType, Kr as exportNameSecretExposure, Ks as refuseMalformedOrphans, Kt as formatResourceLine, Ku as finchSecretArgvRefusal, Lc as TemplateParser, Ld as hasOwnKey, Li as stateSecretNameNeedles, Ll as recordNoEchoAttributeValues, Ln as looselyEqual, Lo as withSharedDrainBudget, Lr as resourcesNamingDeclaredParameter, Ls as refuseMalformedResourcePropertiesForDestroy, Lt as readRefactorMarker, Lu as buildDockerImage, M as perType, Ma as deleteIndeterminateGuards, Md as processStackMessages, Mi as orphanRecordsPrintingBag, Ml as splitGetAttStringForm, Mn as changedReferenceInDiff, Mo as isImpossibleEmptyStoredAttribute, Ms as refuseMalformedResourceEntriesForOrphan, Mt as withResourceDeadline, Mu as parseBootstrapMarker, N as readProtection, Na as deleteLeftInPlace, Nd as describeJsonParseFailure, Ni as secretNamePrintingBag, Nl as carriesSecretMask, Nn as changedReferencePath, No as carriesFetchableDynamicReference, Nr as inheritProducerRegions, Ns as repairMalformedResourceEntriesForReadOnly, Nt as IMPLICIT_DELETE_DEPENDENCIES, Nu as readBootstrapMarkerBody, O as recordedProtectionEvidence, Oa as setResolvedResourceTimeouts, Oc as hasNoCloudControlHandlers, Od as derivePartitionAndUrlSuffix, Oi as completedReplayEntries, Ol as physicalNameCopiesOf, On as hintSidesOf, Or as retiredAfterRollback, Os as refuseMalformedResourceEntriesForDeploy, Ou as buildDenyExternalAccessPolicy, Pa as deleteSkipReason, Pd as parseFailureDebugDetail, Pi as secretNamePrintingBags, Pl as provenPublicValue, Pn as changedReferenceReason, Po as isNamelessDynamicReferenceError, Pr as computeParameterTaint, Ps as unreadableResourceEntries, Pt as computeImplicitDeleteEdges, Pu as validateAssetBucketName, Qa as refuseUnreadableCdkCrossAccountRefs, Qc as liveMatchesUnresolvedTokenFrame, Qi as createPreDeleteFinalSnapshot, Ql as importableOutputs, Qn as undeclaredEmptyObservedKeys, Qr as bindingSkippedOutputs, Qs as malformedOutputsRefusalMessage, Qt as resolvePendingCloudControlRequests, Qu as getDockerCmd, Rc as canonicalCoordinates, Rd as hasPlainPrototype, Ri as storedSecretNameNeedles, Rl as recordNoEchoParameterFreshValue, Rn as mappingPairs, Ro as INTRINSIC_KEYS, Rr as WITHHELD_NAME_DISPLAY, Rs as refuseMalformedResourcePropertiesForDrift, Rt as readRefactorMarkerOnce, Ru as resolveDockerContextDirectory, S as pendingMovesRefusalMessage, Sc as findActionableSdkUnwired, Sd as uploadCfnTemplate, Si as noEchoAttributeNamesOf, Sl as isUncertifiedBaselineMaskPosition, Sn as DeploymentEventsReader, So as cfnRefValueFromPhysicalId, Sr as segmentCleanupOptions, Ss as malformedLocalResourceEntriesWarning, Su as buildAssetRedirectMap, T as findServiceTokenRefusals, Ta as CloudControlProvider, Tc as unwrittenCreateOnlyReplacement, Td as expectedOwnerParam, Ti as noEchoParameterNamesOf, Tl as identityKeyFor, Tn as findDestructiveChanges, To as refStateLookupFromResource, Tr as nameGenerationCarriedFrom, Ts as malformedScrubResourceEntriesRefusalMessage, Tu as rewriteTemplateAssetReferences, Uc as maskedLeafCoordinatesOf, Ud as displayAssemblyPath, Ui as withSecretPhysicalIdsMaskedInState, Ul as LockManager, Un as replayFailedOperations, Uo as withUnsettledProperties, Ur as secretSafeKeyDisplay, Us as hasReadableOrphans, Ut as updateRefactorMarker, Uu as redactedDockerCause, Vc as maskReadbackAtCoordinates, Vd as absoluteAssemblyPathEscape, Vl as WHOLE_DYNAMIC_REFERENCE_PATTERN, Vn as proposeRenames, Vo as unsettledItemsOf, Vr as secretBearing, Vs as repairMalformedResourcePropertiesForReadOnly, Vt as refuseRefactorMarker, Vu as describeDockerFailure, Wa as isWaitAbandonedError, Wc as noEchoCoordinatesOf, Wd as renderAssemblyPathEscape, Wi as ATOMIC_FINAL_SNAPSHOT_TYPES, Wl as isLockInfoExpired, Wn as replayRollback, Wo as withoutUnsettledProperties, Wr as carriedExportAliasExposure, Ws as malformedOrphansRefusalMessage, Wu as redactDockerArgvValues, Xa as resolveDynamicReferences, Xc as recordedNoEchoValuesOf, Xi as refusesFinalSnapshot, Xl as hasReadableExportSet, Xn as equalModuloMarkedMask, Xo as renderStatefulReason, Xr as collectPublishedOutputNames, Xs as malformedExportSourceWarning, Xu as isMalformedEnvKey, Yc as readsNoEchoSource, Yd as resolveBucketRegion, Yi as isFinalSnapshotError, Yl as exportNamesCarriedFrom, Yn as calculateResourceDrift, Yo as isStatefulRecreateTargetSync, Yr as collectDeclaredOutputNames, Ys as malformedExportNamesWarning, Yu as isDockerClientEnvKey, Za as producerLookupOver, Zc as valueAtCoordinate, Zi as unsupportedFinalSnapshotError, Zl as importableOutputKeys, Zn as equalModuloMask, Zr as isExportAliasCollision, Zs as malformedLocalOutputsWarning, Zt as pendingRequestCount, Zu as formatDockerLoginError, _ as listNestedTemplateRows, _a as applyCustomResourceResponseExpiration, _c as STATE_RESOURCES_MALFORMED, _d as ssmResolvedValueType, _i as cyan, _l as scrubResourceRecord, _n as loadJournaledOrphans, _r as findNestedStackTypeChanges, _s as refuseMalformedOrphansForOrphan, _u as withStackInstanceIdWithheld, a as scanActiveConsumers, ac as refuseDivergentRecordRegionForDestroy, ad as getDefaultStateBucketName, ai as withStackRecords, al as hasMaskableValues, an as recordDisplacedSkips, ao as AWS_CREDENTIAL_ENV_KEYS, as as withRetry, au as hasUnverifiableParameterRefusal, b as hasPendingMovesOut, ba as readsNoEchoDeleteValues, bc as hasReadableOutputs, bd as MIGRATE_TMP_PREFIX, bi as red, bl as DYNAMIC_REFERENCE_TOKEN_SCAN, bn as makeSiblingClaimReader, bo as parameterTypeMayLoseSecretIdentity, bs as unreadableOrphanRecords, bu as stringifyValue, c as inheritedProvenanceForChildDiff, cc as malformedStateRefusalMessage, cd as resolveApp, ci as holdsSupersededResources, cl as printingCorpusOf, cn as withNestedRevertRun, co as envCredentialsAreAssumedRole, cr as demoteSupersededOrphans, cs as declaresNoEcho, cu as timePhase, d as conditionInputsFrom, da as CC_BROKEN_REASON, dc as refuseMalformedResourcesForExport, dd as resolveSkipPrefix, di as supersededHeldByOtherTypeWarning, dl as shareLogOnlyValues, dn as withNestedStackContext, do as producerRegionsFromState, dr as planFailedOps, ds as malformedOrphanRecordsRefusalMessage, du as CrossPrefixScanCache, ed as runDockerStreaming, ei as DEFAULT_RESOURCE_WARN_AFTER_MS, el as redactForState, en as displacedOpClause, eo as assertFlagRoleArn, er as updatePartialReason, eu as orphansAfterRollback, f as parentSuppliedValues, fa as ProviderRegistry, fc as refuseMalformedState, fd as resolveStateBucketWithDefault, fi as supersededHolderOf, fl as unionOfSecretBags, fn as deleteJournaledOrphans, fo as regionLessSecretName, fr as recheckFailedPlan, fs as malformedOrphanRecordsWarning, fu as applyCrossPrefixScan, g as isAbsoluteAssetPath, ga as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, gc as withheldAccountClause, gd as warnDeprecatedNoPrefixCliFlag, gi as bold, gl as maskSecretsInText, gn as journaledOrphanLines, gr as withPreviousPolicies, gs as refuseMalformedOrphanRecordsForDestroy, gu as stackInstanceIdOf, h as findNestedTemplateTreeDefect, ha as wouldReturnToSdkProvider, hc as accountArgs, hd as stateBucketExistenceConfirmed, hl as maskSecretsInError, hn as isHandledOrphan, hr as resolveReplacementOldType, hs as refuseMalformedOrphanRecords, hu as isNotImplemented, i as mergeNoChangeOutputs, ic as STATE_REGION_DIVERGED, id as synthesisStatusMessage, il as createUnionSecretMasker, in as nestedChildStackName$1, io as sendableAssumeRoleCommand, ir as withCreateTokenLedger, is as describeTypeWithThrottleRetry, iu as hasReasonlessBaselineRefusal, j as isProtectionValueActive, ja as UNSPECIFIED_SKIP_REASON, jd as StageLoadError, ji as namingSecretsWithRecordedNoEcho, jl as recordNestedStackParameterExpressions, jn as withMovedTo, jo as getAccountInfo, jr as withNameGenerationReached, js as refuseMalformedResourceEntriesForImportSave, ju as getBootstrapMarkerKey, k as recordedProtectionNote, ka as slowCcOperationTimeoutMs, kd as refuseFailedLookups, ki as journaledOrphanPrintingBag, kn as movedToHint, ko as recordedOutputReferenceRegions, kr as retiredNameGenerationsAfter, ks as refuseMalformedResourceEntriesForDestroy, ku as assertAssetBucketRegion, l as makeCanonicalizePropertiesFn, lc as refuseMalformedResourcesForDeploy, ld as resolveAutoAssetStorage, li as isSupersededResourceRecord, ll as recordLogOnlyParameterValue, ln as collectNestedChildUnaddressed, lo as classifyRecordedSecretRegion, lr as isJournaledOrphan, ls as deployRefusesOrphanRowsReason, lu as rebuildClientForBucketRegion, m as childTemplateLoader, ma as isCustomResource, mc as JSON_LISTING_HOLE_VALUE, md as resolveUseCdkBootstrapAssets, mi as withoutSuperseded, ml as errorCauseChain, mn as dropFailedHint, mr as replacementNeverSwapped, ms as previewableOrphanRecords, mu as isAccessDenied, n as isSecretBearingReferenceString, nc as refuseMalformedOutputsForDestroy, nd as getDockerImageBySourceHash, nn as dropSettledNestedJournals, no as explicitRoleArnOrThrow, nr as ledgerForStack, ns as prefetchCreateOnlyPropertyPaths, nu as shouldRetainResource, o as inRunStackKey, oc as malformedRenderedContainersWarning, od as getLegacyStateBucketName, ol as literalSplitDelimitersOf, oo as applyCallerIdentityCredentials, or as planRollback, os as parameterInputsFor, ou as PhaseClock, p as readRecordedConditionVerdicts, pa as ccBrokenReason, pc as repairMalformedResourcesForReadOnly, pd as resolveStateBucketWithDefaultAndSource, pi as supersededResourcesOf, pl as createSecretMasker, pn as dropFailedCommands, pr as recordUnderIdIsNotOwn, ps as malformedOrphanRowsKeptWarning, pu as crossPrefixDeniedWarning, qa as isAlwaysLiveAttribute, qd as injectedAwsRegionValue, qi as ccRoutedInstanceTakesNoSnapshot, ql as acceptedCreateOnlyDropsOf, qn as settleUnsettledPrevious, qo as MULTI_REGION_RECREATE_BLOCKED_TYPES, qr as isWholeDynamicReferenceValue, qs as refuseMalformedOrphansForDestroy, qu as partitionSensitiveEnv, r as keptWholeReasonText, rc as repairMalformedOutputsForReadOnly, rd as Synthesizer, ri as destroyStackRecordsView, rl as carryLogOnlyValues, ro as isIamRoleArn, rs as templateResourceTypes, ru as stackInstanceIdCarriedFrom, s as crossStackOutputProvenanceSource, sc as malformedResourcesWarning, sd as loadCdkJson, si as deleteSupersededEntry, sl as logOnlyValueCount, sn as revertedNestedRowIds, so as callerEnvCredentials, sr as seedsDeleteFirstGuard, su as renderPhaseTimings, t as DeployEngine, tc as refuseMalformedOutputs, td as AssetManifestLoader, ti as maskingRetryLogger, tn as displacedPhysicalIdShown, to as assertSendableRoleArn, tu as orphansCarriedFrom, u as conditionFingerprint, uc as refuseMalformedResourcesForDestroy, ud as resolveCaptureObservedState, ui as supersededAfterRollback, ul as recordLogOnlyValue, un as getCurrentNestedStackContext, uo as classifyReplaySecretRegion, ur as isReplacementOrphan, us as isReadableOrphanRecord, uu as CrossPrefixReadError, v as renderNestedTemplateTreeDefect, va as customResourceResponseExpirationWarning, vc as UNREADABLE_RESOURCES_MAP_ROW, vd as CFN_TEMPLATE_BODY_LIMIT, vi as gray, vl as withPhysicalNameCopies, vn as sameJournaledOrphans, vo as coerceParameterTypedValue, vs as repairMalformedOrphanRecordsForReadOnly, vu as AssetPublisher, w as deferredServiceTokenWarning, wd as decodeListingKey, wi as noEchoExactEchoLeavesOf, wl as pathCrossesDottedKey, wn as constructPathOf$1, wo as lacksRecordedTableArn, wr as orphanNeedsIdentity, ws as malformedResourceEntriesWarning, wu as loadPublishableAssetManifest, x as pendingMovesOutOf, xa as isCustomResourceType$1, xc as hasReadableResources, xd as findLargeInlineResources, xi as yellow, xl as dynamicReferenceTokens, xn as planOrphanAdoption, xo as AWS_NO_VALUE, xs as isReadableResourceEntry, xu as WorkGraph, y as templateIdentity, ya as TemplateNoEchoReresolver, yc as displayLogicalId, yd as CFN_TEMPLATE_URL_LIMIT, yi as green, yn as makeForeignHolderScan, yo as isUnboundTemplateParameter, ys as unpreviewableOrphanRecords, yu as isSensitiveAttributeName, zc as isMarkedCoordinate, zd as nullPrototypeRecord, zi as extractDeploymentEventError, zl as recordProvenPublicExpression, zn as parseMappingFile, zr as displayTextOrWithheld, zs as refuseMalformedResourcePropertiesForExport, zt as refactorMarkerMovesOf, zu as describeDockerCapturedOutput } from "./deploy-engine-CJ363Jh0.js";
4
4
  import { $ as CdkdError, A as stripControlChars, B as retryClassificationText, Ct as setPasteableRunFlags, F as isAmbiguousOutcomeError, H as isMarkedNonRetryable, J as DynamicReferenceRegionAmbiguousError, R as isRetryableTransientError, St as withheldTargetClause, U as isThrottlingError, W as markNonRetryable, X as MalformedProducerRecordRefusalError, Y as IntrinsicResolutionRefusalError, Z as AccountIdUnavailableError, _ as ResourceUpdateNotSupportedError, a as normalizeAwsError, at as ResourceTimeoutError, bt as shellBoundedDisplay, dt as SHELL_ACTIVE_WHY, et as DeployCancelledError, g as PartialFailureError, gt as pasteableCommand, h as NestedStackChildDirectDestroyError, ht as isInertUnquoted, i as credentialFingerprint, it as ProvisioningError, j as stripForDisplay, k as escapeRegExp, l as withErrorHandling, lt as TIMEOUT_FLAG_RESOURCE_TYPE, n as ambientCredentialConfig, nt as LocalInvokeBuildError$1, o as formatError, ot as StateError, pt as commandHole, q as CrossAccountSecretRefusalError, r as clientDefaultsFor, s as handleError, st as SynthesisError, t as ambientClientDefaults, u as LocalStartServiceError, v as StackHasActiveImportsError, vt as plainOrDescribed, wt as setPasteableVerbFlags, xt as shellQuote, y as StackTerminationProtectionError, yt as quotedOrDescribed, z as isTransientServerError } from "./ambient-client-defaults-CPmXchp0.js";
5
5
  import { $t as forceQuitRecoveryClause, Dt as logicalIdShown, H as assertRegionMatch, M as VALUE_NOT_SHOWN, Qt as buildLockContentionMessage, U as isMarkedNotGone, V as RESOURCE_NOT_FOUND, Xt as UNREPRODUCIBLE_LOCK_CLAUSE, Zt as buildForceUnlockCommand, an as CUSTOM_RESOURCE_RESPONSE_PREFIX, bt as interruptWatchListenerCount, dn as setPasteableAwsProfile, en as formatLockExpiry, fn as withPasteableAwsProfile, kt as resourceTypeShown, ln as producerCoordinateKey, m as RESOLVED_PREVIOUS_PRINCIPAL_KEYS, mt as isAwsCliLiteral, nn as formatLockOwner, on as DEFAULT_STATE_PREFIX, p as IAM_PRINCIPAL_NAME, sn as injectiveKey, st as runDeleteAttempt, tn as formatLockOperation, un as producerRecordKey, vt as beginCommandInterruptScope, xt as isInterruptedWaitError, y as readRecordedPrincipals, yt as endCommandInterruptScope, z as remedyLogicalId } from "./update-removal-Bp0Y4QQ2.js";
6
6
  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-C8p6sQfr.js";
7
7
  import { a as getPreAssumeEnvCredentials, f as runInStackAwsScope, i as getAssumedRoleCredentials, n as awsClientDefaults, o as setAssumedRoleCredentials, p as formatAuthority, s as setAwsEndpointOverrideSource } from "./aws-client-defaults-BayGUTJ4.js";
8
- import { a as parseEcrRegistryHost, i as looksLikeEcrHostWithForeignSuffix, n as hasEcrRegistryHostLabels, t as ecrRegistryHostPattern } from "./ecr-uri-NwcD6PUe.js";
8
+ import { a as parseEcrRegistryHost, i as looksLikeEcrHostWithForeignSuffix, n as hasEcrRegistryHostLabels, t as ecrRegistryHostPattern } from "./ecr-uri-BUjy2DZJ.js";
9
9
  import { t as cdkdCacheHome } from "./cli.js";
10
10
  import { randomBytes, randomUUID } from "node:crypto";
11
11
  import { CopyObjectCommand, CreateBucketCommand, DeleteBucketCommand, DeleteObjectsCommand, GetBucketLocationCommand, GetObjectCommand, HeadBucketCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchBucket, NotFound, PutBucketEncryptionCommand, PutBucketPolicyCommand, PutBucketVersioningCommand, PutObjectCommand, S3Client, S3ServiceException } from "@aws-sdk/client-s3";
@@ -30,7 +30,7 @@ import * as readline$1 from "node:readline/promises";
30
30
  import readline from "node:readline/promises";
31
31
  import { Document, Pair, Scalar, YAMLError, YAMLMap, YAMLSeq, isScalar, parse, parseDocument, stringify, visit } from "yaml";
32
32
  import { emitKeypressEvents } from "node:readline";
33
- import { A2A_CONTAINER_PORT, A2A_PATH, AGENTCORE_A2A_PROTOCOL, AGENTCORE_AGUI_PROTOCOL, AGENTCORE_MCP_PROTOCOL, ConnectionRegistry, DynamicReferenceResolver, EcsTaskResolutionError, HOST_GATEWAY_MIN_VERSION, LocalInvokeBuildError, MCP_CONTAINER_PORT, MCP_PATH, a2aInvokeOnce, activateWorkloadAwsWiring, addAlbSpecificOptions, addAwsEndpointOptions, addCommonEcsServiceOptions, addImageOverrideOptions, addStartServiceSpecificOptions, albStrategy, applyWorkloadAwsWiringToEnv, architectureToPlatform, attachAuthorizers, attachLoopbackForwarder, attachStageContext, availableApiIdentifiers, awsEmulatorEnvName, bufferToBody, buildAgentCoreCodeImage, buildCognitoJwksUrl, buildConnectEvent, buildContainerImage, buildCorsConfigByApiId, buildCorsConfigFromCloudFrontChain, buildDisconnectEvent, buildJwksUrlFromIssuer, buildMessageEvent, buildMgmtEndpointEnvUrl, buildStageMap, canonicalizeImageOverrideKeys, classifySourceChange, containsDynamicReference, createAuthorizerCache, createFileWatcher, createFileWatcher as createFileWatcher$1, createJwksCache, createWatchPredicates, defaultCredentialsLoader, derivePseudoParametersFromRegion, describeAwsFailureForWarn, discoverRoutes, discoverWebSocketApis, downloadAndExtractS3Bundle, effectiveLoopbackPorts, enforceImageOverrideOrphans, ensureForwarderImage, filterRoutesByApiIdentifier, firstUsableRegion, getActiveWorkloadAwsWiring, getActiveWorkloadAwsWiring as getActiveWorkloadAwsWiring$1, getAwsEndpointOverride, groupRoutesByServer, handleConnectionsRequest, invokeAgentCore, invokeAgentCoreWs, keysNotFromTemplate, keysOverriddenBy, materializeLayerFromArn, mcpInvokeOnce, parseConnectionsPath, parseImageOverrideFlags, parseSelectionExpressionPath, pickAgentCoreCandidateStack, pickAgentCoreCandidateStack as pickAgentCoreCandidateStack$1, probeHostGatewaySupport, readMtlsMaterialsFromDisk, recordAssumedRole, resolveAgentCoreTarget, resolveAwsEmulatorOption, resolveDynamicReferencesInEnv, resolveEnvVars, resolveHostDefaultCredentials, resolveHostGatewayExtraHosts, resolveImageOverrides, resolveRuntimeCodeMountPath, resolveRuntimeFileExtension, resolveRuntimeImage, resolveSingleTarget, resolveWatchConfig, runEcsServiceEmulator, runImageOverrideBuilds, signAgentCoreInvocation, startApiServer, substituteImagePlaceholders, tryResolveImageFnJoin, verifyJwtViaDiscovery, waitForAgentCorePing, withoutKeys } from "cdk-local/internal";
33
+ import { A2A_CONTAINER_PORT, A2A_PATH, AGENTCORE_A2A_PROTOCOL, AGENTCORE_AGUI_PROTOCOL, AGENTCORE_MCP_PROTOCOL, ConnectionRegistry, DynamicReferenceResolver, EcsTaskResolutionError, HOST_GATEWAY_MIN_VERSION, LocalInvokeBuildError, MCP_CONTAINER_PORT, MCP_PATH, a2aInvokeOnce, activateWorkloadAwsWiring, addAlbSpecificOptions, addAwsEndpointOptions, addCommonEcsServiceOptions, addImageOverrideOptions, addStartServiceSpecificOptions, albStrategy, applyWorkloadAwsWiringToEnv, architectureToPlatform, attachAuthorizers, attachLoopbackForwarder, attachStageContext, availableApiIdentifiers, awaitLoopbackForwarderStatus, awsEmulatorEnvName, bufferToBody, buildAgentCoreCodeImage, buildCognitoJwksUrl, buildConnectEvent, buildContainerImage, buildCorsConfigByApiId, buildCorsConfigFromCloudFrontChain, buildDisconnectEvent, buildJwksUrlFromIssuer, buildMessageEvent, buildMgmtEndpointEnvUrl, buildNamespaceOwnerForwarderDockerArgs, buildStageMap, canonicalizeImageOverrideKeys, classifySourceChange, containsDynamicReference, createAuthorizerCache, createFileWatcher, createFileWatcher as createFileWatcher$1, createJwksCache, createWatchPredicates, defaultCredentialsLoader, derivePseudoParametersFromRegion, describeAwsFailureForWarn, describeForwarderFailure, discoverRoutes, discoverWebSocketApis, downloadAndExtractS3Bundle, effectiveLoopbackPorts, enforceImageOverrideOrphans, ensureForwarderImage, filterRoutesByApiIdentifier, firstUsableRegion, getActiveWorkloadAwsWiring, getActiveWorkloadAwsWiring as getActiveWorkloadAwsWiring$1, getAwsEndpointOverride, groupRoutesByServer, handleConnectionsRequest, invokeAgentCore, invokeAgentCoreWs, keysNotFromTemplate, keysOverriddenBy, materializeLayerFromArn, mcpInvokeOnce, parseConnectionsPath, parseImageOverrideFlags, parseSelectionExpressionPath, pickAgentCoreCandidateStack, pickAgentCoreCandidateStack as pickAgentCoreCandidateStack$1, probeHostGatewaySupport, readMtlsMaterialsFromDisk, recordAssumedRole, resolveAgentCoreTarget, resolveAwsEmulatorOption, resolveDynamicReferencesInEnv, resolveEnvVars, resolveHostDefaultCredentials, resolveHostGatewayExtraHosts, resolveImageOverrides, resolveRuntimeCodeMountPath, resolveRuntimeFileExtension, resolveRuntimeImage, resolveSingleTarget, resolveWatchConfig, runEcsServiceEmulator, runImageOverrideBuilds, signAgentCoreInvocation, startApiServer, substituteImagePlaceholders, tryResolveImageFnJoin, verifyJwtViaDiscovery, waitForAgentCorePing, withoutKeys } from "cdk-local/internal";
34
34
  import { mkdtemp, rm, writeFile } from "node:fs/promises";
35
35
  import { createLocalStartAgentCoreCommand, createLocalStartCloudFrontCommand, createLocalStartMicrovmCommand, createLocalStartWebFunctionCommand, createLocalStateProvider, getEmbedConfig, isCfnFlagPresent, listTargets, rejectExplicitCfnStackWithMultipleStacks, resolveCfnFallbackRegion, setEmbedConfig, substituteAgainstState, substituteAgainstStateAsync, substituteEnvVarsFromState, substituteEnvVarsFromStateAsync } from "cdk-local";
36
36
  import { createServer } from "node:net";
@@ -1857,7 +1857,7 @@ function collectCrossStackRefs(node, onRef, unconditional) {
1857
1857
  // src/provisioning/register-providers.ts
1858
1858
  let providerClasses;
1859
1859
  function loadProviderClasses() {
1860
- providerClasses ??= import("./provider-classes-CHzimhh6.js");
1860
+ providerClasses ??= import("./provider-classes-XzlF2NN6.js");
1861
1861
  return providerClasses;
1862
1862
  }
1863
1863
  function registerAllProviders(registry, classes) {
@@ -25205,7 +25205,7 @@ function loopbackPortsFor(wiring, env, network) {
25205
25205
  }
25206
25206
  async function prepareLocalLoopbackForwarder(wiring) {
25207
25207
  try {
25208
- await ensureForwarderImage();
25208
+ await ensureForwarderImage(wiring.skipPull === true);
25209
25209
  } catch (err) {
25210
25210
  if (wiring.mode === "emulator") throw new CdkdError(`--aws-emulator: the loopback forwarder image could not be pulled: ${err.message}`, "LOCAL_AWS_EMULATOR_FORWARDER_PULL_FAILED");
25211
25211
  }
@@ -25599,7 +25599,7 @@ function createLocalStateProvider$1(options, cdkdStackName, synthRegion) {
25599
25599
  }
25600
25600
 
25601
25601
  // src/local/docker-runner.ts
25602
- const execFileAsync$6 = promisify(execFile);
25602
+ const execFileAsync$7 = promisify(execFile);
25603
25603
  var DockerRunnerError = class DockerRunnerError extends Error {
25604
25604
  constructor(message) {
25605
25605
  super(message);
@@ -25687,7 +25687,7 @@ async function runDetachedContainer(opts) {
25687
25687
  if (refusal !== void 0) throw new DockerRunnerError(refusal);
25688
25688
  warnFinchArgvExposure(forwardedKeys);
25689
25689
  try {
25690
- const { stdout } = await execFileAsync$6(getDockerCmd(), args, {
25690
+ const { stdout } = await execFileAsync$7(getDockerCmd(), args, {
25691
25691
  maxBuffer: 10485760,
25692
25692
  env: dockerSpawnEnvWithSensitive(passthroughEnv)
25693
25693
  });
@@ -25756,7 +25756,7 @@ async function killContainer(containerId, timeoutMs = 1e4) {
25756
25756
  if (!containerId) return;
25757
25757
  const args = ["kill", containerId];
25758
25758
  try {
25759
- await execFileAsync$6(getDockerCmd(), args, { timeout: timeoutMs });
25759
+ await execFileAsync$7(getDockerCmd(), args, { timeout: timeoutMs });
25760
25760
  } catch (error) {
25761
25761
  getLogger().child("docker").debug(safeMsg`docker kill ${containerId} failed: ${describeDockerFailure(error, args)}`);
25762
25762
  }
@@ -25790,7 +25790,7 @@ async function removeContainer(containerId) {
25790
25790
  containerId
25791
25791
  ];
25792
25792
  try {
25793
- await execFileAsync$6(getDockerCmd(), args);
25793
+ await execFileAsync$7(getDockerCmd(), args);
25794
25794
  logger.debug(`Removed container ${containerId}`);
25795
25795
  } catch (error) {
25796
25796
  logger.debug(`docker rm -f ${containerId} failed: ${describeDockerFailure(error, args)}`);
@@ -25804,7 +25804,7 @@ async function ensureDockerAvailable() {
25804
25804
  "{{.Server.Version}}"
25805
25805
  ];
25806
25806
  try {
25807
- await execFileAsync$6(cmd, args);
25807
+ await execFileAsync$7(cmd, args);
25808
25808
  } catch (error) {
25809
25809
  if (error.code === "ENOENT") throw new DockerRunnerError(`${cmd} is not installed or not on PATH. cdkd local invoke needs Docker (or a compatible CLI specified via CDK_DOCKER) — install it and retry.`);
25810
25810
  throw new DockerRunnerError(`${cmd} daemon is not reachable: ${describeDockerFailure(error, args)}. Start Docker Desktop / the docker daemon and retry.`);
@@ -29565,7 +29565,7 @@ function createLocalStartApiCommand() {
29565
29565
  }
29566
29566
 
29567
29567
  // src/local/ecs-network.ts
29568
- const execFileAsync$5 = promisify(execFile);
29568
+ const execFileAsync$6 = promisify(execFile);
29569
29569
  const METADATA_ENDPOINT_IMAGE = "amazon/amazon-ecs-local-container-endpoints:latest-amd64";
29570
29570
  const METADATA_ENDPOINT_IP = "169.254.170.2";
29571
29571
  const TASK_ROLE_CREDENTIALS_PATH = "/creds";
@@ -29592,7 +29592,7 @@ async function createNetworkAndSidecar(args) {
29592
29592
  networkName
29593
29593
  ];
29594
29594
  try {
29595
- await execFileAsync$5(getDockerCmd(), createArgs);
29595
+ await execFileAsync$6(getDockerCmd(), createArgs);
29596
29596
  } catch (err) {
29597
29597
  throw new DockerRunnerError(`docker network create failed: ${describeDockerFailure(err, createArgs)}. Hint: another cdkd run may already own subnet ${cidr}; wait for it to finish, or remove the leftover network with \`docker network ls\` + \`docker network rm\`. \`cdkd local run-task\` always uses 169.254.170.0/24, where AWS SDKs read task-role credentials, as does a \`cdkd local start-service\` / \`start-alb\` run with \`--assume-role\`, so only one of them can be active at a time.`);
29598
29598
  }
@@ -29621,7 +29621,7 @@ async function createNetworkAndSidecar(args) {
29621
29621
  warnFinchArgvExposure(Object.keys(sidecarSensitiveEnv));
29622
29622
  logger.info(`Starting ECS local-container-endpoints sidecar at ${sidecarIp}...`);
29623
29623
  try {
29624
- const { stdout } = await execFileAsync$5(getDockerCmd(), sidecarArgs, {
29624
+ const { stdout } = await execFileAsync$6(getDockerCmd(), sidecarArgs, {
29625
29625
  maxBuffer: 10485760,
29626
29626
  env: dockerSpawnEnvWithSensitive(sidecarSensitiveEnv)
29627
29627
  });
@@ -29683,7 +29683,7 @@ async function destroyNetworkOnly(networkName) {
29683
29683
  networkName
29684
29684
  ];
29685
29685
  try {
29686
- await execFileAsync$5(getDockerCmd(), rmArgs);
29686
+ await execFileAsync$6(getDockerCmd(), rmArgs);
29687
29687
  logger.debug(`Removed docker network ${networkName}`);
29688
29688
  } catch (err) {
29689
29689
  logger.debug(`docker network rm ${networkName} failed: ${describeDockerFailure(err, rmArgs)}`);
@@ -29801,6 +29801,7 @@ function createEcsRunState() {
29801
29801
  network: void 0,
29802
29802
  dockerVolumeNames: [],
29803
29803
  startedContainers: [],
29804
+ forwarders: [],
29804
29805
  logStreams: [],
29805
29806
  closing: false,
29806
29807
  inFlight: void 0
@@ -29815,7 +29816,7 @@ var EcsTaskInterruptedError = class EcsTaskInterruptedError extends EcsTaskRunne
29815
29816
  };
29816
29817
 
29817
29818
  // src/local/ecs-task-runner/cleanup.ts
29818
- const execFileAsync$4 = promisify(execFile);
29819
+ const execFileAsync$5 = promisify(execFile);
29819
29820
  async function runAfterContainersStopped(hook, logger) {
29820
29821
  if (!hook) return;
29821
29822
  try {
@@ -29888,6 +29889,8 @@ async function cleanupEcsRun(state, options) {
29888
29889
  logger.debug(`log stream stop failed: ${describeAwsFailure(err).detail}`);
29889
29890
  }
29890
29891
  await runAfterContainersStopped(options.afterContainersStopped, logger);
29892
+ await removeForwarders(state.forwarders.filter((f) => !f.joined), logger);
29893
+ state.forwarders = state.forwarders.filter((f) => f.joined);
29891
29894
  } else {
29892
29895
  for (const c of state.startedContainers) {
29893
29896
  const stopArgs = dockerStopArgs(c.id, CLEANUP_STOP_GRACE_SECONDS);
@@ -29915,6 +29918,8 @@ async function cleanupEcsRun(state, options) {
29915
29918
  ])}`);
29916
29919
  }
29917
29920
  state.startedContainers = [];
29921
+ await removeForwarders(state.forwarders, logger);
29922
+ state.forwarders = [];
29918
29923
  }
29919
29924
  if (state.network && !state.network.ownedByCaller) await destroyTaskNetwork(state.network);
29920
29925
  state.network = void 0;
@@ -29925,7 +29930,7 @@ async function cleanupEcsRun(state, options) {
29925
29930
  v
29926
29931
  ];
29927
29932
  try {
29928
- await execFileAsync$4(getDockerCmd(), rmArgs);
29933
+ await execFileAsync$5(getDockerCmd(), rmArgs);
29929
29934
  logger.debug(`Removed docker volume ${v}`);
29930
29935
  } catch (err) {
29931
29936
  logger.debug(`docker volume rm ${v} failed: ${describeDockerFailure(err, rmArgs)}`);
@@ -29933,6 +29938,17 @@ async function cleanupEcsRun(state, options) {
29933
29938
  }
29934
29939
  state.dockerVolumeNames = [];
29935
29940
  }
29941
+ async function removeForwarders(forwarders, logger) {
29942
+ for (const f of forwarders) try {
29943
+ await removeContainer(f.id);
29944
+ } catch (err) {
29945
+ logger.debug(safeMsg`docker rm -f ${f.id} failed: ${describeDockerFailure(err, [
29946
+ "rm",
29947
+ "-f",
29948
+ f.id
29949
+ ])}`);
29950
+ }
29951
+ }
29936
29952
  const CLEANUP_STOP_GRACE_SECONDS = 10;
29937
29953
  function dockerStopArgs(containerId, graceSeconds) {
29938
29954
  return [
@@ -29944,12 +29960,12 @@ function dockerStopArgs(containerId, graceSeconds) {
29944
29960
  }
29945
29961
  async function stopContainer(containerId, graceSeconds) {
29946
29962
  try {
29947
- await execFileAsync$4(getDockerCmd(), dockerStopArgs(containerId, graceSeconds));
29963
+ await execFileAsync$5(getDockerCmd(), dockerStopArgs(containerId, graceSeconds));
29948
29964
  } catch {}
29949
29965
  }
29950
29966
 
29951
29967
  // src/local/ecs-task-runner/containers.ts
29952
- const execFileAsync$3 = promisify(execFile);
29968
+ const execFileAsync$4 = promisify(execFile);
29953
29969
  function buildDependencyGraph(containers) {
29954
29970
  const g = new graphlib.Graph({ directed: true });
29955
29971
  for (const c of containers) g.setNode(c.name);
@@ -30013,7 +30029,7 @@ async function waitForContainerHealthy(containerId, displayName) {
30013
30029
  ];
30014
30030
  while (Date.now() < deadline) {
30015
30031
  try {
30016
- const { stdout } = await execFileAsync$3(getDockerCmd(), inspectArgs);
30032
+ const { stdout } = await execFileAsync$4(getDockerCmd(), inspectArgs);
30017
30033
  const status = stdout.trim();
30018
30034
  if (status !== lastStatus) {
30019
30035
  logger.debug(`Container '${displayName}' health status: ${status}`);
@@ -30032,7 +30048,7 @@ async function waitForContainerHealthy(containerId, displayName) {
30032
30048
  async function waitForContainerExit(containerId) {
30033
30049
  const waitArgs = ["wait", containerId];
30034
30050
  try {
30035
- const { stdout } = await execFileAsync$3(getDockerCmd(), waitArgs, { maxBuffer: 1048576 });
30051
+ const { stdout } = await execFileAsync$4(getDockerCmd(), waitArgs, { maxBuffer: 1048576 });
30036
30052
  const code = Number.parseInt(stdout.trim(), 10);
30037
30053
  return Number.isFinite(code) ? code : 1;
30038
30054
  } catch (err) {
@@ -30111,40 +30127,56 @@ function groupSecretsByContainer(resolved) {
30111
30127
  function buildDockerRunArgs(opts) {
30112
30128
  const { task, container, image, network, volumeByName, secrets, containerHost, roleArn } = opts;
30113
30129
  const args = ["run", "-d"];
30130
+ const joinArgs = ["run", "-d"];
30131
+ const both = (...xs) => {
30132
+ args.push(...xs);
30133
+ joinArgs.push(...xs);
30134
+ };
30114
30135
  const dockerName = `cdkd-local-${task.family}-${container.name}-${randHex(3)}`;
30115
- args.push("--name", dockerName);
30136
+ const forwarderName = `${dockerName}-awsfwd`;
30137
+ const ownerAliases = [container.name];
30138
+ const ownerPublish = [];
30139
+ const ownerAddHosts = [];
30140
+ const ownerLinks = [];
30141
+ both("--name", dockerName);
30116
30142
  args.push("--network", network);
30143
+ joinArgs.push("--network", `container:${forwarderName}`);
30117
30144
  args.push("--network-alias", container.name);
30118
30145
  if (opts.networkAliases && opts.networkAliases.length > 0) {
30119
30146
  const seen = /* @__PURE__ */ new Set([container.name]);
30120
30147
  for (const a of opts.networkAliases) if (!seen.has(a)) {
30121
30148
  args.push("--network-alias", a);
30149
+ ownerAliases.push(a);
30122
30150
  seen.add(a);
30123
30151
  }
30124
30152
  }
30125
- if (opts.addHostFlags && opts.addHostFlags.length > 0) for (const f of opts.addHostFlags) args.push(f);
30126
- if (opts.platformOverride) args.push("--platform", opts.platformOverride);
30127
- else if (task.runtimePlatform) args.push("--platform", task.runtimePlatform.cpuArchitecture === "ARM64" ? "linux/arm64" : "linux/amd64");
30153
+ if (opts.addHostFlags && opts.addHostFlags.length > 0) {
30154
+ for (const f of opts.addHostFlags) args.push(f);
30155
+ for (let i = 0; i + 1 < opts.addHostFlags.length; i++) if (opts.addHostFlags[i] === "--add-host") ownerAddHosts.push(opts.addHostFlags[++i]);
30156
+ }
30157
+ if (opts.platformOverride) both("--platform", opts.platformOverride);
30158
+ else if (task.runtimePlatform) both("--platform", task.runtimePlatform.cpuArchitecture === "ARM64" ? "linux/arm64" : "linux/amd64");
30128
30159
  if (!opts.skipHostPortPublish) for (const pm of container.portMappings) {
30129
- const hostPort = pm.hostPort ?? pm.containerPort;
30130
- args.push("-p", `${containerHost}:${hostPort}:${pm.containerPort}/${pm.protocol}`);
30160
+ const publish = `${containerHost}:${pm.hostPort ?? pm.containerPort}:${pm.containerPort}/${pm.protocol}`;
30161
+ args.push("-p", publish);
30162
+ ownerPublish.push(publish);
30131
30163
  }
30132
30164
  const wiring = getActiveWorkloadAwsWiring();
30133
30165
  const profileCredentialsFile = wiring?.mode === "emulator" ? void 0 : opts.profileCredentialsFile;
30134
- if (profileCredentialsFile) args.push("-v", `${profileCredentialsFile.hostPath}:${profileCredentialsFile.containerPath}:ro`);
30135
- for (const m of wiring?.mounts ?? []) if (!container.mountPoints.some((mp) => mp.containerPath === m.containerPath)) args.push("-v", `${m.hostPath}:${m.containerPath}:ro`);
30166
+ if (profileCredentialsFile) both("-v", `${profileCredentialsFile.hostPath}:${profileCredentialsFile.containerPath}:ro`);
30167
+ for (const m of wiring?.mounts ?? []) if (!container.mountPoints.some((mp) => mp.containerPath === m.containerPath)) both("-v", `${m.hostPath}:${m.containerPath}:ro`);
30136
30168
  for (const mp of container.mountPoints) {
30137
30169
  const v = volumeByName.get(mp.sourceVolume);
30138
30170
  if (!v) continue;
30139
30171
  if (v.kind === "host") {
30140
30172
  if (v.hostPath) {
30141
30173
  const ro = mp.readOnly ? ":ro" : "";
30142
- args.push("-v", `${v.hostPath}:${mp.containerPath}${ro}`);
30143
- } else args.push("-v", mp.containerPath);
30174
+ both("-v", `${v.hostPath}:${mp.containerPath}${ro}`);
30175
+ } else both("-v", mp.containerPath);
30144
30176
  } else {
30145
30177
  const name = v.dockerVolumeName ?? v.name;
30146
30178
  const ro = mp.readOnly ? ":ro" : "";
30147
- args.push("-v", `${name}:${mp.containerPath}${ro}`);
30179
+ both("-v", `${name}:${mp.containerPath}${ro}`);
30148
30180
  }
30149
30181
  }
30150
30182
  let finalEnv = {};
@@ -30179,32 +30211,48 @@ function buildDockerRunArgs(opts) {
30179
30211
  ...opts.plaintextEnvKeys ?? []
30180
30212
  ]);
30181
30213
  const { flags, sensitiveEnv, collisions } = partitionSensitiveEnv(finalEnv, sensitiveKeys, { subject: `Container '${container.name}'` });
30182
- args.push(...flags);
30183
- if (container.user) args.push("--user", container.user);
30184
- if (container.privileged) args.push("--privileged");
30185
- if (container.readonlyRootFilesystem) args.push("--read-only");
30186
- if (container.workingDirectory) args.push("--workdir", container.workingDirectory);
30187
- for (const u of container.ulimits) args.push("--ulimit", `${u.name}=${u.softLimit}:${u.hardLimit}`);
30188
- for (const link of container.links) args.push("--link", link);
30214
+ both(...flags);
30215
+ if (container.user) both("--user", container.user);
30216
+ if (container.privileged) both("--privileged");
30217
+ if (container.readonlyRootFilesystem) both("--read-only");
30218
+ if (container.workingDirectory) both("--workdir", container.workingDirectory);
30219
+ for (const u of container.ulimits) both("--ulimit", `${u.name}=${u.softLimit}:${u.hardLimit}`);
30220
+ for (const link of container.links) {
30221
+ args.push("--link", link);
30222
+ ownerLinks.push(link);
30223
+ }
30189
30224
  if (container.healthCheck) {
30190
- args.push("--health-cmd", shellJoin(container.healthCheck.command));
30191
- if (container.healthCheck.interval !== void 0) args.push("--health-interval", `${container.healthCheck.interval}s`);
30192
- if (container.healthCheck.timeout !== void 0) args.push("--health-timeout", `${container.healthCheck.timeout}s`);
30193
- if (container.healthCheck.retries !== void 0) args.push("--health-retries", String(container.healthCheck.retries));
30194
- if (container.healthCheck.startPeriod !== void 0) args.push("--health-start-period", `${container.healthCheck.startPeriod}s`);
30225
+ both("--health-cmd", shellJoin(container.healthCheck.command));
30226
+ if (container.healthCheck.interval !== void 0) both("--health-interval", `${container.healthCheck.interval}s`);
30227
+ if (container.healthCheck.timeout !== void 0) both("--health-timeout", `${container.healthCheck.timeout}s`);
30228
+ if (container.healthCheck.retries !== void 0) both("--health-retries", String(container.healthCheck.retries));
30229
+ if (container.healthCheck.startPeriod !== void 0) both("--health-start-period", `${container.healthCheck.startPeriod}s`);
30195
30230
  }
30196
30231
  let entryPointTail = [];
30197
30232
  if (container.entryPoint && container.entryPoint.length > 0) {
30198
- args.push("--entrypoint", container.entryPoint[0]);
30233
+ both("--entrypoint", container.entryPoint[0]);
30199
30234
  entryPointTail = container.entryPoint.slice(1);
30200
30235
  }
30201
- args.push(image, ...entryPointTail, ...container.command ?? []);
30236
+ both(image, ...entryPointTail, ...container.command ?? []);
30237
+ const loopbackPorts = wiring ? effectiveLoopbackPorts(finalEnv, wiring) : [];
30202
30238
  return {
30203
30239
  args,
30204
30240
  dockerName,
30205
30241
  sensitiveEnv,
30206
30242
  collisions,
30207
- loopbackPorts: wiring ? effectiveLoopbackPorts(finalEnv, wiring) : []
30243
+ loopbackPorts,
30244
+ ...loopbackPorts.length > 0 && { forwarder: {
30245
+ name: forwarderName,
30246
+ container: dockerName,
30247
+ namespace: {
30248
+ network,
30249
+ networkAliases: ownerAliases,
30250
+ publish: ownerPublish,
30251
+ addHosts: ownerAddHosts,
30252
+ links: ownerLinks
30253
+ },
30254
+ args: joinArgs
30255
+ } }
30208
30256
  };
30209
30257
  }
30210
30258
  function applyOverrideMap(acc, map) {
@@ -30220,7 +30268,7 @@ function shellJoin(parts) {
30220
30268
  }
30221
30269
 
30222
30270
  // src/local/ecs-task-runner/images.ts
30223
- const execFileAsync$2 = promisify(execFile);
30271
+ const execFileAsync$3 = promisify(execFile);
30224
30272
  async function prepareImages(task, out, options) {
30225
30273
  const logger = getLogger().child("ecs-runner");
30226
30274
  for (const container of task.containers) {
@@ -30299,7 +30347,7 @@ async function realizeDockerVolumes(volumes, state) {
30299
30347
  args.push(dockerVolumeName);
30300
30348
  await runDockerStep(state, async () => {
30301
30349
  try {
30302
- await execFileAsync$2(getDockerCmd(), args);
30350
+ await execFileAsync$3(getDockerCmd(), args);
30303
30351
  } catch (err) {
30304
30352
  throw new DockerRunnerError(`docker volume create failed for '${v.name}': ${describeDockerFailure(err, args)}`);
30305
30353
  }
@@ -30307,7 +30355,7 @@ async function realizeDockerVolumes(volumes, state) {
30307
30355
  state.dockerVolumeNames.push(dockerVolumeName);
30308
30356
  logger.debug(`Created docker volume ${dockerVolumeName} for task volume '${v.name}'`);
30309
30357
  }, async () => {
30310
- await execFileAsync$2(getDockerCmd(), [
30358
+ await execFileAsync$3(getDockerCmd(), [
30311
30359
  "volume",
30312
30360
  "rm",
30313
30361
  "-f",
@@ -30327,11 +30375,91 @@ async function realizeDockerVolumes(volumes, state) {
30327
30375
  return out;
30328
30376
  }
30329
30377
 
30378
+ // src/local/ecs-task-runner/loopback-forwarder.ts
30379
+ const execFileAsync$2 = promisify(execFile);
30380
+ async function startNamespaceForwarder(state, forwarder, containerName, ports, wiring) {
30381
+ const label = wiring.mode === "emulator" ? `--aws-emulator ${wiring.emulatorEndpoint?.url ?? ""}` : "The AWS endpoint override (AWS_ENDPOINT_URL*)";
30382
+ await prepareLocalLoopbackForwarder(wiring);
30383
+ const { name } = forwarder;
30384
+ const args = buildNamespaceOwnerForwarderDockerArgs({
30385
+ name,
30386
+ namespace: forwarder.namespace,
30387
+ ports,
30388
+ probe: wiring.probeHealth ? "health" : "tcp",
30389
+ ...wiring.caHostPath ? { caHostPath: wiring.caHostPath } : {},
30390
+ ...wiring.skipPull ? { skipPull: true } : {}
30391
+ });
30392
+ getLogger().child("ecs-runner").debug(`Starting loopback forwarder ${name} for ports ${ports.join(",")}`);
30393
+ try {
30394
+ await runDockerStep(state, () => runForwarderContainer(args, containerName), (id) => {
30395
+ state.forwarders.push({
30396
+ name,
30397
+ id,
30398
+ container: forwarder.container,
30399
+ joined: false
30400
+ });
30401
+ }, () => removeContainer(name), namedSubject([{
30402
+ kind: "container",
30403
+ name,
30404
+ rm: "docker rm -f",
30405
+ list: "docker ps -a"
30406
+ }]));
30407
+ } catch (err) {
30408
+ if (state.closing) throw interruptedError();
30409
+ await removeNamespaceForwarder(state, name);
30410
+ if (wiring.mode === "emulator") throw err;
30411
+ return failed(state, wiring, `start:${containerName}`, `${label}: ${err.message}`);
30412
+ }
30413
+ let result;
30414
+ try {
30415
+ result = await awaitLoopbackForwarderStatus(name);
30416
+ } catch (err) {
30417
+ if (state.closing) throw interruptedError();
30418
+ await removeNamespaceForwarder(state, name);
30419
+ return failed(state, wiring, `start:${containerName}`, `${label}: ${err.message}`);
30420
+ }
30421
+ if (state.closing) throw interruptedError();
30422
+ if (result.ok) return true;
30423
+ await removeNamespaceForwarder(state, name);
30424
+ return failed(state, wiring, String(result.failedPort ?? 0), describeForwarderFailure(result, label));
30425
+ }
30426
+ async function runForwarderContainer(args, containerName) {
30427
+ try {
30428
+ return (await execFileAsync$2(getDockerCmd(), args)).stdout.trim();
30429
+ } catch (err) {
30430
+ throw new DockerRunnerError(`docker run failed for container '${containerName}' (its loopback AWS forwarder, which holds the container's network aliases and published ports): ${describeDockerFailure(err, args)}`);
30431
+ }
30432
+ }
30433
+ async function removeNamespaceForwarder(state, name) {
30434
+ await removeContainer(name);
30435
+ state.forwarders = state.forwarders.filter((f) => f.name !== name);
30436
+ }
30437
+ function failed(state, wiring, key, message) {
30438
+ if (wiring.mode === "emulator") throw new CdkdError(message, "LOCAL_AWS_EMULATOR_FORWARDER_FAILED");
30439
+ state.forwarderWarnings ??= /* @__PURE__ */ new Set();
30440
+ if (!state.forwarderWarnings.has(key)) {
30441
+ state.forwarderWarnings.add(key);
30442
+ getLogger().warn(message);
30443
+ }
30444
+ return false;
30445
+ }
30446
+
30330
30447
  // src/local/ecs-task-runner.ts
30331
30448
  const execFileAsync$1 = promisify(execFile);
30332
30449
  function mergeHostGatewayAddHostFlags(addHostFlags, hostGatewayExtraHosts) {
30333
30450
  return [...addHostFlags ?? [], ...(hostGatewayExtraHosts ?? []).flatMap((h) => ["--add-host", `${h.host}:${h.ip}`])];
30334
30451
  }
30452
+ function loopbackPortClash(container, loopbackPorts, joined) {
30453
+ if (!joined) return void 0;
30454
+ return container.portMappings.find((pm) => pm.protocol !== "udp" && loopbackPorts.includes(pm.containerPort))?.containerPort;
30455
+ }
30456
+ function describeDetachedForwarders(state) {
30457
+ const joined = state.forwarders.filter((f) => f.joined);
30458
+ if (joined.length === 0) return void 0;
30459
+ const containers = joined.map((f) => f.container).join(", ");
30460
+ const forwarders = joined.map((f) => f.name).join(", ");
30461
+ return safeMsg`Under the loopback AWS endpoint, these task containers share the network of a forwarder container, so that filter does not list them: ${containers}. Remove them before their forwarders: ${forwarders}.`;
30462
+ }
30335
30463
  async function runEcsTask(task, options, state) {
30336
30464
  const logger = getLogger();
30337
30465
  if (task.containers.length === 0) throw new EcsTaskRunnerError(`Task '${task.taskDefinitionLogicalId}' has no containers — nothing to run.`);
@@ -30433,6 +30561,7 @@ async function runEcsTask(task, options, state) {
30433
30561
  const mergedAddHostFlags = mergeHostGatewayAddHostFlags(options.addHostFlags, options.hostGatewayExtraHosts);
30434
30562
  const dockerCmds = /* @__PURE__ */ new Map();
30435
30563
  const dockerLoopbackPorts = /* @__PURE__ */ new Map();
30564
+ const dockerForwarders = /* @__PURE__ */ new Map();
30436
30565
  const dockerNames = /* @__PURE__ */ new Map();
30437
30566
  const dockerEnvs = /* @__PURE__ */ new Map();
30438
30567
  for (const container of task.containers) {
@@ -30463,6 +30592,7 @@ async function runEcsTask(task, options, state) {
30463
30592
  });
30464
30593
  dockerCmds.set(container.name, built.args);
30465
30594
  dockerLoopbackPorts.set(container.name, built.loopbackPorts);
30595
+ if (built.forwarder) dockerForwarders.set(container.name, built.forwarder);
30466
30596
  dockerNames.set(container.name, built.dockerName);
30467
30597
  dockerEnvs.set(container.name, built.sensitiveEnv);
30468
30598
  if (built.collisions.length > 0) logger.warn(`Container '${container.name}': secret(s) ${built.collisions.map((k) => JSON.stringify(k)).join(", ")} share a name with a variable the container client reads (docker, or the CDK_DOCKER binary) or have a malformed name (empty, or containing '=' / NUL), and were NOT passed to the container at all (a colliding name would hijack that client; a malformed name cannot form a valid environment variable). Rename the secret if the container needs it.`);
@@ -30472,11 +30602,18 @@ async function runEcsTask(task, options, state) {
30472
30602
  const container = task.containers.find((c) => c.name === containerName);
30473
30603
  await awaitDependencies(container, startedByName);
30474
30604
  if (state.closing) throw interruptedError();
30475
- const args = dockerCmds.get(container.name);
30605
+ let args = dockerCmds.get(container.name);
30476
30606
  const dockerName = dockerNames.get(container.name);
30477
30607
  const loopbackPorts = dockerLoopbackPorts.get(container.name) ?? [];
30478
30608
  const forwarderWiring = getActiveWorkloadAwsWiring$1();
30479
- if (loopbackPorts.length > 0 && forwarderWiring) await prepareLocalLoopbackForwarder(forwarderWiring);
30609
+ const forwarder = dockerForwarders.get(container.name);
30610
+ let joined;
30611
+ if (loopbackPorts.length > 0 && forwarderWiring && forwarder) {
30612
+ if (await startNamespaceForwarder(state, forwarder, container.name, loopbackPorts, forwarderWiring)) {
30613
+ args = forwarder.args;
30614
+ joined = forwarder.name;
30615
+ }
30616
+ }
30480
30617
  logger.info(`Starting container '${container.name}' (image=${imagePlan.get(container.name)})`);
30481
30618
  const sensitiveEnv = dockerEnvs.get(container.name);
30482
30619
  warnFinchArgvExposure(Object.keys(sensitiveEnv));
@@ -30495,17 +30632,24 @@ async function runEcsTask(task, options, state) {
30495
30632
  name: container.name,
30496
30633
  id: startedId
30497
30634
  });
30635
+ if (joined !== void 0) {
30636
+ const owner = state.forwarders.find((f) => f.name === joined);
30637
+ if (owner) owner.joined = true;
30638
+ }
30498
30639
  }, () => removeContainer(dockerName), namedSubject([{
30499
30640
  kind: "container",
30500
30641
  name: dockerName,
30501
30642
  rm: "docker rm -f",
30502
30643
  list: "docker ps -a"
30503
- }]));
30644
+ }])).catch(async (err) => {
30645
+ const started = state.startedContainers.some((c) => c.name === container.name);
30646
+ if (joined !== void 0 && !started) await removeNamespaceForwarder(state, joined);
30647
+ throw err;
30648
+ });
30504
30649
  startedByName.set(container.name, {
30505
30650
  id,
30506
30651
  container
30507
30652
  });
30508
- if (loopbackPorts.length > 0) await attachLocalLoopbackForwarder(id, loopbackPorts);
30509
30653
  if (!options.detach) state.logStreams.push({
30510
30654
  containerId: id,
30511
30655
  stream: streamContainerLogs(container.name, id)
@@ -30521,6 +30665,8 @@ async function runEcsTask(task, options, state) {
30521
30665
  const exitCode = await waitForContainerExit(essentialId);
30522
30666
  const essentialLogs = state.logStreams.find((l) => l.containerId === essentialId);
30523
30667
  if (essentialLogs) await essentialLogs.stream.drain(CONTAINER_LOG_DRAIN_TIMEOUT_MS);
30668
+ const clash = loopbackPortClash(essential, dockerLoopbackPorts.get(essential.name) ?? [], state.forwarders.some((f) => f.joined && f.container === dockerNames.get(essential.name)));
30669
+ if (exitCode !== 0 && clash !== void 0) logger.warn(safeMsg`Container ${essential.name} exited with code ${exitCode} and listens on port ${clash}, which is also the loopback AWS endpoint's port: cdkd's forwarder holds 127.0.0.1:${clash} inside the task to reach the endpoint, so the app cannot bind it. Run the endpoint on another port.`);
30524
30670
  return {
30525
30671
  exitCode,
30526
30672
  essentialContainerName: essential.name,
@@ -30963,6 +31109,8 @@ async function localRunTaskCommand(target, options) {
30963
31109
  if (options.detach) {
30964
31110
  logger.info("Task containers started in detached mode; cdkd is exiting.");
30965
31111
  logger.info(`Use 'docker ps -a --filter network=${result.state.network?.networkName ?? "<network>"}' to inspect; tear down with 'docker rm -f' and 'docker network rm'.`);
31112
+ const forwarderNotice = describeDetachedForwarders(result.state);
31113
+ if (forwarderNotice) logger.info(forwarderNotice);
30966
31114
  const detachedNotice = strandedProfileCredentialsNotice(channels.profileCredsFile?.hostPath);
30967
31115
  if (detachedNotice) logger.info(`Detached mode leaves the mounted credentials file behind. ${detachedNotice}`);
30968
31116
  detachedSuccessfully = true;
@@ -33116,4 +33264,4 @@ function collectVerbFlags(program) {
33116
33264
  }
33117
33265
 
33118
33266
  export { resolveSecretDerivedPrincipals as a, buildProgram, isResolvableSecretPrincipalList as i, runDestroyForStack as n, canonicalizeIpProtocolValue as o, holdsUnprovenSecretPrincipalToken as r, canonicalizeIpv4Cidr as t };
33119
- //# sourceMappingURL=program-DP4g5uS3.js.map
33267
+ //# sourceMappingURL=program-DvCw1Vlz.js.map