# aws\_s3 Module error File or Folder doesn't exist.. - Unable to download the S3 Module.

**URL:** <https://forum.ansible.com/t/aws-s3-module-error-file-or-folder-doesnt-exist-unable-to-download-the-s3-module/31029>\
**Category:** Ansible Project\
**Tags:** awx\
**Created:** [August 13, 2019, 8:51am UTC](https://forum.ansible.com/t/aws-s3-module-error-file-or-folder-doesnt-exist-unable-to-download-the-s3-module/31029 "2019-08-13T08:51:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kalyan\_Alamuru](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@Kalyan\_Alamuru](https://forum.ansible.com/u/Kalyan_Alamuru)\
**Post date:** [August 13, 2019, 8:51am UTC](https://forum.ansible.com/t/aws-s3-module-error-file-or-folder-doesnt-exist-unable-to-download-the-s3-module/31029/1 "2019-08-13T08:51:52Z")

</div>

Hi.

I’m using aws\_s3(upgraded recently early we were using s3 as we are on ansible 2.3), I’m getting error : raise self.\_exception\nIOError: [Errno 2] No such file or directory: '/var/lib/awx/builds/consumer\_applications/xxxx.tgz.F51acB96 (xxx is deployment file stroed in our S3 Bucket which I wanted to download and deploy into our web server)

our S3 Module :

- aws\_s3:  
aws\_access\_key: “{{ aws\_access\_key }}”  
aws\_secret\_key: “{{ aws\_secret\_key }}”  
bucket: “livebuzz-builds”  
region: “eu-west-1”  
object: “/{{ git\_repo }}/{{ git\_branch|regex\_replace(‘/’, ‘\_\_’) }}.tar.gz”  
dest: “{{ consumer\_build\_dir }}.tgz”  
mode: get

I checked Consumer\_build \_dir exists with write permission for user awx and also file in S3 exists which we are trying to download to deploy. Can you see any error in above config or we missing anything which is causing above error. Our ansible Version as follows.

ansible 2.8.2  
config file = None  
configured module search path = [u’/root/.ansible/plugins/modules’, u’/usr/share/ansible/plugins/modules’]  
ansible python module location = /usr/lib/python2.7/site-packages/ansible  
executable location = /bin/ansible  
python version = 2.7.5 (default, Jun 20 2019, 20:27:34) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)

Regards  
Kalyan.
