5 ms·
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
by superasn 7y ago
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.
- kernelsanderz 7y agoThis. 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).
- getlawgdon 7y agoYou lost most municipals with this. Yes, even this is too complicated.
- golem14 7y agocare to write a little howto? Thanks!
- superasn 7y agoThis 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-distribution-with-s3-origin-ee47b8122727 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)
- lunias 7y agoI wrote a post on how I did it for my site: https://ethanaa.com/blog/conversion-to-static-site-with-vuepress-and-aws-s3/#conversion-to-a-static-site-with-vuepress-and-aws-s3 https://ethanaa.com/blog/conversion-to-static-site-with-vuep... There are follow up posts on CI / CD and search.
- onion2k 7y agoThat'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.
- superasn 7y agoI 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.
- dubcanada 7y agoNetlify 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.
- onion2k 7y agoI have more than 30 sites on the free tier of Netlify and I've never known it to be down.