> For the complete documentation index, see [llms.txt](https://flow-docs.cloudio.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://flow-docs.cloudio.io/how-to/csv-file-from-amazon-s3.md).

# CSV File from Amazon S3

How to pull data from CSV files on Amazon S3

## Create a flow with Amazon S3 as the Input

![](https://272493989-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LyGZIunpED9t56ZtLzh%2F-LyhjtYrI-VvHxJGwtbj%2F-LyhjwX7XfRfrLTFzG6x%2FScreen%20Shot%202020-01-16%20at%201.43.31%20AM.png?alt=media\&token=2e3d1b6c-7122-4846-abe5-5f80fa75b6f4)

## Input Settings Tab

![](https://272493989-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LyGZIunpED9t56ZtLzh%2F-LyhjtYrI-VvHxJGwtbj%2F-LyhjzudkkltoRdCQFt8%2FScreen%20Shot%202020-01-16%20at%201.44.30%20AM.png?alt=media\&token=85765473-f6fc-4822-9597-24f266464ba2)

1. Specify the root folder path under the given bucket. Make sure, this path is static and is dedicated for the files that needs to be imported using this flow. Do not mix files from different flows under the same root folder path. Root path will be used as a prefix while polling for new files on the S3 bucket.
2. Specify the file name pattern using Java regular expression pattern. If these CSV files are generated by another flow or any other Kafka Sink Connector you may want to use #{partition} to be replaced with the partition number of the run process.
3. Provide the file extension that will be used as a suffix while polling for files from S3 bucket.
4. Specify the number of partitions. Specify a value of 1 when no partitions are used. If a value greater than 1 is entered, then the files will be polled in multiple requests with #{partition} value set to 1, 2, 3... until the number of partitions specified. Use this only when the CSV files are written with different partition numbers in the file name.

## Schema Setup

Refer to [OTBI Input's Schema Setup](/how-to/otbi-input.md#schema-setup) for more details on how to setup the schema for the CSV files.

{% hint style="success" %}
Complete the remaining setups and click Submit to start pulling data from the CSV files on S3 Bucket.
{% endhint %}
