Got a lot of files to upload to an S3 bucket? This little script will do it one file at a time without hitting command line limits, etc.
./upload-files-to-s3.sh <bucket-name> <directory-with-files-to-upload> <aws-profile>
<aws-profile>
is optional and defaults to default
- AWS profile set up on system running script
- aws command line tools
- openssl to calculate md5 value for s3 upload verification
Or you can just use the recursive option of the aws cli cp command like
which is considerably faster than my script.