aws-samples / serverless-patterns

Serverless patterns. Learn more at the website: https://serverlessland.com/patterns.
https://serverlessland.com
Other
1.6k stars 928 forks source link

New serverless pattern - alb-ecs-bedrock-agents-cdk-dotnet #2489

Open tejasavora opened 1 month ago

tejasavora commented 1 month ago

Issue #, if available: N/A

Description of changes:

Description of changes:

This Pull Request implements an AI-powered travel service using AWS CDK with .NET. Key components and changes include:

  1. Bedrock Agent Integration: Implemented an AI agent using Amazon Bedrock for natural language interactions with customers.

  2. Knowledge Base: Created a vector database using Amazon OpenSearch Serverless to store and quickly retrieve travel information and policies.

  3. Action Groups: Defined action groups for the Bedrock agent, including a flight search functionality.

  4. Lambda Functions: Developed Lambda functions to handle specific tasks such as flight searches and data processing.

  5. ECS with Fargate: Set up Amazon ECS with Fargate to host the main travel service application.

  6. Application Load Balancer: Implemented an ALB to route incoming requests to the ECS tasks.

  7. CDK Stack: Created a comprehensive CDK stack in .NET to define and deploy all AWS resources.

  8. API Schema: Defined an API schema for the flight search functionality.

  9. Error Handling: Implemented robust error handling and logging mechanisms.

  10. Documentation: Added detailed README.md and example-pattern.json files to explain the solution architecture, deployment process, and testing procedures.

  11. Testing: Included curl commands and instructions for testing the deployed service.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.