Yogesh Lonkar

Tech

Cheap Static Hosting with AWS and Cloudflare

TL;DR Host static content on AWS S3/CloudFront and manage the domain on Cloudflare

I’ve been managing a couple of SPA’s for friends and family members for a few years now. Initially, I used the shared hosting service offered by a variety of Domain/ Hosting providers. It used to work fine, but I always thought why should I pay for shared hosted compute when I only just want to host a static website (without PHP). So I switched to AWS for simple hosting, typical website setup looks like