I am having a small problem with my first time using cloudfront + s3. I just want to access my image via cloudfront. On S3, I have blocked all public access. Cloudfront origin is set to the S3 bucket.
The problem is when I am now trying to access my image via the cloudfront domain name.
XXX.cloudfront.net/folder/image.jpg
I get the error
This XML file does not appear to have any style information associated with it. The document tree is shown below. <Error> <Code>AccessDenied</Code> <Message>Access Denied</Message> However, if I set the public access on the s3 bucket
Block public and cross-account access to buckets and objects through any public bucket or access point policies S3 will ignore public and cross-account access for buckets or access points with policies that grant public access to buckets and objects. Then i can view the image from the cloudfront link. is it possible to view the cloudfront image without having public access on?