# Amazon S3

Canonical: https://interlatent.com/docs/ivy/amazon-s3

Let your agent analyze S3 recordings on hosted compute without downloading the collection into its local sandbox. Connect a bucket and verify a small import.

## What you need

Section: https://interlatent.com/docs/ivy/amazon-s3#before-you-start

Have the bucket name, AWS region, and the path to your recordings ready. Use the dataset directory, such as `s3://your-bucket/recordings/session-01/`, rather than the whole bucket. Someone with permission to manage access in the bucket’s AWS account must complete the connection setup. Bucket connections require Pro.

Note: Start with read access to import recordings. Read and write access is useful when you also want Dataset exports written to your bucket. Your agent can check which options your account supports.

## 1. Check for an existing connection

Section: https://interlatent.com/docs/ivy/amazon-s3#existing-connection

Ask Ivy to list your storage connections first. A usable connection to the bucket can be reused. If a connection exists but access has changed, verify it again before importing. Creating another read connection for the same bucket returns an “already connected” message.

### Prompt

```text
Use Ivy to check my plan and list my storage connections. I want to import from s3://YOUR_BUCKET/recordings/ in REGION. Reuse a usable connection to this bucket if one exists, and verify access. If setup is needed, show me the connection instructions for read access.
```

## 2. Complete the AWS setup

Section: https://interlatent.com/docs/ivy/amazon-s3#grant-access

Ivy checks access when you request a connection. If access is missing, it returns the setup for your bucket. Follow those returned instructions in AWS, then ask the agent to finish verification. Use the exact policies, role details, and any verification values returned for this connection.

1. Ask your agent to request a read connection for your bucket and region.
2. Review the returned AWS setup with the person who manages your bucket.
3. Apply the returned access settings in your AWS account. Merge any bucket-policy statements with the existing policy.
4. Ask your agent to finish the connection and verify it.
5. Continue when verification succeeds and the connection is usable.

Note: You do not need to paste an AWS access key or secret key into chat. A connection that is still pending is not ready to import.

- [AWS permissions and verification](https://interlatent.com/docs/ivy/source-reference#aws-permissions)

## 3. Import a sample

Section: https://interlatent.com/docs/ivy/amazon-s3#import

Give your agent the dataset path and destination project. LeRobot and MCAP have built-in readers; any other layout imports through an ingestion script your agent writes. Start with one episode where the source supports a sample limit. The import response reports whether the request started, needs preparation, or could not honor your limit.

### Prompt

```text
Import only 1 episode from s3://YOUR_BUCKET/recordings/session-01/ into a new Ivy project called “S3 sample”, using the verified connection and reading from the source bucket. Keep the one-episode limit. If this layout cannot enforce the limit, stop and explain the options. Wait for completion, report imported and failed counts, and send the project link.
```

Note: A custom layout stops at its estimate until your agent writes an ingestion script for it. That is a normal step, not an error. Its test runs and the import are metered, so describe the layout and check your credit balance first. LeRobot v2 imports free through the built-in ingestion script.

- [Write an ingestion script for a custom layout](https://interlatent.com/docs/ivy/source-reference#ingestion-script-tools)

## 4. Check the recording

Section: https://interlatent.com/docs/ivy/amazon-s3#review

Open the returned project link and play the imported episode. Check camera names, duration, task text, and any recorded channels. “Import started” means work is still running; wait for the final status before reporting the result or beginning an experiment.

### Prompt

```text
List the recordings in “S3 sample”. Confirm which import completed, inspect one episode’s metadata and representative frames, and show me its available cameras. Report any skipped or failed recordings before we analyze it.
```

- [Run your first experiments](https://interlatent.com/docs/ivy/experiments)

## Keep the source available

Section: https://interlatent.com/docs/ivy/amazon-s3#source-access

With the default origin import, your agent can work with recordings in S3 without downloading the full collection into its local sandbox. Hosted workers read the source objects as needed; compute and transfer usage still apply. Keep the bucket, objects, and read permission available. If you need a copied source collection, ask about mirror mode before importing; it copies files into Interlatent storage and changes the storage and transfer involved.

- [Source storage and copies](https://interlatent.com/docs/ivy/source-reference#origin-mirror)
