A step-by-step tutorial to deploying a static website on S3

Image for post

_Disclaimer: Instructions are up-to-date as of July 18th, 2020, but the AWS UI changes frequently so screenshots may not match what you see in your console._Why would you host a website on Amazon’s S3?**It’s cheap, easy, and fast.**While not suitable for a complex web app, it’s a great solution for anything simple like a directory of information.Let’s build a static website with an image to learn how it works!


Create the bucket

In the AWS console, navigate to S3 and create a bucket. You’ll need to give it a unique name and select a region.

Image for post

Ensure you make this public by unticking “Block all public access”.

Image for post

Then click “Next” until you can click “Create bucket”.Bucket created!


Enable static hosting

Click on the bucket you just created, click“Properties”, and then “Static website hosting”.

Image for post

Now select “Use this bucket to host a website”, type “index.html” and “error.html” into the below fields, and click “Save”.Also note the URL. This address is where our site will be hosted.

#aws #s3 #devops

Host a Website on S3 for (almost) Free
1.25 GEEK