AWS S3 CLI在Windows服务器上不起作用

ΓΓI*_*ICK 2 amazon-s3 amazon-web-services

这可以在我的Linux机器上使用,但无法在Windows服务器上使用简单的AWS S3 cli命令来运行(2012)。

我正在向存储桶运行一个简单的复制命令。我收到以下错误:

Parameter validation failed:
Invalid length for parameter Key, value: 0, valid range: 1-inf
Run Code Online (Sandbox Code Playgroud)

我用谷歌搜索,找不到任何相关内容。而且我也不是最擅长使用Windows服务器。

该错误实际上是什么意思?

这是命令:

aws s3 cp test.zip s3://my-bucket
Run Code Online (Sandbox Code Playgroud)

版:

aws-cli/1.11.158 Python/2.7.9 Windows/2012Server botocore/1.7.16
Run Code Online (Sandbox Code Playgroud)

小智 6

您可以尝试以下方法:

aws s3 cp test.zip s3://my-bucket --recursive
Run Code Online (Sandbox Code Playgroud)