Developer Tools

Build and deploy an automatic sync solution for Amazon Bedrock Knowledge Bases

Serverless solution detects S3 changes and triggers ingestion jobs automatically.

Deep Dive

AWS and Deloitte have unveiled an automated synchronization solution for Amazon Bedrock Knowledge Bases, designed to keep foundation models and agents updated with private data from Amazon S3. The serverless, event-driven architecture uses Amazon EventBridge to capture real-time S3 changes (document adds, edits, deletes, including metadata files). AWS Lambda functions process these events, buffering requests through Amazon Simple Queue Service (SQS) to respect strict service quotas—specifically, five concurrent ingestion jobs per AWS account, one per knowledge base, and one per data source, plus a StartIngestionJob API rate limit of 0.1 requests per second per region. AWS Step Functions orchestrate the workflow, while DynamoDB tracks document changes and job metadata, ensuring reliable synchronization without overwhelming Bedrock APIs.

This solution addresses a critical challenge for organizations with frequent content updates, multiuser environments, or real-time applications like customer support systems. Previously, manual sync was prone to delays or being forgotten, especially during coordinated releases where multiple files change. By automating the process, Deloitte's solution eliminates manual oversight, improves operational efficiency, and ensures that AI responses remain accurate and up-to-date. The deployment uses AWS Serverless Application Model (AWS SAM) for streamlined setup, requiring no infrastructure management. This tool is particularly valuable for enterprises scaling their use of Bedrock Knowledge Bases, as it maintains data consistency without violating service quotas, making it a practical addition to the AWS ecosystem.

Key Points
  • Detects S3 document changes (add, modify, delete) via EventBridge and triggers ingestion jobs automatically.
  • Respects Bedrock service quotas: 5 concurrent jobs per account, 1 per knowledge base, 0.1 requests/sec API limit.
  • Uses serverless stack (Lambda, SQS, Step Functions, DynamoDB) deployed via AWS SAM for zero infrastructure management.

Why It Matters

Automates real-time sync for Bedrock Knowledge Bases, eliminating manual delays and ensuring AI accuracy at scale.