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

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.




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

Search: