This project demonstrates connecting to LanceDB using AWS S3 as the object store backend.
- Node.js (version 22 LTS preferred)
- AWS credentials configured
- Access to an S3 bucket
-
Ensure Node.js is installed:
Check if Node.js is installed:
node --version
If not installed, download and install from nodejs.org
-
Install dependencies:
npm install
-
Update S3 bucket path:
Edit
aws.js
and replace<BUCKET_NAME>
with your actual S3 bucket name:const S3_PATH = "s3://your-bucket-name/test/coderabbit/data"
Your AWS credentials need the following S3 permissions for the specified bucket:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObject",
"s3:DeleteObject"
],
"Resource": "arn:aws:s3:::<bucket>/<prefix>/*"
},
{
"Effect": "Allow",
"Action": [
"s3:ListBucket",
"s3:GetBucketLocation"
],
"Resource": "arn:aws:s3:::<bucket>",
"Condition": {
"StringLike": {
"s3:prefix": [
"<prefix>/*"
]
}
}
}
]
}
node aws.js