{"id":3724,"date":"2019-10-29T14:51:57","date_gmt":"2019-10-29T20:51:57","guid":{"rendered":"http:\/\/benincosa.com\/?p=3724"},"modified":"2019-11-04T19:06:51","modified_gmt":"2019-11-05T01:06:51","slug":"cloudfront-s3-static-site-hosting-and-index-html","status":"publish","type":"post","link":"https:\/\/benincosa.com\/?p=3724","title":{"rendered":"Cloudfront S3 static site hosting and index.html"},"content":{"rendered":"<p><a href=\"https:\/\/aws.amazon.com\/blogs\/compute\/implementing-default-directory-indexes-in-amazon-s3-backed-amazon-cloudfront-origins-using-lambdaedge\/\">This article<\/a> I followed was a little outdated.\u00a0 Things do change a lot in 3 years.\u00a0 It&#8217;s mostly the same as the function seems to work but the implementation does not.\u00a0 Following the hints <a href=\"https:\/\/stackoverflow.com\/questions\/53796032\/cannot-create-aws-lamda-function-due-to-some-cryptic-error-message\">here <\/a>I was able to get this to work.\u00a0 The big one was you need to refresh your browser.\u00a0 I think its pretty ridiculous that AWS doesn&#8217;t enable this default behavior with a click of a button but maybe they have their reasons.<\/p>\n<p>One tip I recommend is to delete the console.log messages as that just adds to your bill.\u00a0 Yes, I am picking at pennies here, but they add up!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article I followed was a little outdated.\u00a0 Things do change a lot in 3 years.\u00a0 It&#8217;s mostly the same as the function seems to work but the implementation does not.\u00a0 Following the hints here I was able to get this to work.\u00a0 The big one was you need to refresh your browser.\u00a0 I think&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[463,1],"tags":[905,907,895,906],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/benincosa.com\/index.php?rest_route=\/wp\/v2\/posts\/3724"}],"collection":[{"href":"https:\/\/benincosa.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/benincosa.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/benincosa.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/benincosa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3724"}],"version-history":[{"count":3,"href":"https:\/\/benincosa.com\/index.php?rest_route=\/wp\/v2\/posts\/3724\/revisions"}],"predecessor-version":[{"id":3732,"href":"https:\/\/benincosa.com\/index.php?rest_route=\/wp\/v2\/posts\/3724\/revisions\/3732"}],"wp:attachment":[{"href":"https:\/\/benincosa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3724"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/benincosa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3724"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/benincosa.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3724"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}