Support allowedPorts (session endpoints) on runtimes
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- aws, typescript
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- TypeScript
- Stelle
- 339
- Fork
- 129
- Merge medio
- 19h 21m
- PR unite (30g)
- 125
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di aws/agentcore-cli
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
aws/agentcore-cli#2940 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
aws/agentcore-cli#2939 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
aws/agentcore-cli#2938 ·
I maintainer di solito rispondono entro 1 giorno
-
invoke: CUSTOM_JWT runtime errors discard the response body and error type (e.g. "Token has expired")Forse già presa @n1dhruv l’ha presa 6 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
aws/agentcore-cli#2875 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
--debug has no effect; service error name, HTTP status and request ID never reach the terminalForse già presa @abhiramshaji-cyber l’ha presa 3 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
aws/agentcore-cli#2874 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di aws/agentcore-cli
Issue simili
-
triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 64/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
ranxianglei/billion-context#7860 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
-
agent-oc-find-bugs api complexity → simple payment-methods recurring contributions reviewed stripe
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
opencollective/opencollective#9177 ·