Streamlining Workflow Orchestration with Amazon Bedrock Agent Chaining: A Digital Insurance Agent Example
This github repo goes with this article :
This project is built using the AWS Cloud Development Kit (CDK) on AWS Cloud9 IDE. See CDK setup on Cloud9 for additional details and prerequisites on Cloud 9.
- For refernce here are the versions of node and aws cdk that have been used.
- Node.js: v20.16.0
- AWS CDK: 2.143.0
- Command to install a specific version of aws-cdk is
npm install -g [email protected]
-
Clone this repository.
git clone <this>
-
Enter the code sample backend directory.
cd workflow-orchestration-bedrock-agent-chaining/
-
Install packages
npm install
-
Boostrap AWS CDK resources on the AWS account.
cdk bootstrap aws://ACCOUNT_ID/REGION
-
Enable Access to Amazon Bedrock Models
You must explicitly enable access to models before they can be used with the Amazon Bedrock service. Please follow these steps in the Amazon Bedrock User Guide to enable access to the models (
Anthropic::Claude
andCohere::Embed English
):.
- Deploy the sample in your account.
$ cdk deploy --all
The command above will deploy one stack in your account.
To protect you against unintended changes that affect your security posture, the AWS CDK Toolkit prompts you to approve security-related changes before deploying them. You will need to answer yes to get all the stack deployed.
Note: The IAM role creation in this example is for illustration only. Always provision IAM roles with the least required privileges.
Do not forget to delete the stack to avoid unexpected charges.
First make sure to remove all data from the Amazon Simple Storage Service (Amazon S3) Bucket.
$ cdk destroy
The sample code; software libraries; command line tools; proofs of concept; templates; or other related technology (including any of the foregoing that are provided by our personnel) is provided to you as AWS Content under the AWS Customer Agreement, or the relevant written agreement between you and AWS (whichever applies). You should not use this AWS Content in your production accounts, or on production or other critical data. You are responsible for testing, securing, and optimizing the AWS Content, such as sample code, as appropriate for production grade use based on your specific quality control practices and standards. Deploying AWS Content may incur AWS charges for creating or using AWS chargeable resources, such as running Amazon EC2 instances or using Amazon S3 storage.
See CONTRIBUTING for more information.
This library is licensed under the MIT-0 License. See the LICENSE file.