Hosting a static site on Amazon S3 ( Part 1 )

Rahul Venati
2 min readOct 8, 2019

--

This article will be about hosting a static website using S3, Cloud Front and Route 53.

Setting up Hosting on S3 :

If you are new to amazon S3 check out this article to know what is Amazon S3.

  • Create an S3 bucket and upload all the website files that you want to host into the S3 bucket.
  • Make sure you keep the permissions to public for all the files.
  • Here in this example, I created a bucket s3site.hosting and uploaded a sample index file
  • Now navigate to properties and choose static site hosting to enable the bucket for static site hosting.

Now add your home page in the index document in our case it is index.html and if you have any error page add it under error document. In our example, we don't have any error document and now let us save this and enable static hosting.

Now navigate to the index file and after selecting the index file you can see an object URL that is static URL. In this example, this is our URL

https://s3.amazonaws.com/s3site.hosting/Index.html

In the next article let us add a custom domain to this and cloud front for the content delivery

--

--

Rahul Venati

EdTech Enthusiast | Learning and Blogging about New Tech