Connecting S3
This assumes you have already created an S3 bucket and have a pipeline setup to move Parquet, JSON, or CSV files into it.
You will need to provide both an AWS Access Key ID and AWS Secret Access Key for authentication. The IAM user associated with the credentials must be granted read and list permissions for the bucket and its objects.
Create a Policy
- Log in to your Amazon AWS account and open the IAM console.
- In the IAM dashboard, select Policies, then click Create Policy.
- Select the JSON tab, then paste the following JSON into the Policy editor (be sure to substitute in your bucket name):
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::{your-bucket-name}/*",
"arn:aws:s3:::{your-bucket-name}"
]
}
]
}
- Give your policy a descriptive name, then click Create policy.
- In the IAM dashboard, click Users. Select an existing IAM user or create a new one by clicking Add users.
- If you are using an existing IAM user, click the Add permissions dropdown menu and select Add permissions. If you are creating a new user, you will be taken to the Permissions screen after selecting a name.
- Select Attach policies directly, then find and check the box for your new policy. Click Next, then Add permissions.
- After successfully creating your user, select the Security credentials tab and click Create access key. You will be prompted to select a use case and add optional tags to your access key. Click Create access key to generate the keys.
Make note of the following information:
Bucket name
Access Key ID
AWS Secret Access Key
File extension
Follow instructions to share your data source configuration with Motif.