Skip to content

Magento 2 with aws-s3 remote storage of images – tutorial?

I’m currently trying to configure Magento 2.4.3 with AWS s3 for storing media. The guide on the Magento website is lacking in a lot of detail, I think. For example, it implies you can use AWS IAM to configure s3 storage and not require the use of the ngx_aws_auth module, which seems it’s no longer developed. However, there’s nothing telling you how to do this.

Has anyone successfully managed to configure the native aws-s3 storage along with nginx? I’m getting random errors such as being shown the 503 error page, with Magento thinking it’s in maintenance mode for some reason (the flag isn’t there, removing the relevant aws-s3 section from env.php removes the issue).

If anyone has a guide they can point me to, or walk through the steps they’ve taken, that would be appreciated.