Support allowedPorts (session endpoints) on runtimes
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 35/100
- Tipo de issue
- Funcionalidade
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- aws, typescript
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- TypeScript
- Estrelas
- 339
- Forks
- 129
- Merge médio
- 19h 21min
- PRs com merge (30d)
- 125
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de aws/agentcore-cli
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
aws/agentcore-cli#2940 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
aws/agentcore-cli#2939 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
aws/agentcore-cli#2938 ·
Mantenedores costumam responder em até 1 dia
-
invoke: CUSTOM_JWT runtime errors discard the response body and error type (e.g. "Token has expired")Talvez já em andamento @n1dhruv assumiu há 6 dias. Abertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
aws/agentcore-cli#2875 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
--debug has no effect; service error name, HTTP status and request ID never reach the terminalTalvez já em andamento @abhiramshaji-cyber assumiu há 3 dias. Abertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
aws/agentcore-cli#2874 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de aws/agentcore-cli
Issues semelhantes
-
manually bump balena-preload to ^19.0.6Talvez já em andamento @shaunmulligan assumiu hoje. Aberta
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 66/100
balena-io/balena-cli#3200 ·
Mantenedores costumam responder em até 1 dia
-
`MaterializedChatMessage._text` is quadratic in the number of text chunks (`+=` followed by `endsWith`), driving the extension host to heap OOMTalvez já em andamento @olegius88 assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 79/100
microsoft/vscode-prompt-tsx#205 ·
-
triage
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 64/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
melgarafael/DeskcommCRM#5340 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
ehmpathy/rhachet-roles-ehmpathy#1529 ·
Mantenedores costumam responder em até 1 dia