Skip to content

Swaraj911/aws-s3-static-website-hosting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

🚀 AWS S3 Static Website Hosting

AWS Project Type Level


📌 Project Overview

This project demonstrates how to host a static website using Amazon S3.

The implementation covers:

  • Creating an S3 bucket
  • Uploading website files (HTML/CSS)
  • Enabling static website hosting
  • Configuring bucket policy for public access
  • Accessing the website via S3 endpoint

🏗️ Architecture

User → S3 Bucket → Static Website Hosting → Public URL


⚙️ Implementation Steps

🔹 Step 1: Create S3 Bucket

  • Created a bucket in AWS S3
  • Region: ap-south-1

Bucket Created


🔹 Step 2: Upload Website Files

  • Uploaded index.html file into the bucket

File Upload


🔹 Step 3: Enable Static Website Hosting

  • Enabled static hosting in Properties
  • Set index document: index.html

Static Hosting


🔹 Step 4: Configure Bucket Policy

  • Allowed public access using bucket policy

{ "Version": "2012-10-17", "Statement": [ { "Sid": "PublicReadGetObject", "Effect": "Allow", "Principal": "", "Action": "s3:GetObject", "Resource": "arn:aws:s3:::my-static-website-450/" } ] }

Bucket Policy


🔹 Step 5: Access Website

  • Opened the S3 static website endpoint
  • Website successfully hosted

Website Output


🌐 Final Output

Static website successfully deployed on AWS S3
Accessible via public endpoint
Fully functional frontend website


📚 Learning Outcomes

  • Understanding AWS S3 service
  • Static website hosting configuration
  • Bucket policy & public access control
  • Real-world cloud deployment basics

🚀 Future Enhancements

  • Integrate CloudFront (CDN)
  • Add custom domain (Route 53)
  • Enable HTTPS using SSL

👨‍💻 Author

Swaraj Sutradhar

About

Deployed a static website using AWS S3 with public access configuration, bucket policies, and static website hosting.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors