Documentation
GuidesConnections

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:Decrypt for reads and kms:GenerateDataKey for 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:

  1. On the Connections page, click Add connection, and then select Amazon S3.
  2. Enter a Display name.
  3. Enter the Bucket name and the AWS region.
  4. In Authentication method, select a method, and then enter its fields.
  5. In Access, select an access mode.
  6. Optional: Enter a folder prefix in Object prefix (optional).
  7. Click Save connection. The dialog shows the generated setup commands.
  8. Review the setup commands, and ask an AWS IAM administrator to apply them.
  9. 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 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 an AccessDenied event.
  • 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:Decrypt permission 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

On this page