Prerequisites
- By default, S3 authentication uses role-based access. You will need the trust policy prepopulated with our identifier to grant access. It should look similar to the following JSON object with a proper service account identifier:
Trust policy
1
Set up destination S3 bucket
Create bucket
- Navigate to the S3 service page.
- Click Create bucket.
- Enter a Bucket name and modify any of the default settings as desired. Note: Object Ownership can be set to “ACLs disabled” and Block Public Access settings for this bucket can be set to “Block all public access” as recommended by AWS. Make note of the Bucket name and AWS Region.
- Click Create bucket.
Recommendation: dedicated bucket for data transfersUse a unique bucket for these transfers. This:
- Prevents resource contention with other workloads
- Avoids accidental data loss from mixed lifecycle or cleanup rules
- Improves security by reducing surface area and enabling tighter, destination-scoped policies
2
Create policy and IAM role
Create policy
- Navigate to the IAM service page.
- Navigate to the Policies navigation tab, and click Create policy.
- Click the JSON tab, and paste the following policy, being sure to replace
BUCKET_NAMEwith the name of the bucket chosen in Step 1.
IAM policy
Connection Test File Cleanup (Optional)By default, a connection test is performed against the destination during initial configuration. This test writes temporary artifacts under the prefix
_test_connection/ (located at either the bucket root, or inside the custom folder prefix configured on the destination, if present).If you do not grant delete permissions (s3:DeleteObject), the connection test will still succeed, but these test files will remain in your bucket. To automatically clean them up and avoid clutter or minor storage charges, you can optionally configure an S3 Lifecycle Policy on your bucket to expire objects matching the _test_connection/ prefix (or <your_folder>/_test_connection/ if a custom folder was configured) after 1 day, or delete them manually.KMS encryption (optional)S3 destinations support buckets with KMS encryption (CMK). Encryption with SSE-C is not currently supported. For KMS encryption, add the following statement to the Replace
Statement array of your IAM policy to allow data encryption/decryption with your KMS key:KMS policy statement
REGION_NAME, ACCOUNT_ID, and KEY_ID with your values.- Click Next: Tags, click Next: Review.
- Name the policy, add a description, and click Create policy.
- IAM role (recommended)
- AWS user with HMAC access key
Create role
- Navigate to the IAM service page.
- Navigate to the Roles navigation tab, and click Create role.
- Select Custom trust policy and paste the provided trust policy to allow AssumeRole access to the new role. Click Next.
- Add the permissions policy created above, and click Next.
- Enter a Role name, for example,
transfer-role, and click Create role. - Once successfully created, search for the created role in the Roles list, click the role name, and make a note of the ARN value.
3
Add your destination
Use the following details to complete the connection setup: bucket name, bucket region, and role ARN.
Permissions checklist
- IAM policy on the role allows:
s3:PutObjectonarn:aws:s3:::BUCKET_NAME/*- (Optional)
s3:DeleteObjectonarn:aws:s3:::BUCKET_NAME/*(if you wish to let connection tests automatically clean up test files instead of using a lifecycle policy)
- If using KMS encryption (CMK), IAM policy also allows:
kms:GenerateDataKeyandkms:Decrypton your CMK ARN
- Bucket exists in the intended region; folder prefix (if any) is configured as desired
- Trust policy allows the data transfer service to assume the role
FAQ
How is the S3 connection secured?
How is the S3 connection secured?
The recommended approach is role-based access using an IAM Role with a scoped permissions policy. The role is assumed via a trust policy and short-lived credentials, so no long-lived access keys are required. Optionally, access can be configured with HMAC access keys if your policies require it. For at-rest encryption, S3-managed encryption or KMS CMKs are supported (see the KMS callout above for required actions). Grant only the minimum permissions needed (PutObject, and DeleteObject for initial connection test).
What are the `oaud` vs `sub` IDs used for?
What are the `oaud` vs `sub` IDs used for?
These are identity claims used in the IAM trust policy when federating from GCP to AWS.
sub uniquely identifies our Google principal in federation. oaud is an additional claim used to bind role assumption to your organization.How is data organized in the bucket?
How is data organized in the bucket?
Data lands in Hive-style partitions per model:
<folder>/<model_name>/dt=<transfer_date>/<file_part>_<transfer_timestamp>.<ext>. You can set <folder> during configuration.What file formats are supported?
What file formats are supported?
Parquet (default/recommended), CSV, and JSON/JSONL.How are large datasets written?
How are large datasets written?
Files are automatically split; multiple files may be written per model per transfer.
How do I know when a transfer completed?
How do I know when a transfer completed?
Each transfer writes a manifest file per model under
_manifests. The _manifests folder is created automatically at the root of the bucket. Files are written per model per transfer in the following format: _manifests/<model_name>/dt=<transfer_date>/manifest_{transfer_id}.json.Why do I sometimes see duplicates?
Why do I sometimes see duplicates?
Object storage is append-only. The change detection process uses a lookback window to ensure no data is missed, which can create duplicates. Downstream pipelines should deduplicate on primary keys prioritizing the most recent transfer window; manifest files can help bound the set of files to read.