Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Connect a data source to your knowledge base

Focus mode
Connect a data source to your knowledge base - Amazon Bedrock

After finishing the configurations for your knowledge base, you connect a supported data source to the knowledge base.

Amazon Bedrock Knowledge Bases supports connecting to unstructured data sources or to structured data stores through a query engine. Select a topic to learn how to connect to that type of data source:

To learn how to connect to a data source using the Amazon Bedrock console, select the topic that corresponds to your data source type at the bottom of this page:

To connect to a data source using the Amazon Bedrock API, send a CreateDataSource request with an Agents for Amazon Bedrock runtime endpoint.

The following fields are required:

Field Basic description
knowledgeBaseId The ID of the knowledge base.
name A name for the knowledge base.
dataSourceConfiguration Specify the data source service or type in the type field and include the corresponding field. For more details about service-specific configurations, select the topic for the service from the topics at the bottom of this page.

The following fields are optional:

Field Use case
description To provide a description for the data source.
vectorIngestionConfiguration Contains configurations for customizing the ingestion process. For more information, see Customize ingestion for a data source.
dataDeletionPolicy To specify whether to RETAIN the vector embeddings in the vector store or to DELETE them.
serverSideEncryptionConfiguration To encrypt transient data during data syncing with a customer managed key, specify its ARN in the kmsKeyArn field.
clientToken To ensure the API request completes only once. For more information, see Ensuring idempotency.

Select a topic to learn more about a service and configuring it.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.