How to download a folder from AWS S3

At some point, I needed to download a folder from AWS S3 only to realize that there is no such feature built on their UI. Thankfully, there is a way to download any directory through their CLI.

To do that, follow these steps:

  1. Install AWS CLI
  2. Make sure the CLI is installed by running aws --version in your terminal
  3. Run aws configure in your terminal to add your AWS Keys created here
  4. Run the following command to download the folder. The first parameter is the directory you want to be downloaded, and the second is the directory on your local computer where the files will be placed.
aws s3 sync s3://bucket-name-here/path-to-directory-to-download/ /Users/chrysanthos/folder/on/your/device

Leave a Reply

Your email address will not be published. Required fields are marked *