跳至内容

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 回答
0
已接受的回答

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

专家
已回答 2 年前
专家
已审核 2 年前
专家
已审核 2 年前
  • Thank you @riku, this was very helpful and works nicely!

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。