s3 downloads not appearing in local folder

Issue

This Content is from Stack Overflow. Question asked by Dazz

Noob issue here- i’m using CLI to download an entire bucket of images from S3 (76 files of various image formats), however they do not seem to appear in my local folder after the code executes. After a few attempts, I then received the below error:

“download failed: s3://cpskitchenaidimages/KA/KA – 5KSM2APC_1.tif to ./KA – 5KSM2APC_1.tif [Errno 28] No space left on device”

Code run =

aws s3 sync s3://cpskitchenaidimages/KA .

My local directory = “C:UsersDarrenDownloadsKA”

The bucket is publicly accessible via the below policy:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Principal": "*",
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::cpskitchenaidimages/*"
        },
        {
            "Effect": "Allow",
            "Principal": "*",
            "Action": "s3:ListBucket",
            "Resource": "arn:aws:s3:::cpskitchenaidimages"
        }
    ]
}



Solution

This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?