cdk-local 0.65.1 → 0.65.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/dist/cli.js +3 -3
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/internal.js +2 -2
- package/dist/{local-list-JDGfdnip.js → local-list-CJj6-Ska.js} +89 -21
- package/dist/local-list-CJj6-Ska.js.map +1 -0
- package/dist/{local-list-CogAxLul.d.ts → local-list-DwByVWWX.d.ts} +5 -2
- package/dist/{local-list-CogAxLul.d.ts.map → local-list-DwByVWWX.d.ts.map} +1 -1
- package/dist/{local-start-service-DN37tzcc.js → local-start-service-KNA6t86q.js} +2 -2
- package/dist/{local-start-service-DN37tzcc.js.map → local-start-service-KNA6t86q.js.map} +1 -1
- package/package.json +1 -1
- package/dist/local-list-JDGfdnip.js.map +0 -1
package/README.md
CHANGED
|
@@ -32,15 +32,15 @@ cdkl invoke MyStack/Fn --from-cfn-stack # one Lambda against real DynamoDB /
|
|
|
32
32
|
## Why cdk-local
|
|
33
33
|
|
|
34
34
|
- **Zero-friction local execution** — run standalone: no deploy, no IAM access, just Docker and your CDK app. Onboard new engineers, review a PR by actually running its code, or work on an OSS CDK sample without owning the maintainer's account.
|
|
35
|
-
- **Iterate against your real deployed stack — including its data.** `--from-cfn-stack` reads the deployed CloudFormation stack and injects its real ARNs, Secret values, and IAM credentials into the container, so you stay on the real DynamoDB rows, S3 objects, Cognito users, and Secret values your IAM credentials reach
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
35
|
+
- **Iterate against your real deployed stack — including its data.** `--from-cfn-stack` reads the deployed CloudFormation stack and injects its real ARNs, Secret values, and IAM credentials into the container — no `.env` file to maintain, no manual ARN copy-paste — so you stay on the real DynamoDB rows, S3 objects, Cognito users, and Secret values your IAM credentials reach. An offline emulator can fake the API surface, but you'd still own the cost of seeding it:
|
|
36
|
+
- dumping production data into a local DB
|
|
37
|
+
- mirroring Secret values into local Secrets Manager
|
|
38
|
+
- anonymizing fixtures across schema changes
|
|
39
|
+
- scripting realistic Cognito test users
|
|
40
40
|
|
|
41
41
|
## What runs locally
|
|
42
42
|
|
|
43
|
-
cdk-local runs your **application compute** in Docker, using your CDK app as the source of truth. It deliberately does NOT emulate AWS managed services: your code reaches DynamoDB / S3 / Secrets Manager / Cognito / SNS / SQS / etc. as **real AWS** through your IAM credentials (`--assume-role`, or `--from-cfn-stack` to bind to a deployed stack).
|
|
43
|
+
cdk-local runs your **application compute** in Docker, using your CDK app as the source of truth. It deliberately does NOT emulate AWS managed services: your code reaches DynamoDB / S3 / Secrets Manager / Cognito / SNS / SQS / etc. as **real AWS** through your IAM credentials (`--assume-role`, or `--from-cfn-stack` to bind to a deployed stack).
|
|
44
44
|
|
|
45
45
|
The locally executable resources are listed under [Supported resources](#supported-resources).
|
|
46
46
|
|
package/dist/cli.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { E as createLocalStartApiCommand, Kt as createLocalInvokeCommand, S as createLocalRunTaskCommand, n as createLocalListCommand, o as createLocalStartAlbCommand, w as createLocalInvokeAgentCoreCommand } from "./local-list-
|
|
3
|
-
import { t as createLocalStartServiceCommand } from "./local-start-service-
|
|
2
|
+
import { E as createLocalStartApiCommand, Kt as createLocalInvokeCommand, S as createLocalRunTaskCommand, n as createLocalListCommand, o as createLocalStartAlbCommand, w as createLocalInvokeAgentCoreCommand } from "./local-list-CJj6-Ska.js";
|
|
3
|
+
import { t as createLocalStartServiceCommand } from "./local-start-service-KNA6t86q.js";
|
|
4
4
|
import { Command } from "commander";
|
|
5
5
|
|
|
6
6
|
//#region src/cli/index.ts
|
|
7
7
|
const program = new Command();
|
|
8
|
-
program.name("cdkl").description("Run AWS CDK stacks locally with Docker.").version("0.65.
|
|
8
|
+
program.name("cdkl").description("Run AWS CDK stacks locally with Docker.").version("0.65.3");
|
|
9
9
|
program.addCommand(createLocalInvokeCommand());
|
|
10
10
|
program.addCommand(createLocalInvokeAgentCoreCommand());
|
|
11
11
|
program.addCommand(createLocalStartApiCommand());
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as createLocalStartApiCommand, $n as
|
|
1
|
+
import { $ as createLocalStartApiCommand, $n as LocalStateProvider, B as TargetListing, Bn as getEmbedConfig, G as CreateLocalRunTaskCommandOptions, Gn as LocalStateSourceError, H as listTargets, Hn as setEmbedConfig, In as createLocalInvokeCommand, Jn as isCfnFlagPresent, Kn as LocalStateSourceOptions, Kt as createLocalInvokeAgentCoreCommand, Pn as CreateLocalInvokeCommandOptions, Qn as resolveCfnStackName, Un as ExtraStateProviders, V as countTargets, Vn as resetEmbedConfig, Wn as LocalStateProviderFactory, Wt as CreateLocalInvokeAgentCoreCommandOptions, X as CreateLocalStartApiCommandOptions, Xn as resolveCfnFallbackRegion, Yn as rejectExplicitCfnStackWithMultipleStacks, Zn as resolveCfnRegion, a as formatTargetListing, ar as CrossStackResolver, cr as SubstitutionContext, dr as substituteEnvVarsFromState, er as LocalStateRecord, fr as substituteEnvVarsFromStateAsync, i as createLocalListCommand, ir as resolveSsmParameters, l as createLocalStartAlbCommand, lr as substituteAgainstState, n as FormatTargetListingOptions, nr as SsmParameterRef, o as CreateLocalStartAlbCommandOptions, or as PseudoParameters, pr as CloudFormationTemplate, q as createLocalRunTaskCommand, qn as createLocalStateProvider, rr as collectSsmParameterRefs, sr as StateEnvSubstitutionAudit, t as CreateLocalListCommandOptions, tr as ResolvedSsmParameters, ur as substituteAgainstStateAsync, z as TargetEntry, zn as CdkLocalEmbedConfig } from "./local-list-DwByVWWX.js";
|
|
2
2
|
import { Command } from "commander";
|
|
3
3
|
import { CloudFormationClient } from "@aws-sdk/client-cloudformation";
|
|
4
4
|
|
|
@@ -25,6 +25,7 @@ declare class CfnLocalStateProvider implements LocalStateProvider {
|
|
|
25
25
|
private agentCoreControlClient;
|
|
26
26
|
private readonly clientOptions;
|
|
27
27
|
private disposed;
|
|
28
|
+
private lastLoadError;
|
|
28
29
|
constructor(opts: CfnLocalStateProviderOptions);
|
|
29
30
|
private getClient;
|
|
30
31
|
private getLambdaClient;
|
|
@@ -35,6 +36,7 @@ declare class CfnLocalStateProvider implements LocalStateProvider {
|
|
|
35
36
|
resolveLambdaExecutionRoleArn(functionPhysicalId: string): Promise<string | undefined>;
|
|
36
37
|
resolveAgentCoreRuntimeRoleArn(runtimePhysicalId: string): Promise<string | undefined>;
|
|
37
38
|
load(_stackName: string, _synthRegion: string | undefined): Promise<LocalStateRecord | undefined>;
|
|
39
|
+
getLastLoadError(): string | undefined;
|
|
38
40
|
buildCrossStackResolver(_consumerRegion: string): Promise<CrossStackResolver | undefined>;
|
|
39
41
|
dispose(): void;
|
|
40
42
|
}
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/cli/commands/local-start-service.ts","../src/local/cfn-local-state-provider.ts"],"mappings":";;;;;UA0BiB,qCAAA;EACf,mBAAA,GAAsB,mBAAA;EAEtB,WAAA,GAAc,mBAAA;AAAA;AAAA,iBAmCA,8BAAA,CACd,IAAA,GAAM,qCAAA,GACL,OAAA;;;UCkBc,4BAAA;EAOf,YAAA;EAKA,MAAA;EAiBA,OAAA;AAAA;AAAA,cAGW,qBAAA,YAAiC,kBAAA;EAAA,SAG5B,KAAA;EAAA,iBACC,YAAA;EAAA,iBACA,MAAA;EAAA,QAKT,MAAA;EAAA,QAKA,YAAA;EAAA,QAKA,SAAA;EAAA,QAKA,sBAAA;EAAA,iBACS,aAAA;EAAA,QAQT,QAAA;cAEI,IAAA,EAAM,4BAAA;EAAA,QAOV,SAAA;EAAA,QAmBA,eAAA;EAAA,QAaA,yBAAA;EAAA,QAaA,YAAA;EA6BK,4BAAA,CACX,QAAA,EAAU,sBAAA,GACT,OAAA,CAAQ,qBAAA;EAsBE,0BAAA,CACX,kBAAA,WACC,OAAA,CAAQ,MAAA;EAiCE,6BAAA,CACX,kBAAA,WACC,OAAA;EAiCU,8BAAA,CACX,iBAAA,WACC,OAAA;EAmCU,IAAA,CACX,UAAA,UACA,YAAA,uBACC,OAAA,CAAQ,gBAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/cli/commands/local-start-service.ts","../src/local/cfn-local-state-provider.ts"],"mappings":";;;;;UA0BiB,qCAAA;EACf,mBAAA,GAAsB,mBAAA;EAEtB,WAAA,GAAc,mBAAA;AAAA;AAAA,iBAmCA,8BAAA,CACd,IAAA,GAAM,qCAAA,GACL,OAAA;;;UCkBc,4BAAA;EAOf,YAAA;EAKA,MAAA;EAiBA,OAAA;AAAA;AAAA,cAGW,qBAAA,YAAiC,kBAAA;EAAA,SAG5B,KAAA;EAAA,iBACC,YAAA;EAAA,iBACA,MAAA;EAAA,QAKT,MAAA;EAAA,QAKA,YAAA;EAAA,QAKA,SAAA;EAAA,QAKA,sBAAA;EAAA,iBACS,aAAA;EAAA,QAQT,QAAA;EAAA,QASA,aAAA;cAEI,IAAA,EAAM,4BAAA;EAAA,QAOV,SAAA;EAAA,QAmBA,eAAA;EAAA,QAaA,yBAAA;EAAA,QAaA,YAAA;EA6BK,4BAAA,CACX,QAAA,EAAU,sBAAA,GACT,OAAA,CAAQ,qBAAA;EAsBE,0BAAA,CACX,kBAAA,WACC,OAAA,CAAQ,MAAA;EAiCE,6BAAA,CACX,kBAAA,WACC,OAAA;EAiCU,8BAAA,CACX,iBAAA,WACC,OAAA;EAmCU,IAAA,CACX,UAAA,UACA,YAAA,uBACC,OAAA,CAAQ,gBAAA;EAsEJ,gBAAA,CAAA;EAoBM,uBAAA,CACX,eAAA,WACC,OAAA,CAAQ,kBAAA;EA8DJ,OAAA,CAAA;AAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as getEmbedConfig, l as resetEmbedConfig, u as setEmbedConfig } from "./docker-cmd-voNPrcRh.js";
|
|
2
|
-
import { $t as substituteAgainstState, E as createLocalStartApiCommand, Kt as createLocalInvokeCommand, S as createLocalRunTaskCommand, _n as countTargets, an as LocalStateSourceError, cn as rejectExplicitCfnStackWithMultipleStacks, dn as resolveCfnStackName, en as substituteAgainstStateAsync, fn as CfnLocalStateProvider, ln as resolveCfnFallbackRegion, mn as resolveSsmParameters, n as createLocalListCommand, nn as substituteEnvVarsFromStateAsync, o as createLocalStartAlbCommand, on as createLocalStateProvider, pn as collectSsmParameterRefs, r as formatTargetListing, sn as isCfnFlagPresent, tn as substituteEnvVarsFromState, un as resolveCfnRegion, vn as listTargets, w as createLocalInvokeAgentCoreCommand } from "./local-list-
|
|
3
|
-
import { t as createLocalStartServiceCommand } from "./local-start-service-
|
|
2
|
+
import { $t as substituteAgainstState, E as createLocalStartApiCommand, Kt as createLocalInvokeCommand, S as createLocalRunTaskCommand, _n as countTargets, an as LocalStateSourceError, cn as rejectExplicitCfnStackWithMultipleStacks, dn as resolveCfnStackName, en as substituteAgainstStateAsync, fn as CfnLocalStateProvider, ln as resolveCfnFallbackRegion, mn as resolveSsmParameters, n as createLocalListCommand, nn as substituteEnvVarsFromStateAsync, o as createLocalStartAlbCommand, on as createLocalStateProvider, pn as collectSsmParameterRefs, r as formatTargetListing, sn as isCfnFlagPresent, tn as substituteEnvVarsFromState, un as resolveCfnRegion, vn as listTargets, w as createLocalInvokeAgentCoreCommand } from "./local-list-CJj6-Ska.js";
|
|
3
|
+
import { t as createLocalStartServiceCommand } from "./local-start-service-KNA6t86q.js";
|
|
4
4
|
|
|
5
5
|
export { CfnLocalStateProvider, LocalStateSourceError, collectSsmParameterRefs, countTargets, createLocalInvokeAgentCoreCommand, createLocalInvokeCommand, createLocalListCommand, createLocalRunTaskCommand, createLocalStartAlbCommand, createLocalStartApiCommand, createLocalStartServiceCommand, createLocalStateProvider, formatTargetListing, getEmbedConfig, isCfnFlagPresent, listTargets, rejectExplicitCfnStackWithMultipleStacks, resetEmbedConfig, resolveCfnFallbackRegion, resolveCfnRegion, resolveCfnStackName, resolveSsmParameters, setEmbedConfig, substituteAgainstState, substituteAgainstStateAsync, substituteEnvVarsFromState, substituteEnvVarsFromStateAsync };
|
package/dist/internal.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as A2A_PATH, A as runEcsServiceEmulator, An as derivePseudoParametersFromRegion, At as isFunctionUrlOacFronted, Bt as VtlEvaluationError, C as PlannedRedirectAction, Cn as AgentCoreCustomClaim, Ct as LambdaTokenAuthorizer, D as parseMaxTasks, Dn as pickAgentCoreCandidateStack, Dt as applyCorsResponseHeaders, E as buildEcsImageResolutionContext, En as ResolvedAgentCoreRuntime, Et as CorsConfig, F as CloudMapIndex, Ft as IntegrationResponseEntry, Gt as addInvokeAgentCoreSpecificOptions, Ht as CdkWatchConfig, I as buildCloudMapIndex,
|
|
1
|
+
import { $t as A2A_PATH, A as runEcsServiceEmulator, An as derivePseudoParametersFromRegion, At as isFunctionUrlOacFronted, Bt as VtlEvaluationError, C as PlannedRedirectAction, Cn as AgentCoreCustomClaim, Ct as LambdaTokenAuthorizer, D as parseMaxTasks, Dn as pickAgentCoreCandidateStack, Dt as applyCorsResponseHeaders, E as buildEcsImageResolutionContext, En as ResolvedAgentCoreRuntime, Et as CorsConfig, F as CloudMapIndex, Fn as addInvokeSpecificOptions, Ft as IntegrationResponseEntry, Gt as addInvokeAgentCoreSpecificOptions, Ht as CdkWatchConfig, I as buildCloudMapIndex, It as evaluateResponseParameters, J as EcsTaskResolutionError, Jt as resolveEnvVars, K as addRunTaskSpecificOptions, L as CloudMapRegistry, Ln as ResolvedArnLambdaLayer, Lt as pickResponseTemplate, M as ResolvedListenerAction, Mn as substituteImagePlaceholders, Mt as DiscoveredRoute, N as isApplicationLoadBalancer, Nn as tryResolveImageFnJoin, Nt as RestV1IntegrationConfig, O as parseRestartPolicy, On as resolveAgentCoreTarget, Ot as buildCorsConfigByApiId, P as resolveAlbFrontDoor, Pt as discoverRoutes, Q as addStartApiSpecificOptions, Qt as A2A_CONTAINER_PORT, R as RegistrationHandle, Rn as StackInfo, Rt as selectIntegrationResponse, S as PlannedLambdaForwardTarget, Sn as AgentCoreCodeArtifact, St as LambdaRequestAuthorizer, T as addCommonEcsServiceOptions, Tn as AgentCoreResolutionError, Tt as attachAuthorizers, U as CdkLocalError, Ut as resolveWatchConfig, Vt as ContainerPool, W as LocalInvokeBuildError, Xt as InvokeAgentCoreWsOptions, Y as ApiTargetSubset, Yt as AgentCoreWsResult, Z as WatchPredicates, Zt as invokeAgentCoreWs, _ as PlannedEcsForwardTarget, _n as AGENTCORE_A2A_PROTOCOL, _t as verifyJwtViaDiscovery, an as MCP_PATH, at as readMtlsMaterialsFromDisk, b as PlannedForwardTarget, bn as AGENTCORE_MCP_PROTOCOL, bt as createAuthorizerCache, c as albStrategy, cn as McpInvokeResult, ct as defaultCredentialsLoader, d as resolveAlbTarget, dn as parseSseForJsonRpc, dt as JwtCustomClaim, en as A2aInvokeOptions, et as createWatchPredicates, f as EcsServiceEmulatorOptions, fn as AGENTCORE_SESSION_ID_HEADER, ft as buildCognitoJwksUrl, g as PlannedAction, gn as waitForAgentCorePing, gt as verifyJwtAuthorizer, h as MAX_TASKS_SUBNET_RANGE_CAP, hn as invokeAgentCore, ht as verifyCognitoJwt, in as MCP_CONTAINER_PORT, it as StartedApiServer, j as FrontDoorForwardTarget, jn as formatStateRemedy, jt as matchPreflight, k as resolveSharedSidecarCredentials, kn as ImageResolutionContext, kt as buildCorsConfigFromCloudFrontChain, ln as McpJsonRpcRequest, lt as DiscoveryJwtAuthorizer, m as FrontDoorPlan, mn as InvokeAgentCoreOptions, mt as createJwksCache, nn as A2aJsonRpcRequest, nt as MtlsServerConfig, on as MCP_PROTOCOL_VERSION, ot as startApiServer, p as EmulatorStrategy, pn as AgentCoreInvokeResult, pr as CloudFormationTemplate, pt as buildJwksUrlFromIssuer, qt as EnvOverrideFile, r as addListSpecificOptions, rn as a2aInvokeOnce, rt as ServerState, s as addAlbSpecificOptions, sn as McpInvokeOptions, st as CredentialsLoader, tn as A2aInvokeResult, tt as resolveApiTargetSubset, u as parseLbPortOverrides, un as mcpInvokeOnce, ut as JwksCache, v as PlannedFixedResponseAction, vn as AGENTCORE_AGUI_PROTOCOL, vt as AuthorizerCache, w as ServiceBoot, wn as AgentCoreJwtAuthorizer, wt as RouteWithAuth, x as PlannedFrontDoorListener, xn as AGENTCORE_RUNTIME_TYPE, xt as AuthorizerInfo, y as PlannedForwardAction, yn as AGENTCORE_HTTP_PROTOCOL, yt as CachedAuthorizerResult, z as TargetEntry, zt as tryParseStatus } from "./local-list-DwByVWWX.js";
|
|
2
2
|
import { WebSocket } from "ws";
|
|
3
3
|
import { IncomingMessage, ServerResponse } from "node:http";
|
|
4
4
|
|
|
@@ -443,5 +443,5 @@ interface ResolveParams {
|
|
|
443
443
|
}
|
|
444
444
|
declare function resolveSingleTarget(provided: string | undefined, params: ResolveParams): Promise<string>;
|
|
445
445
|
//#endregion
|
|
446
|
-
export { A2A_CONTAINER_PORT, A2A_PATH, type A2aInvokeOptions, type A2aInvokeResult, type A2aJsonRpcRequest, AGENTCORE_A2A_PROTOCOL, AGENTCORE_AGUI_PROTOCOL, AGENTCORE_HTTP_PROTOCOL, AGENTCORE_MCP_PROTOCOL, AGENTCORE_RUNTIME_TYPE, AGENTCORE_SESSION_ID_HEADER, AGENTCORE_SIGV4_SERVICE, type AgentCoreCodeArtifact, type AgentCoreCustomClaim, type AgentCoreInvokeResult, type AgentCoreJwtAuthorizer, AgentCoreResolutionError, type AgentCoreWsResult, type ApiServerGroup, type ApiTargetSubset, type AuthorizerCache, type AuthorizerEventOverlay, type AuthorizerInfo, type BuildAgentCoreCodeImageOptions, type BuildContainerImageOptions, type CachedAuthorizerResult, type CdkWatchConfig, type CloudMapIndex, CloudMapRegistry, ConnectionRegistry, type ConnectionRegistryEntry, type CorsConfig, type CredentialsLoader, type DiscoveredRoute, type DiscoveredWebSocketApi, type DiscoveryJwtAuthorizer, type DownloadS3BundleOptions, type EcsServiceEmulatorOptions, EcsTaskResolutionError, type EmulatorStrategy, type EnvOverrideFile, type ExtractedS3Bundle, type FileWatcher, type FileWatcherOptions, type FrontDoorForwardTarget, type FrontDoorPlan, HOST_GATEWAY_MIN_VERSION, type HttpRequestSnapshot, type ImageResolutionContext, type IntegrationResponseEntry, type InvokeAgentCoreOptions, type InvokeAgentCoreWsOptions, type JwksCache, type JwtCustomClaim, type LambdaArnResolveOutcome, LocalInvokeBuildError, MAX_TASKS_SUBNET_RANGE_CAP, MCP_CONTAINER_PORT, MCP_PATH, MCP_PROTOCOL_VERSION, type MatchedRouteContext, type McpInvokeOptions, type McpInvokeResult, type McpJsonRpcRequest, type MtlsServerConfig, type PlannedAction, type PlannedEcsForwardTarget, type PlannedFixedResponseAction, type PlannedForwardAction, type PlannedForwardTarget, type PlannedFrontDoorListener, type PlannedLambdaForwardTarget, type PlannedRedirectAction, type RegistrationHandle, type RequestParameterContext, type ResolveParametersOutcome, type ResolvedAgentCoreRuntime, type ResolvedListenerAction, type ResolvedStage, type RestV1IntegrationConfig, type RouteMatchResult, type RouteWithAuth, type S3BundleCredentials, type S3BundleLocation, SUPPORTED_CODE_RUNTIMES, type ServerState, type ServiceBoot, type SigV4Credentials, type SignAgentCoreInvocationOptions, type SignedAgentCoreHeaders, type StartedApiServer, type TranslatedHttpResponse, VtlEvaluationError, type WatchPredicates, type WebSocketHandshakeSnapshot, type WebSocketLambdaEvent, type WebSocketRouteEntry, a2aInvokeOnce, addAlbSpecificOptions, addCommonEcsServiceOptions, addInvokeAgentCoreSpecificOptions, addInvokeSpecificOptions, addListSpecificOptions, addRunTaskSpecificOptions, addStartApiSpecificOptions, albStrategy, applyAuthorizerOverlay, applyCorsResponseHeaders, architectureToPlatform, attachAuthorizers, attachStageContext, availableApiIdentifiers, bufferToBody, buildAgentCoreCodeImage, buildCloudMapIndex, buildCognitoJwksUrl, buildConnectEvent, buildContainerImage, buildCorsConfigByApiId, buildCorsConfigFromCloudFrontChain, buildDisconnectEvent, buildEcsImageResolutionContext, buildHttpApiV2Event, buildJwksUrlFromIssuer, buildMessageEvent, buildMethodArn, buildMgmtEndpointEnvUrl, buildRestV1Event, buildStageMap, computeCodeImageTag, computeRequestIdentityHash, createAuthorizerCache, createFileWatcher, createJwksCache, createWatchPredicates, defaultCredentialsLoader, derivePseudoParametersFromRegion, discoverRoutes, discoverWebSocketApis, discoverWebSocketApisOrThrow, downloadAndExtractS3Bundle, evaluateCachedLambdaPolicy, evaluateResponseParameters, filterRoutesByApiIdentifier, filterRoutesByApiIdentifiers, getContainerNetworkIp, groupRoutesByServer, handleConnectionsRequest, invokeAgentCore, invokeAgentCoreWs, invokeRequestAuthorizer, invokeTokenAuthorizer, isApplicationLoadBalancer, isFunctionUrlOacFronted, matchPreflight, matchRoute, materializeLayerFromArn, mcpInvokeOnce, parseConnectionsPath, parseLbPortOverrides, parseMaxTasks, parseRestartPolicy, parseSelectionExpressionPath, parseSseForJsonRpc, pickAgentCoreCandidateStack, pickRefLogicalId, pickResponseTemplate, probeHostGatewaySupport, readMtlsMaterialsFromDisk, renderCodeDockerfile, resolveAgentCoreTarget, resolveAlbFrontDoor, resolveAlbTarget, resolveApiTargetSubset, resolveEnvVars, resolveLambdaArnIntrinsic, resolveRuntimeCodeMountPath, resolveRuntimeFileExtension, resolveRuntimeImage, resolveSelectionExpression, resolveServiceIntegrationParameters, resolveSharedSidecarCredentials, resolveSingleTarget, resolveWatchConfig, runEcsServiceEmulator, selectIntegrationResponse, signAgentCoreInvocation, startApiServer, substituteImagePlaceholders, toCmdArgv, translateLambdaResponse, tryParseStatus, tryResolveImageFnJoin, verifyCognitoJwt, verifyJwtAuthorizer, verifyJwtViaDiscovery, waitForAgentCorePing };
|
|
446
|
+
export { A2A_CONTAINER_PORT, A2A_PATH, type A2aInvokeOptions, type A2aInvokeResult, type A2aJsonRpcRequest, AGENTCORE_A2A_PROTOCOL, AGENTCORE_AGUI_PROTOCOL, AGENTCORE_HTTP_PROTOCOL, AGENTCORE_MCP_PROTOCOL, AGENTCORE_RUNTIME_TYPE, AGENTCORE_SESSION_ID_HEADER, AGENTCORE_SIGV4_SERVICE, type AgentCoreCodeArtifact, type AgentCoreCustomClaim, type AgentCoreInvokeResult, type AgentCoreJwtAuthorizer, AgentCoreResolutionError, type AgentCoreWsResult, type ApiServerGroup, type ApiTargetSubset, type AuthorizerCache, type AuthorizerEventOverlay, type AuthorizerInfo, type BuildAgentCoreCodeImageOptions, type BuildContainerImageOptions, type CachedAuthorizerResult, type CdkWatchConfig, type CloudMapIndex, CloudMapRegistry, ConnectionRegistry, type ConnectionRegistryEntry, type CorsConfig, type CredentialsLoader, type DiscoveredRoute, type DiscoveredWebSocketApi, type DiscoveryJwtAuthorizer, type DownloadS3BundleOptions, type EcsServiceEmulatorOptions, EcsTaskResolutionError, type EmulatorStrategy, type EnvOverrideFile, type ExtractedS3Bundle, type FileWatcher, type FileWatcherOptions, type FrontDoorForwardTarget, type FrontDoorPlan, HOST_GATEWAY_MIN_VERSION, type HttpRequestSnapshot, type ImageResolutionContext, type IntegrationResponseEntry, type InvokeAgentCoreOptions, type InvokeAgentCoreWsOptions, type JwksCache, type JwtCustomClaim, type LambdaArnResolveOutcome, LocalInvokeBuildError, MAX_TASKS_SUBNET_RANGE_CAP, MCP_CONTAINER_PORT, MCP_PATH, MCP_PROTOCOL_VERSION, type MatchedRouteContext, type McpInvokeOptions, type McpInvokeResult, type McpJsonRpcRequest, type MtlsServerConfig, type PlannedAction, type PlannedEcsForwardTarget, type PlannedFixedResponseAction, type PlannedForwardAction, type PlannedForwardTarget, type PlannedFrontDoorListener, type PlannedLambdaForwardTarget, type PlannedRedirectAction, type RegistrationHandle, type RequestParameterContext, type ResolveParametersOutcome, type ResolvedAgentCoreRuntime, type ResolvedListenerAction, type ResolvedStage, type RestV1IntegrationConfig, type RouteMatchResult, type RouteWithAuth, type S3BundleCredentials, type S3BundleLocation, SUPPORTED_CODE_RUNTIMES, type ServerState, type ServiceBoot, type SigV4Credentials, type SignAgentCoreInvocationOptions, type SignedAgentCoreHeaders, type StartedApiServer, type TranslatedHttpResponse, VtlEvaluationError, type WatchPredicates, type WebSocketHandshakeSnapshot, type WebSocketLambdaEvent, type WebSocketRouteEntry, a2aInvokeOnce, addAlbSpecificOptions, addCommonEcsServiceOptions, addInvokeAgentCoreSpecificOptions, addInvokeSpecificOptions, addListSpecificOptions, addRunTaskSpecificOptions, addStartApiSpecificOptions, albStrategy, applyAuthorizerOverlay, applyCorsResponseHeaders, architectureToPlatform, attachAuthorizers, attachStageContext, availableApiIdentifiers, bufferToBody, buildAgentCoreCodeImage, buildCloudMapIndex, buildCognitoJwksUrl, buildConnectEvent, buildContainerImage, buildCorsConfigByApiId, buildCorsConfigFromCloudFrontChain, buildDisconnectEvent, buildEcsImageResolutionContext, buildHttpApiV2Event, buildJwksUrlFromIssuer, buildMessageEvent, buildMethodArn, buildMgmtEndpointEnvUrl, buildRestV1Event, buildStageMap, computeCodeImageTag, computeRequestIdentityHash, createAuthorizerCache, createFileWatcher, createJwksCache, createWatchPredicates, defaultCredentialsLoader, derivePseudoParametersFromRegion, discoverRoutes, discoverWebSocketApis, discoverWebSocketApisOrThrow, downloadAndExtractS3Bundle, evaluateCachedLambdaPolicy, evaluateResponseParameters, filterRoutesByApiIdentifier, filterRoutesByApiIdentifiers, formatStateRemedy, getContainerNetworkIp, groupRoutesByServer, handleConnectionsRequest, invokeAgentCore, invokeAgentCoreWs, invokeRequestAuthorizer, invokeTokenAuthorizer, isApplicationLoadBalancer, isFunctionUrlOacFronted, matchPreflight, matchRoute, materializeLayerFromArn, mcpInvokeOnce, parseConnectionsPath, parseLbPortOverrides, parseMaxTasks, parseRestartPolicy, parseSelectionExpressionPath, parseSseForJsonRpc, pickAgentCoreCandidateStack, pickRefLogicalId, pickResponseTemplate, probeHostGatewaySupport, readMtlsMaterialsFromDisk, renderCodeDockerfile, resolveAgentCoreTarget, resolveAlbFrontDoor, resolveAlbTarget, resolveApiTargetSubset, resolveEnvVars, resolveLambdaArnIntrinsic, resolveRuntimeCodeMountPath, resolveRuntimeFileExtension, resolveRuntimeImage, resolveSelectionExpression, resolveServiceIntegrationParameters, resolveSharedSidecarCredentials, resolveSingleTarget, resolveWatchConfig, runEcsServiceEmulator, selectIntegrationResponse, signAgentCoreInvocation, startApiServer, substituteImagePlaceholders, toCmdArgv, translateLambdaResponse, tryParseStatus, tryResolveImageFnJoin, verifyCognitoJwt, verifyJwtAuthorizer, verifyJwtViaDiscovery, waitForAgentCorePing };
|
|
447
447
|
//# sourceMappingURL=internal.d.ts.map
|
package/dist/internal.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as pickResponseTemplate, A as createFileWatcher, An as AgentCoreResolutionError, At as MCP_PATH, B as resolveServiceIntegrationParameters, Bt as SUPPORTED_CODE_RUNTIMES, C as addInvokeAgentCoreSpecificOptions, Cn as pickRefLogicalId, Ct as isFunctionUrlOacFronted, D as createWatchPredicates, Dn as AGENTCORE_HTTP_PROTOCOL, Dt as A2A_PATH, En as AGENTCORE_AGUI_PROTOCOL, Et as A2A_CONTAINER_PORT, F as filterRoutesByApiIdentifiers, Fn as
|
|
1
|
+
import { $ as pickResponseTemplate, A as createFileWatcher, An as AgentCoreResolutionError, At as MCP_PATH, B as resolveServiceIntegrationParameters, Bt as SUPPORTED_CODE_RUNTIMES, C as addInvokeAgentCoreSpecificOptions, Cn as pickRefLogicalId, Ct as isFunctionUrlOacFronted, D as createWatchPredicates, Dn as AGENTCORE_HTTP_PROTOCOL, Dt as A2A_PATH, En as AGENTCORE_AGUI_PROTOCOL, Et as A2A_CONTAINER_PORT, F as filterRoutesByApiIdentifiers, Fn as substituteImagePlaceholders, Ft as signAgentCoreInvocation, G as invokeRequestAuthorizer, Gt as addInvokeSpecificOptions, H as buildMethodArn, Ht as computeCodeImageTag, I as groupRoutesByServer, In as tryResolveImageFnJoin, It as AGENTCORE_SESSION_ID_HEADER, J as translateLambdaResponse, Jt as buildContainerImage, K as invokeTokenAuthorizer, L as readMtlsMaterialsFromDisk, Ln as LocalInvokeBuildError, Lt as invokeAgentCore, M as buildStageMap, Mn as resolveAgentCoreTarget, Mt as mcpInvokeOnce, N as availableApiIdentifiers, Nn as derivePseudoParametersFromRegion, Nt as parseSseForJsonRpc, O as resolveApiTargetSubset, On as AGENTCORE_MCP_PROTOCOL, Ot as a2aInvokeOnce, P as filterRoutesByApiIdentifier, Pn as formatStateRemedy, Pt as AGENTCORE_SIGV4_SERVICE, Q as evaluateResponseParameters, Qt as EcsTaskResolutionError, R as startApiServer, Rt as waitForAgentCorePing, Sn as discoverRoutes, St as buildCorsConfigFromCloudFrontChain, T as addStartApiSpecificOptions, Tn as AGENTCORE_A2A_PROTOCOL, Tt as invokeAgentCoreWs, U as computeRequestIdentityHash, Ut as renderCodeDockerfile, V as defaultCredentialsLoader, Vt as buildAgentCoreCodeImage, W as evaluateCachedLambdaPolicy, Wt as toCmdArgv, X as buildHttpApiV2Event, Xt as resolveRuntimeFileExtension, Y as applyAuthorizerOverlay, Yt as resolveRuntimeCodeMountPath, Z as buildRestV1Event, Zt as resolveRuntimeImage, _ as runEcsServiceEmulator, _t as verifyJwtAuthorizer, a as albStrategy, at as bufferToBody, b as getContainerNetworkIp, bn as discoverWebSocketApisOrThrow, bt as applyCorsResponseHeaders, c as resolveAlbTarget, ct as handleConnectionsRequest, d as MAX_TASKS_SUBNET_RANGE_CAP, dt as buildDisconnectEvent, et as selectIntegrationResponse, f as addCommonEcsServiceOptions, ft as buildMessageEvent, g as resolveSharedSidecarCredentials, gn as resolveSingleTarget, gt as verifyCognitoJwt, h as parseRestartPolicy, hn as resolveWatchConfig, ht as createJwksCache, i as addAlbSpecificOptions, in as materializeLayerFromArn, it as probeHostGatewaySupport, j as attachStageContext, jn as pickAgentCoreCandidateStack, jt as MCP_PROTOCOL_VERSION, k as createAuthorizerCache, kn as AGENTCORE_RUNTIME_TYPE, kt as MCP_CONTAINER_PORT, l as isApplicationLoadBalancer, lt as parseConnectionsPath, m as parseMaxTasks, mt as buildJwksUrlFromIssuer, nt as VtlEvaluationError, ot as ConnectionRegistry, p as buildEcsImageResolutionContext, pt as buildCognitoJwksUrl, q as matchRoute, qt as architectureToPlatform, rn as resolveEnvVars, rt as HOST_GATEWAY_MIN_VERSION, s as parseLbPortOverrides, st as buildMgmtEndpointEnvUrl, t as addListSpecificOptions, tt as tryParseStatus, u as resolveAlbFrontDoor, ut as buildConnectEvent, v as buildCloudMapIndex, vt as verifyJwtViaDiscovery, wn as resolveLambdaArnIntrinsic, wt as matchPreflight, x as addRunTaskSpecificOptions, xn as parseSelectionExpressionPath, xt as buildCorsConfigByApiId, y as CloudMapRegistry, yn as discoverWebSocketApis, yt as attachAuthorizers, z as resolveSelectionExpression, zt as downloadAndExtractS3Bundle } from "./local-list-CJj6-Ska.js";
|
|
2
2
|
|
|
3
|
-
export { A2A_CONTAINER_PORT, A2A_PATH, AGENTCORE_A2A_PROTOCOL, AGENTCORE_AGUI_PROTOCOL, AGENTCORE_HTTP_PROTOCOL, AGENTCORE_MCP_PROTOCOL, AGENTCORE_RUNTIME_TYPE, AGENTCORE_SESSION_ID_HEADER, AGENTCORE_SIGV4_SERVICE, AgentCoreResolutionError, CloudMapRegistry, ConnectionRegistry, EcsTaskResolutionError, HOST_GATEWAY_MIN_VERSION, LocalInvokeBuildError, MAX_TASKS_SUBNET_RANGE_CAP, MCP_CONTAINER_PORT, MCP_PATH, MCP_PROTOCOL_VERSION, SUPPORTED_CODE_RUNTIMES, VtlEvaluationError, a2aInvokeOnce, addAlbSpecificOptions, addCommonEcsServiceOptions, addInvokeAgentCoreSpecificOptions, addInvokeSpecificOptions, addListSpecificOptions, addRunTaskSpecificOptions, addStartApiSpecificOptions, albStrategy, applyAuthorizerOverlay, applyCorsResponseHeaders, architectureToPlatform, attachAuthorizers, attachStageContext, availableApiIdentifiers, bufferToBody, buildAgentCoreCodeImage, buildCloudMapIndex, buildCognitoJwksUrl, buildConnectEvent, buildContainerImage, buildCorsConfigByApiId, buildCorsConfigFromCloudFrontChain, buildDisconnectEvent, buildEcsImageResolutionContext, buildHttpApiV2Event, buildJwksUrlFromIssuer, buildMessageEvent, buildMethodArn, buildMgmtEndpointEnvUrl, buildRestV1Event, buildStageMap, computeCodeImageTag, computeRequestIdentityHash, createAuthorizerCache, createFileWatcher, createJwksCache, createWatchPredicates, defaultCredentialsLoader, derivePseudoParametersFromRegion, discoverRoutes, discoverWebSocketApis, discoverWebSocketApisOrThrow, downloadAndExtractS3Bundle, evaluateCachedLambdaPolicy, evaluateResponseParameters, filterRoutesByApiIdentifier, filterRoutesByApiIdentifiers, getContainerNetworkIp, groupRoutesByServer, handleConnectionsRequest, invokeAgentCore, invokeAgentCoreWs, invokeRequestAuthorizer, invokeTokenAuthorizer, isApplicationLoadBalancer, isFunctionUrlOacFronted, matchPreflight, matchRoute, materializeLayerFromArn, mcpInvokeOnce, parseConnectionsPath, parseLbPortOverrides, parseMaxTasks, parseRestartPolicy, parseSelectionExpressionPath, parseSseForJsonRpc, pickAgentCoreCandidateStack, pickRefLogicalId, pickResponseTemplate, probeHostGatewaySupport, readMtlsMaterialsFromDisk, renderCodeDockerfile, resolveAgentCoreTarget, resolveAlbFrontDoor, resolveAlbTarget, resolveApiTargetSubset, resolveEnvVars, resolveLambdaArnIntrinsic, resolveRuntimeCodeMountPath, resolveRuntimeFileExtension, resolveRuntimeImage, resolveSelectionExpression, resolveServiceIntegrationParameters, resolveSharedSidecarCredentials, resolveSingleTarget, resolveWatchConfig, runEcsServiceEmulator, selectIntegrationResponse, signAgentCoreInvocation, startApiServer, substituteImagePlaceholders, toCmdArgv, translateLambdaResponse, tryParseStatus, tryResolveImageFnJoin, verifyCognitoJwt, verifyJwtAuthorizer, verifyJwtViaDiscovery, waitForAgentCorePing };
|
|
3
|
+
export { A2A_CONTAINER_PORT, A2A_PATH, AGENTCORE_A2A_PROTOCOL, AGENTCORE_AGUI_PROTOCOL, AGENTCORE_HTTP_PROTOCOL, AGENTCORE_MCP_PROTOCOL, AGENTCORE_RUNTIME_TYPE, AGENTCORE_SESSION_ID_HEADER, AGENTCORE_SIGV4_SERVICE, AgentCoreResolutionError, CloudMapRegistry, ConnectionRegistry, EcsTaskResolutionError, HOST_GATEWAY_MIN_VERSION, LocalInvokeBuildError, MAX_TASKS_SUBNET_RANGE_CAP, MCP_CONTAINER_PORT, MCP_PATH, MCP_PROTOCOL_VERSION, SUPPORTED_CODE_RUNTIMES, VtlEvaluationError, a2aInvokeOnce, addAlbSpecificOptions, addCommonEcsServiceOptions, addInvokeAgentCoreSpecificOptions, addInvokeSpecificOptions, addListSpecificOptions, addRunTaskSpecificOptions, addStartApiSpecificOptions, albStrategy, applyAuthorizerOverlay, applyCorsResponseHeaders, architectureToPlatform, attachAuthorizers, attachStageContext, availableApiIdentifiers, bufferToBody, buildAgentCoreCodeImage, buildCloudMapIndex, buildCognitoJwksUrl, buildConnectEvent, buildContainerImage, buildCorsConfigByApiId, buildCorsConfigFromCloudFrontChain, buildDisconnectEvent, buildEcsImageResolutionContext, buildHttpApiV2Event, buildJwksUrlFromIssuer, buildMessageEvent, buildMethodArn, buildMgmtEndpointEnvUrl, buildRestV1Event, buildStageMap, computeCodeImageTag, computeRequestIdentityHash, createAuthorizerCache, createFileWatcher, createJwksCache, createWatchPredicates, defaultCredentialsLoader, derivePseudoParametersFromRegion, discoverRoutes, discoverWebSocketApis, discoverWebSocketApisOrThrow, downloadAndExtractS3Bundle, evaluateCachedLambdaPolicy, evaluateResponseParameters, filterRoutesByApiIdentifier, filterRoutesByApiIdentifiers, formatStateRemedy, getContainerNetworkIp, groupRoutesByServer, handleConnectionsRequest, invokeAgentCore, invokeAgentCoreWs, invokeRequestAuthorizer, invokeTokenAuthorizer, isApplicationLoadBalancer, isFunctionUrlOacFronted, matchPreflight, matchRoute, materializeLayerFromArn, mcpInvokeOnce, parseConnectionsPath, parseLbPortOverrides, parseMaxTasks, parseRestartPolicy, parseSelectionExpressionPath, parseSseForJsonRpc, pickAgentCoreCandidateStack, pickRefLogicalId, pickResponseTemplate, probeHostGatewaySupport, readMtlsMaterialsFromDisk, renderCodeDockerfile, resolveAgentCoreTarget, resolveAlbFrontDoor, resolveAlbTarget, resolveApiTargetSubset, resolveEnvVars, resolveLambdaArnIntrinsic, resolveRuntimeCodeMountPath, resolveRuntimeFileExtension, resolveRuntimeImage, resolveSelectionExpression, resolveServiceIntegrationParameters, resolveSharedSidecarCredentials, resolveSingleTarget, resolveWatchConfig, runEcsServiceEmulator, selectIntegrationResponse, signAgentCoreInvocation, startApiServer, substituteImagePlaceholders, toCmdArgv, translateLambdaResponse, tryParseStatus, tryResolveImageFnJoin, verifyCognitoJwt, verifyJwtAuthorizer, verifyJwtViaDiscovery, waitForAgentCorePing };
|
|
@@ -417,6 +417,24 @@ function stackMatchesPattern(stack, pattern) {
|
|
|
417
417
|
//#endregion
|
|
418
418
|
//#region src/local/intrinsic-image.ts
|
|
419
419
|
/**
|
|
420
|
+
* Render the resolver-error remedy string for a "needs deployed state"
|
|
421
|
+
* failure. When the context records that a state-source provider's
|
|
422
|
+
* `load()` was attempted but failed ({@link ImageResolutionContext.stateLoadFailureMessage}),
|
|
423
|
+
* the hint surfaces the underlying failure and points at the
|
|
424
|
+
* stack-name / region / profile knobs instead of repeating "pass
|
|
425
|
+
* --from-cfn-stack" — the user already passed it and seeing the same
|
|
426
|
+
* flag suggested back is misleading. Otherwise the original hint is
|
|
427
|
+
* emitted verbatim.
|
|
428
|
+
*
|
|
429
|
+
* Returned as a clause without a trailing punctuation so callers can
|
|
430
|
+
* concatenate it with their alternatives (e.g. "..., build via
|
|
431
|
+
* ContainerImage.fromAsset, or pin a public image.").
|
|
432
|
+
*/
|
|
433
|
+
function formatStateRemedy(context) {
|
|
434
|
+
if (context?.stateLoadFailureMessage) return `the state-source attempt failed: ${context.stateLoadFailureMessage}; verify the stack name (try --from-cfn-stack <deployed-name> if it differs from the synthesized name) and that --region / --profile target the right account`;
|
|
435
|
+
return "pass --from-cfn-stack to load the deployed stack state";
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
420
438
|
* Derive the AWS pseudo parameters that are trivially knowable from the
|
|
421
439
|
* deploy region alone, without any STS call or state load.
|
|
422
440
|
* `urlSuffix` and `partition` follow the canonical AWS partition rules:
|
|
@@ -823,7 +841,7 @@ function resolveLambdaTarget(target, stacks) {
|
|
|
823
841
|
const { logicalId, resource } = match;
|
|
824
842
|
if (resource.Type !== "AWS::Lambda::Function") {
|
|
825
843
|
if (resource.Type.startsWith("Custom::")) throw new LocalInvokeResolutionError(`Resource '${logicalId}' in ${stack.stackName} is a Custom Resource (${resource.Type}), not a Lambda function. Custom Resources are invoked by the deploy framework, not by users. If you want to test the underlying handler, target the ServiceToken Lambda directly.`);
|
|
826
|
-
throw new LocalInvokeResolutionError(`Resource '${logicalId}' in ${stack.stackName} is ${resource.Type}, not a Lambda function. ${getEmbedConfig().cliName}
|
|
844
|
+
throw new LocalInvokeResolutionError(`Resource '${logicalId}' in ${stack.stackName} is ${resource.Type}, not a Lambda function. ${getEmbedConfig().cliName} only invokes AWS::Lambda::Function resources.`);
|
|
827
845
|
}
|
|
828
846
|
return extractLambdaProperties(stack, logicalId, resource, resources);
|
|
829
847
|
}
|
|
@@ -967,10 +985,10 @@ function extractImageUri$1(value, logicalId, stackName, resources, region) {
|
|
|
967
985
|
const pseudoParameters = derivePseudoParametersFromRegion(region);
|
|
968
986
|
const joinResolved = tryResolveImageFnJoin(value, resources, pseudoParameters ? { pseudoParameters } : void 0);
|
|
969
987
|
if (joinResolved.kind === "resolved") return joinResolved.uri;
|
|
970
|
-
if (joinResolved.kind === "needs-state") throw new LocalInvokeResolutionError(`Lambda '${logicalId}' in ${stackName} references same-stack ECR repository '${joinResolved.repoLogicalId}' via Fn::Join. ${getEmbedConfig().cliName}
|
|
971
|
-
if (joinResolved.kind === "unsupported-join") throw new LocalInvokeResolutionError(`Lambda '${logicalId}' in ${stackName} has an unsupported Fn::Join Code.ImageUri shape: ${joinResolved.reason}. ${getEmbedConfig().cliName}
|
|
988
|
+
if (joinResolved.kind === "needs-state") throw new LocalInvokeResolutionError(`Lambda '${logicalId}' in ${stackName} references same-stack ECR repository '${joinResolved.repoLogicalId}' via Fn::Join. ${getEmbedConfig().cliName} cannot resolve the repository URI without state — deploy the stack first (so ${getEmbedConfig().productName} records the repository physical id), rebuild via lambda.DockerImageCode.fromImageAsset, or pin a public image.`);
|
|
989
|
+
if (joinResolved.kind === "unsupported-join") throw new LocalInvokeResolutionError(`Lambda '${logicalId}' in ${stackName} has an unsupported Fn::Join Code.ImageUri shape: ${joinResolved.reason}. ${getEmbedConfig().cliName} recognizes the canonical CDK 2.x lambda.DockerImageCode.fromEcr Fn::Join shape (delimiter "" with nested Fn::Select/Fn::Split over an ECR Repository Arn GetAtt + Ref to the repo).`);
|
|
972
990
|
const accountIdHint = pseudoParameters ? ` (likely \${AWS::AccountId}, which ${getEmbedConfig().productName} cannot derive without --from-state or STS)` : ` (${getEmbedConfig().productName} could not derive AWS pseudo parameters because stack.region was undefined)`;
|
|
973
|
-
throw new LocalInvokeResolutionError(`Lambda '${logicalId}' in ${stackName} has an Fn::Join Code.ImageUri that ${getEmbedConfig().cliName}
|
|
991
|
+
throw new LocalInvokeResolutionError(`Lambda '${logicalId}' in ${stackName} has an Fn::Join Code.ImageUri that ${getEmbedConfig().cliName} cannot resolve${accountIdHint}. Workarounds: deploy first and run with --from-state, or pin a fully-literal public image URI.`);
|
|
974
992
|
}
|
|
975
993
|
}
|
|
976
994
|
}
|
|
@@ -992,7 +1010,7 @@ function extractImageLambdaProperties(args) {
|
|
|
992
1010
|
const first = arches[0];
|
|
993
1011
|
if (first === "arm64") architecture = "arm64";
|
|
994
1012
|
else if (first === "x86_64") architecture = "x86_64";
|
|
995
|
-
else throw new LocalInvokeResolutionError(`Lambda '${logicalId}' has unsupported Architectures value '${String(first)}'. ${getEmbedConfig().cliName}
|
|
1013
|
+
else throw new LocalInvokeResolutionError(`Lambda '${logicalId}' has unsupported Architectures value '${String(first)}'. ${getEmbedConfig().cliName} supports x86_64 and arm64.`);
|
|
996
1014
|
}
|
|
997
1015
|
return {
|
|
998
1016
|
kind: "image",
|
|
@@ -1534,12 +1552,13 @@ function resolveImageUri(value, logicalId, stackName, resources, region, imageCo
|
|
|
1534
1552
|
if (typeof sub === "string" && sub.length > 0) return imageContext ? substituteImagePlaceholders(sub, resources, imageContext) : sub;
|
|
1535
1553
|
if (Array.isArray(sub) && typeof sub[0] === "string") return imageContext ? substituteImagePlaceholders(sub[0], resources, imageContext) : sub[0];
|
|
1536
1554
|
if ("Fn::Join" in obj) {
|
|
1537
|
-
const
|
|
1555
|
+
const context = imageContext ?? (() => {
|
|
1538
1556
|
const pseudoParameters = derivePseudoParametersFromRegion(region);
|
|
1539
1557
|
return pseudoParameters ? { pseudoParameters } : void 0;
|
|
1540
|
-
})()
|
|
1558
|
+
})();
|
|
1559
|
+
const joinResolved = tryResolveImageFnJoin(value, resources, context);
|
|
1541
1560
|
if (joinResolved.kind === "resolved") return joinResolved.uri;
|
|
1542
|
-
if (joinResolved.kind === "needs-state") throw new AgentCoreResolutionError(`AgentCore Runtime '${logicalId}' in ${stackName} references same-stack ECR repository '${joinResolved.repoLogicalId}' via Fn::Join. ${getEmbedConfig().cliName}
|
|
1561
|
+
if (joinResolved.kind === "needs-state") throw new AgentCoreResolutionError(`AgentCore Runtime '${logicalId}' in ${stackName} references same-stack ECR repository '${joinResolved.repoLogicalId}' via Fn::Join. ${getEmbedConfig().cliName} cannot resolve the repository URI without state — ` + formatStateRemedy(context) + ", build via Runtime.fromAsset, or pin a literal / imported ECR image URI.");
|
|
1543
1562
|
}
|
|
1544
1563
|
}
|
|
1545
1564
|
|
|
@@ -3471,10 +3490,27 @@ var AssemblyReader = class {
|
|
|
3471
3490
|
}
|
|
3472
3491
|
/**
|
|
3473
3492
|
* Read a pre-synthesized Cloud Assembly directory (no subprocess).
|
|
3493
|
+
*
|
|
3494
|
+
* `failOnMissingContext: false` matches CDK CLI's own behavior for
|
|
3495
|
+
* `cdk deploy --app cdk.out`. CDK CLI's `cxapp/exec.js` bypasses
|
|
3496
|
+
* `Toolkit.fromAssemblyDirectory()` entirely on this path and builds
|
|
3497
|
+
* the assembly via `@aws-cdk/cloud-assembly-api`'s `CloudAssembly`
|
|
3498
|
+
* directly, which does NOT enforce a missing-context check; then
|
|
3499
|
+
* `cxapp/cloud-executable.js` attempts a single context-provider
|
|
3500
|
+
* resolve, and if no progress is made it returns the assembly as-is
|
|
3501
|
+
* with `manifest.missing` still populated. The strict default that
|
|
3502
|
+
* `fromAssemblyDirectory()` carries is a toolkit-lib decision aimed
|
|
3503
|
+
* at programmatic deploy callers, not parity with CDK CLI semantics.
|
|
3504
|
+
*
|
|
3505
|
+
* cdk-local's needs are looser still: we only read the synthesized
|
|
3506
|
+
* template, and under `--from-cfn-stack` runtime values come from
|
|
3507
|
+
* the deployed CFN stack anyway. Refusing here just makes the
|
|
3508
|
+
* pre-synth flow unusable for any app that relies on context
|
|
3509
|
+
* lookups (SSM / VPC / AMI / etc.), without any safety benefit.
|
|
3474
3510
|
*/
|
|
3475
3511
|
async readFromDirectory(assemblyDir) {
|
|
3476
3512
|
const toolkit = new Toolkit({ ioHost: new CdklIoHost() });
|
|
3477
|
-
const source = await toolkit.fromAssemblyDirectory(assemblyDir);
|
|
3513
|
+
const source = await toolkit.fromAssemblyDirectory(assemblyDir, { failOnMissingContext: false });
|
|
3478
3514
|
const cached = await toolkit.synth(source);
|
|
3479
3515
|
try {
|
|
3480
3516
|
return cached.cloudAssembly.stacks.map((stack) => mapStackArtifact(stack));
|
|
@@ -3823,6 +3859,7 @@ var CfnLocalStateProvider = class {
|
|
|
3823
3859
|
agentCoreControlClient;
|
|
3824
3860
|
clientOptions;
|
|
3825
3861
|
disposed = false;
|
|
3862
|
+
lastLoadError;
|
|
3826
3863
|
constructor(opts) {
|
|
3827
3864
|
this.cfnStackName = opts.cfnStackName;
|
|
3828
3865
|
this.region = opts.region;
|
|
@@ -3966,10 +4003,12 @@ var CfnLocalStateProvider = class {
|
|
|
3966
4003
|
if (this.disposed) throw new Error("CfnLocalStateProvider used after dispose()");
|
|
3967
4004
|
const logger = getLogger();
|
|
3968
4005
|
const client = this.getClient();
|
|
4006
|
+
this.lastLoadError = void 0;
|
|
3969
4007
|
let resourceMap;
|
|
3970
4008
|
try {
|
|
3971
4009
|
resourceMap = buildResourceStateMap(await fetchAllStackResources(client, this.cfnStackName));
|
|
3972
4010
|
} catch (err) {
|
|
4011
|
+
this.lastLoadError = `ListStackResources(${this.cfnStackName}) failed: ${formatAwsErrorForWarn(err)} (region='${this.region}')`;
|
|
3973
4012
|
logger.warn(`${this.label}: ListStackResources(${this.cfnStackName}) failed: ${formatAwsErrorForWarn(err)}. Was the stack deployed in region '${this.region}'? Falling back.`);
|
|
3974
4013
|
return;
|
|
3975
4014
|
}
|
|
@@ -3991,6 +4030,24 @@ var CfnLocalStateProvider = class {
|
|
|
3991
4030
|
};
|
|
3992
4031
|
}
|
|
3993
4032
|
/**
|
|
4033
|
+
* Return the failure detail captured by the most recent failed
|
|
4034
|
+
* `load()` call, or `undefined` when the latest call succeeded /
|
|
4035
|
+
* was never made. Surfaces the same `ListStackResources(<name>) failed: ...`
|
|
4036
|
+
* text the warn-logger emits so downstream resolvers can embed it
|
|
4037
|
+
* verbatim in their error and avoid the misleading "pass
|
|
4038
|
+
* --from-cfn-stack" hint when the user already passed it.
|
|
4039
|
+
*
|
|
4040
|
+
* Throws after `dispose()` to keep parity with the other operational
|
|
4041
|
+
* entry points on this class — a post-dispose caller is a programming
|
|
4042
|
+
* bug, and surfacing it loudly is cheaper than silently returning a
|
|
4043
|
+
* stale captured message after the provider's state is conceptually
|
|
4044
|
+
* gone.
|
|
4045
|
+
*/
|
|
4046
|
+
getLastLoadError() {
|
|
4047
|
+
if (this.disposed) throw new Error("CfnLocalStateProvider used after dispose()");
|
|
4048
|
+
return this.lastLoadError;
|
|
4049
|
+
}
|
|
4050
|
+
/**
|
|
3994
4051
|
* Build a `CrossStackResolver` that resolves `Fn::ImportValue` via
|
|
3995
4052
|
* `cloudformation:ListExports`. `Fn::GetStackOutput` is rejected here
|
|
3996
4053
|
* — it has no CFn-side equivalent, and the user-visible error message
|
|
@@ -5923,10 +5980,10 @@ function parseContainerImage(raw, containerName, taskLogicalId, resources, _stac
|
|
|
5923
5980
|
if (getAttImage) return classifyResolvedImage(getAttImage);
|
|
5924
5981
|
const joinResolved = tryResolveImageFnJoin(raw, resources, context);
|
|
5925
5982
|
if (joinResolved.kind === "resolved") return classifyResolvedImage(joinResolved.uri);
|
|
5926
|
-
if (joinResolved.kind === "needs-state") throw new EcsTaskResolutionError(`Container '${containerName}' in task '${taskLogicalId}' references same-stack ECR repository '${joinResolved.repoLogicalId}' via Fn::Join. ${getEmbedConfig().cliName}
|
|
5927
|
-
if (joinResolved.kind === "unsupported-join") throw new EcsTaskResolutionError(`Container '${containerName}' in task '${taskLogicalId}' has an unsupported Fn::Join Image shape: ${joinResolved.reason}. ${getEmbedConfig().cliName}
|
|
5983
|
+
if (joinResolved.kind === "needs-state") throw new EcsTaskResolutionError(`Container '${containerName}' in task '${taskLogicalId}' references same-stack ECR repository '${joinResolved.repoLogicalId}' via Fn::Join. ${getEmbedConfig().cliName} cannot resolve the repository URI without state — ` + formatStateRemedy(context) + ", build via ContainerImage.fromAsset, or pin a public image.");
|
|
5984
|
+
if (joinResolved.kind === "unsupported-join") throw new EcsTaskResolutionError(`Container '${containerName}' in task '${taskLogicalId}' has an unsupported Fn::Join Image shape: ${joinResolved.reason}. ${getEmbedConfig().cliName} recognizes the canonical CDK 2.x ContainerImage.fromEcrRepository Fn::Join shape (delimiter "" with nested Fn::Select/Fn::Split over an ECR Repository Arn GetAtt + Ref to the repo).`);
|
|
5928
5985
|
const flat = extractImageString(raw);
|
|
5929
|
-
if (!flat) throw new EcsTaskResolutionError(`Container '${containerName}' in task '${taskLogicalId}' has an unparseable Image property. ${getEmbedConfig().cliName}
|
|
5986
|
+
if (!flat) throw new EcsTaskResolutionError(`Container '${containerName}' in task '${taskLogicalId}' has an unparseable Image property. ${getEmbedConfig().cliName} supports flat string images, single-key Fn::Sub bodies, and CDK-asset Image references.`);
|
|
5930
5987
|
if (flat.includes("cdk-hnb659fds-container-assets-")) {
|
|
5931
5988
|
const hashMatch = /:([a-f0-9]{8,})$/.exec(flat);
|
|
5932
5989
|
const out = { kind: "cdk-asset" };
|
|
@@ -5936,9 +5993,9 @@ function parseContainerImage(raw, containerName, taskLogicalId, resources, _stac
|
|
|
5936
5993
|
const substituted = substituteImagePlaceholders(flat, resources, context);
|
|
5937
5994
|
if (substituted.includes("${")) {
|
|
5938
5995
|
const unresolvedRepoRef = findUnresolvedEcrRepositoryRef(substituted, resources);
|
|
5939
|
-
if (unresolvedRepoRef) throw new EcsTaskResolutionError(`Container '${containerName}' in task '${taskLogicalId}' references same-stack ECR repository '${unresolvedRepoRef}'. ${getEmbedConfig().cliName}
|
|
5996
|
+
if (unresolvedRepoRef) throw new EcsTaskResolutionError(`Container '${containerName}' in task '${taskLogicalId}' references same-stack ECR repository '${unresolvedRepoRef}'. ${getEmbedConfig().cliName} cannot resolve the repository URI without state — ` + formatStateRemedy(context) + ", build via ContainerImage.fromAsset, or pin a public image.");
|
|
5940
5997
|
if (substituted.includes("AWS::")) throw new EcsTaskResolutionError(`Container '${containerName}' in task '${taskLogicalId}' has an Image that references AWS pseudo parameters (${substituted}). ${getEmbedConfig().productName} could not resolve them: confirm AWS credentials are configured so STS GetCallerIdentity succeeds, and that --region / AWS_REGION names the target region. Workaround: build the image locally (ContainerImage.fromAsset) or pin a public image.`);
|
|
5941
|
-
throw new EcsTaskResolutionError(`Container '${containerName}' in task '${taskLogicalId}' has an Image with unresolved \${...} placeholders (${substituted}). ${getEmbedConfig().cliName}
|
|
5998
|
+
throw new EcsTaskResolutionError(`Container '${containerName}' in task '${taskLogicalId}' has an Image with unresolved \${...} placeholders (${substituted}). ${getEmbedConfig().cliName} only resolves AWS pseudo parameters and same-stack AWS::ECR::Repository refs.`);
|
|
5942
5999
|
}
|
|
5943
6000
|
const ecrMatch = /^(\d{12})\.dkr\.ecr\.([^.]+)\.amazonaws\.com(?:\.cn)?\//.exec(substituted);
|
|
5944
6001
|
if (ecrMatch) return {
|
|
@@ -6043,8 +6100,8 @@ function parseVolume(raw, idx, taskLogicalId, subContext) {
|
|
|
6043
6100
|
const v = raw;
|
|
6044
6101
|
const name = pickString(v["Name"]);
|
|
6045
6102
|
if (!name) throw new EcsTaskResolutionError(`Task '${taskLogicalId}' Volumes[${idx}] has no Name.`);
|
|
6046
|
-
if (v["EFSVolumeConfiguration"]) throw new EcsTaskResolutionError(`Task '${taskLogicalId}' Volumes[${idx}] '${name}' uses EFSVolumeConfiguration, which ${getEmbedConfig().cliName}
|
|
6047
|
-
if (v["FSxWindowsFileServerVolumeConfiguration"]) throw new EcsTaskResolutionError(`Task '${taskLogicalId}' Volumes[${idx}] '${name}' uses FSxWindowsFileServerVolumeConfiguration, which ${getEmbedConfig().cliName}
|
|
6103
|
+
if (v["EFSVolumeConfiguration"]) throw new EcsTaskResolutionError(`Task '${taskLogicalId}' Volumes[${idx}] '${name}' uses EFSVolumeConfiguration, which ${getEmbedConfig().cliName} cannot proxy locally. Workaround: bind-mount a local directory at the same containerPath via Host: { SourcePath: '<local-path>' }, or override at runtime via --env-vars semantics for a Phase 2 follow-up.`);
|
|
6104
|
+
if (v["FSxWindowsFileServerVolumeConfiguration"]) throw new EcsTaskResolutionError(`Task '${taskLogicalId}' Volumes[${idx}] '${name}' uses FSxWindowsFileServerVolumeConfiguration, which ${getEmbedConfig().cliName} cannot proxy locally.`);
|
|
6048
6105
|
const dockerCfg = v["DockerVolumeConfiguration"];
|
|
6049
6106
|
if (dockerCfg && typeof dockerCfg === "object") {
|
|
6050
6107
|
const d = dockerCfg;
|
|
@@ -17634,10 +17691,10 @@ function extractImageUri(value, logicalId, stackName, resources, region) {
|
|
|
17634
17691
|
const pseudoParameters = derivePseudoParametersFromRegion(region);
|
|
17635
17692
|
const joinResolved = tryResolveImageFnJoin(value, resources, pseudoParameters ? { pseudoParameters } : void 0);
|
|
17636
17693
|
if (joinResolved.kind === "resolved") return joinResolved.uri;
|
|
17637
|
-
if (joinResolved.kind === "needs-state") throw new Error(`Lambda '${logicalId}' in ${stackName} references same-stack ECR repository '${joinResolved.repoLogicalId}' via Fn::Join. ${getEmbedConfig().cliName}
|
|
17638
|
-
if (joinResolved.kind === "unsupported-join") throw new Error(`Lambda '${logicalId}' in ${stackName} has an unsupported Fn::Join Code.ImageUri shape: ${joinResolved.reason}. ${getEmbedConfig().cliName}
|
|
17694
|
+
if (joinResolved.kind === "needs-state") throw new Error(`Lambda '${logicalId}' in ${stackName} references same-stack ECR repository '${joinResolved.repoLogicalId}' via Fn::Join. ${getEmbedConfig().cliName} cannot resolve the repository URI without state — deploy the stack first, rebuild via lambda.DockerImageCode.fromImageAsset, or pin a public image.`);
|
|
17695
|
+
if (joinResolved.kind === "unsupported-join") throw new Error(`Lambda '${logicalId}' in ${stackName} has an unsupported Fn::Join Code.ImageUri shape: ${joinResolved.reason}. ${getEmbedConfig().cliName} recognizes the canonical CDK 2.x lambda.DockerImageCode.fromEcr Fn::Join shape (delimiter "" with nested Fn::Select/Fn::Split over an ECR Repository Arn GetAtt + Ref to the repo).`);
|
|
17639
17696
|
const accountIdHint = pseudoParameters ? ` (likely \${AWS::AccountId}, which ${getEmbedConfig().binaryName} cannot derive without a state source or STS)` : ` (${getEmbedConfig().binaryName} could not derive AWS pseudo parameters because stack.region was undefined)`;
|
|
17640
|
-
throw new Error(`Lambda '${logicalId}' in ${stackName} has an Fn::Join Code.ImageUri that ${getEmbedConfig().cliName}
|
|
17697
|
+
throw new Error(`Lambda '${logicalId}' in ${stackName} has an Fn::Join Code.ImageUri that ${getEmbedConfig().cliName} cannot resolve${accountIdHint}. Workarounds: deploy first and run with a state-source flag (e.g. --from-cfn-stack or a host-provided extension), or pin a fully-literal public image URI.`);
|
|
17641
17698
|
}
|
|
17642
17699
|
}
|
|
17643
17700
|
}
|
|
@@ -18811,6 +18868,9 @@ async function buildAgentCoreImageContext(candidate, stateProvider, options) {
|
|
|
18811
18868
|
if (Object.keys(ssm.values).length > 0) context.stateParameters = ssm.values;
|
|
18812
18869
|
if (ssm.secureStringLogicalIds.length > 0) context.stateSensitiveParameters = ssm.secureStringLogicalIds;
|
|
18813
18870
|
}
|
|
18871
|
+
} else {
|
|
18872
|
+
const loadError = stateProvider.getLastLoadError?.();
|
|
18873
|
+
if (loadError) context.stateLoadFailureMessage = loadError;
|
|
18814
18874
|
}
|
|
18815
18875
|
return {
|
|
18816
18876
|
context,
|
|
@@ -20355,6 +20415,10 @@ async function buildEcsImageResolutionContext$1(candidate, stateProvider, option
|
|
|
20355
20415
|
if (stateProvider && wantsState) {
|
|
20356
20416
|
const loaded = await stateProvider.load(candidate.stackName, candidate.region);
|
|
20357
20417
|
if (loaded) ctx.stateResources = loaded.resources;
|
|
20418
|
+
else {
|
|
20419
|
+
const loadError = stateProvider.getLastLoadError?.();
|
|
20420
|
+
if (loadError) ctx.stateLoadFailureMessage = loadError;
|
|
20421
|
+
}
|
|
20358
20422
|
if (needs.needsEnvOrSecretSubstitution && stateProvider.resolveTemplateSsmParameters) {
|
|
20359
20423
|
const ssmParameters = await stateProvider.resolveTemplateSsmParameters(candidate.template);
|
|
20360
20424
|
if (Object.keys(ssmParameters.values).length > 0) ctx.stateParameters = ssmParameters.values;
|
|
@@ -23714,6 +23778,10 @@ async function buildEcsImageResolutionContext(target, stacks, options, stateProv
|
|
|
23714
23778
|
if (stateProvider && wantsState) {
|
|
23715
23779
|
const loaded = await stateProvider.load(candidate.stackName, candidate.region);
|
|
23716
23780
|
if (loaded) ctx.stateResources = loaded.resources;
|
|
23781
|
+
else {
|
|
23782
|
+
const loadError = stateProvider.getLastLoadError?.();
|
|
23783
|
+
if (loadError) ctx.stateLoadFailureMessage = loadError;
|
|
23784
|
+
}
|
|
23717
23785
|
if (needs.needsEnvOrSecretSubstitution && stateProvider.resolveTemplateSsmParameters) {
|
|
23718
23786
|
const ssmParameters = await stateProvider.resolveTemplateSsmParameters(candidate.template);
|
|
23719
23787
|
if (Object.keys(ssmParameters.values).length > 0) ctx.stateParameters = ssmParameters.values;
|
|
@@ -24790,5 +24858,5 @@ function addListSpecificOptions(cmd) {
|
|
|
24790
24858
|
}
|
|
24791
24859
|
|
|
24792
24860
|
//#endregion
|
|
24793
|
-
export { pickResponseTemplate as $, substituteAgainstState as $t, createFileWatcher as A, AgentCoreResolutionError as An, MCP_PATH as At, resolveServiceIntegrationParameters as B, SUPPORTED_CODE_RUNTIMES as Bt, addInvokeAgentCoreSpecificOptions as C, pickRefLogicalId as Cn, isFunctionUrlOacFronted as Ct, createWatchPredicates as D, AGENTCORE_HTTP_PROTOCOL as Dn, A2A_PATH as Dt, createLocalStartApiCommand as E, AGENTCORE_AGUI_PROTOCOL as En, A2A_CONTAINER_PORT as Et, filterRoutesByApiIdentifiers as F,
|
|
24794
|
-
//# sourceMappingURL=local-list-
|
|
24861
|
+
export { pickResponseTemplate as $, substituteAgainstState as $t, createFileWatcher as A, AgentCoreResolutionError as An, MCP_PATH as At, resolveServiceIntegrationParameters as B, SUPPORTED_CODE_RUNTIMES as Bt, addInvokeAgentCoreSpecificOptions as C, pickRefLogicalId as Cn, isFunctionUrlOacFronted as Ct, createWatchPredicates as D, AGENTCORE_HTTP_PROTOCOL as Dn, A2A_PATH as Dt, createLocalStartApiCommand as E, AGENTCORE_AGUI_PROTOCOL as En, A2A_CONTAINER_PORT as Et, filterRoutesByApiIdentifiers as F, substituteImagePlaceholders as Fn, signAgentCoreInvocation as Ft, invokeRequestAuthorizer as G, addInvokeSpecificOptions as Gt, buildMethodArn as H, computeCodeImageTag as Ht, groupRoutesByServer as I, tryResolveImageFnJoin as In, AGENTCORE_SESSION_ID_HEADER as It, translateLambdaResponse as J, buildContainerImage as Jt, invokeTokenAuthorizer as K, createLocalInvokeCommand as Kt, readMtlsMaterialsFromDisk as L, LocalInvokeBuildError as Ln, invokeAgentCore as Lt, buildStageMap as M, resolveAgentCoreTarget as Mn, mcpInvokeOnce as Mt, availableApiIdentifiers as N, derivePseudoParametersFromRegion as Nn, parseSseForJsonRpc as Nt, resolveApiTargetSubset as O, AGENTCORE_MCP_PROTOCOL as On, a2aInvokeOnce as Ot, filterRoutesByApiIdentifier as P, formatStateRemedy as Pn, AGENTCORE_SIGV4_SERVICE as Pt, evaluateResponseParameters as Q, EcsTaskResolutionError as Qt, startApiServer as R, LocalStartServiceError as Rn, waitForAgentCorePing as Rt, createLocalRunTaskCommand as S, discoverRoutes as Sn, buildCorsConfigFromCloudFrontChain as St, addStartApiSpecificOptions as T, AGENTCORE_A2A_PROTOCOL as Tn, invokeAgentCoreWs as Tt, computeRequestIdentityHash as U, renderCodeDockerfile as Ut, defaultCredentialsLoader as V, buildAgentCoreCodeImage as Vt, evaluateCachedLambdaPolicy as W, toCmdArgv as Wt, buildHttpApiV2Event as X, resolveRuntimeFileExtension as Xt, applyAuthorizerOverlay as Y, resolveRuntimeCodeMountPath as Yt, buildRestV1Event as Z, resolveRuntimeImage as Zt, runEcsServiceEmulator as _, countTargets as _n, verifyJwtAuthorizer as _t, albStrategy as a, LocalStateSourceError as an, bufferToBody as at, getContainerNetworkIp as b, discoverWebSocketApisOrThrow as bn, applyCorsResponseHeaders as bt, resolveAlbTarget as c, rejectExplicitCfnStackWithMultipleStacks as cn, handleConnectionsRequest as ct, MAX_TASKS_SUBNET_RANGE_CAP as d, resolveCfnStackName as dn, buildDisconnectEvent as dt, substituteAgainstStateAsync as en, selectIntegrationResponse as et, addCommonEcsServiceOptions as f, CfnLocalStateProvider as fn, buildMessageEvent as ft, resolveSharedSidecarCredentials as g, resolveSingleTarget as gn, verifyCognitoJwt as gt, parseRestartPolicy as h, resolveWatchConfig as hn, createJwksCache as ht, addAlbSpecificOptions as i, materializeLayerFromArn as in, probeHostGatewaySupport as it, attachStageContext as j, pickAgentCoreCandidateStack as jn, MCP_PROTOCOL_VERSION as jt, createAuthorizerCache as k, AGENTCORE_RUNTIME_TYPE as kn, MCP_CONTAINER_PORT as kt, isApplicationLoadBalancer as l, resolveCfnFallbackRegion as ln, parseConnectionsPath as lt, parseMaxTasks as m, resolveSsmParameters as mn, buildJwksUrlFromIssuer as mt, createLocalListCommand as n, substituteEnvVarsFromStateAsync as nn, VtlEvaluationError as nt, createLocalStartAlbCommand as o, createLocalStateProvider as on, ConnectionRegistry as ot, buildEcsImageResolutionContext as p, collectSsmParameterRefs as pn, buildCognitoJwksUrl as pt, matchRoute as q, architectureToPlatform as qt, formatTargetListing as r, resolveEnvVars as rn, HOST_GATEWAY_MIN_VERSION as rt, parseLbPortOverrides as s, isCfnFlagPresent as sn, buildMgmtEndpointEnvUrl as st, addListSpecificOptions as t, substituteEnvVarsFromState as tn, tryParseStatus as tt, resolveAlbFrontDoor as u, resolveCfnRegion as un, buildConnectEvent as ut, buildCloudMapIndex as v, listTargets as vn, verifyJwtViaDiscovery as vt, createLocalInvokeAgentCoreCommand as w, resolveLambdaArnIntrinsic as wn, matchPreflight as wt, addRunTaskSpecificOptions as x, parseSelectionExpressionPath as xn, buildCorsConfigByApiId as xt, CloudMapRegistry as y, discoverWebSocketApis as yn, attachAuthorizers as yt, resolveSelectionExpression as z, withErrorHandling as zn, downloadAndExtractS3Bundle as zt };
|
|
24862
|
+
//# sourceMappingURL=local-list-CJj6-Ska.js.map
|