How to deploy a Bedrock KnowledgeBase (using OpenSearch serverless) with CDK?

0

Hello,

I have deployed a Bedrock KnowledgeBase using OpenSearch Serverless with console and it works fine. Now I would like to automate this deployment using the CDK (I am using Python) but I am not able to find any sample code. And it seems that the Console is doing a lot of background custom work.

Is there any construct (L1 or even L2 that would be nice) that has been defined? If not, what are my other options?

Thank you, PS: The only hint that I have found is this (https://medium.com/@micheldirk/on-aws-cdk-and-amazon-bedrock-knowledge-bases-14c7b208e4cb) but the code is not working.

1 Answer
0
Accepted Answer

Hello.

How about the sample code listed in the URL below?
The method introduced in the URL below is using the "Generative AI CDK".
https://awslabs.github.io/generative-ai-cdk-constructs/src/cdk-lib/bedrock/#knowledge-bases

profile picture
EXPERT
answered 9 months ago
profile picture
EXPERT
reviewed 7 months ago
profile picture
EXPERT
reviewed 9 months ago
  • Thank you @riku, this was very helpful and works nicely!

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions