Skip to content

Managed KB support in Terraform

0

Is there support for AWS Managed KB through terraform. Currently I see a new issue just raised in terraform repo about this.

3 Answers
1

To supplement the automated response:

While the re:Post Agent is absolutely correct that Terraform supports standard Amazon Bedrock Knowledge Bases (where you provision and manage the underlying vector store, like OpenSearch Serverless, yourself), the specifically requested Managed Knowledge Base feature is currently not yet supported.

As you correctly observed, there is an open feature request in the AWS Terraform Provider repository (Issue #48744) regarding this exact functionality. Until this is implemented by HashiCorp, deploying a Managed Knowledge Base (where Bedrock natively handles the vector store abstraction) currently requires using the AWS Console, AWS CLI, or AWS SDKs.

-> https://github.com/hashicorp/terraform-provider-aws/issues/48744

-> https://aws.amazon.com/bedrock/knowledge-bases/

EXPERT

answered 10 days ago

EXPERT

reviewed 10 days ago

0

Yes, there is support for deploying Amazon Bedrock Knowledge Bases using Terraform. You can create and configure Amazon Bedrock Knowledge Bases through Infrastructure as Code (IaC) using Terraform, which streamlines maintenance and reduces manual setup effort.

To deploy a knowledge base with Terraform, you'll need to set up several components including IAM roles with appropriate permissions, Amazon OpenSearch Serverless for vector storage, and the Amazon Bedrock Knowledge Base itself. The solution allows you to customize various aspects such as the chunking strategy and OpenSearch collection vector dimensions.

Before deploying, ensure you have the necessary prerequisites in place: an active AWS account, IAM roles and permissions for services like Amazon S3, Amazon OpenSearch Service, and Amazon Bedrock, Terraform installed on your local machine, and the AWS CLI configured with appropriate credentials. You'll also need an S3 bucket with your documents uploaded in supported formats.

The Terraform-based approach provides a repeatable and version-controlled method for deploying knowledge bases, making it easier to manage and maintain your RAG-based generative AI applications.
Sources
Deploy Amazon Bedrock Knowledge Bases using Terraform for RAG-based generative AI applications | Artificial Intelligence

answered 10 days ago

EXPERT

reviewed 10 days ago

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.