Connect Amazon Bedrock AgentCore to cross-account knowledge bases

AWS ML Blog · rss · 2026-08-26

This post explains how to connect Amazon Bedrock AgentCore agents to knowledge bases hosted in separate AWS accounts (backed by Amazon Redshift Serverless), maintaining workload boundaries without copying data.

The Challenge:

Bedrock Knowledge Bases resource policies support cross-account Retrieve but not RetrieveAndGenerate. The solution assumes a narrowly scoped IAM role in the target account to bridge this gap.

Solution Overview:

Two implementation variants are provided, sharing the same data access boundary:

Request Flow:

User query -> Amazon Nova Pro selects tool -> Tool assumes cross-account role via AWS STS -> Calls RetrieveAndGenerate (Claude Haiku) against Redshift -> Returns answer.

Decision Matrix:

A linked GitHub repository provides deployment procedures and a sample Streamlit client.

Original post →

More from coding & agent

coding & agent channel →