S3 Module Provider Errors

AWS: The bucket does not allow ACLs#

Your AWS S3 bucket must have public access to buckets enabled. To do that:

  1. On your bucket's dashboard, click on the Permissions tab.
  2. Click on the Edit button of the Block public access (bucket settings) section.
  3. In the form that opens, don't toggle any checkboxes and click the "Save changes" button.
  4. Confirm saving the changes by entering confirm in the pop-up that shows.
  5. Back on the Permissions page, scroll to the Object Ownership section and click the Edit button.
  6. In the form that opens:
    • Choose the "ACLs enabled" card.
    • Click on the "Save changes" button.
  7. Back on the Permissions page, scroll to the "Access Control List (ACL)" section and click on the Edit button.
  8. In the form that opens, enable the Read permission for "Everyone (public access)".
  9. Check the "I understand the effects of these changes on my objects and buckets." checkbox.
  10. Click on the "Save changes" button.

Cloudflare: Checksum error#

If you're using the S3 File Module Provider to store files in Cloudflare and you get a checksum error similar to the following:

Terminal
Header 'x-amz-checksum-crc32' with value '0wpgCA==' not implemented

This is due to a recent update in the AWS SDK client that sets the ChecksumAlgorithm by default, which Cloudflare doesn't support. To resolve this issue, add in your package.json the following resolution for the @aws-sdk/client-s3 package:

Code
1{2  "resolutions": {3    "@aws-sdk/client-s3": "3.726.1"4  }5}

The version must be less than 3.729.0. After adding the resolution, install the dependencies again:

Was this page helpful?
Edit this page
Ask Anything
FAQ
What is Medusa?
How can I create a module?
How can I create a data model?
How do I create a workflow?
How can I extend a data model in the Product Module?
Recipes
How do I build a marketplace with Medusa?
How do I build digital products with Medusa?
How do I build subscription-based purchases with Medusa?
What other recipes are available in the Medusa documentation?
Chat is cleared on refresh
Line break