amazon s3 - Cloudfront - cannot invalidate objects that used to return 403 -


the setting

i have amazon cloudfront distribution set secured. objects in distribution required url signing. example, valid url used of following format:

https://d1stsppuecoabc.cloudfront.net/images/theimage.jpg?expires=1413119282&signature=nllrtvvmzytezhm-ugprymi~nm2v97vxozv5k9scd4d7~phgwinotuvbelkwehiwqlmiaq0s2hwu9ak5xiwnn9b57mwwlsuoleb~xbn1a-5kzwlr7psm5uzgn4zn6grih-qb2zeoe2fz9mnd9zc5nmoh2xxwawmvwg7eyink1m~x9lxfdvnaoo5iy7xy4hyis-q~xyhwunt0tgchj8ce9xrsiwp1qx3b8leutmkvvbylw__&key-pair-id=apkai7f5r77ffnfwgabc

the distribution points s3 bucket used secured (it allowed access through cloudfront).

what happened

at point, url singing expired , return 403.

since no longer need keep same security level, changed setting of cloudfront distribution , of s3 bucket pointing to, both public.

i tried invalidate objects in distribution. invalidation did not throw errors, invalidation did not seem succeed. requests same cloudfront url (with or without query string) still return 403.

the response header looks like:

http/1.1 403 forbidden server: cloudfront date: mon, 18 aug 2014 15:16:08 gmt content-type: text/xml content-length: 110 connection: keep-alive x-cache: error cloudfront via: 1.1 3abf650c7bf73e47515000bddf3f04a0.cloudfront.net (cloudfront) x-amz-cf-id: j1cszsxz0do-ixfvhwyqkdsdo462lwkfly0murdrulu7zt_w4huz2b== 

things tried

i tried set cloudfront distribution points same s3 origin server. requests same object in new distribution successful.

the question

did encounter same situation cloudfront url returns 403 cannot invalidated? there reason why wouldn't object invalidated?

thanks help!

  1. first check invalidation not in progress. if wait till completed.
  2. if accessing s3 object through cloudfront using public url need have public read permission on s3 object.
  3. if trying access s3 object through cloudfront using signed url make sure time mention while generating sign url, must greater current time.

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -