Skip to content

AWS Bedrock AgentCore Adapter

Deploy prompt packs to AWS Bedrock AgentCore with a single command.


The AgentCore adapter is a deploy provider plugin for PromptKit. It translates your compiled .pack.json into AWS Bedrock AgentCore resources — runtimes, tool gateways, A2A wiring, Cedar policies, memory, and observability configuration.

Pack ConceptAWS ResourceAdapter Resource Type
Agent promptAgentCore Runtimeagent_runtime
Pack toolGateway Tool target (MCP)tool_gateway
Validators / tool policyCedar Policy Engine + Policycedar_policy
Agent member (multi-agent)A2A endpoint wiringa2a_endpoint
Memory configAgentCore Memorymemory
Eval with metricCloudWatch metrics config(env var injection)
  • Multi-agent support — One runtime per agent member, with A2A discovery wired automatically
  • Dry-run mode — Preview what would be deployed without calling AWS APIs
  • Resource tagging — Pack metadata and custom tags on all created resources
  • Cedar policies — Auto-generated from validators and tool policy definitions
  • CloudWatch integration — Metrics config and dashboard generated from eval definitions
  • Structured errors — Classified errors with remediation hints

# arena.yaml
deploy:
provider: agentcore
agentcore:
region: us-west-2
runtime_role_arn: arn:aws:iam::123456789012:role/AgentCoreRuntime
runtime_binary_path: /path/to/promptkit-runtime
model: claude-3-5-haiku-20241022
Terminal window
# Preview the deployment plan
promptarena deploy plan
# Deploy
promptarena deploy
# Check health
promptarena deploy status
# Tear down
promptarena deploy destroy

Diagram

The adapter runs as a subprocess, receiving JSON-RPC requests from the PromptKit CLI. It calls the AWS Bedrock AgentCore SDK to create and manage resources, then returns an opaque state blob containing ARNs and metadata for subsequent operations.

The deployed runtime serves two protocols simultaneously:

PortProtocolPurpose
8080HTTPExternal callers — POST /invocations accepts {"prompt": "..."} payloads
9000A2AAgent-to-agent communication — full A2A JSON-RPC protocol

The HTTP bridge on port 8080 translates simple invocation requests into A2A message/send calls on port 9000. For multi-agent deployments, agents communicate directly via A2A.



  • AWS account with Bedrock AgentCore access
  • IAM role with permissions to manage AgentCore resources
  • PromptKit CLI with the deploy framework
  • A compiled .pack.json (via packc)