Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Or just create a static HTML file and put the damn thing in a S3 bucket behind a cloudfront proxy.

That site is virtually guaranteed to never go down even with insane amoumts of traffic (plus it's edge optimized so a user in new delhi won't be sending requests to your server in los angeles)

edit: The whole setup takes like less than 2 minutes and can be even automated it with 2 aws cli commands.



That's pretty close to what Netlify is doing behind the scenes, isn't it? Why would configuring it yourself be better? Netlify has way more experience at that than most people.


I haven't used Netlify since I've been using Cloudfront since the day it launched many years ago. They give me free SSL, charge me like a dollar for it and have been ultra reliable forever.

I'm quite happy with other AWS architecutre also, e.g. SES for sending mail, lambda for serverless, etc so I like to stick with them. Awscli is also quite powerful and I'm able to setup the whole thing from scratch with a single bash script.

I'm sure Netlify must have simplified the process or made it easier and could be another great option.


Netlify likes to go down unless you are paying for the high tier. Also they charge for bandwidth after 100gb's ($20 for another 100gb's which is basically stealing money compare to how much a 100gbs is worth).

I would not recommend Netlify if you have other options.


I have more than 30 sites on the free tier of Netlify and I've never known it to be down.


This.

It would be nice to fork the project and do something similar with CloudFront. Any static object data can also be fetched from CloudFront as JSON files, and periodically updated by cache invalidation or cache expiry dates (ie. cache for 5 mins).


You lost most municipals with this. Yes, even this is too complicated.


care to write a little howto?

Thanks!


This isn't written by me but this looks like a nice step by step tutorial about the same (the reason it's so long because he covers everything including signin up for an amazon account, but the process is very easy and quick):

https://medium.com/tensult/creating-aws-cloudfront-distribut...

Another additional benefit of this is that you get a free SSL certificate from Amazon that virtually never expires. The price is also on-demand and very less (only pay for the bandwidth you use which is pretty cheap too)

These commands to re-deploy your site would be following (assuming aws-cli is installed)

    aws s3 cp ~/your-site/* s3://bucket-name
    aws cloudfront create-invalidation --distribution-id ID --paths /*
(sorry these commands are just from the top of my head, I couldn't double check)


I wrote a post on how I did it for my site:

https://ethanaa.com/blog/conversion-to-static-site-with-vuep...

There are follow up posts on CI / CD and search.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: