seaweedfs / seaweedfs

SeaweedFS is a fast distributed storage system for blobs, objects, files, and data lake, for billions of files! Blob store has O(1) disk seek, cloud tiering. Filer supports Cloud Drive, cross-DC active-active replication, Kubernetes, POSIX FUSE mount, S3 API, S3 Gateway, Hadoop, WebDAV, encryption, Erasure Coding.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

S3 API: `CreateBucket` looks to be supported although Wiki says it's not

ErwanDL opened this issue · comments

Hello and thank you for the work on this great project.

I suspect the Wiki about the Supported S3 APIs may be out of date? It does not mention CreateBucket as part of the supported "Bucket operations" although I was able, in a simple test against a freshly deployed 3.65 cluster, to create and use a bucket just fine:

$ s5cmd --endpoint-url http://localhost:8333 --no-sign-request mb s3://mybucket
mb s3://mybucket

$ s5cmd --endpoint-url http://localhost:8333 --no-sign-request ls
2024/04/19 14:20:50  s3://mybucket

$ s5cmd --endpoint-url http://localhost:8333 --no-sign-request cp test.txt s3://mybucket
cp test.txt s3://mybucket/test.txt

$ s5cmd --endpoint-url http://localhost:8333 --no-sign-request ls s3://mybucket
2024/04/19 14:22:51                21  test.txt

In a Weed shell on my filer pod, I can see that the bucket has been added to the filesystem:

$ weed shell
> fs.tree
buckets
└──mybucket
    └──test.txt