AI Cloud Architect

Securing Amazon Bedrock AgentCore Runtime with AWS WAF

AWSHow-to by Puneeth Komaragiri, Nitin Eusebius and Varshini NerusuAWS Artificial Intelligence Blog

This post shows you two architecture patterns that address this problem. Both use an internet-facing ALB with AWS WAF and route traffic through a VPC Interface Endpoint to AgentCore Runtime. Pattern 1 places an AWS Lambda proxy between the ALB and the VPC Endpoint, giving you full control over request transformation. Pattern 2 targets the VPC Endpoint ENI IP addresses directly from the ALB, removing the Lambda hop entirely. You also learn how to close the direct-access backdoor with a resource…

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Two architecture patterns place AWS WAF, an internet-facing ALB and a VPC endpoint in front of AgentCore Runtime, with a resource policy blocking direct access.

Who it is for

Teams exposing AgentCore Runtime agents as production APIs that need WAF rules, rate limiting and health checks.

Key points

  • Pattern 1 adds a Lambda proxy between ALB and VPC endpoint, adding 50-200 ms per request per AWS.
  • Pattern 2 targets VPC endpoint ENI IPs directly from the ALB, with no Lambda hop.
  • Health check on path / accepts 200-499 because AgentCore returns 404 there, so no auth is needed.
  • Resource policy with aws:SourceVpce blocks InvokeAgentRuntime calls that bypass the VPC endpoint.
  • Use the bedrock-agentcore endpoint service for Runtime; bedrock-agentcore.gateway does not route to Runtime.

Timeline

Posts about Amazon Bedrock AgentCore Runtime, oldest first.

  1. New featureAmazon Bedrock AgentCore Runtime introduces interactive shells for terminal access into agent sessions · AWS · Announcement
  2. How-toIt’s safe to close your laptop now: Hosting coding agents on Amazon Bedrock AgentCore · AWS · How-to
  3. How-toBuild generative UI for AI agents on Amazon Bedrock AgentCore with the AG-UI protocol · AWS · How-to
  4. How-toBuild an AI-powered AWS support companion with Amazon Bedrock AgentCore · AWS · How-to
  5. This postSecuring Amazon Bedrock AgentCore Runtime with AWS WAF
  6. How-toBuilding and connecting a production-ready ecommerce MCP server using Amazon Bedrock AgentCore and Mistral AI Studio · AWS · How-to
  7. How-toBuild specialized agent workflows for your business with AWS Quick and NVIDIA NeMo Agent Toolkit · AWS · How-to
  8. Generally availableAgentCore runtime instances are now generally available · AWS · AnnouncementAlso published by AWS News Blog
  9. How-toBuilding agentic workflows with SageMaker AI and Bedrock AgentCore · AWS · How-to
Show all 49 posts
  1. How-toBuild and scale adoption of AI agents for education with Strands Agents, Amazon Bedrock AgentCore, and LibreChat · AWS · How-to
  2. How-toBuild Agentic Workflows with OpenAI GPT OSS on Amazon SageMaker AI and Amazon Bedrock AgentCore · AWS · How-to
  3. How-toRunning deep research AI agents on Amazon Bedrock AgentCore · AWS · How-to
  4. New featureAmazon Bedrock AgentCore Runtime now supports direct code deployment · AWS · AnnouncementAlso published by AWS Artificial Intelligence Blog
  5. Blog postIntroducing agent-to-agent protocol support in Amazon Bedrock AgentCore Runtime · AWS · Blog post
  6. New featureAWS Marketplace adds A2A server support for Amazon Bedrock AgentCore Runtime · AWS · Announcement
  7. Customer storyHow Amazon uses AI agents to support compliance screening of billions of transactions per day · AWS · Customer story
  8. New featureAmazon Bedrock AgentCore Runtime now supports bi-directional streaming · AWS · Announcement
  9. Blog postBi-directional streaming for real-time agent interactions now available in Amazon Bedrock AgentCore Runtime · AWS · Blog post
  10. How-toDeploy AI agents on Amazon Bedrock AgentCore using GitHub Actions · AWS · How-to
  11. How-toBuild long-running MCP servers on Amazon Bedrock AgentCore with Strands Agents integration · AWS · How-to
  12. New featureAmazon Bedrock AgentCore Runtime now supports stateful MCP server features · AWS · Announcement
  13. New featureAmazon Bedrock AgentCore Runtime now supports the AG-UI protocol · AWS · Announcement
  14. New featureAmazon Bedrock AgentCore Runtime now supports shell command execution · AWS · Announcement
  15. New featureAmazon Bedrock AgentCore Runtime adds WebRTC support for real-time bidirectional streaming · AWS · Announcement
  16. PreviewAmazon Bedrock AgentCore Runtime now supports managed session storage for persistent agent filesystem state (preview) · AWS · Announcement
  17. How-toDeploy voice agents with Pipecat and Amazon Bedrock AgentCore Runtime – Part 1 · AWS · How-to
  18. New featurePersist session state with filesystem configuration and execute shell commands · AWS · Announcement
  19. How-toIntroducing stateful MCP client capabilities on Amazon Bedrock AgentCore Runtime · AWS · How-to
  20. How-toOmnichannel ordering with Amazon Bedrock AgentCore and Amazon Nova 2 Sonic · AWS · How-to
  21. New featureAmazon Bedrock AgentCore Runtime now supports Node.js for direct code deployment · AWS · Announcement
  22. How-toRun custom MCP proxies serverless on Amazon Bedrock AgentCore Runtime · AWS · How-to
  23. New featureAmazon Bedrock AgentCore Runtime now supports bring-your-own file system from Amazon S3 Files and Amazon EFS · AWS · Announcement
  24. How-toIntegrating AWS API MCP Server with AWS Quick using Amazon Bedrock AgentCore Runtime · AWS · How-to
  25. How-toAgentWatch: Proactive AWS monitoring with ambient agents · AWS · How-to
  26. Customer storyBuilding AI agents for business support using Amazon Bedrock AgentCore · AWS · Customer story
  27. New featureAmazon Bedrock AgentCore Runtime introduces interactive shells for terminal access into agent sessions · AWS · Announcement
  28. How-toIt’s safe to close your laptop now: Hosting coding agents on Amazon Bedrock AgentCore · AWS · How-to
  29. How-toBuild generative UI for AI agents on Amazon Bedrock AgentCore with the AG-UI protocol · AWS · How-to
  30. How-toBuild an AI-powered AWS support companion with Amazon Bedrock AgentCore · AWS · How-to
  31. This postSecuring Amazon Bedrock AgentCore Runtime with AWS WAF
  32. How-toBuilding and connecting a production-ready ecommerce MCP server using Amazon Bedrock AgentCore and Mistral AI Studio · AWS · How-to
  33. How-toBuild specialized agent workflows for your business with AWS Quick and NVIDIA NeMo Agent Toolkit · AWS · How-to
  34. Generally availableAgentCore runtime instances are now generally available · AWS · AnnouncementAlso published by AWS News Blog
  35. How-toBuilding agentic workflows with SageMaker AI and Bedrock AgentCore · AWS · How-to
  36. How-toConnect an AgentCore Runtime hosted MCP server to AWS Quick · AWS · How-to
  37. Update to an existing featureThe new AgentCore Runtime is now available in Amazon Bedrock AgentCore · AWS · AnnouncementAlso published by AWS Artificial Intelligence Blog
  38. How-toMigrating multi-model AI agents to Amazon Bedrock AgentCore runtime · AWS · How-to
  39. How-toBuild a multi-agent music production pipeline on Amazon Bedrock AgentCore Runtime Instances · AWS · How-to
  40. Blog postPreview web apps live as your coding agent builds them with Amazon Bedrock AgentCore runtime · AWS · Blog post
  41. How-toExtend Claude Code to remote sessions on Amazon Bedrock AgentCore with security controls · AWS · How-to
  42. Update to an existing featureThe next generation AgentCore runtime is now the default · AWS · AnnouncementAlso published by AWS Artificial Intelligence Blog
  43. How-toArchitecture patterns for fast session startup on Amazon Bedrock AgentCore runtime · AWS · How-to
  44. Region expansionAgentCore runtime instances are now available in six more AWS Regions · AWS · Announcement
  45. New featureAgentCore runtime instances now support privileged mode · AWS · Announcement
  46. Update to an existing featureAgentCore runtime instances now support Nested Virtualization · AWS · Announcement
  47. Update to an existing featureAmazon Bedrock AgentCore harness adds Strands harness defaults, built-in tools, and lifecycle hooks · AWS · Announcement
  48. New featureAgentCore runtime instances now support Amazon EC2 G7 instances · AWS · Announcement
  49. Generally availableAgentCore runtime instances are now generally available in the AWS GovCloud (US-West) Region · AWS · Announcement