Amazon S3 sync to local machine failed


I’m new to AWS and I’m trying to download a bunch of files from my S3 bucket to my local machine using aws s3 sync as described in
I used the following command:

I got the following error:
A client error (AccessDenied) occurred when calling the ListObjects operation: Access Denied
Completed 1 part(s) with … file(s) remaining

Even though I have configured my access key ID & secret access key as described in

Where might the problem be?


Assuming that you are an Administrator and/or you have set your credentials properly, it is possible that you are using an old AWS CLI.

I encountered this while using the packaged AWS CLI with Ubuntu 14.04.

The solution that worked for me is to remove the AWS CLI prepackaged with Ubuntu, and download it from python-pip instead:

Many thanks to this link:

Leave a Reply