Friday, July 28, 2017

AWS Android SDK app for S3 Transfer Utility is raising exception while reading

Leave a Comment

I have created a AWS S3 bucket. and I am able to access bucket using https://github.com/awslabs/aws-sdk-android-samples/blob/master/S3TransferUtilitySample/S3TransferUtilityTutorial.md , TransferUtility SDK app provide by amazon.

I made some changes regarding the configuration of respective Region and bucket name and then I was able to connect to S3.

I am having proper permission to read / write S3 Bucket as provided to me by Server Admin. I successfully upload two images to S3 bucket using code. I can now see two image files are present in S3.

Now when I try to download these file I get exeception as

com.amazonaws.services.s3.model.AmazonS3Exception: Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: 04800521FBB752B0) 

I have read and write permissions but still getting this exception. Is it related to permission only or I am missing something.

Thanks in advance.

2 Answers

Answers 1

I think there's another permissions for downloading. You need to set who can download this file - read is not enough. Right click on the file in your S3 bucket and checkout the permissions section - you'll see it there.

Answers 2

There was a problem with previous conginto pool id , i think it was having some permissions issues.

We changed cognito pool ID and then it worked properly.

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment