avatarAz Codez

Summary

The article provides a solution for resolving the "AccessControlListNotSupported" error when uploading to an Amazon S3 bucket using a GitHub Action.

Abstract

The author of the article encountered the "AccessControlListNotSupported" error while attempting to upload files to an Amazon S3 bucket via a GitHub Action. This error indicates that the S3 bucket does not support Access Control Lists (ACLs). The article outlines the steps the author took to resolve the issue, which involved adjusting the bucket permissions to enable ACLs, thereby allowing external sources to upload objects to the bucket. The author emphasizes the importance of being aware of the security implications associated with enabling ACLs. The article concludes with an invitation for readers to engage with the content by asking questions or providing feedback, and it includes a disclaimer regarding the information's general informational purpose.

Opinions

  • The author successfully resolved the "AccessControlListNotSupported" error by enabling ACLs in the S3 bucket permissions.
  • Enabling ACLs is acknowledged as a solution but comes with security implications that users should be cautious about.
  • The author encourages community interaction by inviting readers to comment with questions or feedback.
  • A disclaimer is provided to clarify that the information is for general purposes and that the author is not liable for any loss or damage resulting from the use of the blog's content.
  • The author references external sources, such as Stack Overflow and AWS, suggesting a reliance on community knowledge and official documentation for problem-solving.
  • The article promotes additional content and engagement through PlainEnglish.io's newsletter, social media accounts, Community Discord, and Talent Collective.

Solution for Amazon S3 Error “AccessControlListNotSupported”

Here’s how I resolved the “AccessControlListNotSupported” error in Amazon S3

Image from https://aws.plainenglish.io/optimize-your-aws-s3-performance-27b057f231a3

I was getting this error when uploading to the S3 bucket when using a Github Action: (AccessControlListNotSupported) when calling the PutObject operation: The bucket does not allow ACLs. Below is how I resolved it

  • Find your S3 bucket and click permissions
  • Find object ownership and click edit
  • Click ACLs Enabled as this gives power to other accounts to import objects. Please beware of the security implications.
  • Save your changes and you should be able to upload from outside sources now

Hope this helps😁

Feel free to comment with questions or feedback. Happy coding! Az 👨🏾‍💻

Disclaimer: The information provided on this blog is for general informational purposes only. I make no representations or warranties of any kind, express or implied, about the completeness, accuracy, reliability, suitability, or availability with respect to the website or the information, products, services, or related graphics contained on the website for any purpose. Any reliance you place on such information is, therefore, strictly at your own risk. I shall not be held liable for any loss or damage, including but not limited to indirect or consequential loss or damage, or any loss or damage whatsoever arising from the use of this blog, resulting in loss of data or profits, whether in connection with or arising out of such use. Through this blog, you may be able to link to other websites which are not under my control. I have no control over the nature, content, and availability of those sites. The inclusion of any links does not necessarily imply a recommendation or endorse the views expressed within them. Every effort is made to keep the blog up and running smoothly. However, I take no responsibility for, and will not be liable for, the blog being temporarily unavailable due to technical issues beyond my control.

Credits

More content at PlainEnglish.io. Sign up for our free weekly newsletter. Follow us on Twitter and LinkedIn. Check out our Community Discord and join our Talent Collective.

AWS
S3 Bucket
Cloud Computing
Software Engineering
Web Development
Recommended from ReadMedium