• Resolved matyssik

    (@matyssik)


    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]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @matyssik

    Thank you for reaching out and I am happy to assist you with this.
    At the moment the bucket access status should be set to “Objects can be public”.
    We do have a Github issue opened in our repository and the ticket is in the backlog for review.
    Please make sure to track the progress of the issue and share any additional information in the comments.
    Thanks!

    Thread Starter matyssik

    (@matyssik)

    Hi @vmarko

    Thanks for a quick reply. This is awesome, I hope that it will be merged very soon. I’ll provide comments in the PR or issue if I have any. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘AWS CDN (S3 -> Cloudfront)’ is closed to new replies.