# aws\_s3 module problem Ansible 2.4

**URL:** <https://forum.ansible.com/t/aws-s3-module-problem-ansible-2-4/25529>\
**Category:** Ansible Project\
**Created:** [September 19, 2017, 5:19pm UTC](https://forum.ansible.com/t/aws-s3-module-problem-ansible-2-4/25529 "2017-09-19T17:19:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arbab\_Nazar1](https://avatars.discourse-cdn.com/v4/letter/a/3e96dc/32.png) [@Arbab\_Nazar1](https://forum.ansible.com/u/Arbab_Nazar1)\
**Post date:** [September 19, 2017, 5:19pm UTC](https://forum.ansible.com/t/aws-s3-module-problem-ansible-2-4/25529/1 "2017-09-19T17:19:29Z")

</div>

I have simple task to download file from s3 bucket which works fine with Ansible 2.3, when I have upgraded the ansible from 2.3 to 2.4, it complain that I need to use the aws\_s3 module instead of s3 which I did and getting the following error:

`  
─➤ansible-playbook -i localhost, playbook.yml 4 ↵

PLAY [all] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

TASK [Download the latest version of from S3 bucket] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [localhost]: FAILED! =\> {“changed”: false, “failed”: true, “msg”: “Key /node/qa/1.0.483/node.tar.gz with version id None does not exist.”}

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
localhost : ok=0 changed=0 unreachable=0 failed=1  
`

Here is my task:  
`

- name: Download the latest version of from S3 bucket  
aws\_s3:  
aws\_access\_key: “xxxxxxxxxxx”  
aws\_secret\_key: “yyyyyyyyyyyyyyyyyyyyyyy”  
bucket: “artifacts-bucket”  
object: “/node/qa/1.0.483/node.tar.gz”  
mode: get  
dest: “node.tar.gz”  
`

Few notes:

- versioning is not enabled on my s3 bucket
- installed the boto3 that is the requirement for aws\_s3 module
- the exact same tasks work fine with ansible 2.3 and did give this error  
`  
“Key /node/qa/1.0.483/node.tar.gz with version id None does not exist.”

`

Any help appreciated

---

<div class="post-metadata">

**Author:** ![willthames](https://avatars.discourse-cdn.com/v4/letter/w/8dc957/32.png) [@willthames](https://forum.ansible.com/u/willthames)\
**Post date:** [September 20, 2017, 4:18am UTC](https://forum.ansible.com/t/aws-s3-module-problem-ansible-2-4/25529/2 "2017-09-20T04:18:58Z")

</div>

Looks like this was a bug introduced with the move from boto to boto3.

A fix is in progress:

[https://github.com/ansible/ansible/pull/30580](https://github.com/ansible/ansible/pull/30580)

---

<div class="post-metadata">

**Author:** ![willthames](https://avatars.discourse-cdn.com/v4/letter/w/8dc957/32.png) [@willthames](https://forum.ansible.com/u/willthames)\
**Post date:** [September 20, 2017, 4:28am UTC](https://forum.ansible.com/t/aws-s3-module-problem-ansible-2-4/25529/3 "2017-09-20T04:28:16Z")

</div>

Note that until this is fixed, removing the leading ‘/’ from your object will work.
