Skip to main content
Back to list of knowledge sources Use the Amazon S3 connector to index files from one or more S3 buckets into a knowledge base. Agents then retrieve that content to ground their answers. The connector signs every request with AWS Signature Version 4 (SigV4) through an AWS IAM auth profile, so the connector stores no credentials of its own.

How the connector works

  1. The connector authenticates with the AWS IAM auth profile and lists objects under each configured location.
  2. It keeps objects that match your filters, then extracts, chunks, and embeds their content.
  3. On each delta sync, it compares change-detection signals and processes only new and changed objects.
  4. If you turn on Resource ACL, it reads each object’s ACL and applies the mapped grants to search results.

Before you begin

1

In AWS

  • One or more S3 buckets that hold the content to index, and the Region of each bucket.
  • Permission to create an IAM role (recommended) or an IAM user with access keys.
  • If the buckets use SSE-KMS encryption, permission to grant kms:Decrypt on the key.
2

In the Agent Platform

  • A knowledge base in your project.
  • Permission to create auth profiles and knowledge base sources.

Step 1: Prepare AWS access

Choose a credential mode first. The platform recommends Assume role because the platform stores no long-lived keys.
The connector only reads from S3. Grant the smallest scope that covers your buckets and prefixes.

Step 2: Create the auth profile

You can create the profile from the connector, so you don’t need to leave the setup flow.
1

Open the Amazon S3 connector

  1. Go to Knowledge Bases, and then open your knowledge base.
  2. On Overview, under Connect a data source, select Amazon S3, and then select Connect.
  3. On the Connect step, select New auth profile. The new auth profile panel opens.
2

Enter the profile details

3

Configure the credentials

In Configuration > Credentials, select the mode you prepared in Step 1.
4

Save the profile

Select Create Profile. The connector returns to the Connect step.

Step 3: Configure the connector

1

Connect

2

Locations

Each location is one bucket and its prefixes. Select Add location to index more than one bucket.
3

Filters and schedule

4

Permissions

Optional. Turn on Resource ACL to apply S3 object ACLs to search results, and then add grant mappings. See Permissions.

Step 4: Validate and activate

1

Generate a proposal

Select Generate proposal. The server validates the configuration, compiles the connector package, and shows a redacted Proposal preview.
2

Run a dry run

Select Run dry run. The connector reads a sample of files, up to Dry-run sample size, without indexing them. Fix any access or filter errors before you continue.
3

Review the field mapping

On Field Mapping, confirm how S3 object attributes map to knowledge base fields.
4

Activate

Select Activate. The first sync starts and indexes all matching files.
Start with one prefix and a small Max files per run value. Confirm the results in Search & Test, and then widen the scope.

Sync behavior

  • A manual sync runs immediately, whatever the schedule.
  • Each run processes up to Max files per run files.
  • Changes to locations, filters, or the auth profile apply on the next sync.

Permissions

By default, every user who can search the knowledge base can retrieve indexed S3 content. To restrict results by object, turn on Resource ACL. The connector then reads each object’s ACL and applies a grant only after you map its grantee to a platform principal. Unmapped readable grants stay restricted.
S3 buckets created since April 2023 use the Bucket owner enforced setting, which disables ACLs. If your bucket controls access through bucket policies or IAM only, Resource ACL has no grants to read.
Select Add S3 grant mapping for each grantee.

Limits and considerations

  • The connector indexes only files whose extensions match Allowed extensions.
  • The connector reads S3 object ACLs only. It doesn’t evaluate bucket policies, IAM policies, or S3 Access Points.
  • Each location uses one Region. Add a location for each bucket in a different Region.

Troubleshoot common issues