Tech Insights

AWS Shows AI Agents Sharing Files Without Copying Objects: The S3 Files Architecture Explained

AWS has published a new AgentCore and S3 Files design for document investigations. The interesting change is architectural: Lambda and an AI agent share a mounted workspace instead of passing files through repeated object-copy steps.

Featured image for AWS Shows AI Agents Sharing Files Without Copying Objects: The S3 Files Architecture Explained

Many AI workflows still hand documents from one stage to another by downloading objects, serializing payloads and uploading results again. AWS’s latest architecture example proposes a simpler handoff for a specific class of problem: let a deterministic function and an AI agent see the same bucket-backed file system, then exchange work through ordinary file operations.

In a new AWS Compute Blog post, AWS shows a document-investigation workflow built from an AWS Lambda pre-stage function, Amazon Bedrock AgentCore Runtime and Amazon S3 Files. The example is designed for cases where the documents needed for an investigation are not known in advance. One file can point to an addendum, the addendum can point to an invoice, and the agent can decide which file to open next.

The development is not simply “AI can read files.” The more interesting idea is that the file system becomes a shared coordination surface between serverless compute and an agentic runtime.

The old handoff has a lot of plumbing

A conventional multi-stage document workflow often treats each step as an isolated function. A Lambda function pulls objects from Amazon S3, writes them into temporary storage, runs some processing and uploads a result. The next stage repeats the sequence. If the agent discovers a new document while reading the first one, the workflow needs another object lookup, another transfer and another piece of orchestration code.

That plumbing is not always the main purpose of the application, but it becomes part of the system’s behavior. Large payloads encounter limits. File metadata needs to be preserved. Retry logic must decide whether a failed stage should download everything again. Developers have to maintain code that moves documents even when the actual goal is to investigate their contents.

AWS’s example changes the boundary. Instead of passing each document through the function interface, both stages mount the same S3 Files file system. Lambda prepares a case folder. The AgentCore runtime reads that folder and writes findings back to another location.

How the shared workspace is arranged

The design has two stages. First, a Lambda function receives a document set from an intake bucket or an upstream workflow. It normalizes the set into a case folder and writes a manifest that identifies the available material. The function uses file writes on the mounted file system rather than object-upload code for each handoff.

Second, an agent running on Amazon Bedrock AgentCore mounts the same S3 Files access point. It reads the manifest, lists the case folder, opens the documents it needs, follows references it discovers and writes structured findings to the shared path. The agent can use ordinary operations such as listing, reading and writing files instead of calling the S3 API to move every document between steps.

The S3 bucket remains the durable source of truth. AWS describes S3 Files as presenting an S3 bucket through a file-system interface over NFS, with read-after-write consistency, file locking and POSIX permissions. Changes made through the mount synchronize back to the bucket, allowing other systems to consume the raw documents and findings as S3 objects.

Why the architecture feels different to developers

For an agent, a mounted path is easier to reason about than a chain of object-download tools. The agent can open a file, find a reference to another file and request that path through a tool. The code that exposes those tools can resolve a path, read its contents and return the text. The model still makes the decision about what to read next, but the storage handoff is expressed as a familiar workspace.

For the deterministic stage, the benefit is similar. Lambda does not need to know how the agent will navigate the case. It only needs to create the expected directory structure and manifest. That separation can make the workflow easier to extend when the investigation logic changes, because the staging function and the agent do not need to exchange a new payload format for every new document relationship.

This is a useful pattern for open-ended investigations: contract reviews, incident analysis, audits, research dossiers or clinical case reviews where the next input is discovered by reading the current one. It is less compelling when every file and every output is known in advance, because a fixed extraction pipeline may be simpler.

The rule that keeps shared storage understandable

A shared workspace sounds simple until two writers modify the same path. AWS’s example uses ownership boundaries: the Lambda stage owns the raw-document directory and manifest, while the agent owns the findings directory. That gives each path one writer.

AWS says S3 Files serves recently modified data from the file system before it synchronizes the export back to S3. The mount therefore provides the current view for a cooperating workflow, while the bucket copy may lag until synchronization catches up. If the bucket copy and the mounted file are modified at the same time, S3 Files can move the file to a lost-and-found directory because the bucket remains the source of truth.

The lesson is architectural rather than product-specific: shared storage needs an ownership model. One writer per path and file-per-producer naming are simple rules, but they prevent a large class of race conditions that are otherwise hard to explain after a workflow scales.

The agent security problem moves with the files

A shared file system also gives the agent access to text it did not create. AWS explicitly calls out indirect prompt injection in its example. A document can contain instructions aimed at the model, and those instructions can distort findings, steer a tool toward another case or persist in a report that a later investigation reads.

This is where the storage design and the agent design meet. The source file, the current case and the output path should not be treated as interchangeable. AWS’s example describes taking the case identifier from the invocation rather than from the model, resolving paths inside the current case folder, separating raw and write locations, requiring evidence for findings and logging the paths the agent opens or refuses.

These controls do not turn an agent into a deterministic program. They reduce the number of places where untrusted document text can change what the workflow is allowed to do. The model can still make a poor interpretation of a document, which is why the architecture needs reviewable evidence rather than only a final conclusion.

The trade-offs behind “no object-copy handoff”

The shared mount removes repeated transfer code, but it does not remove operational complexity. AWS’s design uses a VPC, private subnets, mount targets, an access point, IAM roles and POSIX identities. Both IAM permissions and file-system permissions matter. Teams also have to understand what happens when synchronization falls behind, when a file enters lost-and-found or when multiple investigations compete for the same resources.

AWS recommends watching the PendingExports CloudWatch metric so downstream consumers that read directly from the bucket can see whether the exported data is current. The design also depends on a clear directory layout and on quotas that may shape how many concurrent cases the system can support. A mounted S3-backed workspace is not a universal replacement for a queue, a database or an object-level workflow.

What AWS is really demonstrating

The headline feature is S3 Files, but the deeper change is the handoff model. An AI agent can operate against an evolving case folder while a Lambda function prepares the evidence, and both sides can use ordinary file operations rather than repeatedly packaging and transferring objects.

That matters because agentic systems often discover their own next steps. The architecture has to preserve the agent’s flexibility without giving it an undefined relationship with the data. AWS’s example offers a clear compromise: shared reads, separated writes, durable storage, explicit paths and outputs that can be inspected later.

The memorable takeaway is that an agent does not always need a larger prompt or a more complicated tool list. Sometimes it needs a better workspace. When the workspace has predictable ownership and durable boundaries, the model can focus on the investigation while the infrastructure carries the files without turning every handoff into a custom integration.

Editorial note: This article is a general information summary based on the cited public sources. It is not legal, cybersecurity, or compliance advice.

Written By

PragnaTeja Bandiboyina

Web Designer

PragnaTeja Bandiboyina shares practical publishing insights, comparisons, and WordPress-focused growth guidance for modern web teams.

212 articles published Member since 2026