Live data from Hacker News

Hosting your static site with AWS S3, Route 53, and CloudFront for free

vickylai.com

11–20 of 51 posts

Re: Hosting your static site with AWS S3, Route 53, and CloudFront for free

#12
post #11

Sorry, these are terrible instructions. It would be good if someone with more experience could take another stab at this.

Check out the Servless Stack guide. I used it to deploy my React app.

https://serverless-stack.com/chapters/deploy-the-frontend.ht...

Re: Hosting your static site with AWS S3, Route 53, and CloudFront for free

#13
post #5

If it's low bandwidth and you have your own ip address you could also host on your own internet connection.

Ignoring the party that is keeping your server up etc, don't most ISPs block 80/443?

I think that depends highly on which country you are in, I've never experienced this in Denmark before

EDIT: and I've used pretty much all the ISPs we have around

Re: Hosting your static site with AWS S3, Route 53, and CloudFront for free

#14
post #2

Or just use Netlify or Github pages that also do that for free now and are as simple as pushing to your linked repository.

I'm using Firebase hosting right now and it's super easy. Connected my own domain and adding a cert is just a checkbox. They don't do the DNS though, but that part is pretty simple. Just register on namecheap and add some A records.

Re: Hosting your static site with AWS S3, Route 53, and CloudFront for free

#17

I liked CloudFront until I realized that getting DDoSed also DDoSes your wallet.

Geo Restrictions on the Cloudfront distribution and a WAF will go a long way in mitigating against abuse and unnecessary costs.

Which locations are you gonna restrict from using your website? Is that how you want the web to generally work?

WAF also doesn't seem to be free, where did you read that?

Re: Hosting your static site with AWS S3, Route 53, and CloudFront for free

#18
post #17

Earlier quoted context omitted.

Geo Restrictions on the Cloudfront distribution and a WAF will go a long way in mitigating against abuse and unnecessary costs.

Which locations are you gonna restrict from using your website? Is that how you want the web to generally work? WAF also doesn't seem to be free, where did you read that?

I never said WAF was free. Where did you read that?

Re: Hosting your static site with AWS S3, Route 53, and CloudFront for free

#20
This isn't really free - it's just free for first year until your free tier runs out. It's still super cheap though. I host several sites with this setup and never have a bill over $2 / month. Benefit of this setup over github pages / netlify / etc is it uses standard primitives and will always exist. I used to use Heroku to host several sites and had to go through a massive migration when they stopped offering a free tier.
Post reply on HN