Add Amazon Bedrock AgentCore Runtime deployment example#21
Open
sundargthb wants to merge 2 commits intolivekit-examples:mainfrom
Open
Add Amazon Bedrock AgentCore Runtime deployment example#21sundargthb wants to merge 2 commits intolivekit-examples:mainfrom
sundargthb wants to merge 2 commits intolivekit-examples:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
bedrock-agentcore/with deployment configuration and example code forrunning LiveKit agents on Amazon Bedrock AgentCore Runtime — a serverless
container hosting service with auto-scaling, session isolation, and
CloudWatch observability.
What's included
README.md— Full setup guide (VPC, TURN, build, deploy, test locally)agent.py— Standard LiveKit voice agent with TURN configurationkvs_turn.py— KVS Managed TURN helper (GetIceServerConfig API)deploy.py— boto3 deployment scriptDockerfile— ARM64 container (required by AgentCore).env.example— Environment variable templateWhy this example includes agent-side code
Unlike
aws-ecs/orkubernetes/, this example includesagent.pyandkvs_turn.pyin addition to deployment configuration. AgentCore runsagents in microVMs inside a VPC behind a NAT Gateway, which requires
TURN server configuration for WebRTC NAT traversal — a requirement that
doesn't apply to ECS or Kubernetes where the agent has direct network
access. It also includes its own Dockerfile because AgentCore requires
linux/arm64(the sharedpython-agent-example-app/Dockerfiletargetsamd64).
TURN options
Two TURN configurations are supported:
credentials via
GetIceServerConfigAPIValidated
Tested with a pipeline-mode agent (Transcribe STT + Bedrock Nova Lite
LLM + Polly TTS) deployed to AgentCore Runtime in VPC mode, connecting
to LiveKit Cloud via both KVS TURN and Cloudflare TURN.
Related
/deploy/custom/deployments/and
/agents/integrations/aws/