This is a Magento CDN module, built to use when you need scale multiple Magento instances horizontally, avoinding the need of tools like s3fs, rsync, etc to keep the media
folder in-sync on every instance.
It is recommended to create a specific IAM userfor handling files on S3. To avoid permission problems, use the following policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1393288415000",
"Effect": "Allow",
"Action": [
"s3:DeleteObject",
"s3:GetObject",
"s3:GetObjectAcl",
"s3:PutObject",
"s3:PutObjectAcl",
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::bucket-name",
"arn:aws:s3:::bucket-name/*"
]
}
]
}
Don't forget to change the bucket-name
.