Tired of paying for a web host that serves ads and regret? Host your static site on AWS S3 and treat the Free Tier like a free trial that never ends. This guide walks you through naming the bucket, uploading files, granting public read access without turning your data into public art, pointing DNS, and adding CloudFront for HTTPS when you decide to look professional.
S3 is an object store that moonlights as a web server. It serves static HTML, CSS and assets directly from a website endpoint, with low cost bandwidth and decent performance. For small projects you will likely stay in the Free Tier, but keep an eye on requests and transfer unless you enjoy surprise invoices.
aws s3 sync ./site s3://example.com --acl public-read
This copies HTML, CSS and images to S3.{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::example.com/*"
}
]
}
There you go. You now have a lean static site on S3 that costs almost nothing and performs better than many paid hosts. Use aws s3 sync to push updates, add CloudFront for HTTPS and caching when you need it, and enjoy the smug satisfaction of running a site on the cloud without selling a kidney.
I know how you can get Azure Certified, Google Cloud Certified and AWS Certified. It's a cool certification exam simulator site called certificationexams.pro. Check it out, and tell them Cameron sent ya!
This is a dedicated watch page for a single video.