Cloudfront S3 static site hosting and index.html

This article I followed was a little outdated.  Things do change a lot in 3 years.  It’s mostly the same as the function seems to work but the implementation does not.  Following the hints here I was able to get this to work.  The big one was you need to refresh your browser.  I think its pretty ridiculous that AWS doesn’t enable this default behavior with a click of a button but maybe they have their reasons.

One tip I recommend is to delete the console.log messages as that just adds to your bill.  Yes, I am picking at pennies here, but they add up!

Leave a Reply

Your email address will not be published. Required fields are marked *