AI Cloud Architect

Connect Amazon Bedrock AgentCore to cross-account knowledge bases

AWSHow-to by Kunal Ghosh, Arghya Banerjee, Indranil Banerjee and Yoginder SethiAWS Artificial Intelligence Blog

Learn how Amazon Bedrock AgentCore agents in one account can generate answers from an Amazon Bedrock knowledge base backed by Amazon Redshift Serverless in another account, without copying source data. This post covers the architecture, security boundary, and two orchestration models: a code-based Strands agent and a declarative AgentCore harness.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

AgentCore agents in one AWS account can generate answers from a Bedrock knowledge base over Redshift Serverless in another account, using an assumed least-privilege role instead of copying data.

Who it is for

Cloud architects running multi-account AWS setups who need agents to query governed data in a separate account without copying it.

Key points

  • Bedrock Knowledge Bases resource policies do not support RetrieveAndGenerate cross-account, so the tool assumes a dedicated role in the Knowledge Base account.
  • Two generally available variants: a code-based Strands agent on AgentCore runtime, or a declarative AgentCore harness.
  • Post uses Nova Pro for the agent and Claude Haiku 4.5 for generation, in us-west-2; a GitHub sample holds deployment steps.