kahing / goofys

a high-performance, POSIX-ish Amazon S3 file system written in Go
Apache License 2.0
5.22k stars 523 forks source link

How to mount a shared S3 bucket #800

Open amoosebitmymom opened 3 months ago

amoosebitmymom commented 3 months ago

I have a bucket which I don't own, but is shared with my account according to this guide https://docs.aws.amazon.com/config/latest/developerguide/s3-bucket-policy.html

To access this bucket, I can use my own tenant credentials, but I need to specify the owner of the bucket in order to access it, like this:

: Simply writing the bucket like this in goofys didn't work for me. It created a mount point, but when trying to access it I can the following issue: `No such device or address` My storage provider is a ceph cluster (so S3 compatible). Any insights about how to mount the bucket?
cellochou commented 1 week ago

Some cloud storage providers, such as Cloudflare R2, include the account ID as part of the endpoint URL:

https://[account_id].r2.cloudflarestorage.com

For detailed guidance, you should consult the relevant documentation provided by your cloud storage provider.