Step 1: configure AWS authentication
Choose the authentication method that fits your security policy.- IAM role (recommended)
- AWS access keys
Create an IAM policy
In the AWS IAM console, navigate to the Policies tab and click Create policy. Click the JSON tab and paste the following policy, replacing Name the policy, add a description, and click Create policy.
BUCKET_NAME with the name of the bucket you want to read from.IAM policy
If your S3 bucket uses KMS encryption (CMK), add the following statement to the
Statement array to allow decryption with your KMS key. Replace REGION_NAME, ACCOUNT_ID, and KEY_ID with your values.KMS decrypt statement
Create an IAM role
In the AWS IAM console, navigate to the Roles tab and click Create role. Select Custom trust policy and paste the trust policy below to allow our identity to assume the role. Reach out to your account representative for the value of Click Next, attach the permissions policy you created in the previous step, enter a Role name, for example,
<some_service_account_identifier>.Trust policy
source-s3, and click Create role.If your bucket policy restricts access by IP, allow the static IP so we can reach the bucket. Reach out to your account representative for the static IP address to use.
Step 2: submit your connection details
Provide the following details to complete the source setup:- The name is a descriptive name of the source.
- The bucket name of the bucket you want to read from.
- The AWS region the bucket is hosted in.
- The authentication credentials from Step 1:
- If using an IAM role: the role ARN.
- If using AWS access keys: the access key ID and the secret access key.