> ## Documentation Index
> Fetch the complete documentation index at: https://zenskar.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Reference: S3 ingestion

> This document presents the screens, fields, permissions, API operations, and troubleshooting of S3 ingestion.

## S3 Ingestion tab: bucket connection fields and controls

The **S3 Ingestion** tab holds the [bucket connection](https://zenskar.com/docs/20260301/zenskar-modules/usage/glossary.md#bucket-connection) of your [organization](https://zenskar.com/docs/20260301/zenskar-modules/settings/glossary.md#organization). To open it, go to **Settings** > **S3 Ingestion**.

### Header

| Element | Description |
| - | - |
| **S3 Bucket Connection** | The title of the tab. |
| Status tag | It shows **Connected** when a bucket connection is saved. Otherwise, it shows **Not Connected**. Zenskar does not test the bucket. |
| **Edit** | It shows when connected. It opens **Step 1** and **Step 2** with the current bucket names. |
| **Disconnect** | It shows when connected. It opens the **Disconnect S3 Bucket** dialog. |

### Step 1 Configure your S3 bucket

This step shows when your organization has no bucket connection, or after **Edit**.

| Element | Description |
| - | - |
| **Processor Role ARN** | The ARN of the [processor role](https://zenskar.com/docs/20260301/zenskar-modules/usage/glossary.md#processor-role). It is read-only, with a copy button. The bucket policy grants this role read access. |
| **SQS Queue ARN** | The ARN of the [Zenskar SQS queue](https://zenskar.com/docs/20260301/zenskar-modules/usage/glossary.md#zenskar-sqs-queue). It is read-only, with a copy button. The event notification of the bucket sends to the Zenskar SQS queue. |
| Region notice | The bucket must be in the AWS region `us-east-1`. |
| **View Setup Guide** | It shows only when your organization has no bucket connection. It opens the setup guide in the documentation. |

### Step 2 Enter your bucket details

| Field | Required | Details |
| - | - | - |
| **S3 Bucket Name** | Yes | The bucket of the bucket connection, without the `s3://` prefix. |
| **Ingestion Error Bucket (Optional)** | No | The [ingestion-error bucket](https://zenskar.com/docs/20260301/zenskar-modules/usage/glossary.md#ingestion-error-bucket), without the `s3://` prefix. Clear the field to remove it. |

| Button | Action |
| - | - |
| **Cancel** | It shows after **Edit**. It closes the form without saving. |
| **Save Config** | Saves the bucket connection. Zenskar does not test the bucket. |

| Property | Constraint |
| - | - |
| Bucket name | A bucket name has 3 to 63 characters. |
| | A bucket name contains only lowercase letters, digits, dots, and hyphens. |
| | A bucket name starts and ends with a letter or a digit. |
| | A bucket name cannot have the form of an IP address. |
| Changed bucket | A [usage-event collection](https://zenskar.com/docs/20260301/zenskar-modules/usage/glossary.md#usage-event-collection) keeps the buckets that were connected when its [S3 ingestion](https://zenskar.com/docs/20260301/zenskar-modules/usage/glossary.md#s3-ingestion) was last saved. |

### Your S3 bucket

This area shows when your organization has a bucket connection.

| Element | Description |
| - | - |
| **Bucket Name** | The bucket of the bucket connection. |
| **Ingestion Error Bucket** | The ingestion-error bucket. It shows only when one is set. |

### Disconnect S3 Bucket dialog

| Button | Action |
| - | - |
| **Disconnect** | Removes the bucket connection. Zenskar turns off S3 ingestion on every usage-event collection, and clears the folder and the [error folder](https://zenskar.com/docs/20260301/zenskar-modules/usage/glossary.md#error-folder) of each usage-event collection. |

## Permissions

| Action | Required permission |
| - | - |
| View the **S3 Ingestion** tab and copy the ARNs | **Can Read Organisation Config**, in the **ORGANISATION\_CONFIG** group |
| Connect, change, or disconnect the bucket | **Can Read Organisation Config** and **Can Update Organisation Config** |
| Set up S3 ingestion for a usage-event collection, or move it to a new bucket | **Can Read Usage Event** and **Can Update Usage Event**. See [Permissions](https://zenskar.com/docs/20260301/zenskar-modules/usage/reference/usage-events.md#permissions). |

The default **Owner** role has every permission. The default **User** role has read permissions only.

## API reference

The public API has no operation for the bucket connection. [Usage events](https://zenskar.com/docs/20260301/zenskar-modules/usage/glossary.md#usage-event) from S3 arrive through files only.

## Troubleshooting

| Problem | Cause | Solution |
| - | - | - |
| **Save Config** does not save. | A bucket name breaks the naming rules. | Enter a name of 3 to 63 lowercase letters, digits, dots, or hyphens that starts and ends with a letter or a digit. |
| A test file adds no usage events. | Zenskar rejected the file. | Open the [error file](https://zenskar.com/docs/20260301/zenskar-modules/usage/glossary.md#error-file) whose name starts with the name of the test file, in the error folder of the usage-event collection or, without an error folder, in the folder `errors`, and correct the file before you upload it again. |
| A file adds no usage events and has no error file. | The event notification is missing, passes through Amazon SNS or Amazon EventBridge, or has a prefix that does not cover the folder. | Create the event notification directly to the Zenskar SQS queue, as in [Prepare the bucket in AWS](https://zenskar.com/docs/20260301/zenskar-modules/usage/how-to-guides/s3-ingestion.md#prepare-the-bucket-in-aws). |
| A file adds no usage events and has no error file. | The file is in a subfolder, or at the top level of the bucket. | Upload the file directly into the folder of the usage-event collection. |
| A file adds no usage events and has no error file. | The name of the file does not end in `.csv`. | Rename the file so that its name ends in `.csv`. |
| A file adds no usage events and has no error file. | The file has the same content as a file that Zenskar already stored. | Change one value in the file, and upload it again. |
| A file adds no usage events and has no error file. | The usage-event collection has S3 ingestion turned off. | Turn on S3 ingestion for the usage-event collection, as in [Set up S3 ingestion for a usage-event collection](https://zenskar.com/docs/20260301/zenskar-modules/usage/how-to-guides/usage-events.md#set-up-s3-ingestion-for-a-usage-event-collection). |
| An error file reports that Zenskar cannot read the file. | The bucket policy does not grant the processor role read access. | Add the bucket policy for the processor role, as in [Prepare the bucket in AWS](https://zenskar.com/docs/20260301/zenskar-modules/usage/how-to-guides/s3-ingestion.md#prepare-the-bucket-in-aws). |
| An error file lists rejected rows. The file adds no usage events. | At least one row failed validation. Zenskar then rejected the whole file. | Correct the rejected rows, and upload the file again. |
| An error file reports a problem with the header. | The header row does not name every field of the [data schema](https://zenskar.com/docs/20260301/zenskar-modules/usage/glossary.md#data-schema), or names a column that the data schema does not have. | Name every field of the data schema in the header row, and no other column. |
| An error file reports that the file is empty or too large. | The file has no rows, or it is larger than 200 MB. | Split a large file into smaller files, or add rows to an empty file. |
| Rejected files leave no record. | Your organization has no ingestion-error bucket, or its bucket policy does not grant write access. | Add an ingestion-error bucket with its bucket policy, as in [Prepare an ingestion-error bucket](https://zenskar.com/docs/20260301/zenskar-modules/usage/how-to-guides/s3-ingestion.md#prepare-an-ingestion-error-bucket). |
| After a change of bucket, files in the new bucket are not read. | Each usage-event collection keeps the bucket that was connected when its S3 ingestion was last saved. | Save the S3 ingestion of each usage-event collection again, as in [Change the bucket connection](https://zenskar.com/docs/20260301/zenskar-modules/usage/how-to-guides/s3-ingestion.md#change-the-bucket-connection). |
| After a disconnect and a new connection, S3 ingestion reads no folder. | Disconnecting turned off S3 ingestion on every usage-event collection, and cleared the folders of every usage-event collection. | Turn on S3 ingestion and enter the folders again for each usage-event collection, as in [Set up S3 ingestion for a usage-event collection](https://zenskar.com/docs/20260301/zenskar-modules/usage/how-to-guides/usage-events.md#set-up-s3-ingestion-for-a-usage-event-collection). |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.