A step-by-step guide to integrating a S3 bucket into your knowledge base.
This guide will walk you through the process of granting our application secure, read-only access to your Amazon S3 bucket.
For security reasons, we recommend creating a dedicated user with limited permissions instead of using your root AWS account credentials.
1.1 Create a New IAM PolicyFirst, we'll create a custom policy that grants read-only access to only the specific bucket you want to connect.
YOUR_BUCKET_NAME
with the actual name of your bucket.{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:Get*",
"s3:List*",
"s3:Describe*",
"s3-object-lambda:Get*",
"s3-object-lambda:List*"
],
"Resource": "arn:aws:s3:::YOUR_BUCKET_NAME/*"
}
]
}
ReadOnlyAccessTo-MyKnowledgeBaseBucket
), and then Create policy.1.2 Create a New IAM User
knowledge-base-s3-reader
).1.3 Attach the Permissions Policy
AmazonS3ReadOnlyAccess
. This is a backup for general listing, but your custom policy will enforce the bucket-specific restriction.1.4 Generate Access Keys
Now, configure the connection within the knowledge base application.
3.1 Name Your Data SourceAssign a meaningful name to help you identify this connection later (e.g., "Marketing Docs S3 Bucket").
3.2 Provide AWS Credentials & Bucket Details
us-east-1
, ap-southeast-1
). Do not copy the full name.3.3 Finalize Connection
Click Connect or Save to establish the connection. The application will test the credentials and access to the bucket. If successful, it will begin indexing your files.