使用AWS CLI在用户本地下载s3存储桶文件
问题描述:
如何直接在用户的本地计算机上下载简单存储服务存储桶文件?
How to download simple storage service(s3) bucket files directly on user's local machine?
答
,您可以检查启用s3 cli ,以便从s3复制文件.
you can check the aws s3 cli so to copy a file from s3.
以下cp命令将单个对象复制到本地指定的文件中:
The following cp command copies a single object to a specified file locally:
aws s3 cp s3://mybucket/test.txt test2.txt
请确保在键中有空格的情况下使用引号"
Make sure to use quotes "
in case you have spaces in your key
aws s3 cp "s3://mybucket/test with space.txt" "./test with space.txt"