Bulk Upload to S3

By | January 21, 2020

Install and configure AWS command line tools. Run the following command to upload content of a directory from your local machine to the given S3 bucket:

$ aws s3 cp <path to your src dir> s3://bucket-name/folder-name --recursive

If we have configured IAM role, policy and profile that restrict access to S3 you should use the command:

$ aws s3 cp <path to src dir> s3://bucket-name/folder-name --recursive --profile <profile>

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.