# S3

The **S3** page opens the buckets of the AWS profile you choose in the title bar. Folders open with a double-click, any `s3://` URI typed in the address bar jumps straight there, and selecting a file previews it in the app. The AWS console would make you download it first. S3 connects only through your AWS profiles (`~/.aws/config` and `~/.aws/credentials`, including SSO). ARNscope stores no access keys.

<figure class="doc-video">
<video controls playsinline preload="none" poster="/media/docs/s3/s3-explainer.webp?v=1" aria-label="S3 in ARNscope: a narrated tour of under two minutes">
<source src="/media/docs/s3/s3-explainer.webm?v=1" type="video/webm">
<source src="/media/docs/s3/s3-explainer.mp4?v=1" type="video/mp4">
<track kind="captions" srclang="en" label="English" src="/media/docs/s3/s3-explainer.vtt?v=1" default>
</video>
<figcaption>A narrated tour, with captions: browsing, previews, Parquet, compressed objects, event mappings, favourites and the activity log. Sample data.</figcaption>
</figure>

## Browsing

The bucket list comes from `ListAllMyBuckets` for the profile. Inside a bucket, folders are S3 prefixes: each level is one `ListObjectsV2` call with a `/` delimiter, so a folder opens without listing everything under it.

- **Address bar.** Paste or type `s3://bucket/prefix/` (or a file's URI) and press Enter.
- **Filter.** Typing in the search field filters what is already loaded. **Enter** searches the bucket by name instead; that search reads at most the first 5,000 keys, so narrow it with a prefix in a large bucket.
- **Back, forward and up** work like a browser.

<figure class="doc-clip">
<video data-clip controls muted loop playsinline preload="none" poster="/media/docs/s3/s3-browse.webp?v=1" aria-label="Opening folders with a double-click, then typing an S3 URI into the address bar to jump to another folder.">
<source src="/media/docs/s3/s3-browse.webm?v=1" type="video/webm">
<source src="/media/docs/s3/s3-browse.mp4?v=1" type="video/mp4">
</video>
<figcaption>Folders open with a double-click; an <code>s3://</code> URI jumps anywhere.</figcaption>
</figure>

## Previews

Double-click a file to open it beside the folder's file list, and maximize it for a full-width view with its details. A preview reads the object into memory (`GetObject`); nothing is written to your Downloads folder.

| File | Opens as |
| --- | --- |
| JSON, YAML, SQL, Markdown, code and text | Highlighted text, JSON formatted, with line wrapping and copy |
| Images (JPEG, PNG, GIF, WebP, SVG) | The image |
| PDF | The PDF, in the built-in viewer |
| Parquet | A table you can filter, sort and page through; see below |
| No extension, or one ARNscope does not know | What the bytes look like (JSON, text, image, PDF or binary), with **Open as** Text, JSON, Image, PDF or Hex |

<figure class="doc-clip">
<video data-clip controls muted loop playsinline preload="none" poster="/media/docs/s3/s3-preview.webp?v=1" aria-label="A settlement summary JSON file and a SQL file opening in the preview with syntax colours.">
<source src="/media/docs/s3/s3-preview.webm?v=1" type="video/webm">
<source src="/media/docs/s3/s3-preview.mp4?v=1" type="video/mp4">
</video>
<figcaption>JSON and SQL open formatted and highlighted.</figcaption>
</figure>

<figure class="doc-clip">
<video data-clip controls muted loop playsinline preload="none" poster="/media/docs/s3/s3-pdf-images.webp?v=1" aria-label="An invoice PDF opening in place, another invoice from the file list, then a product photo.">
<source src="/media/docs/s3/s3-pdf-images.webm?v=1" type="video/webm">
<source src="/media/docs/s3/s3-pdf-images.mp4?v=1" type="video/mp4">
</video>
<figcaption>PDFs and images open in place; the file list beside them switches files.</figcaption>
</figure>

<figure class="doc-clip">
<video data-clip controls muted loop playsinline preload="none" poster="/media/docs/s3/s3-bytes.webp?v=1" aria-label="A webhook event stored without an extension: detected as JSON, then shown as hex, text and JSON.">
<source src="/media/docs/s3/s3-bytes.webm?v=1" type="video/webm">
<source src="/media/docs/s3/s3-bytes.mp4?v=1" type="video/mp4">
</video>
<figcaption>A file without an extension: ARNscope says what the bytes look like, and you choose how to read them.</figcaption>
</figure>

### Compressed objects

An object whose bytes start with a **gzip** or **Zstandard** signature is decompressed as it opens, whatever its name, and its details show **Compression**. For other formats, **Decompress as** tries zlib, raw deflate, LZ4, Snappy (framed or raw) or Brotli on the bytes you opened.

<figure class="doc-clip">
<video data-clip controls muted loop playsinline preload="none" poster="/media/docs/s3/s3-gzip.webp?v=1" aria-label="A gzipped JSON archive opening as formatted JSON, with Compression gzip in the file details.">
<source src="/media/docs/s3/s3-gzip.webm?v=1" type="video/webm">
<source src="/media/docs/s3/s3-gzip.mp4?v=1" type="video/mp4">
</video>
<figcaption>A <code>.json.gz</code> archive opens as JSON; the details say it was gzip.</figcaption>
</figure>

### Limits

- Objects up to **100 MB** are read whole. Larger ones open from their first 64 KB (as stored, never decompressed), or download them.
- A file without a known extension is read whole up to **8 MB**, otherwise from its first 64 KB; views that need the whole file (JSON, image, PDF) are then unavailable.
- A decompressed preview stops at **256 MB**, so a small compressed object cannot expand without bound.

## Parquet, queried as a table

A Parquet object opens as a table without a download to your Downloads folder: ARNscope copies it to a temporary file (gzip or Zstandard-compressed files are decompressed first) and reads it with DuckDB on your Mac. Each column header shows its Parquet type.

- **Filters**: up to 12, combined with AND: is, is not, contains, starts with, less or greater than, at most, at least, is empty, is not empty. **Apply filters** runs them.
- **Sort** by any column from its header.
- **Expand JSON into columns** (right-click a text or struct column) turns the keys of a JSON value into columns of their own, which you can filter and sort too.
- Rows come a page at a time; **Export loaded rows as CSV** and **Copy** work on what is loaded.
- **Open in DuckDB console** takes the file to a SQL console (next section).

<figure class="doc-clip">
<video data-clip controls muted loop playsinline preload="none" poster="/media/docs/s3/s3-parquet.webp?v=1" aria-label="An orders export in Parquet: a filter on status paid, a sort on total_cents, and the shipping JSON column expanded into its keys.">
<source src="/media/docs/s3/s3-parquet.webm?v=1" type="video/webm">
<source src="/media/docs/s3/s3-parquet.mp4?v=1" type="video/mp4">
</video>
<figcaption>Filter, sort, and expand a JSON column into columns of its own.</figcaption>
</figure>

## Query with DuckDB

Right-click a Parquet, CSV or JSON file, or a folder, and choose **Query with DuckDB** (right-click an empty part of the list for **Query this folder with DuckDB**). A read-only DuckDB console opens on the Databases page, already signed in with the profile you are browsing with, SSO included. It reads whatever that profile's IAM permissions allow; use a read-only role for least privilege. It holds a `SELECT … LIMIT 100` draft and runs nothing until you press **Run**; before that it shows how many files and bytes the query can read. For a bucket open through another profile than the app's (for example one found with **⌘P**), ARNscope first asks to switch the app to that profile. See [DuckDB and S3](https://arnscope.com/docs/duckdb-s3#a-bucket-from-another-profile).

A folder that holds AWS logs (CloudTrail, S3 server access logs, CloudFront standard logs or VPC flow logs) also offers ready-made questions in its right-click menu, under **Investigate**, such as **Who deleted or changed this resource?**. See [Investigate](https://arnscope.com/docs/investigate).

## Event mappings: what an upload triggers

Folders and files show small badges for the bucket's event wiring: S3 notifications and EventBridge rules to SNS, SQS, Lambda and Step Functions. Click a badge to see each path that matches, its events and filters, and the chain hop by hop. A hop in another account is resolved through whichever local profile signs in to that account; without one, the hop says **No local profile**. Discovery only reads (`GetBucketNotification`, `ListRules`, `ListSubscriptionsByTopic`, `GetQueueAttributes` and similar), and its result is kept for the session.

<figure class="doc-clip">
<video data-clip controls muted loop playsinline preload="none" poster="/media/docs/s3/s3-mappings.webp?v=1" aria-label="Mapping badges on folders; the exports mapping opens to show S3 to SNS to SQS to Lambda, and a second path into another account.">
<source src="/media/docs/s3/s3-mappings.webm?v=1" type="video/webm">
<source src="/media/docs/s3/s3-mappings.mp4?v=1" type="video/mp4">
</video>
<figcaption>Order exports fan out through SNS to a search queue and a queue in another account.</figcaption>
</figure>

## Favourites

The ☆ in the address bar keeps the current folder, a file or a glob pattern as a favourite, with an optional label. A favourite remembers the profile it was made with, so opening it switches to that profile and goes there. Favourites are stored on this Mac only.

<figure class="doc-clip">
<video data-clip controls muted loop playsinline preload="none" poster="/media/docs/s3/s3-favourites.webp?v=1" aria-label="Adding the settlement reports folder as a favourite with a label; it appears under Favourites in the sidebar.">
<source src="/media/docs/s3/s3-favourites.webm?v=1" type="video/webm">
<source src="/media/docs/s3/s3-favourites.mp4?v=1" type="video/mp4">
</video>
<figcaption>A labelled favourite in the sidebar.</figcaption>
</figure>

## Changes and the activity log

Upload, create folder, rename, copy, move and delete are available from the toolbar and the context menu.

**Deletes** (objects, a selection, a bucket and **Empty Trash**) are behind the **Writes** switch for the profile and region, which is off until you turn it on. Each delete then opens a native dialog that lists the object count and the first five keys, says whether they can be restored, and names the profile and region (PRODUCTION for a production profile). When Trash is on for the connection, a delete first copies each object to a `.trash/` folder in the same bucket, so you can restore it from the Trash view. Without Trash, and for objects already in `.trash/` and **Empty Trash**, a delete is permanent unless the bucket keeps versions. One delete takes up to 100,000 objects. ARNscope also reads the bucket's own region (`s3:GetBucketLocation`) and, if it differs from the page's, needs Writes on for that region too. See [Writes and confirmations](https://arnscope.com/docs/writes).

**Uploads, copies, renames, moves and new folders to new keys do not need Writes.** A new key is written only if it still doesn't exist (`If-None-Match`), so an object someone else created in the meantime is never replaced silently. A rename or move is one verified step: it refuses if an object already exists at the destination, copies the original only if it has not changed, checks the copy, and deletes the original last. **Replacing an existing object** with an upload or a copy needs Writes on for the profile and region and one native confirmation that lists the key, its size change and when it was last modified; the write then replaces exactly the version shown (`If-Match`). A batch (a folder copy, a drop of many files) asks once, and with Writes off it can skip the existing keys instead. [Folder Sync](https://arnscope.com/docs/writes#folder-sync-approvals) is the exception: a job's own approval covers its uploads.

**Downloads** write only to the place you pick in a native Save dialog. The page suggests a file name and nothing more.

**Folder Sync** jobs need an approval of their own: a native dialog, once per job, that shows the folder, bucket, prefix, profile, schedule and, for a mirror sync, a warning that it deletes bucket objects missing from the folder. A job asks again if you change its folder, bucket, prefix, profile, direction or mirror setting. Approvals are signed and kept on this Mac, and they do not expire after 15 minutes. Sync goes from a folder to a bucket only. See [Folder Sync approvals](https://arnscope.com/docs/writes#folder-sync-approvals).

Every upload, download, copy, rename, edit and delete, including deletes you cancelled, is recorded, with its result, in an **activity log** kept in a local database on your Mac (sidebar → **Activity**). It covers actions made through ARNscope only.

<figure class="doc-clip">
<video data-clip controls muted loop playsinline preload="none" poster="/media/docs/s3/s3-activity.webp?v=1" aria-label="The activity log: downloads, copies, renames and uploads with their status, including a failed request.">
<source src="/media/docs/s3/s3-activity.webm?v=1" type="video/webm">
<source src="/media/docs/s3/s3-activity.mp4?v=1" type="video/mp4">
</video>
<figcaption>The local activity log, with failures and their errors.</figcaption>
</figure>

## Permissions

| Action | Used for |
| --- | --- |
| `s3:ListAllMyBuckets` | The bucket list |
| `s3:ListBucket` | Folders, search, folder sizes |
| `s3:GetObject` | Previews, Parquet, DuckDB queries, downloads, links |
| `s3:PutObject` | Upload, create folder, copy, rename |
| `s3:DeleteObject` | Delete, rename, move |
| `s3:GetBucketLocation` | Checking a bucket's region before a delete or bucket delete |
| `s3:DeleteBucket`, `s3:CreateBucket` | Deleting or creating a bucket |
| `s3:GetBucketNotification`, `events:ListRules`, `events:ListTargetsByRule`, `sns:ListSubscriptionsByTopic`, `sqs:GetQueueAttributes`, `lambda:ListEventSourceMappings` and related reads | Event mappings |

Objects encrypted with a customer-managed KMS key also need `kms:Decrypt` on that key.

## Limitations

- Previews read objects up to 100 MB whole; larger ones open from their first 64 KB. See [Limits](#limits).
- **Enter** in the search field searches at most the first 5,000 keys of a bucket.
- One delete takes up to 100,000 objects.
- Folder Sync goes from a folder to a bucket only.
- Favourites, Folder Sync approvals and the activity log are kept on this Mac, and the activity log covers actions made through ARNscope only.
- DuckDB queries are read-only and are not offered in Trash or in search results. Their own limits are on the [DuckDB and S3](https://arnscope.com/docs/duckdb-s3#limitations) page.

Source: https://arnscope.com/docs/s3
