copy all files from s3 bucket to local code example
Example 1: copy folder from s3 to local
aws s3 cp s3://myBucket/dir localdir --recursive
Example 2: copy local files to s3
aws s3 cp <your directory path> s3://<your bucket name> --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers --recursive