AWS S3 cli not working on Windows server

Viewed 8028

This works on my Linux box, but I can't get a simple AWS S3 cli command to work on a Windows server (2012).

I'm running a simple copy command to a bucket. I get the following error:

Parameter validation failed:
Invalid length for parameter Key, value: 0, valid range: 1-inf

I googled this, couldn't find anything relevant. And I'm not the best at working with Windows servers.

What does this error actually mean?

Here's the command:

aws s3 cp test.zip s3://my-bucket

Version:

aws-cli/1.11.158 Python/2.7.9 Windows/2012Server botocore/1.7.16
3 Answers

The error message:

Invalid length for parameter Key

Is telling you that you need to specify a Key for your object (a filename basically). Like so:

aws s3 cp test.zip s3://my-bucket/test.zip
Related