-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
nodejs with Seaweed S3
Ignatiev Mikhail edited this page Sep 7, 2022
·
1 revision
- Use
[email protected]+
- Code with
javascript
ortypescript
- Seaweedfs with
-s3
running at:8333
Install AWS S3 client
npm i @aws-sdk/client-s3
import { S3Client } from "@aws-sdk/client-s3"
const s3client = new S3Client({
// specify endpoint with http://hostname:port
endpoint: `http://127.0.0.1:8333`,
// specify region since it is mandatory, but it will be ignored by seaweedfs
region: `us-east-1`,
// force path style for compatibility reasons
forcePathStyle: true,
// credentials is mandatory and s3 authorization should be enabled with `s3.configure`
credentials: {
accessKeyId: `same as -accesskey`,
secretAccessKey: `same as -secretkey`,
}
})
// List buckets example
import { ListBucketsCommand } from "@aws-sdk/client-s3"
const response = await s3client.send(new ListBucketsCommand({}))
console.log(response.Buckets)
More commands: API Reference
- Replication
- Store file with a Time To Live
- Failover Master Server
- Erasure coding for warm storage
- Server Startup Setup
- Environment Variables
- Filer Setup
- Directories and Files
- Data Structure for Large Files
- Filer Data Encryption
- Filer Commands and Operations
- Filer JWT Use
- Filer Cassandra Setup
- Filer Redis Setup
- Super Large Directories
- Path-Specific Filer Store
- Choosing a Filer Store
- Customize Filer Store
- Migrate to Filer Store
- Add New Filer Store
- Filer Store Replication
- Filer Active Active cross cluster continuous synchronization
- Filer as a Key-Large-Value Store
- Path Specific Configuration
- Filer Change Data Capture
- Cloud Drive Benefits
- Cloud Drive Architecture
- Configure Remote Storage
- Mount Remote Storage
- Cache Remote Storage
- Cloud Drive Quick Setup
- Gateway to Remote Object Storage
- Amazon S3 API
- AWS CLI with SeaweedFS
- s3cmd with SeaweedFS
- rclone with SeaweedFS
- restic with SeaweedFS
- nodejs with Seaweed S3
- S3 API Benchmark
- S3 API FAQ
- S3 Bucket Quota
- S3 API Audit log
- S3 Nginx Proxy
- Docker Compose for S3
- Hadoop Compatible File System
- run Spark on SeaweedFS
- run HBase on SeaweedFS
- run Presto on SeaweedFS
- Hadoop Benchmark
- HDFS via S3 connector
- Async Replication to another Filer [Deprecated]
- Async Backup
- Async Filer Metadata Backup
- Async Replication to Cloud [Deprecated]
- Kubernetes Backups and Recovery with K8up