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:
1 |
$ 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:
1 |
$ aws s3 cp <your dir here> s3://bucket-name/folder-name --recursive --profile <profile-name> |