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: https://www.youtube.com/watch?v=sshXVtr29HU

► 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:
https://aws.amazon.com/s3/pricing/

Or use the calculator to estimate your AWS bill:
http://calculator.s3.amazonaws.com/index.html

► I want to read more!
Check out my detailed blog post on how to host a Jekyll powered blog on S3:
http://savjee.be/2013/02/howto-host-jekyll-blog-on-amazon-s3/

Want a free SSL certificate for your website? Check out my tutorial on Amazon Certificate Manager: https://www.youtube.com/watch?v=JbQbwum196g

► Code snippet
This is the bucket policy that I use for static website hosting:
https://gist.github.com/Savjee/b4b3a21d143a30e7dc07

► About me
Follow me on Twitter: https://twitter.com/xafke
Check out my blog: http://www.savjee.be
Like my Facebook page: https://www.facebook.com/savjee

31 thoughts on “Hosting a static website on Amazon S3 (AWS howto)

  1. very helpful in freeing myself from the GoDaddy all $ales and poor service. Forgot about the bucket policy you provided, final piece to get my site active.

  2. 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!

Leave a Reply

Your email address will not be published. Required fields are marked *