【发布时间】:2017-12-19 22:37:06
【问题描述】:
我正在尝试从 s3 存储桶本地复制文件。我可以获取存储桶中的文件列表:
aws s3 ls s3://myBucket/myDirectory/todaysFiles/
但是当我尝试在本地复制文件时:
aws s3 cp s3://myBucket/myDirectory/todaysFiles/ .
我收到此错误:
fatal error: An error occurred (404) when calling the HeadObject operation: Key "myDirectory/todaysFiles/" does not exist
但我尝试只在本地复制一个文件:
aws s3 cp s3://myBucket/myDirectory/todaysFiles/somefile .
我收到此错误:
warning: Skipping file s3://myBucket/myDirectory/todaysFiles/somefile. Object is of storage class GLACIER. Unable to perform download operations on GLACIER objects. You must restore the object to be able to the perform operation. See aws s3 download help for additional parameter options to ignore or force these transfers.
你们中的任何人都知道我为什么会收到此错误或解决此错误的方法吗?
非常感谢您的帮助
【问题讨论】:
标签: amazon-web-services amazon-s3 aws-sdk aws-cli amazon-cloudformation