Skip to main content

Command Palette

Search for a command to run...

How to Host a Static Website Using Amazon S3

Updated
3 min read
K
independent

Introduction

As part of my learning journey at Millennium Software Solutions, I learned how to host a static website using Amazon S3. Static website hosting is one of the easiest ways to publish a website on the internet using AWS.

In this article, I will explain the process in a simple and beginner-friendly way.


What is a Static Website?

A static website contains fixed web pages created using:

  • HTML

  • CSS

  • JavaScript

  • Images

Examples:

  • Portfolio Website

  • Personal Blog

  • Resume Website

  • Landing Page


What is Amazon S3?

Amazon S3 (Simple Storage Service) is a cloud storage service provided by AWS.

Using S3, we can:

✅ Store files

✅ Upload images

✅ Host static websites

✅ Access files from anywhere


Why Use Amazon S3?

  • Easy to use

  • Low cost

  • Fast website hosting

  • No server management

  • Highly available


Prerequisites

Before hosting a website:

  • AWS Account

  • HTML Website Files

  • Internet Connection


Step 1: Login to AWS

Open AWS Console and login to your account.


Step 2: Open Amazon S3

Search:

S3

Click:

Amazon S3

Step 3: Create a Bucket

  1. Click Create Bucket

  2. Enter bucket name

Example:

  1. Select Region

  2. Click Create Bucket


Step 4: Disable Block Public Access

Open Bucket Settings.

Uncheck:

Save changes.


Step 5: Upload Website Files

Open Bucket.

Click:

Select:

  • index.html

  • CSS files

  • Images

Click:


Step 6: Enable Static Website Hosting

Go to:

Properties

Find:

Static Website Hosting

Click:

Enter:

Index Document:
index.html

Save changes.


Step 7: Copy Website URL

AWS generates a website endpoint.

Example:

Open the URL in your browser.

Your website is now live


Benefits of Static Website Hosting

✅ Fast Loading

✅ Easy Deployment

✅ Low Cost

✅ Secure

✅ Beginner Friendly


What I Learned

Through this practical session at Millennium Software Solutions, I learned:

  • AWS Basics

  • Amazon S3

  • Static Website Hosting

  • Website Deployment

  • Cloud Storage Concepts


Conclusion

Amazon S3 makes website hosting simple and affordable. By creating a bucket, uploading website files, and enabling static website hosting, anyone can publish a website on the internet.

This practical exercise helped me understand AWS cloud services and website deployment in a real-world environment.

Tags

#AWS #AmazonS3 #StaticWebsiteHosting #CloudComputing #DevOps #AWSBeginner #LearningInPublic #Hashnode #WebHosting

2 views