AI-Powered ChatBot with Amazon Bedrock Agent, Amazon OpenSearch, and ECS

Application Load Balancer → AWS Fargate → Amazon Bedrock

Create a serverless AI ChatBot using Bedrock agent, OpenSearch, Lambda, and ECS with ALB in AWS.

This pattern demonstrates how to create an AI-powered ChatBot using Amazon Bedrock for the AI agent, Amazon OpenSearch Serverless for vector search, AWS Lambda for processing, Amazon ECS with Fargate for hosting, and Application Load Balancer for routing. The pattern includes a Bedrock agent with Knowledge Base and Action Groups, and is implemented using AWS CDK with .NET.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/alb-ecs-bedrock-agents-cdk-dotnet

Deploy

cdk deploy


Testing

See the GitHub repo for detailed testing instructions, including how to interact with the Bedrock agent, search for flights using the ALB endpoint, and verify processing in OpenSearch and Lambda functions.

Cleanup

Delete the stack: cdk destroy.

Created by:

Tejas Vora

Tejas Vora

Tejas Vora is a Senior Solutions Architect with Amazon Web Services.

Follow on LinkedIn