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.
- Store product images on CDN;
- Store merged CSS and Javascript files on CDN;
- Upload product images directly to CDN;
- Amazon Simple Storage Service
- Copy all files to the Magento directory;
- Clean your cache;
- Configure your Amazon S3 credentials at System > Configuration > MageFM > CDN;
- Configure your Base Media URL at System > Configuration > General > Web;
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
.