In order to access the files in S3, you need to set up AWS credentials.
Use the AWS Access Key ID and the Secret Access Key with read permissions to the desired S3 bucket(s) and file(s).
Make sure this AWS Access Key ID has the correct permissions:
s3:GetObject for the given key/wildcard
s3:ListBucket to access all wildcard files
s3:GetBucketLocation to determine the region of the S3 bucket(s)
You can add the following policy document as an inline policy to an AWS user:
To create a new table, click the New Table button and assign a name.
It will be used to create the destination table name in Storage and can be modified.
Configured tables are stored as configuration rows.
Each table has different settings (key, load type, etc.) but they all share the same AWS credentials.
For each table you have to specify an AWS S3 Bucket and a Search Key.
The Search Key can be a path to a single file or a prefix to multiple files
(omit the wildcard character and use the Wildcard checkbox instead).
The additional source settings section allows you to set up the following:
New Files Only: The extractor will keep track of the downloaded files and will continue with the unprocessed files
on the next run. To reset the state which keeps track of the progress and enables to continue with new files,
use the Reset State button or uncheck the New Files Only option and run the extractor again.
Wildcard: Search Key is used as a prefix, and all available files matching the prefix will be downloaded.
Subfolders: Available only with Wildcard turned on. The extractor will also process all subfolders.
Delimiter and Enclosure specify the CSV format settings.
Header specifies how the destination table column names are obtained:
CSV file(s) contain(s) a header row: All downloaded files contain a row with the CSV header. The extractor obtains
the header from a randomly selected downloaded file.
Set column names manually: None of the downloaded files does contain a header row and you will use the Column Names
input to specify the headers manually.
Generate column names as col_1, col_2, etc.: None of the downloaded files contains a header row, and
the extractor will generate the column names automatically as a sequential number with the col_ prefix.
The initial value in Storage Table Name is derived from the configuration table name. You can change it at any time; however,
the Storage bucket where the table will be saved cannot be changed.
Primary Key can be used to specify the primary key in Storage; it can be used with Incremental Load
and New Files Only to create a configuration that incrementally loads all new files into a table in Storage.
Decompress: All downloaded files will be decompressed (currently supporting ZIP and GZIP). All files in all archives
will be imported into a single Storage table.
Add Filename Column: A new column s3_filename is added to the table and will contain the original filename
including the relative path to the Search Key.
Add Row Number Column: A new column s3_row_filename is added to the table and will contain the row number in each
of the downloaded files.