Multiple s3-buckets in aws amplify

Viewed 544

so i wanted my react-amplify application to access multiple s3 buckets. I followed this tutorial and achieved it. it was pretty straightforward. the Storage.get() and Storage.put() code looks something like this respectively

Storage.get('/path/to/file', {bucket: 'bucketname'})
Storage.put('/path', 'object',{bucket: 'bucketname'} 

this code works fine. but when I try to get or put operation... I get s3-access denied error as my bucket is private.

I tried to add s3fullaccess permission to the backend role that is used by my amplify app... but still, I have no success. I am not sure what else would help me.

1 Answers
Related