5 ms·
Static Hosting with Amazon S3 and Cloudfront
- wilkystyle 9y agoI’m using Hugo [0], and this is how I host my site. I have a small bash script that will generate the static files, push to S3, and issue a CloudFront invalidation. Also, my bill is ~0.60 USD/month. [0] https://gohugo.io https://gohugo.io
- not_kurt_godel 9y agoInvalidations are inefficient, and theoretically more expensive. Better to use version prefixes.
- mjlee 9y agoI have done the exact same thing with a Makefile :) https://blog.martinlee.org/posts/how-its-made-pt2-or-hugo-in-s3-and-cloudfront/ https://blog.martinlee.org/posts/how-its-made-pt2-or-hugo-in...
- zackbloom 9y agoBe sure to check out Stout as well, we use it to deploy our static apps and it works and does all the config for you: http://stout.is http://stout.is
- fibo 9y agoI also use S3, add also a bucket named www.example.com that redirects to example.com bucket.