Skip to content

coderabbitai/lancedb-test-connection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LanceDB AWS S3 Connection Test

This project demonstrates connecting to LanceDB using AWS S3 as the object store backend.

Prerequisites

  • Node.js (version 22 LTS preferred)
  • AWS credentials configured
  • Access to an S3 bucket

Setup

  1. Ensure Node.js is installed:

    Check if Node.js is installed:

    node --version

    If not installed, download and install from nodejs.org

  2. Install dependencies:

    npm install
  3. 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"

Required AWS Permissions

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>/*"
                    ]
                }
            }
        }
    ]
}

Running the Script

node aws.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published