Skip to main content
The Amazon S3 source reads files from an S3 bucket and feeds them into your pipeline. It supports CSV, TSV, JSON, Excel, Parquet, Raw, and compressed formats. Once your connection is set up, see File Storage Options for the full set of read options (file formats, schema, and more) shared across every file storage provider.

Connection Setup

Create an IAM User

1
Log into the AWS Management Console and open IAM (Identity and Access Management).
2
In the left navigation, click Users, then click Add User.
IAM Users page with Add User button
3
Enter a user name (for example, integrate-io-etl) and select Programmatic access. Click Next: Permissions.
IAM Add User form with programmatic access selected
4
Click Create User. On the confirmation page, click Download .csv and save the credentials file. You will need the Access Key ID and Secret Access Key when creating the connection in Integrate.io.
Download CSV button to save security credentials
If any credential key contains a slash, or you cannot locate the downloaded credentials file, return to the IAM user, click Make inactive under Security credentials, then click Create access key to generate new credentials.
Never use an underscore in an S3 bucket name, and never end a bucket name with a dash. Both will prevent Integrate.io from accessing the bucket correctly.

Attach an S3 Policy to the IAM User

1
In the IAM user list, click the user you created. Scroll down to Add permissions.
2
For read-only access, attach the AmazonS3ReadOnlyAccess managed policy.
Attaching AmazonS3ReadOnlyAccess policy to the IAM user
3
For read-write access (required for destination pipelines), click Create policy, choose JSON, and paste the following policy, replacing bucket-name with your bucket name:
All three object actions are required for destination pipelines. Integrate.io writes each output file to a temporary object and then finalizes it, which on S3 is a copy-and-delete operation. Granting only s3:PutObject causes writes to fail during finalization.
Click Review policy, then Create policy.

Create the Connection in Integrate.io ETL

1
Click the Connections icon (lightning bolt) in the top-left menu.
2
Click New connection.
New connection button in the Connections menu
3
Select Amazon S3.
Selecting Amazon S3 from the connection type list
4
Name the connection and enter the Access Key ID and Secret Access Key from the credentials file.
Amazon S3 connection form with access key and secret fields
5
If your S3 buckets are in a region that requires AWS Signature Version 4, enter the region. See the AWS region list for applicable regions.
6
Click Test connection to verify the credentials, then click Create amazon s3 connection.
Amazon S3 connection created and listed in connections

Source Configuration

Connection

Select your Amazon S3 connection from the dropdown, or create a new one using the steps above.

Bucket

Enter the name of the S3 bucket that contains your source files.

Source Path

The path to the input file, folder, or pattern within the bucket. You can use wildcard characters for pattern globbing. File and directory names beginning with an underscore (_) or a dot (.) are ignored.

Source File Format

Record type: the format of each record. Select the record type first:
Avro file format is not supported.
Record delimiter: what breaks the data into records. The editor asks for it only when the record type is JSON object or Raw. Delimited values, Excel, and Parquet files are always read one record per line.
  • New line (\n, \n\r, \r): each line in the file is one record.
  • End of file: each file is treated as a single record.
Source data can be compressed (zip, gzip, or bzip2) or uncompressed. Zip files can be password-protected; enter the password in the Zip Password field. Source data must be UTF-8 encoded. For other encodings, see processing a different encoding. Advanced settings: less common options sit in a collapsed Advanced settings section at the end of the source format step. These include the PGP key, the Excel workbook password, case-insensitive file matching, large Excel file streaming, and Excel column matching. The section header lists every option that is switched on, so you can see them without expanding it. Case insensitive file matching (zip files only): when the source path contains .zip, a Case insensitive file matching checkbox appears in Advanced settings. Enable it to match the zip file path without regard to letter case.
To read ASC X12 EDI files such as 834 benefit enrollment files, use the dedicated EDI (X12) source instead.

Delimited Values Parameters

Applies when record type is Delimited values.
1
Field delimiter: select comma, tab, semicolon, pipe, space, or \u0001 from the dropdown, or select Custom and type a single character or escape sequence:
2
String qualifier: if fields are enclosed in quotes, select ' or ". Any quote qualifier keeps line breaks inside quoted fields at runtime, so a quoted value that spans several lines is read as one field instead of being split into separate records. Select None when the files have no quote character; newlines then always end a record.The " (newline inside) and ' (newline inside) options behave the same as plain " and ' at runtime. They are hidden from the dropdown unless the component already has one of them saved, so existing packages keep working.
If a file uses " or ' as the qualifier but contains stray, unmatched quote characters in unquoted fields, several physical lines can merge into one record. Clean the source data or select None as the qualifier.If the stray quotes are inside quoted values instead (a value that starts with the qualifier, such as "the right to park "six vehicles"), don't select None: every quoted value that contains the delimiter would then be split. Turn on Allow stray quotes in quoted fields instead.
3
Escape character: available when a string qualifier is set. Specifies the character used to escape qualifier characters within field data.
4
Allow stray quotes in quoted fields: available when a string qualifier is set. Off by default. Turn it on for files where a qualifier inside a quoted value is not doubled or escaped, for example a value written as "the right to park "six vehicles" instead of "the right to park ""six vehicles".Without this setting, such a quote ends the value early. The rest of the line is then read as part of the next field and, because quoted values can span lines, every row after it can be lost while the job still completes.With it on, a qualifier ends a quoted value only when the field delimiter or the end of the line follows it. Any other qualifier is kept as text, and a doubled qualifier ("") still means one qualifier. The exception is a doubled qualifier directly before the delimiter or the end of the line: it's read as a stray quote followed by the closing quote, so a value that ends in a quoted phrase, such as "park "six cars"", reads as park "six cars".
A stray quote directly before the delimiter or at the end of a line looks exactly like a closing quote, so it still ends the value. Leave the setting off for files with spaces between a closing quote and the delimiter, such as "abc" ;"def": with it on, that quote no longer ends the value. Files that double every quote don't need the setting: with it on, a doubled quote directly before the delimiter inside a value, such as "say ""hi"";bye", ends the value.
5
Header: select where the header row is. See Header options.

Header Options

Applies when record type is Delimited values or Excel. Select one Header option: Parquet files carry their own schema, so the Header option is not shown for them.

Excel Parameters

Applies when record type is Excel.

Password-Protected Workbooks

If a workbook is encrypted with a password (set via Protect Workbook in Excel), open Advanced settings, check This file is password protected, and enter the password in the File Password field. Integrate.io decrypts the workbook during schema preview and job runs. Passwords containing special characters such as $ are supported. The checkbox appears when the record type is Excel, whatever the file extension. It is not shown when the source path ends in .xls, because legacy .xls files are not supported for password decryption. Unchecking the box clears any saved password.
Password-protected workbooks do not use streaming mode. When a password is set, enabling Ingest large Excel file reads the workbook in standard mode.When streaming a single sheet, date cells come through as Excel serial numbers (e.g. 45306). Declare those columns as int or decimal in your schema, or transform them downstream.

JSON Parameters

Applies when record type is JSON object. Base record JSONPath Expression: defines the base record and extracts nested objects or arrays. Read more about processing JSON data.

Source Action

All four source actions are available for Amazon S3. When using Move processed files, the Append string to filename option is supported.
Determines what happens to source files during and after processing.

Incremental Load (Process Only New Files)

Move Processed Files

When the source path is a folder, Integrate.io removes the files and subfolders inside it after they are archived and keeps the folder itself. The next run reads new files from the same folder, and a run that finds the folder empty completes with 0 records. A file or wildcard source path has its matched files removed. A source path that is the connection root (/), consists only of a variable (such as $folder), or contains a .. segment is not emptied this way. Integrate.io removes the path itself, so the job fails if the server does not allow the folder to be deleted. If removing the processed files fails, the job fails with an error that contains the job output was written, but removing the processed source files from <path> failed. The output has already been written to the destination. Remove the listed files from the source by hand before the next run, or that run reads them again. When Append string to filename is checked, enter the string in the field that appears. Use it to tag archived files with the run they came from, or to stop repeat runs of the same source filename from overwriting each other in the archive folder. A checked box with an empty string does nothing. If the filename has an extension, the string is inserted before the last dot. Otherwise it is added to the end. For example, report.csv with _processed becomes report_processed.csv, and data.tar.gz with _v2 becomes data.tar_v2.gz. The string can be literal text, a job or package variable, or a combination:
  • Literal: _processed
  • Job variable: _$_JOB_ID
  • Combined: _processed_$_JOB_ID, _${PACK_VAR}_v2
The string can't contain /, a line break, a backtick, a double quote, or $(. Components with these characters can't be saved.
With this option on, each archived file is staged on the cluster before it is written to the archive folder, and renamed there. On Amazon S3, Google Cloud Storage, and Azure Blob Storage this doubles the archive transfer and adds one rename per file, which a source that archives hundreds of files per run may notice. If any file fails to rename, the job fails and the original source files are not deleted.

PGP Decryption

To decrypt source files encrypted with OpenPGP, open Advanced settings, set Decrypt file to PGP, and pick an active entry. The entry must hold a private key. Integrate.io decrypts each matching file before parsing it. Encryption and compression can be combined in either order: member.csv.gz.pgp is decrypted and then decompressed, and member.csv.pgp.gz is decompressed and then decrypted.
Paths that contain a space, semicolon, or parenthesis are not supported when a PGP key is set.
See PGP Keys for how to add and manage keys.

Source Schema

After defining the source location and format, select the fields to include. For each field, define:
  • Alias: how to refer to the field in downstream components. Illegal characters are flagged before you close the dialog.
  • Data type: the type to cast the field to.
  • Key (JSON only): the key name in the source JSON.
You can also add fields from the Meta Data section. They are not read from the file: Integrate.io fills them in for every row. A preview reads only the first file the path matches, so every preview row shows that file's path and time; a job run fills in each row's own file. Change a meta data field's alias to choose its column name. If the file already has a column named file_path or file_modified_at, that column is read like any other and the meta data field of the same name isn't offered. Use file_modified_at to tell apart deliveries of a file that keeps the same name, or to keep only the newest version of a resent file. It is the time the storage reports for the file, not the time the job ran (for that, use the $_JOB_SUBMISSION_TIMESTAMP variable):
  • Amazon S3, Google Cloud Storage, Azure Blob Storage: when the object was last written, usually the upload time.
  • SFTP, HDFS: the file's modification time, to the second.
  • FTPS: depends on the server. Many FTP servers report times only to the minute, and some in the server's local time zone.
  • A file inside a zip archive (a path such as archive.zip/data.csv): the archive's time.
Some transfer tools keep the original file's time when they copy it (for example rsync -t or scp -p). For files delivered that way, the value is when the file was created at the sender, not when it arrived.
file_modified_at is not available for Excel, Parquet, XML, EDI (X12) or whole-file raw sources, for a path ending in .zip, for Google Drive, or with the Process only new files (Incremental load) and Copy, merge and process all files source actions. In those cases the files are copied before they are read, and the copy does not keep the original time.

FAQ

What IAM permissions does Integrate.io need for a source-only connection? Attach AmazonS3ReadOnlyAccess to the IAM user, or create a custom policy granting s3:ListBucket on the bucket and s3:GetObject on its objects. What permissions are needed for a destination pipeline? The IAM user needs s3:ListBucket, s3:PutObject, s3:GetObject, and s3:DeleteObject. All three object actions are required because Integrate.io finalizes output files with a copy-and-delete operation. Why does Integrate.io require all three object actions for writes? Integrate.io writes each output file to a temporary object first, then finalizes it. On S3, finalization is a copy (GetObject) followed by deletion of the temporary object (DeleteObject). Without all three, the finalization step fails. Can I connect to a bucket in a region that requires Signature Version 4? Yes. Enter the bucket’s AWS region in the connection form. See the AWS region list for regions that require Sig v4.

Amazon S3 Destination

File Storage Options

Pattern Matching in Source Paths

Reading File Storage Data Incrementally

PGP Keys

Selecting File Input Format

Last modified on October 5, 2026