I want to read an object from an S3 storage with ReadBytesAsync. However, I get an exception saying that I am not authorized to perform create-bucket. Why do I need that permission for reading?
Edit: I found the issue in the implementation. The method GetClientAsync in AwsS3BlobStorage makes a PutBucket request:
I want to read an object from an S3 storage with ReadBytesAsync. However, I get an exception saying that I am not authorized to perform create-bucket. Why do I need that permission for reading?
Edit: I found the issue in the implementation. The method GetClientAsync in AwsS3BlobStorage makes a PutBucket request:
https://github.com/robinrodricks/FluentStorage/blob/1dd683ac51ee896c77b055ee6e23a05d23a46e6d/FluentStorage.AWS/Blobs/AwsS3BlobStorage.cs#L113
Why does it do that? It should at least check if the bucket already exists.
You can fix it like so:
I can do a PR if you want?