copy file to bucket s3 code example
Example 1: how to upload files to s3 bucket from mac shell
aws s3 mv . s3://YOUR_BUCKET_NAME --recursive --exclude "*.DS_Store"
Example 2: copy folder from s3 to local
aws s3 cp s3://myBucket/dir localdir --recursive