4 ms·
> Maintaining a static site with a CDN costs less than 5$ a month. That's putting it mildly! I host a (small) static webpage on AWS S3 + CloudFront, and my mo
by ken 9y ago
> Maintaining a static site with a CDN costs less than 5$ a month.
That's putting it mildly! I host a (small) static webpage on AWS S3 + CloudFront, and my monthly bill is 56 cents.
- wdn 9y agoCan you write a how to guide on this?
- dfee 9y ago[0] add files to S3 [1] configure Route53 to show those files at a domain name with permissions [2] use Cloudfront as a CDN to that S3 data. [0] https://docs.aws.amazon.com/AmazonS3/latest/user-guide/upload-objects.html https://docs.aws.amazon.com/AmazonS3/latest/user-guide/uploa... [1] https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/RoutingToS3Bucket.html https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/Ro... [2] https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/MigrateS3ToCloudFront.html https://docs.aws.amazon.com/AmazonCloudFront/latest/Develope...
- huy-nguyen 9y agoI use GatsbyJS, a static site generator, to create my blog and use Netlify for continuous deployment + hosting. Netlify also provides free CDN and SSL.
- ken 9y agoSure, I could do that. Just yesterday someone described AWS as an "Ikea" construction set, where it's all there but you have to figure it out (and the AWS documentation is not very good). I need to start blogging, anyway, so thanks for the push.
- JoshMnem 9y agoIt would be free on netlify.com.
- foepys 9y agoI'm always afraid that those free services start to change their policies and suddenly your site doesn't work without you knowing. The 60 cents for hosting it somewhere I have a business relationship with, rather than a simple ToS, are easily worth it.
- PuffinBlue 9y agoThen setup a monitor: https://uptimerobot.com/ https://uptimerobot.com/ If they change the ToS then move. That's the great thing about static sites, you just plonk it anywhere and you're good to go.
- Franciscouzo 9y agoMaybe the 56 cents is worth more for them than the possibility of some hours of downtime to set up the site on another server.
- user5994461 9y ago56 cts until one of your article gets published on HN and you are billed for a TB of data transfer.
- ken 9y agoIt was on top of HN last year. I paid 60 cents that month. The AWS CDN is really cheap, and 1 TB is a truly massive amount. Remember, this is static content, not megabytes of useless JS dependencies. In any event, it's easy to set a budget in AWS. I'll add one now, just to be safe.
- user5994461 9y agoMy blog was on top of HN multiple times in the last years. I had an article that reached past a TB by itself. It's not the javascript but the medias that are expensive. Pictures, drawings, schemas. God forbids if you have a gif or a video.