Lesson 3 of 4 Amazon Bedrock Knowledge Bases

Connecting Knowledge Bases to Enterprise Data Sources

This lesson describes the built-in knowledge base connectors and the patterns for sources without one, since a knowledge base is only as complete as its connections.

Learning outcomes

After completing this lesson, you will be able to:

  • Identify the built-in data source connectors.
  • Decide when Amazon Kendra or Amazon Q Business fits.
  • Ingest sources without a connector through S3 and AppFlow.

Built-in data source connectors

Enterprise knowledge rarely lives in one place, so Bedrock Knowledge Bases offer built-in connectors that read content directly from common sources: Amazon S3; a web crawler, configured with seed URLs, a scope, inclusion and exclusion patterns and a crawl rate; Atlassian Confluence; Microsoft SharePoint; and Salesforce. Using a connector avoids writing and maintaining export jobs for each system.

Connectors authenticate with credentials stored in AWS Secrets Manager, so no secrets appear in the knowledge base configuration. They map source fields, such as author and last modified date, to metadata; support inclusion and exclusion filters, for example to skip archived spaces; and sync incrementally, processing only changed content. For sources without a connector, a custom data source accepts documents pushed directly through the ingestion API, which suits content that an application already reads or generates.

Scenario questions

Connecting a source

Exam skills 1.4.4

Choose how a knowledge base should read each source.

Log in to try this activity Interactive activities are free with an account.

Amazon Kendra and Amazon Q Business

Amazon Kendra is an intelligent enterprise search service with many connectors to enterprise systems and built-in document-level access control. A Kendra GenAI index can serve as the retriever for a Bedrock knowledge base, reusing Kendra's connectors and ranking. Amazon Q Business is a managed generative AI assistant for employees that connects to enterprise data sources, respects their permissions and needs no application code; Amazon Q Business Apps let users build lightweight apps from conversations. These suit scenarios that want an assistant rather than a custom application. Amazon Q Business stopped accepting new customers on 31 July 2026; existing customers keep using it, and AWS recommends Amazon Quick for new deployments.

Sources without a connector

For other systems, data is moved to S3 and ingested. Amazon AppFlow transfers data from SaaS applications such as Salesforce, ServiceNow or Zendesk to S3 on a schedule or event, with field mapping and filtering. AWS Lambda functions or AWS Glue jobs call a document management system's API, convert content to text, and write documents with .metadata.json files. AWS DataSync and AWS Transfer Family move files from on-premises shares and SFTP feeds. Source permissions should be captured as metadata (allowed groups) so retrieval can filter by the requesting user.

The following table summarises the integration options.

SourceIntegration
Files in S3S3 data source
Public or intranet websitesWeb crawler data source
Confluence, SharePoint, SalesforceBuilt-in connectors with Secrets Manager credentials
Many enterprise systems with ACLsAmazon Kendra GenAI index as retriever
SaaS applications without a connectorAmazon AppFlow to S3
Internal APIs and document systemsLambda or Glue to S3, or custom data source ingestion
On-premises file sharesDataSync or Transfer Family to S3

The following diagram shows a wiki and a ticketing system feeding one knowledge base.

Connecting a wiki and a ticketing system to one knowledge base. The Confluence connector ingests the wiki and maps space and permission information to metadata. Resolved tickets from a tool without a connector are exported to S3 nightly with Amazon AppFlow and ingested by an S3 data source. Retrieval filters on the user's groups.
Ticket permissions are captured as metadata during the export.
Match the pairs

Getting data into S3

Exam skills 1.4.4

Match each source with the service that moves its content to S3 for ingestion.

Log in to try this activity Interactive activities are free with an account.
Worked example

Wiki plus ticketing system

An IT assistant must answer from a Confluence wiki and from resolved tickets in a SaaS ticketing tool that has no knowledge base connector. Users must only see articles from spaces they can access.

The wiki uses the Confluence connector, which maps space and permission information to metadata. Resolved tickets are exported with Amazon AppFlow to S3 nightly and ingested by an S3 data source. Retrieval applies a metadata filter on the user's groups.

Check yourself

A SaaS application has no knowledge base connector. How can its data be ingested?

Show answer

Use Amazon AppFlow to export it to S3, and use the S3 bucket as the data source.

Exam Tips

Remember for the exam

  • Built-in connectors: S3, web crawler, Confluence, SharePoint, Salesforce; custom data source for pushes.
  • SaaS without a connector: AppFlow to S3. On-premises files: DataSync or Transfer Family.
  • Many enterprise connectors with ACLs: Kendra GenAI index.
  • Capture source permissions as metadata for filtered retrieval.