How the connector works
What happens at each stage
What happens at each stage
- The connector authenticates with the AWS IAM auth profile and lists objects under each configured location.
- It keeps objects that match your filters, then extracts, chunks, and embeds their content.
- On each delta sync, it compares change-detection signals and processes only new and changed objects.
- 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:Decrypton 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.- Assume role (recommended)
- Access keys
- In the AWS IAM console, create a role with a Custom trust policy.
- In the trust policy, allow the platform AWS identity to assume the role, and require the External ID that the platform generates for your workspace. You copy the External ID from the auth profile form in Step 2.
- Attach the read-only permissions policy to the role.
- Copy the Role ARN.
IAM permissions
IAM permissions
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
- Go to Knowledge Bases, and then open your knowledge base.
- On Overview, under Connect a data source, select Amazon S3, and then select Connect.
- 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.
- Assume role (recommended)
- Access keys
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.
Advanced: custom endpoints
Advanced: custom endpoints
3
Filters and schedule
Advanced: change detection and run limits
Advanced: change detection and run limits
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.
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.
Grant mapping fields
Grant mapping fields
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.