Day 22 | AWS: How to put object in Bucket and using as Static Website.

In Todays blog, I have covered how to create a static website using S3 bucket.

Follow below mentioned steps.

  1. Login to your aws account and go to S3.

  2. click on the bucket which you have already created.

  1. You will get an option to upload the object, click on upload.

  1. Click on add file.

  1. then click on upload.

  1. After uploading the object close the page and go to to properties.

  1. Scroll to very bottom and you will see a option of Static website hosting, by default it is disabled.

  2. we have to make it enable, click on edit to change to enable.

  1. In this hosting type select Host a static website.

  1. Give the home page name and error document name if you want to set the error page.

  2. then click on save changes.

  1. Once you have made the changes again scroll down to very bottom to check for static website hosting.

  2. Here you will get an URL, which you have to use for opening the webpage.