Search code examples
androidamazon-web-servicesamazon-s3thumbor

Connect Thumbor with AWS - s3


I have a bucket with photos on AWS.

When I try to access the photo url {photoUrl = https://aws-name-dev.s3.amazonaws.com/photo.jpg} in browser I got 'access denied'.

When I create link with thumbor,

Thumbor thumbor = Thumbor.create(getResources().getString(R.string.thumbor_sever));

final String newUrl = thumbor.buildImage(photoUrl).resize(48, 48).toUrl();

and try to load it with Picasso, I got a '404 Not Found'.

If I replace photoUrl from aws with http://www.rizwanashraf.com/wp-content/uploads/2009/04/redrose7-wallpaper.jpg it is working.

I don't know how to, somehow, connect Thumbor server with AWS.


Solution

  • From AWS documentation you have to give permission to view/read files from your bucket.