AWS CDN (S3 -> Cloudfront)
-
I have recently faced a couple of issues.
Permissions, had issues with ListBucket while my IAM role is restricted to specific resources/bucket names. Had to comment-out test to list buckets but I am sure it is possible to fix by giving bucket name to test its existence.
PutObject fails to work with buckets that are strictly served via CloudFront ([1] no public access allowed) since it is trying to set ACL that is not allowed. Commenting out that part solves the issue. It would be great if there was an option to disable ACL per object.
[1] https://aws.amazon.com/blogs/networking-and-content-delivery/amazon-s3-amazon-cloudfront-a-match-made-in-the-cloud/Lastly, in CdnEngine_CloudFront.php had to make change as follows:
/** * Returns origin */ function _get_origin() { return sprintf( '%s.s3.%s.amazonaws.com', $this->_config['bucket'], $this->_config['bucket_location'] ); }
When setting up CF for S3, the console only shows regional S3 URLs.
The page I need help with: [log in to see the link]
- The topic ‘AWS CDN (S3 -> Cloudfront)’ is closed to new replies.