# ERROR: putting files in aws s3 bucket using Ansible tower template

**URL:** <https://forum.ansible.com/t/error-putting-files-in-aws-s3-bucket-using-ansible-tower-template/38460>\
**Category:** AWX Project\
**Tags:** aws\
**Created:** [September 21, 2023, 7:02pm UTC](https://forum.ansible.com/t/error-putting-files-in-aws-s3-bucket-using-ansible-tower-template/38460 "2023-09-21T19:02:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vivek\_shete](https://avatars.discourse-cdn.com/v4/letter/v/48db29/32.png) [@vivek\_shete](https://forum.ansible.com/u/vivek_shete)\
**Post date:** [September 21, 2023, 7:02pm UTC](https://forum.ansible.com/t/error-putting-files-in-aws-s3-bucket-using-ansible-tower-template/38460/1 "2023-09-21T19:02:12Z")

</div>

Hi,  
I am getting below error pushing files to aws s3 bucket using Ansible Tower template. Below is task snippet thats giving me the error. I have the aws access and secret keys attached to the template as credentials. Any pointer would help.

Task snippet:

- name: push backup to s3  
amazon.aws.s3\_object:  
bucket: ansible  
object: backups  
src: /path/to/file  
mode: put  
delegate\_to: localhost

Error:

An error occurred (AccessControlListNotSupported) when calling the PutObject operation: The bucket does not allow ACLs",

---

<div class="post-metadata">

**Author:** ![Boardy404](https://avatars.discourse-cdn.com/v4/letter/b/7ab992/32.png) [@Boardy404](https://forum.ansible.com/u/Boardy404)\
**Post date:** [September 22, 2023, 8:25am UTC](https://forum.ansible.com/t/error-putting-files-in-aws-s3-bucket-using-ansible-tower-template/38460/2 "2023-09-22T08:25:09Z")

</div>

Hi Vivek

Is the s3 bucket configured to restrict all public access? This looks like more of an AWS resource configuration issue than an AWX/Ansible.

There are quite a few [stackoverflow threads](https://stackoverflow.com/search?q=AccessControlListNotSupported&s=b3dc9374-ad0d-4006-b053-4b0fa5c881cd) discussing possible solutions - just make sure that you understand the implications of making any of the suggested changes to avoid accidentally exposing your bucket to the internet.

Good luck!
