Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

s3-put fails to send file

I'm trying to send a file to amazon s3 using the s3-bash scripts.

Using this command:

./s3-put -T ./test2 -k <mykey> -s ./<mysecretkeyfile> /mybucketname

leads to:

<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>MalformedXML</Code><Message>The XML you provided was not well-formed or did not validate against our published schema</Message><RequestId>xxx</RequestId><HostId>xxx</HostId></Error>

Any idea? I just want to send a file via bash.

like image 637
schneck Avatar asked Feb 11 '10 11:02

schneck


1 Answers

I solved it: the bucket name needs to have the filename attached, like this:

/mybucketname/myfile

So the complete command could look like:

./s3-put -T ./test2 -k <mykey> -s ./<mysecretkeyfile> /mybucketname/myfile
like image 155
schneck Avatar answered Nov 01 '22 13:11

schneck