0
在使用ansible上传我的文件在桶的相应路径,它显示我的错误是这样的:S3上传错误
boto.exception.S3CreateError: S3CreateError: 409 Conflict
<?xml version="1.0" encoding="UTF-8"?>
<Error>
<Code>BucketAlreadyOwnedByYou</Code>
<Message>Your previous request to create the named bucket succeeded and you already own it.</Message>
<BucketName>useast1`
这里是我的代码:
- name: S3 storage
s3:
region: "{{ region }}"
bucket: "{{ bucketname }}"
object: "{{ path }}/file.json"
src: "home/ffn/{{ user_name }}/kp_out.json"
mode: put
可能重复[Boto s3错误。 BucketAlreadyOwnedByYou](http://stackoverflow.com/questions/10346378/boto-s3-error-bucketalreadyownedbyyou) – Venky
这也发生在我身上。 我可以告诉你为什么会发生这种情况。这与帐户访问有关。 在我的情况下,Ansible主服务器在AWS中,同一模块调用在与Ansible主服务器相同的AWS账户下工作,但只要我尝试对另一个帐户上的存储桶执行相同的操作(即使aws cli不和可以把这些分组对象在同一ansible主)我得到同样的错误,你: boto.exception.S3CreateError:S3CreateError:409冲突 BucketAlreadyExists 为什么ansible创造上放置操作水桶? – einarc
尝试使用aws cli的shell命令,看看你得到了什么。我怀疑这是Ansible中的又一个bug。我正在使用2.0.2 – einarc