@cdkd/cli 0.328.0 → 0.330.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist/{asg-provider-CO3HJW1b.js → asg-provider-j6iSSZde.js} +3 -3
  2. package/dist/{asg-provider-CO3HJW1b.js.map → asg-provider-j6iSSZde.js.map} +1 -1
  3. package/dist/cli.js +2 -2
  4. package/dist/{created-resource-sink-DMf6WEao.js → created-resource-sink-DBYrPwKg.js} +2 -1
  5. package/dist/created-resource-sink-DBYrPwKg.js.map +1 -0
  6. package/dist/{db-associated-roles-DO8XhKqB.js → db-associated-roles-aRbZIDRL.js} +3 -3
  7. package/dist/{db-associated-roles-DO8XhKqB.js.map → db-associated-roles-aRbZIDRL.js.map} +1 -1
  8. package/dist/{deploy-engine-CJwvL5y1.js → deploy-engine-BywkSipb.js} +45 -16
  9. package/dist/deploy-engine-BywkSipb.js.map +1 -0
  10. package/dist/{iam-role-provider-C_DnBxIR.js → iam-role-provider-k1NQUHIg.js} +3 -3
  11. package/dist/{iam-role-provider-C_DnBxIR.js.map → iam-role-provider-k1NQUHIg.js.map} +1 -1
  12. package/dist/index.d.ts +6 -1
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js +3 -3
  15. package/dist/{neptune-provider-Cjtwclgw.js → neptune-provider-DrT8ZxZ5.js} +4 -4
  16. package/dist/{neptune-provider-Cjtwclgw.js.map → neptune-provider-DrT8ZxZ5.js.map} +1 -1
  17. package/dist/{program-DQppIvNH.js → program-mCaPWKiv.js} +124 -49
  18. package/dist/program-mCaPWKiv.js.map +1 -0
  19. package/dist/{provider-classes-Bc4zBeE0.js → provider-classes-Xl7ABznG.js} +224 -19
  20. package/dist/provider-classes-Xl7ABznG.js.map +1 -0
  21. package/dist/{rds-provider-BtvIg3GL.js → rds-provider-QDzKhTfk.js} +4 -4
  22. package/dist/{rds-provider-BtvIg3GL.js.map → rds-provider-QDzKhTfk.js.map} +1 -1
  23. package/dist/{version-z453ivOv.js → version-BwNgKr9o.js} +2 -2
  24. package/dist/{version-z453ivOv.js.map → version-BwNgKr9o.js.map} +1 -1
  25. package/package.json +1 -1
  26. package/dist/created-resource-sink-DMf6WEao.js.map +0 -1
  27. package/dist/deploy-engine-CJwvL5y1.js.map +0 -1
  28. package/dist/program-DQppIvNH.js.map +0 -1
  29. package/dist/provider-classes-Bc4zBeE0.js.map +0 -1
@@ -1,9 +1,9 @@
1
1
  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-ez_oXu6x.js";
2
2
  import { $ as safeMsg, B as SAFE_MSG_ALTERED_CHAR, G as cutMarker, H as STACK_REF_MAX_CODE_POINTS, I as withSkipPrefix, J as displaySafe, K as displayAwsMessage, L as withStackScope, Q as plainIdentOr, S as explicitNamePropertyFor, U as UNRENDERABLE, V as SECRET_REF_MAX_CODE_POINTS, W as asIsMessage, X as isPasteableIdent, Y as displayStackName, _ as PATTERN_B_RESOURCE_TYPES, a as safeStringify, c as isStdoutReservedForPayload, d as runStackBuffered, et as stringifyJsonPayload, g as PATTERN_B_NAME_PROPERTIES, h as PATTERN_B_NAME_OPTIONS, j as isNameGeneration, l as reserveStdoutForPayload, m as getLiveRenderer, n as describeAwsFailure, nt as truncateCodePoints, q as displayIdent, s as getLogger, tt as terminalSafe, w as generateResourceName, x as derivesPatternBName } from "./aws-failure-text-DiHodi76.js";
3
- import { $t as formatLockExpiry, An as MalformedProducerRecordRefusalError, Ar as isThrottlingError, Bn as formatError, Dn as LocalStartServiceError, Dr as retryClassificationText, En as LocalInvokeBuildError$1, Er as isTransientServerError, Et as logicalIdShown, F as assertRegionMatch, Fn as ResourceUpdateNotSupportedError, Gn as TIMEOUT_FLAG_RESOURCE_TYPE, I as VALUE_NOT_SHOWN, In as StackHasActiveImportsError, Ln as StackTerminationProtectionError, M as RESOURCE_NOT_FOUND, Mn as PartialFailureError, N as isMarkedNotGone, Nn as ProvisioningError, Ot as resourceTypeShown, Pn as ResourceTimeoutError, Qn as pasteableCommand, Qt as forceQuitRecoveryClause, Rn as StateError, Sn as DeployCancelledError, Sr as isAmbiguousOutcomeError, Tn as IntrinsicResolutionRefusalError, Tr as isRetryableTransientError, U as remedyLogicalId, Un as normalizeAwsError, Wn as withErrorHandling, Xt as buildForceUnlockCommand, Yn as commandHole, Yt as UNREPRODUCIBLE_LOCK_CLAUSE, Zn as isInertUnquoted, Zt as buildLockContentionMessage, _r as stripControlChars, _t as beginCommandInterruptScope, an as DEFAULT_STATE_PREFIX, ar as setPasteableRunFlags, bn as CrossAccountSecretRefusalError, bt as isInterruptedWaitError, c as RESOLVED_PREVIOUS_PRINCIPAL_KEYS, cn as producerCoordinateKey, dn as withPasteableAwsProfile, en as formatLockOperation, er as plainOrDescribed, fn as ambientClientDefaults, gn as AccountIdUnavailableError, gr as escapeRegExp, hn as credentialFingerprint, in as CUSTOM_RESOURCE_RESPONSE_PREFIX, ir as withheldTargetClause, it as runDeleteAttempt, jn as NestedStackChildDirectDestroyError, jr as markNonRetryable, kr as isMarkedNonRetryable, ln as producerRecordKey, mn as clientDefaultsFor, nr as shellBoundedDisplay, on as injectiveKey, or as setPasteableVerbFlags, p as readRecordedPrincipals, pn as ambientCredentialConfig, qn as SHELL_ACTIVE_WHY, rr as shellQuote, s as IAM_PRINCIPAL_NAME, tn as formatLockOwner, tr as quotedOrDescribed, un as setPasteableAwsProfile, ut as isAwsCliLiteral, vn as CdkdError, vr as stripForDisplay, vt as endCommandInterruptScope, wn as DynamicReferenceRegionAmbiguousError, yt as interruptWatchListenerCount, zn as SynthesisError } from "./created-resource-sink-DMf6WEao.js";
3
+ import { $t as formatLockExpiry, An as MalformedProducerRecordRefusalError, Ar as isThrottlingError, Bn as formatError, Dn as LocalStartServiceError, Dr as retryClassificationText, En as LocalInvokeBuildError$1, Er as isTransientServerError, Et as logicalIdShown, F as assertRegionMatch, Fn as ResourceUpdateNotSupportedError, Gn as TIMEOUT_FLAG_RESOURCE_TYPE, I as VALUE_NOT_SHOWN, In as StackHasActiveImportsError, Ln as StackTerminationProtectionError, M as RESOURCE_NOT_FOUND, Mn as PartialFailureError, N as isMarkedNotGone, Nn as ProvisioningError, Ot as resourceTypeShown, Pn as ResourceTimeoutError, Qn as pasteableCommand, Qt as forceQuitRecoveryClause, Rn as StateError, Sn as DeployCancelledError, Sr as isAmbiguousOutcomeError, Tn as IntrinsicResolutionRefusalError, Tr as isRetryableTransientError, U as remedyLogicalId, Un as normalizeAwsError, Wn as withErrorHandling, Xt as buildForceUnlockCommand, Yn as commandHole, Yt as UNREPRODUCIBLE_LOCK_CLAUSE, Zn as isInertUnquoted, Zt as buildLockContentionMessage, _r as stripControlChars, _t as beginCommandInterruptScope, an as DEFAULT_STATE_PREFIX, ar as setPasteableRunFlags, bn as CrossAccountSecretRefusalError, bt as isInterruptedWaitError, c as RESOLVED_PREVIOUS_PRINCIPAL_KEYS, cn as producerCoordinateKey, dn as withPasteableAwsProfile, en as formatLockOperation, er as plainOrDescribed, fn as ambientClientDefaults, gn as AccountIdUnavailableError, gr as escapeRegExp, hn as credentialFingerprint, in as CUSTOM_RESOURCE_RESPONSE_PREFIX, ir as withheldTargetClause, it as runDeleteAttempt, jn as NestedStackChildDirectDestroyError, jr as markNonRetryable, kr as isMarkedNonRetryable, ln as producerRecordKey, mn as clientDefaultsFor, nr as shellBoundedDisplay, on as injectiveKey, or as setPasteableVerbFlags, p as readRecordedPrincipals, pn as ambientCredentialConfig, qn as SHELL_ACTIVE_WHY, rr as shellQuote, s as IAM_PRINCIPAL_NAME, tn as formatLockOwner, tr as quotedOrDescribed, un as setPasteableAwsProfile, ut as isAwsCliLiteral, vn as CdkdError, vr as stripForDisplay, vt as endCommandInterruptScope, wn as DynamicReferenceRegionAmbiguousError, yt as interruptWatchListenerCount, zn as SynthesisError } from "./created-resource-sink-DBYrPwKg.js";
4
4
  import { a as setAssumedRoleCredentials, d as formatAuthority, i as getPreAssumeEnvCredentials, n as awsClientDefaults, r as getAssumedRoleCredentials, u as runInStackAwsScope } from "./aws-client-defaults-BLXFsfMa.js";
5
- import { $a as recordedReferenceRegions, $c as createUnionSecretMasker, $l as exportNamesCarriedFrom, $n as nameGenerationCarriedFrom, $o as malformedOrphanRecordsWarning, $r as addSuperseded, $s as findReplacedReadersOfRecreateTargets, $t as deleteJournaledOrphans, $u as synthesisStatusMessage, Ad as defineOwnKey, Ai as createPreDeleteFinalSnapshot, Al as recordMaskOnlyValue, An as equalModuloMarkedMask, Ao as parameterInputsFor, Ar as formatDestructiveChange, As as refuseMalformedResourcePropertiesForExport, At as isSecretBearingReferenceString, Au as validateContainerRepoName, Ba as poisonRenderedSpellingsCollidingIn, Bc as noEchoLeavesOf, Bd as injectAwsRegion, Bi as DeploymentEventsReader, Bl as S3StateBackend, Bn as replacementNeverSwapped, Bo as displayLogicalId, Br as proposeRenames, Bs as repairMalformedResourcePropertiesForReadOnly, Bt as NESTED_PENDING_PARENT_REASON, Bu as getDockerCmd, Cc as withRetry, Cd as derivePartitionAndUrlSuffix, Ci as secretNamedRecordNeedles, Cn as replayFailedOperations, Co as AWS_NO_VALUE, Cr as isExportAliasCollision, Cs as refuseMalformedResourceEntriesForDeploy, Ct as conditionInputsFrom, Cu as assertAssetBucketRegion, Dd as describeJsonParseFailure, Di as PRE_DELETE_SNAPSHOT_TYPES, Dl as splitGetAttStringForm, Dn as settleUnsettledPrevious, Do as refStateLookupFromResource, Dr as maskingRetryLogger, Ds as refuseMalformedResourceEntriesForOrphan, Du as parseBootstrapMarker, Ed as processStackMessages, Ei as ATOMIC_FINAL_SNAPSHOT_TYPES, El as recordPhysicalNameCopy, En as recordAfterRollbackUpdate, Eo as lacksRecordedTableArn, Er as DEFAULT_RESOURCE_WARN_AFTER_MS, Es as refuseMalformedResourceEntriesForImportSave, Eu as isCrossRegionRedirect, Fa as unsettledItemsOf, Fc as maskAtCoordinates, Fd as absoluteAssemblyPathEscape, Fl as wholeStringLeavesOf, Fn as isReplacementOrphan, Fo as STATE_RESOURCES_MALFORMED, Fr as withMovedTo, Fs as refuseMalformedState, Ft as planOrphanAdoption, Fu as describeDockerExecFailure, Gc as recordedNoEchoValuesOf, Gl as crossPrefixDeniedWarning, Go as isReadableResourceEntry, Gr as withStackRecords, Gs as withheldAccountClause, Gt as nestedChildStackName$1, Gu as redactedCause, Hi as extractDeploymentEventError, Hl as CrossPrefixReadError, Hn as seedsDeleteFirstGuard, Ho as hasReadableOutputs, Hs as unpreviewableOrphanRecords, Ht as displacedPhysicalIdShown, Hu as isMalformedEnvKey, Ia as unsettledPropertiesOf, Ic as maskReadbackAtCoordinates, Id as describeFileReadFailure, Ii as ledgerForStack, Il as WHOLE_DYNAMIC_REFERENCE_PATTERN, In as planFailedOps, Io as UNREADABLE_ORPHANS_CONTAINER_ROW, Ir as isPairableType, Is as repairMalformedOrphanRecordsForReadOnly, It as pendingRequestCount, Iu as describeDockerFailure, Ja as producerLookupOver, Jl as stackInstanceIdOf, Jo as malformedExportSourceWarning, Jr as cyan, Jt as revertedNestedRowIds, Ju as runDockerStreaming, Kc as valueAtCoordinate, Kl as isAccessDenied, Kn as inheritProducerRegions, Ko as malformedDriftResourcePropertiesWarning, Ks as findActionableSdkUnwired, Kt as recordDisplacedSkips, Ku as redactedDockerCause, La as withUnsettledProperties, Lc as maskWholeValue, Ld as displayAssemblyPath, Ll as isSingleDynamicReferenceToken, Ln as planRollback, Lo as UNREADABLE_RESOURCES_MAP_ROW, Lr as looselyEqual, Ls as repairMalformedOrphansForReadOnly, Lt as resolvePendingCloudControlRequests, Lu as dockerSpawnEnvWithSensitive, Ma as INTRINSIC_KEYS, Mc as TemplateParser, Md as hasPlainPrototype, Mi as isFinalSnapshotError, Ml as recordNoEchoAttributeValues, Mn as undeclaredEmptyObservedKeys, Mo as declaresNoEcho, Mr as hintSidesOf, Ms as refuseMalformedResourcesForDeploy, Mt as mergeNoChangeOutputs, Mu as buildDockerImage, Nc as canonicalCoordinates, Nd as nullPrototypeRecord, Ni as refusesFinalSnapshot, Nl as recordNoEchoParameterFreshValue, Nn as demoteSupersededOrphans, No as JSON_LISTING_HOLE_VALUE, Nr as movedToHint, Ns as refuseMalformedResourcesForDestroy, Nt as makeCanonicalizePropertiesFn, Nu as resolveDockerContextDirectory, Od as parseFailureDebugDetail, Oi as buildFinalSnapshotIdentifier, Ol as carriesSecretMask, On as withUnprovenUnsettled, Or as constructPathOf$1, Os as refuseMalformedResourcePropertiesForDestroy, Ot as withResourceDeadline, Ou as readBootstrapMarkerBody, Pa as unsettledItemsField, Pc as isMarkedCoordinate, Pd as ownValue, Pi as unsupportedFinalSnapshotError, Pl as recordProvenPublicExpression, Pn as isJournaledOrphan, Po as STATE_REGION_DIVERGED, Pr as rollbackOrphanIds, Ps as refuseMalformedResourcesForExport, Pt as makeSiblingClaimReader, Pu as describeDockerCapturedOutput, Qa as recordedOutputReferenceRegions, Qc as carryLogOnlyValues, Ql as describeRegionValueKind, Qn as updatePartialReason, Qo as malformedOrphanRecordsRefusalMessage, Qr as yellow, Qs as hasNoCloudControlHandlers, Qt as withNestedStackContext, Qu as Synthesizer, Ra as withoutUnsettledProperties, Rc as maskedLeafCoordinatesOf, Rd as renderAssemblyPathEscape, Ri as withCreateTokenLedger, Rl as LockManager, Rn as recheckFailedPlan, Ro as accountArgs, Rr as mappingPairs, Rs as repairMalformedOutputsForReadOnly, Rt as keptForRetainedRecord, Ru as finchSecretArgvRefusal, Sa as deleteSkipReason, Sc as describeTypeWithThrottleRetry, Sd as canonicalizeRegion, Sl as recordNestedStackParameterExpressions, Sn as refusePendingMovesOut, So as keepsSecretReferenceToken, Sr as collectPublishedOutputNames, Ss as refuseMalformedResourceEntries, St as conditionFingerprint, Su as BOOTSTRAP_MARKER_PREFIX, Td as StageLoadError, Ti as storedSecretNameNeedles, Tn as removeProtectionTypeList, To as isStalePlaceholderArnAttribute, Tr as DEFAULT_RESOURCE_TIMEOUT_MS, Ts as refuseMalformedResourceEntriesForImport, Tt as readRecordedConditionVerdicts, Tu as getBootstrapMarkerKey, Uc as readbackPathFor, Ud as resolveBucketRegion, Ul as CrossPrefixScanCache, Un as orphanNeedsIdentity, Uo as hasReadableResources, Ur as destroyStackRecordsView, Us as unreadableOrphanRecords, Ut as dropSettledNestedJournals, Uu as partitionSensitiveEnv, Vc as noEchoOutputsComparison, Vd as injectedAwsRegionValue, Vi as DeploymentEventsStore, Vl as rebuildClientForBucketRegion, Vn as resolveReplacementOldType, Vo as hasReadableOrphans, Vs as repairMalformedResourcesForReadOnly, Vt as displacedOpClause, Vu as isDockerClientEnvKey, Wc as readsNoEchoSource, Wl as applyCrossPrefixScan, Wn as findNestedStackTypeChanges, Wo as isReadableOrphanRecord, Ws as unreadableResourceEntries, Wu as redactDockerArgvValues, Xa as keepHeldTokenProvenance, Xl as splitImportedOps, Xo as malformedLocalResourceEntriesWarning, Xr as green, Xt as collectNestedChildUnaddressed, Xu as AssetManifestLoader, Ya as refuseUnreadableCdkCrossAccountRefs, Yc as redactForState, Yl as withStackInstanceIdWithheld, Yo as malformedLocalOutputsWarning, Yr as gray, Ys as unwrittenCreateOnlyReplacement, Yt as withNestedRevertRun, Yu as warnFinchArgvExposure, Zl as acceptedCreateOnlyDropsOf, Zn as updatePartialMessage, Zo as malformedLocalResourcesWarning, Zr as red, Zs as NO_CC_HANDLERS_REASON, Zt as getCurrentNestedStackContext, Zu as getDockerImageBySourceHash, _d as uploadCfnTemplate, _i as maskEventTextWithBoundBags, _l as isUncertifiedBaselineMaskPosition, _n as sameMove, _o as getAccountInfo, _r as exportNameNoEchoParameters, _s as refuseMalformedOrphansForDestroy, _t as findNestedTemplateTreeDefect, _u as buildAssetRedirectMap, a as isProtectionValueActive, ad as resolveCaptureObservedState, ai as supersededHeldByOtherTypeWarning, al as recordLogOnlyValue, an as makeForeignHolderScan, ao as sendableAssumeRoleCommand, ar as withNameGenerationReached, as as malformedRenderedContainersWarning, au as isReadableBag, ba as deleteIndeterminateGuards, bc as prefetchCreateOnlyPropertyPaths, bd as expectedOwnerParam, bi as secretNamePrintingBag, bl as identityKeyFor, bn as pendingMovesOutOf, bo as carriesFetchableDynamicReference, br as noEchoParameterValueSeed, bs as refuseMalformedOutputsForDestroy, bt as renderNestedTemplateTreeDefect, bu as rewriteTemplateAssetReferences, ca as isCustomResourceType$1, cd as resolveStateBucketWithDefaultAndSource, ci as withoutSuperseded, cl as createSecretMasker, co as callerEnvCredentials, cr as reachableDivergentParameters, cs as malformedResourcesWarning, cu as shouldRetainResource, da as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, dd as warnDeprecatedNoPrefixCliFlag, di as noEchoExactEchoLeavesOf, dl as maskSecretsInText, do as classifyReplaySecretRegion, dr as displayTextOrWithheld, ds as previewableOrphanRecords, dt as crossStackOutputProvenanceSource, du as renderPhaseTimings, ea as CC_BROKEN_REASON, ec as shownType, ed as getDefaultStateBucketName, ei as deleteSupersededEntry, el as hasMaskableValues, en as dropFailedCommands, eo as applyRoleArnIfSet, er as nameGenerationHighWaterOf, es as malformedOrphanRowsKeptWarning, eu as hasReadableExportSet, fa as applyCustomResourceResponseExpiration, fd as ssmResolvedValueType, fi as noEchoParameterNamesOf, fl as scrubResourceRecord, fn as readRefactorMarker, fo as producerRegionsFromState, fr as exportAliasCollisionScrubWarning, fs as refuseDivergentRecordRegionForDestroy, ft as inheritedProvenanceForChildDiff, fu as timePhase, gd as findLargeInlineResources, gi as journaledOrphanPrintingBag, gl as dynamicReferenceTokens, gn as refuseRefactorMarker, go as parameterTypeMayLoseSecretIdentity, gr as carriedExportAliasExposure, gs as refuseMalformedOrphans, gt as childTemplateLoader, gu as WorkGraph, ha as slowCcOperationTimeoutMs, hd as MIGRATE_TMP_PREFIX, hi as completedReplayEntries, hl as DYNAMIC_REFERENCE_TOKEN_SCAN, hn as refactorMarkerRefusalMessage, ho as isUnboundTemplateParameter, hr as secretSafeKeyDisplay, hs as refuseMalformedOrphanRecordsForDestroy, ht as serviceTokenBlockingReason, hu as stringifyValue, i as PROTECTION_PROPERTY_BY_TYPE, ia as wouldReturnToSdkProvider, ic as renderStatefulReason, id as resolveAutoAssetStorage, ii as supersededAfterRollback, il as recordLogOnlyParameterValue, in as loadJournaledOrphans, io as isIamRoleArn, ir as retiredNameGenerationsLeaving, is as malformedOutputsWarning, iu as importableOutputs, j as setResolvedResourceTimeouts, ja as DiffCalculator, jc as DagBuilder, jd as hasOwnKey, ji as effectiveDeletionPolicy, jl as recordMaskOnlyValuesIn, jn as equalModuloMask, jr as findRefactorHints, js as refuseMalformedResourcePropertiesForOrphan, jt as keptWholeReasonText, ju as buildDenyExternalAccessPolicy, kd as utf8ByteLength, ki as ccRoutedFinalSnapshotError, kl as provenPublicValue, kn as calculateResourceDrift, ko as withSharedDrainBudget, kr as findDestructiveChanges, ks as refuseMalformedResourcePropertiesForDrift, kt as diffSecurity, ku as validateAssetBucketName, ld as resolveUseCdkBootstrapAssets, li as noEchoAttributeNamesOf, ll as errorCauseChain, lo as envCredentialsAreAssumedRole, lr as resourcesNamingDeclaredParameter, ls as malformedScrubResourceEntriesRefusalMessage, lt as IMPLICIT_DELETE_DEPENDENCIES, lu as stackInstanceIdCarriedFrom, ma as CloudControlProvider, md as CFN_TEMPLATE_URL_LIMIT, mi as createReadOnlyAttributeHealerFactory, mn as refactorMarkerMovesOf, mo as coerceParameterTypedValue, mr as secretBearingStateKeyWarning, ms as refuseMalformedOrphanRecords, mt as findServiceTokenRefusals, mu as isSensitiveAttributeName, n as recordedProtectionEvidence, na as ccBrokenReason, nc as isStatefulRecreateTargetForReplace, nd as loadCdkJson, ni as isSupersededResourceRecord, nl as logOnlyValueCount, nn as isHandledOrphan, no as assertSendableRoleArn, nr as retiredAfterRollback, ns as malformedOrphansWarning, nu as hasUnverifiableParameterRefusal, o as perType, oa as TemplateNoEchoReresolver, od as resolveSkipPrefix, oi as supersededHolderOf, ol as shareLogOnlyValues, on as sameJournaledOrphans, oo as AWS_CREDENTIAL_ENV_KEYS, or as computeParameterTaint, os as malformedResourceEntriesWarning, ou as orphansAfterRollback, pa as customResourceResponseExpirationWarning, pd as CFN_TEMPLATE_BODY_LIMIT, pi as withAttemptedItemsMasked, pl as withPhysicalNameCopies, pn as readRefactorMarkerOnce, po as regionLessSecretName, pr as secretBearing, pt as deferredServiceTokenWarning, pu as AssetPublisher, qa as resolveDynamicReferences, qc as liveMatchesUnresolvedTokenFrame, ql as isNotImplemented, qo as malformedExportNamesWarning, qr as bold, qs as findHandledUnwrittenCreateOnly, qu as runDockerForeground, r as recordedProtectionNote, ra as isCustomResource, rc as isStatefulRecreateTargetSync, rd as resolveApp, ri as removeSuperseded, rl as printingCorpusOf, rn as journaledOrphanLines, ro as explicitRoleArnOrThrow, rr as retiredNameGenerationsAfter, rs as malformedOutputsRefusalMessage, ru as importableOutputKeys, s as readProtection, sa as readsNoEchoDeleteValues, sd as resolveStateBucketWithDefault, si as supersededResourcesOf, sl as unionOfSecretBags, sn as formatResourceLine, so as applyCallerIdentityCredentials, sr as namesAnyDeclaredParameter, ss as malformedResourcePropertiesWarning, su as orphansCarriedFrom, t as DeployEngine, ta as ProviderRegistry, tc as MULTI_REGION_RECREATE_BLOCKED_TYPES, td as getLegacyStateBucketName, ti as holdsSupersededResources, tl as literalSplitDelimitersOf, tn as dropFailedHint, to as assertFlagRoleArn, tr as nameScopeOf, ts as malformedOrphansRefusalMessage, tu as hasReasonlessBaselineRefusal, ua as withPrintingSecrets, uc as coerceCfnBoolean, ud as stateBucketExistenceConfirmed, ui as noEchoComparisonForTemplate, ul as maskSecretsInError, uo as classifyRecordedSecretRegion, ur as WITHHELD_NAME_DISPLAY, us as malformedStateRefusalMessage, ut as computeImplicitDeleteEdges, uu as PhaseClock, va as RollbackInlinePolicyWriters, vd as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, vi as namingSecretsWithRecordedNoEcho, vl as pathCrossesDottedKey, vn as updateRefactorMarker, vo as isImpossibleEmptyStoredAttribute, vr as exportNameSecretExposure, vs as refuseMalformedOrphansForOrphan, vt as isAbsoluteAssetPath, vu as createAssetRedirectResolver, wa as isWaitAbandonedError, wd as AssemblyReader, wi as stateSecretNameNeedles, wl as physicalNameCopiesOf, wn as replayRollback, wo as cfnRefValueFromPhysicalId, wr as bindingSkippedOutputs, ws as refuseMalformedResourceEntriesForDestroy, wt as parentSuppliedValues, wu as ensureAssetStorage, xa as deleteLeftInPlace, xc as templateResourceTypes, xd as PARTITION_TABLE, xi as secretNamePrintingBags, xl as inheritNestedStackParameterAssociations, xn as pendingMovesRefusalMessage, xo as isNamelessDynamicReferenceError, xr as collectDeclaredOutputNames, xs as refuseMalformedResourceAttributesForOrphan, xt as templateIdentity, xu as AssetModeResolver, ya as UNSPECIFIED_SKIP_REASON, yd as decodeListingKey, yi as orphanRecordsPrintingBag, yl as spelledKeysOf, yn as hasPendingMovesOut, yo as carriesDynamicReference, yr as isWholeDynamicReferenceValue, ys as refuseMalformedOutputs, yt as listNestedTemplateRows, yu as loadPublishableAssetManifest, za as IntrinsicFunctionResolver, zc as noEchoCoordinatesOf, zd as resolveAssemblyPath, zl as isLockInfoExpired, zn as recordUnderIdIsNotOwn, zo as deployRefusesOrphanRowsReason, zr as parseMappingFile, zs as repairMalformedResourceEntriesForReadOnly, zt as recordRetainedForReadoption, zu as formatDockerLoginError } from "./deploy-engine-CJwvL5y1.js";
6
- import { t as getCdkdVersion } from "./version-z453ivOv.js";
5
+ import { $a as recordedReferenceRegions, $c as createUnionSecretMasker, $l as exportNamesCarriedFrom, $n as nameGenerationCarriedFrom, $o as malformedOrphanRecordsWarning, $r as addSuperseded, $s as findReplacedReadersOfRecreateTargets, $t as deleteJournaledOrphans, $u as synthesisStatusMessage, Ad as utf8ByteLength, Ai as createPreDeleteFinalSnapshot, Al as recordMaskOnlyValue, An as equalModuloMarkedMask, Ao as parameterInputsFor, Ar as formatDestructiveChange, As as refuseMalformedResourcePropertiesForExport, At as isSecretBearingReferenceString, Au as validateContainerRepoName, Ba as poisonRenderedSpellingsCollidingIn, Bc as noEchoLeavesOf, Bd as resolveAssemblyPath, Bi as DeploymentEventsReader, Bl as S3StateBackend, Bn as replacementNeverSwapped, Bo as displayLogicalId, Br as proposeRenames, Bs as repairMalformedResourcePropertiesForReadOnly, Bt as NESTED_PENDING_PARENT_REASON, Bu as getDockerCmd, Cc as withRetry, Cd as derivePartitionAndUrlSuffix, Ci as secretNamedRecordNeedles, Cn as replayFailedOperations, Co as AWS_NO_VALUE, Cr as isExportAliasCollision, Cs as refuseMalformedResourceEntriesForDeploy, Ct as conditionInputsFrom, Cu as assertAssetBucketRegion, Dd as processStackMessages, Di as PRE_DELETE_SNAPSHOT_TYPES, Dl as splitGetAttStringForm, Dn as settleUnsettledPrevious, Do as refStateLookupFromResource, Dr as maskingRetryLogger, Ds as refuseMalformedResourceEntriesForOrphan, Du as parseBootstrapMarker, Ed as StageLoadError, Ei as ATOMIC_FINAL_SNAPSHOT_TYPES, El as recordPhysicalNameCopy, En as recordAfterRollbackUpdate, Eo as lacksRecordedTableArn, Er as DEFAULT_RESOURCE_WARN_AFTER_MS, Es as refuseMalformedResourceEntriesForImportSave, Eu as isCrossRegionRedirect, Fa as unsettledItemsOf, Fc as maskAtCoordinates, Fd as ownValue, Fl as wholeStringLeavesOf, Fn as isReplacementOrphan, Fo as STATE_RESOURCES_MALFORMED, Fr as withMovedTo, Fs as refuseMalformedState, Ft as planOrphanAdoption, Fu as describeDockerExecFailure, Gc as recordedNoEchoValuesOf, Gl as crossPrefixDeniedWarning, Go as isReadableResourceEntry, Gr as withStackRecords, Gs as withheldAccountClause, Gt as nestedChildStackName$1, Gu as redactedCause, Hd as injectedAwsRegionValue, Hi as extractDeploymentEventError, Hl as CrossPrefixReadError, Hn as seedsDeleteFirstGuard, Ho as hasReadableOutputs, Hs as unpreviewableOrphanRecords, Ht as displacedPhysicalIdShown, Hu as isMalformedEnvKey, Ia as unsettledPropertiesOf, Ic as maskReadbackAtCoordinates, Id as absoluteAssemblyPathEscape, Ii as ledgerForStack, Il as WHOLE_DYNAMIC_REFERENCE_PATTERN, In as planFailedOps, Io as UNREADABLE_ORPHANS_CONTAINER_ROW, Ir as isPairableType, Is as repairMalformedOrphanRecordsForReadOnly, It as pendingRequestCount, Iu as describeDockerFailure, Ja as producerLookupOver, Jl as stackInstanceIdOf, Jo as malformedExportSourceWarning, Jr as cyan, Jt as revertedNestedRowIds, Ju as runDockerStreaming, Kc as valueAtCoordinate, Kl as isAccessDenied, Kn as inheritProducerRegions, Ko as malformedDriftResourcePropertiesWarning, Ks as findActionableSdkUnwired, Kt as recordDisplacedSkips, Ku as redactedDockerCause, La as withUnsettledProperties, Lc as maskWholeValue, Ld as describeFileReadFailure, Ll as isSingleDynamicReferenceToken, Ln as planRollback, Lo as UNREADABLE_RESOURCES_MAP_ROW, Lr as looselyEqual, Ls as repairMalformedOrphansForReadOnly, Lt as resolvePendingCloudControlRequests, Lu as dockerSpawnEnvWithSensitive, Ma as INTRINSIC_KEYS, Mc as TemplateParser, Md as hasOwnKey, Mi as isFinalSnapshotError, Ml as recordNoEchoAttributeValues, Mn as undeclaredEmptyObservedKeys, Mo as declaresNoEcho, Mr as hintSidesOf, Ms as refuseMalformedResourcesForDeploy, Mt as mergeNoChangeOutputs, Mu as buildDockerImage, Nc as canonicalCoordinates, Nd as hasPlainPrototype, Ni as refusesFinalSnapshot, Nl as recordNoEchoParameterFreshValue, Nn as demoteSupersededOrphans, No as JSON_LISTING_HOLE_VALUE, Nr as movedToHint, Ns as refuseMalformedResourcesForDestroy, Nt as makeCanonicalizePropertiesFn, Nu as resolveDockerContextDirectory, Od as describeJsonParseFailure, Oi as buildFinalSnapshotIdentifier, Ol as carriesSecretMask, On as withUnprovenUnsettled, Or as constructPathOf$1, Os as refuseMalformedResourcePropertiesForDestroy, Ot as withResourceDeadline, Ou as readBootstrapMarkerBody, Pa as unsettledItemsField, Pc as isMarkedCoordinate, Pd as nullPrototypeRecord, Pi as unsupportedFinalSnapshotError, Pl as recordProvenPublicExpression, Pn as isJournaledOrphan, Po as STATE_REGION_DIVERGED, Pr as rollbackOrphanIds, Ps as refuseMalformedResourcesForExport, Pt as makeSiblingClaimReader, Pu as describeDockerCapturedOutput, Qa as recordedOutputReferenceRegions, Qc as carryLogOnlyValues, Ql as describeRegionValueKind, Qn as updatePartialReason, Qo as malformedOrphanRecordsRefusalMessage, Qr as yellow, Qs as hasNoCloudControlHandlers, Qt as withNestedStackContext, Qu as Synthesizer, Ra as withoutUnsettledProperties, Rc as maskedLeafCoordinatesOf, Rd as displayAssemblyPath, Ri as withCreateTokenLedger, Rl as LockManager, Rn as recheckFailedPlan, Ro as accountArgs, Rr as mappingPairs, Rs as repairMalformedOutputsForReadOnly, Rt as keptForRetainedRecord, Ru as finchSecretArgvRefusal, Sa as deleteSkipReason, Sc as describeTypeWithThrottleRetry, Sd as canonicalizeRegion, Sl as recordNestedStackParameterExpressions, Sn as refusePendingMovesOut, So as keepsSecretReferenceToken, Sr as collectPublishedOutputNames, Ss as refuseMalformedResourceEntries, St as conditionFingerprint, Su as BOOTSTRAP_MARKER_PREFIX, Td as AssemblyReader, Ti as storedSecretNameNeedles, Tn as removeProtectionTypeList, To as isStalePlaceholderArnAttribute, Tr as DEFAULT_RESOURCE_TIMEOUT_MS, Ts as refuseMalformedResourceEntriesForImport, Tt as readRecordedConditionVerdicts, Tu as getBootstrapMarkerKey, Uc as readbackPathFor, Ul as CrossPrefixScanCache, Un as orphanNeedsIdentity, Uo as hasReadableResources, Ur as destroyStackRecordsView, Us as unreadableOrphanRecords, Ut as dropSettledNestedJournals, Uu as partitionSensitiveEnv, Vc as noEchoOutputsComparison, Vd as injectAwsRegion, Vi as DeploymentEventsStore, Vl as rebuildClientForBucketRegion, Vn as resolveReplacementOldType, Vo as hasReadableOrphans, Vs as repairMalformedResourcesForReadOnly, Vt as displacedOpClause, Vu as isDockerClientEnvKey, Wc as readsNoEchoSource, Wd as resolveBucketRegion, Wl as applyCrossPrefixScan, Wn as findNestedStackTypeChanges, Wo as isReadableOrphanRecord, Ws as unreadableResourceEntries, Wu as redactDockerArgvValues, Xa as keepHeldTokenProvenance, Xl as splitImportedOps, Xo as malformedLocalResourceEntriesWarning, Xr as green, Xt as collectNestedChildUnaddressed, Xu as AssetManifestLoader, Ya as refuseUnreadableCdkCrossAccountRefs, Yc as redactForState, Yl as withStackInstanceIdWithheld, Yo as malformedLocalOutputsWarning, Yr as gray, Ys as unwrittenCreateOnlyReplacement, Yt as withNestedRevertRun, Yu as warnFinchArgvExposure, Zl as acceptedCreateOnlyDropsOf, Zn as updatePartialMessage, Zo as malformedLocalResourcesWarning, Zr as red, Zs as NO_CC_HANDLERS_REASON, Zt as getCurrentNestedStackContext, Zu as getDockerImageBySourceHash, _d as uploadCfnTemplate, _i as maskEventTextWithBoundBags, _l as isUncertifiedBaselineMaskPosition, _n as sameMove, _o as getAccountInfo, _r as exportNameNoEchoParameters, _s as refuseMalformedOrphansForDestroy, _t as findNestedTemplateTreeDefect, _u as buildAssetRedirectMap, a as isProtectionValueActive, ad as resolveCaptureObservedState, ai as supersededHeldByOtherTypeWarning, al as recordLogOnlyValue, an as makeForeignHolderScan, ao as sendableAssumeRoleCommand, ar as withNameGenerationReached, as as malformedRenderedContainersWarning, au as isReadableBag, ba as deleteIndeterminateGuards, bc as prefetchCreateOnlyPropertyPaths, bd as expectedOwnerParam, bi as secretNamePrintingBag, bl as identityKeyFor, bn as pendingMovesOutOf, bo as carriesFetchableDynamicReference, br as noEchoParameterValueSeed, bs as refuseMalformedOutputsForDestroy, bt as renderNestedTemplateTreeDefect, bu as rewriteTemplateAssetReferences, ca as isCustomResourceType$1, cd as resolveStateBucketWithDefaultAndSource, ci as withoutSuperseded, cl as createSecretMasker, co as callerEnvCredentials, cr as reachableDivergentParameters, cs as malformedResourcesWarning, cu as shouldRetainResource, da as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, dd as warnDeprecatedNoPrefixCliFlag, di as noEchoExactEchoLeavesOf, dl as maskSecretsInText, do as classifyReplaySecretRegion, dr as displayTextOrWithheld, ds as previewableOrphanRecords, dt as crossStackOutputProvenanceSource, du as renderPhaseTimings, ea as CC_BROKEN_REASON, ec as shownType, ed as getDefaultStateBucketName, ei as deleteSupersededEntry, el as hasMaskableValues, en as dropFailedCommands, eo as applyRoleArnIfSet, er as nameGenerationHighWaterOf, es as malformedOrphanRowsKeptWarning, eu as hasReadableExportSet, fa as applyCustomResourceResponseExpiration, fd as ssmResolvedValueType, fi as noEchoParameterNamesOf, fl as scrubResourceRecord, fn as readRefactorMarker, fo as producerRegionsFromState, fr as exportAliasCollisionScrubWarning, fs as refuseDivergentRecordRegionForDestroy, ft as inheritedProvenanceForChildDiff, fu as timePhase, gd as findLargeInlineResources, gi as journaledOrphanPrintingBag, gl as dynamicReferenceTokens, gn as refuseRefactorMarker, go as parameterTypeMayLoseSecretIdentity, gr as carriedExportAliasExposure, gs as refuseMalformedOrphans, gt as childTemplateLoader, gu as WorkGraph, ha as slowCcOperationTimeoutMs, hd as MIGRATE_TMP_PREFIX, hi as completedReplayEntries, hl as DYNAMIC_REFERENCE_TOKEN_SCAN, hn as refactorMarkerRefusalMessage, ho as isUnboundTemplateParameter, hr as secretSafeKeyDisplay, hs as refuseMalformedOrphanRecordsForDestroy, ht as serviceTokenBlockingReason, hu as stringifyValue, i as PROTECTION_PROPERTY_BY_TYPE, ia as wouldReturnToSdkProvider, ic as renderStatefulReason, id as resolveAutoAssetStorage, ii as supersededAfterRollback, il as recordLogOnlyParameterValue, in as loadJournaledOrphans, io as isIamRoleArn, ir as retiredNameGenerationsLeaving, is as malformedOutputsWarning, iu as importableOutputs, j as setResolvedResourceTimeouts, ja as DiffCalculator, jc as DagBuilder, jd as defineOwnKey, ji as effectiveDeletionPolicy, jl as recordMaskOnlyValuesIn, jn as equalModuloMask, jr as findRefactorHints, js as refuseMalformedResourcePropertiesForOrphan, jt as keptWholeReasonText, ju as buildDenyExternalAccessPolicy, kd as parseFailureDebugDetail, ki as ccRoutedFinalSnapshotError, kl as provenPublicValue, kn as calculateResourceDrift, ko as withSharedDrainBudget, kr as findDestructiveChanges, ks as refuseMalformedResourcePropertiesForDrift, kt as diffSecurity, ku as validateAssetBucketName, ld as resolveUseCdkBootstrapAssets, li as noEchoAttributeNamesOf, ll as errorCauseChain, lo as envCredentialsAreAssumedRole, lr as resourcesNamingDeclaredParameter, ls as malformedScrubResourceEntriesRefusalMessage, lt as IMPLICIT_DELETE_DEPENDENCIES, lu as stackInstanceIdCarriedFrom, ma as CloudControlProvider, md as CFN_TEMPLATE_URL_LIMIT, mi as createReadOnlyAttributeHealerFactory, mn as refactorMarkerMovesOf, mo as coerceParameterTypedValue, mr as secretBearingStateKeyWarning, ms as refuseMalformedOrphanRecords, mt as findServiceTokenRefusals, mu as isSensitiveAttributeName, n as recordedProtectionEvidence, na as ccBrokenReason, nc as isStatefulRecreateTargetForReplace, nd as loadCdkJson, ni as isSupersededResourceRecord, nl as logOnlyValueCount, nn as isHandledOrphan, no as assertSendableRoleArn, nr as retiredAfterRollback, ns as malformedOrphansWarning, nu as hasUnverifiableParameterRefusal, o as perType, oa as TemplateNoEchoReresolver, od as resolveSkipPrefix, oi as supersededHolderOf, ol as shareLogOnlyValues, on as sameJournaledOrphans, oo as AWS_CREDENTIAL_ENV_KEYS, or as computeParameterTaint, os as malformedResourceEntriesWarning, ou as orphansAfterRollback, pa as customResourceResponseExpirationWarning, pd as CFN_TEMPLATE_BODY_LIMIT, pi as withAttemptedItemsMasked, pl as withPhysicalNameCopies, pn as readRefactorMarkerOnce, po as regionLessSecretName, pr as secretBearing, pt as deferredServiceTokenWarning, pu as AssetPublisher, qa as resolveDynamicReferences, qc as liveMatchesUnresolvedTokenFrame, ql as isNotImplemented, qo as malformedExportNamesWarning, qr as bold, qs as findHandledUnwrittenCreateOnly, qu as runDockerForeground, r as recordedProtectionNote, ra as isCustomResource, rc as isStatefulRecreateTargetSync, rd as resolveApp, ri as removeSuperseded, rl as printingCorpusOf, rn as journaledOrphanLines, ro as explicitRoleArnOrThrow, rr as retiredNameGenerationsAfter, rs as malformedOutputsRefusalMessage, ru as importableOutputKeys, s as readProtection, sa as readsNoEchoDeleteValues, sd as resolveStateBucketWithDefault, si as supersededResourcesOf, sl as unionOfSecretBags, sn as formatResourceLine, so as applyCallerIdentityCredentials, sr as namesAnyDeclaredParameter, ss as malformedResourcePropertiesWarning, su as orphansCarriedFrom, t as DeployEngine, ta as ProviderRegistry, tc as MULTI_REGION_RECREATE_BLOCKED_TYPES, td as getLegacyStateBucketName, ti as holdsSupersededResources, tl as literalSplitDelimitersOf, tn as dropFailedHint, to as assertFlagRoleArn, tr as nameScopeOf, ts as malformedOrphansRefusalMessage, tu as hasReasonlessBaselineRefusal, ua as withPrintingSecrets, uc as coerceCfnBoolean, ud as stateBucketExistenceConfirmed, ui as noEchoComparisonForTemplate, ul as maskSecretsInError, uo as classifyRecordedSecretRegion, ur as WITHHELD_NAME_DISPLAY, us as malformedStateRefusalMessage, ut as computeImplicitDeleteEdges, uu as PhaseClock, va as RollbackInlinePolicyWriters, vd as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, vi as namingSecretsWithRecordedNoEcho, vl as pathCrossesDottedKey, vn as updateRefactorMarker, vo as isImpossibleEmptyStoredAttribute, vr as exportNameSecretExposure, vs as refuseMalformedOrphansForOrphan, vt as isAbsoluteAssetPath, vu as createAssetRedirectResolver, wa as isWaitAbandonedError, wd as refuseFailedLookups, wi as stateSecretNameNeedles, wl as physicalNameCopiesOf, wn as replayRollback, wo as cfnRefValueFromPhysicalId, wr as bindingSkippedOutputs, ws as refuseMalformedResourceEntriesForDestroy, wt as parentSuppliedValues, wu as ensureAssetStorage, xa as deleteLeftInPlace, xc as templateResourceTypes, xd as PARTITION_TABLE, xi as secretNamePrintingBags, xl as inheritNestedStackParameterAssociations, xn as pendingMovesRefusalMessage, xo as isNamelessDynamicReferenceError, xr as collectDeclaredOutputNames, xs as refuseMalformedResourceAttributesForOrphan, xt as templateIdentity, xu as AssetModeResolver, ya as UNSPECIFIED_SKIP_REASON, yd as decodeListingKey, yi as orphanRecordsPrintingBag, yl as spelledKeysOf, yn as hasPendingMovesOut, yo as carriesDynamicReference, yr as isWholeDynamicReferenceValue, ys as refuseMalformedOutputs, yt as listNestedTemplateRows, yu as loadPublishableAssetManifest, za as IntrinsicFunctionResolver, zc as noEchoCoordinatesOf, zd as renderAssemblyPathEscape, zl as isLockInfoExpired, zn as recordUnderIdIsNotOwn, zo as deployRefusesOrphanRowsReason, zr as parseMappingFile, zs as repairMalformedResourceEntriesForReadOnly, zt as recordRetainedForReadoption, zu as formatDockerLoginError } from "./deploy-engine-BywkSipb.js";
6
+ import { t as getCdkdVersion } from "./version-BwNgKr9o.js";
7
7
  import { randomBytes, randomUUID } from "node:crypto";
8
8
  import { CopyObjectCommand, CreateBucketCommand, DeleteBucketCommand, DeleteObjectsCommand, GetBucketLocationCommand, GetObjectCommand, HeadBucketCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchBucket, NotFound, PutBucketEncryptionCommand, PutBucketPolicyCommand, PutBucketVersioningCommand, PutObjectCommand, S3Client, S3ServiceException } from "@aws-sdk/client-s3";
9
9
  import { GetRoleCommand, GetUserCommand } from "@aws-sdk/client-iam";
@@ -1412,9 +1412,10 @@ async function synthCommand(stackPatterns, options) {
1412
1412
  ...options.region && { region: options.region },
1413
1413
  ...options.profile && { profile: options.profile },
1414
1414
  ...Object.keys(context).length > 0 && { context },
1415
- annotationsCheckedByCaller: true
1415
+ failedLookupsCheckedByCaller: true
1416
1416
  };
1417
- const { stacks: allStacks, assemblyDir } = await synthesizer.synthesize(synthOptions);
1417
+ const result = await synthesizer.synthesize(synthOptions);
1418
+ const { stacks: allStacks, assemblyDir } = result;
1418
1419
  const selected = stackPatterns.length > 0 ? matchStacks(allStacks, stackPatterns, { dedupe: "identity" }) : allStacks;
1419
1420
  if (selected.length === 0) throw new Error(renderNoStackMatch(stackPatterns, allStacks));
1420
1421
  const stacks = selected;
@@ -1422,6 +1423,7 @@ async function synthCommand(stackPatterns, options) {
1422
1423
  strict: options.strict === true,
1423
1424
  ignoreErrors: options.ignoreErrors === true
1424
1425
  });
1426
+ refuseFailedLookups([], allStacks, result.failedLookups);
1425
1427
  if (stacks.length === 1) {
1426
1428
  const template = stacks[0].template;
1427
1429
  process.stdout.write(toYaml(template));
@@ -1509,7 +1511,8 @@ async function listCommand(patterns, options) {
1509
1511
  ...options.region && { region: options.region },
1510
1512
  ...options.profile && { profile: options.profile },
1511
1513
  ...Object.keys(context).length > 0 && { context },
1512
- deferMacroExpansion: true
1514
+ deferMacroExpansion: true,
1515
+ failedLookupsCheckedByCaller: true
1513
1516
  };
1514
1517
  const allStacks = (await synthesizer.synthesize(synthOptions)).stacks;
1515
1518
  if (allStacks.length === 0) throw new Error(renderNoStackMatch(patterns, allStacks));
@@ -2193,6 +2196,37 @@ function renderApprovalRequest(request) {
2193
2196
  return `${lines.join("\n")}\n`;
2194
2197
  }
2195
2198
 
2199
+ // src/cli/commands/outputs-file.ts
2200
+ const outputsFileOption = new Option("-O, --outputs-file <path>", "Path to a file where stack outputs will be written as JSON, keyed by stack name. Also read from \"outputsFile\" in cdk.json.");
2201
+ function resolveOutputsFile(cliValue, cdkJson = loadCdkJson()) {
2202
+ if (cliValue !== void 0) return cliValue;
2203
+ const configured = cdkJson?.outputsFile;
2204
+ if (configured === void 0) return void 0;
2205
+ if (typeof configured === "string" && configured !== "") return configured;
2206
+ throw new CdkdError(`cdk.json "outputsFile" must be a non-empty string, got: ${displayIdent(JSON.stringify(configured))}`, "INVALID_OUTPUTS_FILE");
2207
+ }
2208
+ function toOutputValueString(value) {
2209
+ if (typeof value === "string") return value;
2210
+ if (Array.isArray(value)) return value.map((v) => toOutputValueString(v)).join(",");
2211
+ if (typeof value === "object" && value !== null) return JSON.stringify(value);
2212
+ return String(value);
2213
+ }
2214
+ function writeStackOutputsFile(path, outputs, options) {
2215
+ const target = resolve(path);
2216
+ try {
2217
+ mkdirSync(dirname(target), { recursive: true });
2218
+ writeFileSync(target, `${JSON.stringify(outputs, null, 2)}\n`);
2219
+ } catch (error) {
2220
+ const detail = displaySafe(error instanceof Error ? error.message : String(error));
2221
+ const message = `Failed to write stack outputs to ${displayIdent(target)}: ${detail}`;
2222
+ if (options.deployFailed) {
2223
+ getLogger().warn(message);
2224
+ return;
2225
+ }
2226
+ throw new CdkdError(message, "OUTPUTS_FILE_WRITE_FAILED");
2227
+ }
2228
+ }
2229
+
2196
2230
  // src/cli/commands/deployment-events-run.ts
2197
2231
  function startRunRecorder(args) {
2198
2232
  if (args.dryRun) return void 0;
@@ -2691,7 +2725,7 @@ function collectCrossStackRefs(node, onRef, unconditional) {
2691
2725
  // src/provisioning/register-providers.ts
2692
2726
  let providerClasses;
2693
2727
  function loadProviderClasses() {
2694
- providerClasses ??= import("./provider-classes-Bc4zBeE0.js");
2728
+ providerClasses ??= import("./provider-classes-Xl7ABznG.js");
2695
2729
  return providerClasses;
2696
2730
  }
2697
2731
  function registerAllProviders(registry, classes) {
@@ -3198,6 +3232,8 @@ async function deployCommand(stacks, options) {
3198
3232
  applyWaitFlagEnv(options);
3199
3233
  const requireApproval = resolveRequireApproval(options.requireApproval);
3200
3234
  const approveDeployment = requireApproval !== "never" && !options.dryRun ? createApprovalPrompter({ yes: options.yes ?? false }) : void 0;
3235
+ const resolvedOutputsFile = resolveOutputsFile(options.outputsFile);
3236
+ const outputsFile = options.dryRun ? void 0 : resolvedOutputsFile;
3201
3237
  const rawNamedRegion = rawCliRegion(options.region);
3202
3238
  foldRegionOption(options);
3203
3239
  await applyRoleArnIfSet({
@@ -3294,7 +3330,7 @@ Force-quit: stack locks may not be released. If the next run reports a lock, run
3294
3330
  ...Object.keys(context).length > 0 && { context },
3295
3331
  ...options.profile && { macroExpandS3ClientOpts: { profile: options.profile } },
3296
3332
  deferMacroExpansion: true,
3297
- annotationsCheckedByCaller: true
3333
+ failedLookupsCheckedByCaller: true
3298
3334
  };
3299
3335
  runClock.lap("config, region, credentials");
3300
3336
  const [result, statePrep] = await Promise.all([timePhase("run", "synth (beside the state bucket prep)", () => synthesizer.synthesize(synthOptions)), timePhase("run", "state bucket prep (beside synth)", () => statePrepPromise)]);
@@ -3368,6 +3404,7 @@ Force-quit: stack locks may not be released. If the next run reports a lock, run
3368
3404
  strict: options.strict === true,
3369
3405
  ignoreErrors: options.ignoreErrors === true
3370
3406
  });
3407
+ refuseFailedLookups([], allStacks, result.failedLookups);
3371
3408
  refuseMalformedNestedTemplateTrees(targetStacks);
3372
3409
  if (roleArnReferences.length > 0) {
3373
3410
  const stackByName = new Map(allStacks.map((s) => [s.stackName, s]));
@@ -3462,6 +3499,7 @@ Force-quit: stack locks may not be released. If the next run reports a lock, run
3462
3499
  let totalUnaddressed = 0;
3463
3500
  let totalCrossPrefixKept = 0;
3464
3501
  let cancelledStacks = 0;
3502
+ const stackOutputs = {};
3465
3503
  const runStack = async (stackInfo) => {
3466
3504
  return withSkipPrefix(skipPrefix, () => runStackInner(stackInfo));
3467
3505
  };
@@ -3665,6 +3703,7 @@ Force-quit: stack locks may not be released. If the next run reports a lock, run
3665
3703
  logger.info("\nOutputs:");
3666
3704
  for (const [key, value] of Object.entries(deployResult.outputs)) logger.info(` ${deployResult.stackName}.${key} = ${String(value)}`);
3667
3705
  }
3706
+ if (outputsFile !== void 0 && deployResult.outputs && Object.keys(deployResult.outputs).length > 0) stackOutputs[stackInfo.stackName] = Object.fromEntries(Object.entries(deployResult.outputs ?? {}).map(([key, value]) => [key, toOutputValueString(value)]));
3668
3707
  if (options.dryRun) logger.info(`\n${green("✓")} ${bold("Dry run completed")} - no actual changes made`);
3669
3708
  else if (stackUnaddressed > 0) logger.warn(`\n⚠ ${bold(`Stack ${deployResult.stackName} deployed, but ${stackUnaddressed} resource(s) were left unaddressed`)} — they may still exist in AWS. ` + (options.allowUnaddressed ? `Exiting 0 because --allow-unaddressed was passed.` : "This counts toward a non-zero exit (2 unless something else fails; pass --allow-unaddressed to exit 0)."));
3670
3709
  else logger.info(`\n${green("✓")} ${bold("Deployment completed successfully")}`);
@@ -3702,23 +3741,29 @@ Force-quit: stack locks may not be released. If the next run reports a lock, run
3702
3741
  for (const partial of reach.partial) logger.info(`--pin-cc-api ${partial.logicalId}: applies to ${partial.appliesTo.join(", ")}; not declared by ${partial.absentFrom.join(", ")}`);
3703
3742
  }
3704
3743
  runClock.lap("work graph build, recreate checks");
3705
- await workGraph.execute({
3706
- "asset-build": options.imageBuildConcurrency,
3707
- "asset-publish": options.assetPublishConcurrency,
3708
- stack: options.stackConcurrency
3709
- }, async (node) => {
3710
- if (node.type === "asset-build" || node.type === "asset-publish") await timePhase("run", node.type, () => assetPublisher.executeNode(node), node.id);
3711
- else {
3712
- const { stack: stackInfo } = node.data;
3713
- if (!bufferStackOutput) {
3714
- await runStack(stackInfo);
3715
- return;
3744
+ let workGraphCompleted = false;
3745
+ try {
3746
+ await workGraph.execute({
3747
+ "asset-build": options.imageBuildConcurrency,
3748
+ "asset-publish": options.assetPublishConcurrency,
3749
+ stack: options.stackConcurrency
3750
+ }, async (node) => {
3751
+ if (node.type === "asset-build" || node.type === "asset-publish") await timePhase("run", node.type, () => assetPublisher.executeNode(node), node.id);
3752
+ else {
3753
+ const { stack: stackInfo } = node.data;
3754
+ if (!bufferStackOutput) {
3755
+ await runStack(stackInfo);
3756
+ return;
3757
+ }
3758
+ const outcome = await runStackBuffered(() => runStack(stackInfo));
3759
+ if (outcome.lines.length > 0) process.stdout.write(outcome.lines.join("\n") + "\n");
3760
+ if (!outcome.ok) throw outcome.error;
3716
3761
  }
3717
- const outcome = await runStackBuffered(() => runStack(stackInfo));
3718
- if (outcome.lines.length > 0) process.stdout.write(outcome.lines.join("\n") + "\n");
3719
- if (!outcome.ok) throw outcome.error;
3720
- }
3721
- });
3762
+ });
3763
+ workGraphCompleted = true;
3764
+ } finally {
3765
+ if (outputsFile !== void 0) writeStackOutputsFile(outputsFile, stackOutputs, { deployFailed: !workGraphCompleted });
3766
+ }
3722
3767
  if (totalUnaddressed > 0 && !options.allowUnaddressed) throw new PartialFailureError(`Deploy left ${totalUnaddressed} resource(s) unaddressed, so they may still exist in AWS. The two cases differ in what happens next: a DELETE the provider could not issue KEEPS its state record, so the next 'cdkd deploy' re-attempts it, while a replacement's surviving predecessor is NOT tracked and will never be retried — delete it by hand. ` + (totalCrossPrefixKept > 0 ? "A replacement kept because another state prefix records the stack, or the check could not run, keeps its old resource and applies no new value — resolve the pair, or let the check run, and re-deploy. " : "") + "The per-stack summaries above give the breakdown, and each resource's own warning names its cause and remedy. " + (cancelledStacks > 0 ? `Note ${cancelledStacks} stack(s) were also cancelled and never deployed, so the template is not fully applied beyond the resources named above. ` : "") + `Pass --allow-unaddressed to exit 0 instead.`);
3723
3768
  } finally {
3724
3769
  runClock.lap("assets + stacks, summary");
@@ -3739,6 +3784,7 @@ function createDeployCommand() {
3739
3784
  ...deployOptions,
3740
3785
  skipFinalSnapshotOption,
3741
3786
  requireApprovalOption,
3787
+ outputsFileOption,
3742
3788
  ...contextOptions,
3743
3789
  ...annotationMessageOptions
3744
3790
  ].forEach((opt) => cmd.addOption(opt));
@@ -6323,9 +6369,11 @@ async function diffCommand(stacks, options) {
6323
6369
  ...Object.keys(context).length > 0 && { context },
6324
6370
  stateBucket,
6325
6371
  ...options.profile && { macroExpandS3ClientOpts: { profile: options.profile } },
6326
- deferMacroExpansion: true
6372
+ deferMacroExpansion: true,
6373
+ failedLookupsCheckedByCaller: true
6327
6374
  };
6328
- const { stacks: allStacks } = await synthesizer.synthesize(synthOptions);
6375
+ const result = await synthesizer.synthesize(synthOptions);
6376
+ const { stacks: allStacks } = result;
6329
6377
  logger.info(`Found ${allStacks.length} stack(s) in assembly`);
6330
6378
  const stackPatterns = stacks.length > 0 ? stacks : options.stack ? [options.stack] : [];
6331
6379
  let targetStacks;
@@ -6339,6 +6387,7 @@ async function diffCommand(stacks, options) {
6339
6387
  else if (allStacks.length === 1) targetStacks = allStacks;
6340
6388
  else throw new Error(`Multiple stacks found: ${allStacks.map(describeStack).join(", ")}. Specify stack name(s) or use --all (top-level stacks; '**' for every stack)`);
6341
6389
  if (targetStacks.length === 0) throw new Error(renderNoStackMatch(stackPatterns, allStacks));
6390
+ refuseFailedLookups(targetStacks, allStacks, result.failedLookups);
6342
6391
  await synthesizer.expandMacrosForStacks(targetStacks, synthOptions);
6343
6392
  const stateConfig = {
6344
6393
  bucket: stateBucket,
@@ -6918,7 +6967,8 @@ async function scrubCommand(stacks, options) {
6918
6967
  ...options.profile && { profile: options.profile },
6919
6968
  ...Object.keys(context).length > 0 && { context },
6920
6969
  stateBucket,
6921
- deferMacroExpansion: true
6970
+ deferMacroExpansion: true,
6971
+ failedLookupsCheckedByCaller: true
6922
6972
  };
6923
6973
  let result;
6924
6974
  try {
@@ -6942,6 +6992,7 @@ async function scrubCommand(stacks, options) {
6942
6992
  }
6943
6993
  const unmatchedNested = stackPatterns.filter((p) => p.includes("~") && matchStacks(allStacks, [p]).length === 0);
6944
6994
  if (unmatchedNested.length > 0) logger.warn(safeMsg`${unmatchedNested.map((p) => displayStackName(p)).join(", ")} matched no stack and was NOT scrubbed. ${nestedStackPatternHint(unmatchedNested)}`);
6995
+ refuseFailedLookups(targetStacks, allStacks, result.failedLookups);
6945
6996
  await synthesizer.expandMacrosForStacks(targetStacks, synthOptions);
6946
6997
  targetStacks = orderScrubTargets(targetStacks);
6947
6998
  const stateConfig = {
@@ -13077,7 +13128,8 @@ async function destroyCommand(stackArgs, options) {
13077
13128
  app: appCmd,
13078
13129
  output: options.output || "cdk.out",
13079
13130
  ...Object.keys(context).length > 0 && { context },
13080
- deferMacroExpansion: true
13131
+ deferMacroExpansion: true,
13132
+ failedLookupsCheckedByCaller: true
13081
13133
  });
13082
13134
  appStacks = result.stacks.map((s) => ({
13083
13135
  stackName: s.stackName,
@@ -14260,15 +14312,18 @@ async function orphanCommand(pathArgs, options) {
14260
14312
  logger.info(synthesisStatusMessage(appCmd, "Synthesizing CDK app to read template..."));
14261
14313
  const synthesizer = new Synthesizer();
14262
14314
  const context = parseContextOptions(options.context);
14263
- const resolved = resolveConstructPaths(pathArgs, (await synthesizer.synthesize({
14315
+ const result = await synthesizer.synthesize({
14264
14316
  app: appCmd,
14265
14317
  output: options.output || "cdk.out",
14266
14318
  ...Object.keys(context).length > 0 && { context },
14267
14319
  stateBucket,
14268
- ...options.profile && { macroExpandS3ClientOpts: { profile: options.profile } }
14269
- })).stacks);
14320
+ ...options.profile && { macroExpandS3ClientOpts: { profile: options.profile } },
14321
+ failedLookupsCheckedByCaller: true
14322
+ });
14323
+ const resolved = resolveConstructPaths(pathArgs, result.stacks);
14270
14324
  const stackInfo = resolved.stack;
14271
14325
  const orphanLogicalIds = resolved.logicalIds;
14326
+ refuseFailedLookups([stackInfo], result.stacks, result.failedLookups);
14272
14327
  const { region: targetRegion, recordRegion } = await pickStackRegion$1(stateBackend, stackInfo.stackName, stackInfo.region, options.stackRegion);
14273
14328
  logger.info(`Target: ${displayStackName(stackInfo.stackName)} (${displayIdent(targetRegion)}); orphaning ${orphanLogicalIds.length} resource(s): ${displaySafeList(orphanLogicalIds)}`);
14274
14329
  const owner = `${process.env["USER"] || "unknown"}@${process.env["HOSTNAME"] || "host"}:${process.pid}`;
@@ -15512,7 +15567,8 @@ async function exportCommand(stackArg, options) {
15512
15567
  output: options.output || "cdk.out",
15513
15568
  ...Object.keys(context).length > 0 && { context },
15514
15569
  stateBucket,
15515
- ...options.profile && { macroExpandS3ClientOpts: { profile: options.profile } }
15570
+ ...options.profile && { macroExpandS3ClientOpts: { profile: options.profile } },
15571
+ failedLookupsCheckedByCaller: true
15516
15572
  });
15517
15573
  const stackPatterns = stackArg ? [stackArg] : [];
15518
15574
  if (result.stacks.length === 0) throw new Error(renderNoStackMatch(stackPatterns, result.stacks));
@@ -15525,6 +15581,7 @@ async function exportCommand(stackArg, options) {
15525
15581
  }
15526
15582
  } else if (result.stacks.length === 1) stackInfo = result.stacks[0];
15527
15583
  else throw new Error(`Multiple stacks found: ${result.stacks.map(describeStack).join(", ")}. Specify the stack name as a positional argument.`);
15584
+ refuseFailedLookups([stackInfo], result.stacks, result.failedLookups);
15528
15585
  template = stackInfo.template;
15529
15586
  resolvedStackName = stackInfo.stackName;
15530
15587
  synthedRegion = stackInfo.region;
@@ -22231,10 +22288,12 @@ async function refactorCommand(stacks, options) {
22231
22288
  ...Object.keys(context).length > 0 && { context },
22232
22289
  stateBucket,
22233
22290
  ...options.profile && { macroExpandS3ClientOpts: { profile: options.profile } },
22234
- deferMacroExpansion: true
22291
+ deferMacroExpansion: true,
22292
+ failedLookupsCheckedByCaller: true
22235
22293
  };
22236
- const { stacks: allStacks } = await synthesizer.synthesize(synthOptions);
22294
+ const { stacks: allStacks, failedLookups } = await synthesizer.synthesize(synthOptions);
22237
22295
  const targetStacks = selectStacks(allStacks, stacks, options);
22296
+ refuseFailedLookups(targetStacks, allStacks, failedLookups);
22238
22297
  await synthesizer.expandMacrosForStacks(targetStacks, synthOptions);
22239
22298
  const stateConfig = {
22240
22299
  bucket: stateBucket,
@@ -22494,9 +22553,11 @@ async function publishAssetsCommand(stacks, options) {
22494
22553
  output: options.output,
22495
22554
  ...options.region && { region: options.region },
22496
22555
  ...options.profile && { profile: options.profile },
22497
- ...Object.keys(context).length > 0 && { context }
22556
+ ...Object.keys(context).length > 0 && { context },
22557
+ failedLookupsCheckedByCaller: true
22498
22558
  };
22499
- const { stacks: allStacks } = await synthesizer.synthesize(synthOptions);
22559
+ const result = await synthesizer.synthesize(synthOptions);
22560
+ const { stacks: allStacks } = result;
22500
22561
  logger.debug(`Found ${allStacks.length} stack(s) in assembly`);
22501
22562
  const stackPatterns = stacks.length > 0 ? stacks : options.stack ? [options.stack] : [];
22502
22563
  let targetStacks;
@@ -22506,6 +22567,7 @@ async function publishAssetsCommand(stacks, options) {
22506
22567
  else if (allStacks.length === 1) targetStacks = allStacks;
22507
22568
  else throw new Error(`Multiple stacks found: ${allStacks.map(describeStack).join(", ")}. Specify stack name(s) or use --all`);
22508
22569
  if (targetStacks.length === 0) throw new Error(renderNoStackMatch(stackPatterns, allStacks));
22570
+ refuseFailedLookups(targetStacks, allStacks, result.failedLookups);
22509
22571
  const effectiveRegion = await resolveEffectiveRegion(options);
22510
22572
  exportInferredRegionForSdk(effectiveRegion);
22511
22573
  const baseRegion = effectiveRegion.region;
@@ -22906,7 +22968,8 @@ async function importCommand(stackArg, options) {
22906
22968
  output: options.output || "cdk.out",
22907
22969
  ...Object.keys(context).length > 0 && { context },
22908
22970
  stateBucket,
22909
- ...options.profile && { macroExpandS3ClientOpts: { profile: options.profile } }
22971
+ ...options.profile && { macroExpandS3ClientOpts: { profile: options.profile } },
22972
+ failedLookupsCheckedByCaller: true
22910
22973
  });
22911
22974
  const stackPatterns = stackArg ? [stackArg] : [];
22912
22975
  if (result.stacks.length === 0) throw new Error(renderNoStackMatch(stackPatterns, result.stacks));
@@ -22919,6 +22982,7 @@ async function importCommand(stackArg, options) {
22919
22982
  }
22920
22983
  } else if (result.stacks.length === 1) stackInfo = result.stacks[0];
22921
22984
  else throw new Error(`Multiple stacks found: ${result.stacks.map(describeStack).join(", ")}. Specify the stack name as a positional argument.`);
22985
+ refuseFailedLookups([stackInfo], result.stacks, result.failedLookups);
22922
22986
  const targetRegion = await stackRegionResolver({
22923
22987
  effective: effectiveRegion,
22924
22988
  probe: stateBackend,
@@ -27005,13 +27069,15 @@ async function localStartApiCommand(target, options) {
27005
27069
  ...options.profile && { profile: options.profile },
27006
27070
  ...Object.keys(context).length > 0 && { context },
27007
27071
  ...options.stateBucket && { stateBucket: options.stateBucket },
27008
- ...options.profile && { macroExpandS3ClientOpts: { profile: options.profile } }
27072
+ ...options.profile && { macroExpandS3ClientOpts: { profile: options.profile } },
27073
+ failedLookupsCheckedByCaller: true
27009
27074
  };
27010
- const { stacks } = await synthesizer.synthesize(synthOpts);
27075
+ const { stacks, failedLookups } = await synthesizer.synthesize(synthOpts);
27011
27076
  const cfnStackFallback = typeof options.fromCfnStack === "string" ? options.fromCfnStack : void 0;
27012
27077
  const targetStackPrefix = targetStackHint(target, stacks);
27013
27078
  const targetStacks = pickTargetStacks(stacks, options.stack, cfnStackFallback, targetStackPrefix);
27014
27079
  if (targetStacks.length === 0) throw new Error("No stacks matched. Pass --stack '<name>' (or --from-cfn-stack '<name>') or run from a single-stack app.");
27080
+ refuseFailedLookups(targetStacks, stacks, failedLookups);
27015
27081
  const routedStackNames = targetStacks.map((s) => s.stackName);
27016
27082
  tryEmitFromCfnRedundancyTipOnce(options.fromCfnStack, routedStackNames, fromCfnTipEmitted, (routedStackName) => {
27017
27083
  logger.info(`tip: --from-cfn-stack value matches the routed stack name (${routedStackName}); you can omit the value: \`cdkd local start-api ... --from-cfn-stack\` (bare flag) resolves to the same value.`);
@@ -29265,10 +29331,12 @@ async function localRunTaskCommand(target, options) {
29265
29331
  ...options.profile && { profile: options.profile },
29266
29332
  ...Object.keys(context).length > 0 && { context },
29267
29333
  ...options.stateBucket && { stateBucket: options.stateBucket },
29268
- ...options.profile && { macroExpandS3ClientOpts: { profile: options.profile } }
29334
+ ...options.profile && { macroExpandS3ClientOpts: { profile: options.profile } },
29335
+ failedLookupsCheckedByCaller: true
29269
29336
  };
29270
- const { stacks } = await synthesizer.synthesize(synthOpts);
29337
+ const { stacks, failedLookups } = await synthesizer.synthesize(synthOpts);
29271
29338
  const candidate = pickCandidateStack(parseEcsTarget(target), target, stacks);
29339
+ refuseFailedLookups(candidate ? [candidate] : [], stacks, failedLookups);
29272
29340
  stateProvider = createLocalStateProvider$1(options, candidate?.stackName ?? "", candidate?.region);
29273
29341
  const { context: imageContext, stateRecordRegion } = await buildEcsImageResolutionContext$1(candidate, stateProvider, options);
29274
29342
  const task = resolveEcsTaskTarget(target, stacks, imageContext);
@@ -30024,9 +30092,10 @@ async function localInvokeAgentCoreCommand(target, options) {
30024
30092
  output: options.output,
30025
30093
  ...options.region && { region: options.region },
30026
30094
  ...options.profile && { profile: options.profile },
30027
- ...Object.keys(context).length > 0 && { context }
30095
+ ...Object.keys(context).length > 0 && { context },
30096
+ failedLookupsCheckedByCaller: true
30028
30097
  };
30029
- const { stacks, assemblyDir } = await synthesizer.synthesize(synthOpts);
30098
+ const { stacks, assemblyDir, failedLookups } = await synthesizer.synthesize(synthOpts);
30030
30099
  const resolvedTarget = await resolveSingleTarget(target, {
30031
30100
  entries: listTargets(stacks).agentCoreRuntimes,
30032
30101
  message: "Select an AgentCore Runtime to invoke",
@@ -30034,6 +30103,7 @@ async function localInvokeAgentCoreCommand(target, options) {
30034
30103
  onMissing: () => new CdkdError(`${getEmbedConfig().cliName} invoke-agentcore requires a <target> (an AgentCore Runtime display path or logical ID). Run \`${getEmbedConfig().cliName} list\` to see them, or run it in a TTY to pick interactively.`, "LOCAL_INVOKE_AGENTCORE_TARGET_REQUIRED")
30035
30104
  });
30036
30105
  const candidate = pickAgentCoreCandidateStack$1(resolvedTarget, stacks);
30106
+ refuseFailedLookups(candidate ? [candidate] : [], stacks, failedLookups);
30037
30107
  stateProvider = createLocalStateProvider$1(options, candidate?.stackName ?? "", await resolveCfnFallbackRegion(options, candidate?.region));
30038
30108
  const { context: imageContext, loaded: loadedState } = stateProvider && candidate ? await buildAgentCoreImageContext(candidate, stateProvider, options) : {
30039
30109
  context: void 0,
@@ -30142,7 +30212,8 @@ async function localInvokeAgentCoreCommand(target, options) {
30142
30212
  softReload: async (newSourceDir) => {
30143
30213
  if (!containerId) throw new CdkdError("softReload: no live container to docker cp / docker restart into.", "LOCAL_INVOKE_AGENTCORE_WATCH_NO_CONTAINER");
30144
30214
  await softReloadAgentContainer(containerId, newSourceDir);
30145
- const { stacks: newStacks } = await synthesizer.synthesize(synthOpts);
30215
+ const { stacks: newStacks, failedLookups: newFailed } = await synthesizer.synthesize(synthOpts);
30216
+ refuseFailedLookups(newStacks.filter((st) => st.stackName === resolved.stack.stackName), newStacks, newFailed);
30146
30217
  return { stacks: newStacks };
30147
30218
  }
30148
30219
  });
@@ -30207,7 +30278,8 @@ async function localInvokeAgentCoreCommand(target, options) {
30207
30278
  softReload: async (newSourceDir) => {
30208
30279
  if (!containerId) throw new CdkdError("softReload: no live container to docker cp / docker restart into.", "LOCAL_INVOKE_AGENTCORE_WATCH_NO_CONTAINER");
30209
30280
  await softReloadAgentContainer(containerId, newSourceDir);
30210
- const { stacks: newStacks } = await synthesizer.synthesize(synthOpts);
30281
+ const { stacks: newStacks, failedLookups: newFailed } = await synthesizer.synthesize(synthOpts);
30282
+ refuseFailedLookups(newStacks.filter((st) => st.stackName === resolved.stack.stackName), newStacks, newFailed);
30211
30283
  return { stacks: newStacks };
30212
30284
  }
30213
30285
  });
@@ -30297,8 +30369,9 @@ async function bootAgentCoreContainer(args) {
30297
30369
  async function rebuildAgentCoreContainer(args) {
30298
30370
  const { cleanupBefore, startGuard, resolvedTarget, options, synthesizer, synthOpts, profileCredentials, profileCredsFile, stateProvider, isMcp, isA2a } = args;
30299
30371
  await cleanupBefore();
30300
- const { stacks: newStacks, assemblyDir: newAssemblyDir } = await synthesizer.synthesize(synthOpts);
30372
+ const { stacks: newStacks, assemblyDir: newAssemblyDir, failedLookups: newFailed } = await synthesizer.synthesize(synthOpts);
30301
30373
  const newCandidate = pickAgentCoreCandidateStack$1(resolvedTarget, newStacks);
30374
+ refuseFailedLookups(newCandidate ? [newCandidate] : [], newStacks, newFailed);
30302
30375
  const { context: newImageContext, loaded: newLoaded } = stateProvider && newCandidate ? await buildAgentCoreImageContext(newCandidate, stateProvider, options) : {
30303
30376
  context: void 0,
30304
30377
  loaded: void 0
@@ -31067,10 +31140,12 @@ async function localInvokeCommand(target, options) {
31067
31140
  ...options.profile && { profile: options.profile },
31068
31141
  ...Object.keys(context).length > 0 && { context },
31069
31142
  ...options.stateBucket && { stateBucket: options.stateBucket },
31070
- ...options.profile && { macroExpandS3ClientOpts: { profile: options.profile } }
31143
+ ...options.profile && { macroExpandS3ClientOpts: { profile: options.profile } },
31144
+ failedLookupsCheckedByCaller: true
31071
31145
  };
31072
- const { stacks } = await synthesizer.synthesize(synthOpts);
31146
+ const { stacks, failedLookups } = await synthesizer.synthesize(synthOpts);
31073
31147
  const lambda = resolveLambdaTarget(target, stacks);
31148
+ refuseFailedLookups([lambda.stack], stacks, failedLookups);
31074
31149
  const targetLabel = lambda.kind === "zip" ? lambda.runtime : "container image";
31075
31150
  logger.info(`Target: ${lambda.stack.stackName}/${lambda.logicalId} (${targetLabel})`);
31076
31151
  imagePlan = await resolveImagePlan(lambda, options);
@@ -31700,4 +31775,4 @@ function collectVerbFlags(program) {
31700
31775
  }
31701
31776
 
31702
31777
  export { resolveSecretDerivedPrincipals as a, buildProgram, isResolvableSecretPrincipalList as i, runDestroyForStack as n, canonicalizeIpProtocolValue as o, holdsUnprovenSecretPrincipalToken as r, canonicalizeIpv4Cidr as t };
31703
- //# sourceMappingURL=program-DQppIvNH.js.map
31778
+ //# sourceMappingURL=program-mCaPWKiv.js.map