S3 Setup Guide
Prerequisites
- Access to the S3 bucket containing the files.
- AWS permissions to give Matia read access to the bucket (private buckets only).
Setup Guide
- Select Authentication Method.
- Enter bucket Region.
- For the Access Key and Secret method, also fill in your Access Key ID and Secret Access Key.
- Specify Bucket name.
- (Optional) Folder Path - We examine files under the specified folder and all of its nested subfolders for files we can sync. If you don't provide a prefix, we'll look through the entire container for files to sync.
- (Optional) File Pattern - Leave this blank to sync every file under the folder path (prefix), including subfolders. To sync only some of them, enter a regular expression; we sync the files whose path under the prefix matches it.
For example:
If you want all csv files you can enter
\.csv$ - Enter a Name for the connector.
- (Optional) Enter a Description for the connector.
- Select the Owner of the connector.
- (Optional) Verify that your S3 bucket is successfully connected by clicking on Test Connection.
- Click Connect.
Authentication by IAM Role (Recommended)
IAM policy creation
-
Go to the AWS Management Console.
-
Open the IAM console.
-
In the navigation pane, choose Policies.
-
Choose Create policy.
-
Choose the JSON tab.
-
Enter the following policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:GetBucketLocation",
"s3:GetObject",
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::{your-bucket-name}/*",
"arn:aws:s3:::{your-bucket-name}"
]
}
]
} -
Choose Review policy.
-
Give the policy a descriptive name, for example
Matia-S3-Policy. -
(Optional) Enter a Description for the policy.
-
Choose Create policy.
Create IAM Role
- Go to the AWS Management Console.
- Open the IAM console.
- In the navigation pane, choose Roles.
- Choose Create role.
- Choose Another AWS account.
- Enter the following account ID:
035563399062. - Select the Require external ID check box.
- Enter the External ID provided by the connector.
- Click Next: Permissions.
- In the Filter policies search box, type the name of the policy you created in the previous step and select it. For example,
Matia-S3-Policy. - Click Next: Tags.
- Click Next: Review.
- Enter a Name for the role. For example,
Matia-S3-Role. - (Optional) Enter a Description for the role.
- Click Create role.
Supported File Format
- CSV
- JSON
- JSONL
- NDJSON
- Excel (XLSX / XLSM)
- TSV / TAB
- PARQUET
Supported Streams
There is no predefined streams. The streams are based on content of your bucket.