Skip to content

tnhkoc/static-website-s3-cloudfront

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Static Website Hosting (S3 + CloudFront)

Global content delivery for static sites using Amazon's CDN.

🎯 Objective

Demonstrates the deployment of a high-performance static website hosted on S3 and distributed globally via Amazon CloudFront for low-latency access.

🚀 Key Features

  • Global Scalability: Uses CloudFront edge locations for fast content delivery.
  • Secure Access: Configures S3 bucket policies to allow access only via CloudFront (OAC/OAI).
  • Cost-Effective: Serverless hosting with no management overhead.

🏗️ Architecture

flowchart LR
  User((User)) -->|HTTPS| CF["CloudFront Distribution"]
  CF -->|Fetch| S3["S3 Static Bucket"]
Loading

📁 Project Structure

.
├── index.html      # Sample static website content
├── screenshots/    # AWS console configuration visuals
└── README.md       # Project documentation

🛠️ Tech Stack

  • Storage: Amazon S3
  • CDN: Amazon CloudFront
  • Security: OAC (Origin Access Control)

🔧 Setup & Implementation

1. S3 Bucket Setup

S3 Bucket Enable static website hosting. Static Hosting

2. Content Upload

Upload HTML

3. CloudFront & Security

Configure the distribution and restrict bucket access. CloudFront Config Bucket Policy

✅ Verification

Access the site via the CloudFront domain. Verified


Created by Tunahan Koç | LinkedIn | GitHub

About

This project demonstrates how to host a static website using Amazon S3 and distribute it globally using Amazon CloudFront.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages