Urgent.News

What's breaking now, across hundreds of outlets.

AI

Giving an AI agent file access to an S3 bucket: S3 Files vs Mountpoint vs Archil

Your agent needs to work on data that already lives in S3: a few hundred GB of documents, a dataset, a repo snapshot. Agents are good with files. They reach for ls , grep , cat , Python, git and SQLite, and they are much worse at paging through ListObjectsV2 . So the practical question is how to give the agent a file system over the bucket without copying the data somewhere else first. There are…

When an AI agent requires access to data stored in an S3 bucket, there are three key options available: Amazon S3 Files, Mountpoint for Amazon S3, and Archil. These solutions enable the agent to interact with the data as if it were a traditional file system without the need for copying the data elsewhere.

Amazon S3 Files is an NFS file system built on Amazon EFS, utilizing open-source FUSE clients to translate file operations into S3 requests. This option is managed POSIX file system with an SSD layer replicated across Availability Zones, ensuring data synchronization with the bucket. It is compatible with Amazon S3 buckets that have Versioning enabled and can be mounted on AWS compute instances.

Mountpoint for Amazon S3 is an open-source FUSE client that translates file operations into S3 requests, providing a managed POSIX file system with an SSD layer replicated across AZs. It is designed for scenarios with large sequential reads and write-once files, making it an excellent choice for training data and data lakes. However, it does not support in-place edits, appends, or directory renames, which can cause issues when using git, package managers, or SQLite.

Archil keeps the original S3 bucket as the system of record while serving reads and writes from its own SSD layer. This means that in-place edits, appends, and atomic renames behave like a local disk. Archil runs outside of AWS and supports GCS, Cloudflare R2, and other S3-compatible stores. It is suitable for scenarios where agents edit files in place, run git, npm, or SQLite on the data, rename directories, or need to handle multiple machines writing to the same tree, particularly when the data resides in GCS or R2, or when agents run outside of AWS.

To mount an existing S3 bucket with Archil, a disk can be created pointing at the bucket, with the objects already present appearing as files. These files written by the agent are then stored back in the bucket as normal objects at the matching key. The mounted disk can then be accessed using the appropriate mount command.

Each option has its strengths and weaknesses, and the choice depends on the specific requirements of the AI agent, such as the type and volume of read/write operations, the desired level of integration with AWS services, and the target environment for running the agent.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in AI

[國際] 黃仁勳回鍋平息信心危機 AI生態系吃定心丸

對美股投資人而言,人工智慧(AI)晶片大廠輝達(Nvidia)執行長黃仁勳23日震撼回鍋,讓近期飽受重創、市值達數兆美元的AI交易題材如釋重負。 路透社報導,黃仁勳重掌這家半導體巨頭兵符,止住了科技股的劇烈跌勢。在此之前,市場對這個支撐4年多頭行情的主要引擎疑慮日益加劇,一度將指標性的標普500指數推入修正區間。…

Per-tenant storage for multi-tenant AI agents: a subdirectory is not a security boundary

If you run a multi-tenant agent product, every customer's agent eventually needs somewhere to keep files: uploaded documents, a cloned repo, intermediate results, a SQLite database it builds up over…

  • Subdirectory per tenant does not provide security boundary.
  • Isolated storage per tenant needed for strong isolation.
  • Archil's disk-per-tenant solution is optimal for tenant isolation.

More from Tuesday 24 November →