Fastest way of transferring an unstructured collection of S3 files to EC2

50 views Asked by At

If we are downloading an entire virtual directory then there is the method MultipleFileDownload(...) from TransferManager. However MultipleFileDownload(...) does not support downloading an arbitrary list of S3 files objects. What is the best way of downloading such a large list of files?

1

There are 1 answers

0
Rodel On

If you just want to transfer S3 files to EC2's local directory, you can just use aws cli command on your EC2 as follows:

aws s3 cp s3://<bucketname> <local directory> --recursive --include "*"