Skip to content

build-on-aws/workflow-orchestration-bedrock-agent-chaining

Streamlining Workflow Orchestration with Amazon Bedrock Agent Chaining: A Digital Insurance Agent Example

This github repo goes with this article :

Deploy the solution

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]
  1. Clone this repository.

    git clone <this>
  2. Enter the code sample backend directory.

    cd workflow-orchestration-bedrock-agent-chaining/
  3. Install packages

    npm install
  4. Boostrap AWS CDK resources on the AWS account.

    cdk bootstrap aws://ACCOUNT_ID/REGION
  5. 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 and Cohere::Embed English):.

  1. 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.

Clean up

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

Content Security Legal Disclaimer

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.

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published