I have setup cloudfront through AWS console. Somehow cloudfront is not able to access the Amazon S3 objects and throws 403 response error.
I believe this is a s3 bucket policy issue. Below is my current bucket ploicy
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AddPerm",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::xyz/*"
},
]
}
Can you help how can I modify my existing bucket policy so that cloudfront can access s3 objects?
EDIT: adding the s3 origin point snapshot
adding general params
adding the headers of the request:
2016-11-22 09:55:38 DEL51 878 119.82.78.98 GET d3k1wzyp6coxxx.cloudfront.net /4e6a9d2f3df2bdba96396879208214.png 403 - Mozilla/5.0%2520(Windows%2520NT%25206.1;%2520WOW64)%2520AppleWebKit/537.36%2520(KHTML,%2520like%2520Gecko)%2520Chrome/54.0.2840.99%2520Safari/537.36 - - Error EEEcSuKU1YPrpxQ_jIqaaUfKCydhG6dlIbt9_MLmxeGvwUooJYdTrw== d3k1wzyp6coxxx.cloudfront.net http 420 0.000 - - - Error HTTP/1.1
2016-11-22 09:55:38 DEL51 878 119.82.78.98 GET d3k1wzyp6cxxx.cloudfront.net /favicon.ico 403 http://d3k1wzyp6coxxx.cloudfront.net/4e6a9d2f3df2bdba96396879208214.png Mozilla/5.0%2520(Windows%2520NT%25206.1;%2520WOW64)%2520AppleWebKit/537.36%2520(KHTML,%2520like%2520Gecko)%2520Chrome/54.0.2840.99%2520Safari/537.36 - - Error XXnzzYHG8-Vr-pc40tTd0sl46ASu_txv_S_SdTc2T70I46WrHMmEsQ== d3k1wzyp6coxxx.cloudfront.net http 378 0.001 - - - Error HTTP/1.1