S3 Website Overview Hands On
Okay, so letβs enable our bucket to be a website.
π Step 1: Upload an Additional File
- First, upload one more file to the bucket:
β
beach.jpg
Here is the image for you to download:

- Upload is successful.
β Now we have two files in the bucket.

βοΈ Step 2: Enable Static Website Hosting
- Go to the Properties tab.

- Scroll all the way down to find Static website hosting.

- Click on Edit.
In the configuration:
- Select: Enable static website hosting
- Choose: Host a static website

- Specify the Index document:
βindex.html
π This file will be the default/homepage of the website.
-
A warning will appear:
β If you want to enable this as a website endpoint, you must make all your content publicly readable. (V.V.IMP) -
Since we already did this in the previous lecture using a public bucket policy, weβre good.
-
Click Save.
π€ Step 3: Upload the Index File
-
Go back into the Objects tab.
-
Youβll notice the
index.html
file is still missing. -
Click Upload
- Add file:
index.html
(I presummed that you would be having your dummy codedindex.html
file) - Click Upload, then Close
- Add file:
-
Now
index.html
is uploaded.
π Step 4: Access Website via Endpoint
- Go back to Properties tab.
- Scroll down again to Static website hosting.
- Now you will see a Bucket website endpoint.
- Copy the URL and paste it in your browser.

β The page shows: βI love coffee. Hello world!β And displays
coffee.jpg
.

πΈ Step 5: Test Public URLs for Images
-
Right click on
coffee.jpg
and open it in a new tab. β You can access the public URL. -
Similarly, edit the url in the browser engine, and change
coffee.jpg
tobeach.jpg

β You can also see the beach image in a new tab.