S3-放未能发送文件 [英] s3-put fails to send file

查看:168
本文介绍了S3-放未能发送文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图到Amazon S3使用S3-的bash脚本来发送文件。

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

使用这个命令:

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

引出:

<?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.

推荐答案

我解决了:斗名需要有附加的文件名,如:

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

这篇关于S3-放未能发送文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆