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

81 views
Skip to first unread message

vivek shete

unread,
Sep 21, 2023, 3:02:12 PM9/21/23
to AWX Project
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",
Message has been deleted

Ian Board

unread,
Sep 22, 2023, 4:25:49 AM9/22/23
to awx-p...@googlegroups.com
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 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!

--
You received this message because you are subscribed to the Google Groups "AWX Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to awx-project...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/awx-project/eeeb3784-ddc9-41f7-bbea-ee57c6993e60n%40googlegroups.com.



This email and any files transmitted with it contain confidential information and/or privileged or personal advice. This email is intended for the addressee(s) stated above only. If you are not the addressee of the email please do not copy or forward it or otherwise use it or any part of it in any form whatsoever. If you have received this email in error please notify the sender and remove the e-mail from your system. Thank you.

This is an email from the company Just Eat Takeaway.com N.V., a public limited liability company with corporate seat in Amsterdam, the Netherlands, and address at Piet Heinkade 61, 1019GM Amsterdam, registered with the Dutch Chamber of Commerce with number 08142836 and where the context requires, includes its subsidiaries and associated undertakings.
Reply all
Reply to author
Forward
0 new messages