You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Likely an S3 Bucket permission issue: "Access Denied"
seems like in the storybook demo they still use lib aws-sdk which is soon it will be deprecated, I recreated this using lib @aws-sdk/client-s3 and its works without any issues, here is the example
import{S3}from"@aws-sdk/client-s3";constBUCKET_HOST="http://127,0.0.1:9004/";// additional var since I use on premise S3constBUCKET_NAME="bucker-name";constBUCKET_REGION="eu-west-2";constACCESS_KEY_ID="key";constSECRET_ACCESS_KEY="secret";constS3Client=newS3({region: BUCKET_REGION,endpoint: BUCKET_HOST,credentials: {accessKeyId: ACCESS_KEY_ID,secretAccessKey: SECRET_ACCESS_KEY}});constfetchS3BucketContents=async(bucket,prefix)=>{// use method listObjects instead of listObjectsV2consts3=awaitS3Client.listObjects({Bucket: bucket,Delimiter: "/",Prefix: prefix!=="/" ? prefix : "",});
..........................};
https://chonky.io/storybook/2.x/?path=/story/file-browser-demos--s-3-browser
Likely an S3 Bucket permission issue: "Access Denied"
The text was updated successfully, but these errors were encountered: