I am trying to download a binary file from an AWS S3 bucket using Amazon's new command-line interface. However, the tool responds with an error message.
Jun 23, 2017 - If you ever want to download an entire S3 folder you can do it with CLI. You can download the AWS CLI from this page. AWS CLI Download. $ aws s3 rb s3://bucket-name --force. This will first delete all objects and subfolders in the bucket and then remove the bucket. Managing Objects The high-level aws s3 commands make it convenient to manage Amazon S3 objects as well. The object commands include aws s3 cp, aws s3 ls, aws s3 mv, aws s3 rm, and sync. The other day I needed to download the contents of a large S3 folder. That is a tedious task in the browser: log into the AWS console, find the right bucket, find the right folder, open the first file, click download, maybe click download a few more times until something happens, go back, open the next file, over and over.
Specifying text output format, gives the object's metadata, but again not the actual data.
The tests in the tool's source code distribution don't seem to exercise this functionality.
1 Answer
It turns out that the behaviour was due to a bug, which has since been fixed.