from Hacker News

Static Hosting with Amazon S3 and Cloudfront

by By-Jokese on 11/5/17, 11:28 PM with 5 comments

  • by wilkystyle on 11/6/17, 12:15 PM

    I’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

  • by zackbloom on 11/6/17, 2:40 PM

    Be 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
  • by fibo on 11/6/17, 2:54 PM

    I also use S3, add also a bucket named www.example.com that redirects to example.com bucket.