Amazon Bedrock AgentCore enables agents in one AWS account to access knowledge bases in another without copying source data. This capability addresses integration challenges in multi-account architectures by allowing agents to generate answers from structured data hosted in Amazon Redshift Serverless. The solution leverages Amazon Bedrock Knowledge Bases and AWS Identity and Access Management (IAM) roles to maintain security and control across accounts. The blog post outlines two implementation approaches for achieving this cross-account access, emphasizing the importance of maintaining workload boundaries and data governance.

The solution implements cross-account query patterns through two variants: a code-based Strands agent on AgentCore runtime and a declarative AgentCore harness. Both variants use the same data access boundary, with the tool assuming a narrowly scoped IAM role in the Knowledge Base account before calling the RetrieveAndGenerate API. The generated answer and citations are returned to the orchestration layer, allowing users to access structured data without duplicating it into the agent account. The blog post also provides deployment procedures and implementation details in a GitHub sample, offering guidance for teams looking to adopt this approach.

The blog post highlights the need to evaluate whether an agent is necessary for a given workload, suggesting that native cross-account Retrieve operations may suffice for simpler use cases. It also outlines when to use each variant based on the level of customization and control required. The solution is supported by specific AWS resources, including Amazon Redshift Serverless, Amazon Bedrock Knowledge Bases, and the AWS Command Line Interface (CLI) with version requirements.

Source: awsml