Connect to Amazon S3
Create an Amazon S3 connection with workload identity, an assumed role, or access keys, and apply its generated IAM setup.
This page explains how to connect an Amazon S3 bucket to Bobsled AI. Depending on its access mode, the connection can supply input files, receive output files, or both. For the steps that every provider shares, see Create and manage connections.
An Amazon S3 connection supports the following values for Authentication method:
- Workload identity (OIDC): Enter the Storage role ARN. The role trusts the verified identity of your Bobsled AI environment.
- Assume role with External ID: Enter the customer role ARN. Bobsled AI manages the permissions of its own service role.
- Access keys: Select the Project secrets that hold the access key ID and the secret access key.
Role authentication supports browsing, document reads, PDF context imports, and extract pipeline sources and destinations. Bobsled AI renews temporary role credentials while an authorized task runs.
Before you begin
- Get the role that creates connections.
- Choose an access mode and an optional object prefix. For more information, see Storage access and testing.
- For Access keys, create Project secrets for the access key ID and the secret access key.
- For Workload identity (OIDC) or Assume role with External ID, create the AWS IAM role that the connection uses.
- Find an AWS IAM administrator who can apply the generated setup commands.
Required permissions
The generated policy follows the saved access mode and object prefix:
- Read access: Bucket listing and object reads.
- Write access: Object creation, with deletion limited to disposable Bobsled AI test objects.
- Write-only access: When the bucket has no versioning, test cleanup also needs read permission within the test folder.
- KMS-encrypted objects:
kms:Decryptfor reads andkms:GenerateDataKeyfor writes, with permission in the key policy.
Existing policies can grant broader access. Review them separately when you narrow the connection's scope.
The role trust depends on the authentication method:
- Workload identity (OIDC): Create the OIDC provider one time, and apply the exact audience and subject conditions from setup.
- Assume role with External ID: Setup displays a read-only External ID. Each new connection gets its own External ID, so the same customer role trust works in every Project that uses the connection. Older connections keep their existing External ID.
- Existing connections: Use the trust policy that Setup IAM shows.
Create an Amazon S3 connection
To create an Amazon S3 connection, do the following:
- On the Connections page, click Add connection, and then select Amazon S3.
- Enter a Display name.
- Enter the Bucket name and the AWS region.
- In Authentication method, select a method, and then enter its fields.
- In Access, select an access mode.
- Optional: Enter a folder prefix in Object prefix (optional).
- Click Save connection. The dialog shows the generated setup commands.
- Review the setup commands, and ask an AWS IAM administrator to apply them.
- Click Test connection.
To see the setup commands for an existing connection, in the connection's row, open More actions, and then select Setup IAM. This action isn't available for Access keys connections. For the checks that each access mode runs, see Test storage access.
Partner landings and share links
Partner landings use direct workload identity. Your AWS administrator authorizes your exact Bobsled AI environment in your AWS account. Partner links inherit authentication from the locked landing and keep their own folder session policies.
A share link works the same way. It writes only to the Partner's out/ folder. A pipeline sends data to it with a destination, like any other storage destination. For the Partner setup, see Exchange data with Partners.
Partner sources with a role
A Partner can read its own bucket through Assume role with External ID. The source is read-only and can't link to a landing. Access keys also work. A role source follows these rules:
- External ID: Bobsled AI creates the External ID when you save the connection, and the ID never changes. Save the connection first, and then generate setup, so that every retry shows the same ID.
- Trust check: Until the connection passes a test, Bobsled AI first tries the role with a wrong External ID. If AWS accepts it, Bobsled AI refuses the connection with
external_id_not_enforced. CloudTrail records each refused try as anAccessDeniedevent. - Session limits: Each session can only list and read objects in the connection's folder, and decrypt them through S3. This limit applies even if the role allows more.
- Session name: Each session is named
dogsled-and the External ID token, so CloudTrail shows which connection signed in. - KMS: If the bucket uses a customer managed KMS key, the setup script prints the key policy statement that lets the role decrypt objects. The test reads the first byte of one object, so a missing
kms:Decryptpermission fails the test. - Folder prefix: Bobsled AI refuses to save a folder prefix that makes the session policy longer than 2,048 characters (
folder_invalid).
Setup also returns the trust policy and the permissions policy as JSON for an AWS administrator who uses the console instead of the script.
What's next
- To browse the bucket and read files with Balto, see Browse storage files.
- To read from or write to the bucket in a pipeline, see Storage sources and destinations.
- To run SQL over files in the bucket, see Query files with SQL.
Connect to Google Cloud Storage
Create a Google Cloud Storage connection that uses Bobsled AI workload identity, choose its access mode, and grant it bucket access.
Connect to an SFTP server
Connect an SFTP server, confirm its identity, read its files with Balto, and load them into your warehouse with an extract pipeline.