Reputation: 27
I have a ~50,000 I need to upload to an S3 bucket. These files already exist in Box.com Is there a way to write from Box to AWS using the AWSCLI? It just seems like a wasted step to download from Box, then upload to AWS.
aws s3 cp https://ky.box.com/shared/static/ijblogo31nhwrtr0woyiressfy0e86ss.laz s3://kyfromabove/elevation/LAZ/Phase1/
The user-provided path https://ky.box.com/shared/static/ijblogo31nhwrtr0woyiressfy0e86ss.laz does not exist.
Upvotes: 0
Views: 818
Reputation: 10185
A pipe can help you solve this task! However, please do take note that AWS CLI will still download the file on your computer's memory instead of the file system!
curl -i -X GET \
"https://ky.box.com/shared/static/ijblogo31nhwrtr0woyiressfy0e86ss.laz" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
| aws s3 cp - s3://ian-horn-bucket/file1.laz
Upvotes: 0