Infrastructure as code framework used: AWS SAM AWS Services used: Amazon Bedrock Agents, Amazon Bedrock Knowledge Bases, AWS Lambda
In this demo you will see:
- How to connect a AWS Lambda to an Bedrock Agent using a Knowledge Base
This demo is part of a video posted in FooBar Serverless channel. You can check the video to see the whole demo.
Important: this application uses various AWS services and there are costs associated with these services after the Free Tier usage - please see the AWS Pricing page for details. You are responsible for any AWS costs incurred. No warranty is implied in this example.
- AWS CLI already configured with Administrator permission
- AWS SAM CLI installed - minimum version 1.104.0 (sam --version)
- NodeJS 20.x installed
We will be using AWS SAM and make sure you are running the latest version.
Deploy the project to the cloud:
sam deploy -g # Guided deployments
When asked about functions that may not have authorization defined, answer (y)es. The access to those functions will be open to anyone, so keep the app deployed only for the time you need this demo running.
Next times, when you update the code, you can build and deploy with:
sam deploy
To delete the app:
sam delete
- Video with more details: https://youtu.be/P9n8BE693go