Amazon Bedrock : Part 2 - Hands-on

Опубликовано: 03 Июнь 2026
на канале: Saborni Bhattacharya
157
3

In this video, I have shown how to create a Conversational Chatbot using Amazon API Gateway, Lambda functions and Bedrock APIs.

First of all, you would need to request for the FMs by navigating through AWS console. Then you would need to follow the steps as specified below -

1. Create a deployment package for your Lambda function with python runtime -
mkdir chatbot
cd chatbot
Create two files
A simple UI page - index.html - https://catalog.workshops.aws/worksho...
Lambda function handler - https://catalog.workshops.aws/worksho...

pip3 install boto3 -t .

/--chatbot
|--index.html
|-- chatbot.py
|-- boto
|--....

Then create the package by zipping - zip -r dep_pack.zip .
aws s3 cp dep_pack.zip s3://YOUR_BUCKET/LOCATION
Create a function with python runtime using the above package.
Create a REST API resource with ANY / with proxy integrated to your above created function.
Deploy the API in a stage named - demo.
Access your API endpoint for interacting with the bot.

For more information, refer to this link - https://catalog.workshops.aws/worksho...

NOTE: Not endorsed by Amazon, all my content.