Build AI agents with Amazon Bedrock AgentCore using AWS CloudFormation
AWS•How-to••by Chintan Patel, Kosti Vasilakakis and Shreyas Subramanian•AWS Artificial Intelligence Blog
Amazon Bedrock AgentCore services are now being supported by various IaC frameworks such as AWS Cloud Development Kit (AWS CDK), Terraform and AWS CloudFormation Templates. This integration brings the power of IaC directly to AgentCore so developers can provision, configure, and manage their AI agent infrastructure. In this post, we use CloudFormation templates to build an end-to-end application for a weather activity planner.
AgentCore services can now be provisioned with CloudFormation templates, and the post walks through deploying a weather activity planner agent built on Browser, Code Interpreter, Runtime and Memory.
Who it is for
Teams deploying AgentCore agents who want repeatable, version-controlled infrastructure with CloudFormation.
Key points
Deployment uses a single end-to-end CloudFormation template from the sample GitHub repository; the stack needs IAM capabilities acknowledged.
CDK and Terraform samples for AgentCore are also available in the GitHub sample library.
The post's observability section says AgentCore Observability is OpenTelemetry-compatible and works with CloudWatch and third-party tools.
AI:AgentCore Session endpoints give each runtime session an authenticated URL that forwards HTTP and WebSocket traffic to allowed ports, so a coding agent's live website can be previewed while the agent edits it.
AI:AWS describes a nine-stage evaluation framework on AgentCore Evaluations that tests agent answer quality, safety, latency and cost from pre-merge checks through live production monitoring.
AI:AgentCore Runtime now offers persistent, PTY-backed interactive terminals into a running agent session through a new InvokeAgentRuntimeCommandShell API, alongside the existing one-shot command API.