Support allowedPorts (session endpoints) on runtimes
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Feature
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- aws, typescript
Rechercherichtung
Start by reading RuntimeSpecSchema in the @aws/agentcore CLI and trace how agentcore deploy creates and updates runtimes. Then check the AgentCoreRuntime construct in @aws/agentcore-cdk and the runtime and invoke commands; CloudFormation support for AllowedPorts is a stated dependency. Done means the spec accepts the documented port rules, deploys preserve the setting, and the relevant commands can print a session endpoint URL.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Description
A runtime's agentcore.json spec has no field for allowedPorts, so a project deployed with agentcore deploy cannot enable session endpoints. The gap is also in CloudFormation: AWS::BedrockAgentCore::Runtime has no AllowedPorts property (checked with aws cloudformation describe-type --type RESOURCE --type-name AWS::BedrockAgentCore::Runtime in ap-southeast-1). Today the only way to get the setting is to call CreateAgentRuntime or UpdateAgentRuntime directly, outside the project.
Patching the runtime after agentcore deploy does not hold up. UpdateAgentRuntime replaces the whole configuration, so the next deploy is likely to drop allowedPorts again, and the session endpoint stops working with no error.
Our use case is an agent that serves a REST API with server-sent events. We want to reach it through each session's endpoint, because InvokeAgentRuntime turns any non-2xx answer into 424 RuntimeClientError and drops the response's headers. We have worked around this by wrapping our API inside /invocations. We would rather use session endpoints, which is what they are for.
Acceptance Criteria
- A runtime in
agentcore.jsonacceptsallowedPortswith the API's rules: 1–5 entries, each aportor aportRange, within 8000–12000, and none of them reserved. -
agentcore deploycreates and updates the runtime with them, and a later deploy keeps them. - The
AgentCoreRuntimeconstruct in@aws/agentcore-cdkexposes them (this depends on CloudFormation supportingAllowedPortsonAWS::BedrockAgentCore::Runtime). -
agentcore invoke, or theruntimecommands, can print a session'ssessionEndpointUrl.
Additional Context
- CLI
@aws/agentcore1.0.3 and@aws/agentcore-cdk1.0.3:RuntimeSpecSchemahas noallowedPortsfield. - On a runtime created through the API with
allowedPorts: [{ port: 8080 }], the session endpoint passes every method, path, status code, header and SSE stream as documented, with about the same latency asInvokeAgentRuntime.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 339
- Forks
- 129
- Ø Merge
- 19 Std. 21 Min.
- Gemergte PRs (30 T.)
- 125
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus aws/agentcore-cli
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
aws/agentcore-cli#2940 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
aws/agentcore-cli#2939 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
aws/agentcore-cli#2938 ·
Maintainer antworten meist innerhalb von 1 Tag
-
invoke: CUSTOM_JWT runtime errors discard the response body and error type (e.g. "Token has expired")Evtl. vergeben @n1dhruv hat das vor 6 Tagen übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
aws/agentcore-cli#2875 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
--debug has no effect; service error name, HTTP status and request ID never reach the terminalEvtl. vergeben @abhiramshaji-cyber hat das vor 3 Tagen übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
aws/agentcore-cli#2874 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in aws/agentcore-cli
Ähnliche Issues
-
manually bump balena-preload to ^19.0.6Evtl. vergeben @shaunmulligan hat das heute übernommen. Offen
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 66/100
balena-io/balena-cli#3200 ·
Maintainer antworten meist innerhalb von 1 Tag
-
`MaterializedChatMessage._text` is quadratic in the number of text chunks (`+=` followed by `endsWith`), driving the extension host to heap OOMEvtl. vergeben @olegius88 hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 79/100
microsoft/vscode-prompt-tsx#205 ·
-
triage
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 64/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
melgarafael/DeskcommCRM#5340 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
ehmpathy/rhachet-roles-ehmpathy#1529 ·
Maintainer antworten meist innerhalb von 1 Tag