Hosting a static website on Amazon S3 (AWS tutorials)

Hosting a static website on Amazon S3 (AWS tutorials)


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:


  1. would love to see a video showing connecting a domain name to your amazon s3 endpoint url with godaddy domain name :)

  2. It is easier and free to use Github as a host with no disadvantages, and if you want to automate it I have created a service that does everything from setting up a Hugo site, git init, GitHub pages configuration to cloning a theme and managing it all. Check out this video:

  3. Error : "Policy has invalid resource ", is displayed on saving policy , please help me how to get valid resource

  4. Thank you for making it so easy. Love it.
    Question? Kindly please explain how can deploy a php based no-database site on AWS and how much it cost to host a static site on AWS /month?
    – Thanks a bunch for sharing your insights on AWS :)