https://github.com/build-on-aws/workflow-orchestration-bedrock-agent-chaining
https://github.com/build-on-aws/workflow-orchestration-bedrock-agent-chaining
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/build-on-aws/workflow-orchestration-bedrock-agent-chaining
- Owner: build-on-aws
- License: mit-0
- Created: 2024-04-21T20:12:06.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-22T16:01:27.000Z (9 months ago)
- Last Synced: 2025-03-25T03:01:53.738Z (3 months ago)
- Language: Python
- Size: 85.9 KB
- Stars: 2
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
## Streamlining Workflow Orchestration with Amazon Bedrock Agent Chaining: A Digital Insurance Agent Example
This github repo goes with this [article](https://community.aws/content/2aVhjeNXvQKS1RBv8sskcmYbz7r) :
### Deploy the solution
This project is built using the [AWS Cloud Development Kit (CDK)](https://aws.amazon.com/cdk/) on AWS Cloud9 IDE. See [CDK setup on Cloud9](https://docs.aws.amazon.com/cloud9/latest/user-guide/sample-cdk.html#sample-cdk-install-nodejs) 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](https://github.com/aws/aws-cdk/releases/tag/v2.143.0): 2.143.0
- Command to install a specific version of aws-cdk is
```npm install -g [email protected]```1. Clone this repository.
```shell
git clone
```2. Enter the code sample backend directory.
```shell
cd workflow-orchestration-bedrock-agent-chaining/
```3. Install packages
```shell
npm install
```4. Boostrap AWS CDK resources on the AWS account.
```shell
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](https://docs.aws.amazon.com/bedrock/latest/userguide/model-access.html) to enable access to the models (```Anthropic::Claude``` and ```Cohere::Embed English```):.6. Deploy the sample in your account.
```shell
$ 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.
```shell
$ 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](CONTRIBUTING.md#security-issue-notifications) for more information.
## License
This library is licensed under the MIT-0 License. See the LICENSE file.