# Building document-investigation agents with Amazon Bedrock AgentCore and Amazon S3 Files

DevFeed: [Building document-investigation agents with Amazon Bedrock AgentCore and Amazon S3 Files](<https://devfeed.tech/articles/building-document-investigation-agents-with-amazon-bedrock-agentcore-and-amazon-s3-files-104512.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/compute/building-document-investigation-agents-with-amazon-bedrock-agentcore-and-amazon-s3-files/>)

Author: Ben Freiberg

Published: 2026-10-27T17:16:54Z

Content type: article

Language: en

Sources: [AWS Compute Blog](<https://devfeed.tech/sources/aws-compute-blog.md>)

Topics: [Amazon Bedrock AgentCore](<https://devfeed.tech/topics/amazon-bedrock-agentcore.md>), [Amazon S3](<https://devfeed.tech/topics/amazon-s3.md>), [Filesystems](<https://devfeed.tech/topics/filesystems.md>), [Amazon Bedrock](<https://devfeed.tech/topics/amazon-bedrock.md>)

Tags: [advanced-300](<https://devfeed.tech/tags/advanced-300.md>), [agentcore](<https://devfeed.tech/tags/agentcore.md>), [agentcore-runtime](<https://devfeed.tech/tags/agentcore-runtime.md>), [agentic](<https://devfeed.tech/tags/agentic.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [amazon](<https://devfeed.tech/tags/amazon.md>), [amazon-bedrock](<https://devfeed.tech/tags/amazon-bedrock.md>), [amazon-bedrock-agentcore](<https://devfeed.tech/tags/amazon-bedrock-agentcore.md>), [amazon-bedrock-data-automation](<https://devfeed.tech/tags/amazon-bedrock-data-automation.md>), [amazon-bedrock-guardrails](<https://devfeed.tech/tags/amazon-bedrock-guardrails.md>), [amazon-cloudwatch](<https://devfeed.tech/tags/amazon-cloudwatch.md>), [amazon-s3](<https://devfeed.tech/tags/amazon-s3.md>), [amazon-simple-storage-service-s3](<https://devfeed.tech/tags/amazon-simple-storage-service-s3.md>), [aws-lambda](<https://devfeed.tech/tags/aws-lambda.md>), [bedrock](<https://devfeed.tech/tags/bedrock.md>), [bedrock-agentcore](<https://devfeed.tech/tags/bedrock-agentcore.md>), [file-system](<https://devfeed.tech/tags/file-system.md>), [files](<https://devfeed.tech/tags/files.md>), [investigation](<https://devfeed.tech/tags/investigation.md>), [s3](<https://devfeed.tech/tags/s3.md>), [technical-how-to](<https://devfeed.tech/tags/technical-how-to.md>)

## AI overview

An AWS Lambda function and an Amazon Bedrock AgentCore agent can investigate related documents through the same Amazon S3 Files mount: Lambda stages each case and a manifest, while the agent follows document references and writes findings using ordinary file operations. The design relies on mount reads for current data because exports to the S3 bucket are asynchronous; it assigns one writer per path and separate output files per producer to avoid conflicts. The article also recommends monitoring PendingExports, enforcing both IAM and POSIX permissions, and treating documents as untrusted input. Its controls include binding the case ID to the invocation, restricting paths to that case, separating intake and write locations, requiring cited evidence and review, screening tool-read text and findings with ApplyGuardrail, and logging path access. It contrasts this open-ended workflow with Amazon Bedrock Data Automation, which extracts known fields from documents and other media through a managed pipeline.

## Source excerpt

Learn how an AWS Lambda function and an Amazon Bedrock AgentCore agent investigate a folder of related documents together through a shared Amazon S3 Files file system, using ordinary file operations instead of object download and upload code.