Before you connect
The following are required:- An Amazon S3 bucket containing the data files.
- The bucket’s AWS region, for example
us-east-1. - The directory path (prefix) within the bucket where the files reside.
- An AWS access key ID and secret access key with read access to that bucket and prefix.
Create an AWS access key and secret
1
Open the IAM console
Sign in to the AWS Management Console and open the IAM service. Use (or create) an IAM user that has read access to the target S3 bucket rather than root account credentials.
2
Scope a least-privilege read-only policy
Attach a policy that grants only what the connector needs: s3:ListBucket on the bucket and s3:GetObject on the objects under the target prefix. Scope both actions to the specific bucket ARN so the key cannot read other buckets.
3
Create the access key
On the IAM user’s page, open the Security credentials tab, go to Access keys, and click Create access key. Copy the Access key ID and the Secret access key. The secret access key is shown only once, so store it before leaving the page.
Connect Amazon S3
1
Open the data source
On the Data Sources page, search for Amazon S3 and select it.
2
Enter the AWS connection details
Provide the connection details for the AWS account, then click Submit:
- Name — a readable name for the connection.
- AWS Access Key — the access key ID created above.
- AWS Secret — the secret access key created above.
- AWS Region — the bucket’s region, for example
us-east-1. - S3 Bucket — the bucket that holds the files.
- Directory Path — the path (prefix) to the files under the bucket, for example
exports/daily. Do not end the prefix with a slash.
3
Configure the data source file settings
Set the file options for this data source, then click Submit:
- Name (required) — an identifiable name for the data source.
- File Type (required) — the format of the files to import.
- File Name to Filter (optional) — a word found within the file names, used to import only matching files. This value is case-sensitive.
- Header Row (optional) — the row number where the real data begins.
- Alternative Channel Name (optional) — an alternative display name for the data source.
4
Wait for the initial import
Initial data availability can take up to one business day. Files under the prefix are listed, downloaded, parsed, and cached for dashboard queries.
What gets imported
Amazon S3 imports CSV, XLSX, and Zipped CSV files found under the configured bucket prefix. Columns are inferred from the file contents: numeric columns become metrics and text columns become breakdowns. All matching files in the prefix are concatenated, so they must share the same column structure. Files may include a date column, but the connector does not impose a date axis. For the full field list, see the Amazon S3 data reference.Troubleshooting
'Access Denied' errors when listing or fetching files
'Access Denied' errors when listing or fetching files
The IAM policy is missing one of the required actions. Grant s3:ListBucket on the bucket ARN and s3:GetObject on the prefix ARN, then retry the connection.
Files are not discovered under the configured path
Files are not discovered under the configured path
The directory prefix returns no objects. Verify that the prefix does not end with a slash, that file extensions match the configured format, and that the bucket region matches the configured region.
Refresh fails with a column-count mismatch
Refresh fails with a column-count mismatch
A file in the prefix has a different schema than the rest. Remove or normalize the mismatched file, or split the differing layout into a separate data source.
Related
Amazon S3 data reference
Fields, refresh cadence, and limits for Amazon S3.
Amazon S3 FAQs
Common questions and expected behaviors for the Amazon S3 data source.
How to connect File from SFTP
Import the same file formats over an SFTP transport.
How to connect CSV files
Upload CSV files directly instead of pulling from a bucket.
