Hosting a static website on Amazon S3 (AWS howto)
In this video I will show you how you can host a static website on Amazon S3.
Want to automate this process? You can use s3_website to automatically setup your bucket and deploy your website. Check out my tutorial on how to use s3_website:
► What is S3?
S3 stands for Simple Storage Service, an online storage service that allows you to store unlimited files in the cloud.
► Why would I use S3 instead of a regular host?
Regular shared hosting providers charge you a fixed amount every month. That’s regardless of the amount of files you store or the amount of visitors you get. Most cheaper webhosting companies also don’t cope well with high traffic websites. Suddenly got featured on Reddit or Hacker News? A regular hosting provider might suspend your account for all the traffic! With S3 you only pay for what you use and it’s highly scalable.
► What does it cost?
To give you an example of cost: when my blog receiver 1000 visitors per month I was paying just 6 cents to host it!
Check out more detailed S3 pricing here:
Or use the calculator to estimate your AWS bill:
► I want to read more!
Check out my detailed blog post on how to host a Jekyll powered blog on S3:
Want a free SSL certificate for your website? Check out my tutorial on Amazon Certificate Manager:
► Code snippet
This is the bucket policy that I use for static website hosting:
► About me
Follow me on Twitter:
Check out my blog:
Like my Facebook page:
where's the code again? cuz Im sure as hell its not in the description box
Thank you man
You're the man ✊ thank you!
Though the flow is a bit different with updates to the S3 dashboard, this was very helpful, over 4 years later! Thanks!
Don’t you need to setup a VPS or dedicated server or does the entire website run off this?
How do I get photos in my static website?
my json code is giving access denied error message.. kindly help
Why bother to block out the names of the buckets when you're going to expose them through your magnifying wipe?
2:51
I have bought my domain from godaddy. In that case how to host the site from AWS?
Hey, can i host my webapp written in html+node.js in the same way? Or do you know an other/better way?
can I also upload php files?
Thank you.
Hi this was short and precise. Thanks!
Could you please share the zip for your static html website too!
Did anybody notice the CSS didn't seem to work?
How to Create Domain. Please Help me
Thank you for the video 🙂
Thank you!
This guide is outdated, the S3 creation user journey is changed, and blocks policy edition by default.
That gave me a permission denied error that took me a while to debug.
The solution was to uncheck all the public access settings boxes – then edit the policy – then block new edits in the public access settings again!
Dab Dab Dab 😂
it says "Access denied" what have i done wrong?? please help:)
Thank so much Bro, THat's great
check out this guy's other videos too….. thanks me later
Thanks so much for the code snippet 🙂
can u please share the code snipets for the index,htl,404.html etc
Awesome!
This is great. Saved me a lot of grief. Thanks so much.
I'm having trouble it's saying invalid json
Your CSS file is not working here in S3 but it was working in your computer……
can i host my website for free
my website connects to Postgresql , is it static ? can it be hosted on s3.???
I have made the website using Django, having used html, css, js, popper.
Awesome vedio tutorial. Very helpful for the beginner
Thanks for the video, greatly recommend people watching for creating your website. Again, happy thanks even though its been years ago. Great job!
Awesome video, thank you for posting and sharing!
How would you update content after the website is created? I tried editing the index.html file and I still don't see my updates.
Very nicely explained. Thanks.Keep up the good work
Thank you so much!!! I have a final due tomorrow and I couldn't figure this out at all. You made it so easy to understand!
what if the index.html is in a folder in a bucket
Very simple and clear and straightforward. Thank you. 🙂
So the domain name url would be containing this".amazon.blablabla.."?
i have a domain name and i want to host a static website on same with minimal traffic like 100 visits per month , is aws s3 a good option
short and sweet/ Very good. So much easier than trying to plow through Amazon's thick documentation.
When an error occurs, Amazon S3 is not returning HTML error document.
error.html is loading as individal file,but not when there is an error