Skip to content

zoph-io/aws-internal-static-web-hosting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🏰 AWS Internal Static Web Hosting

🧠 Rationale

When considering hosting a static website on AWS, the go-to solution often involves combining CloudFront with S3. However, if your project entails stringent privacy requirements and is intended solely for internal users, configuring CloudFront with these constraints can be both complex and challenging.

This blueprint provides a detailed example of hosting a static website internally on AWS, utilizing an Internal Application Load Balancer (ALB), an S3 VPC Endpoint Interface, and a Private S3 Bucket. This setup ensures enhanced privacy and internal access control.

You are encouraged to tailor this blueprint to fit your specific requirements.

Additionally, contributions through pull requests for further improvements are always welcome.

📋 Requirements

  1. Route53 Hosted Domain
  2. ACM Certificate
  3. VPC with Private Subnets

📐 Architecture

Architecture Diagram

⌨️ Usage

First, you will need to adapt the parameters in the Makefile.

Then, run the following command:

$ make deploy

🖌️ Static Website

You will have to deploy your static website into the created S3 bucket that is named with your DomainName variable. Done ✅.

✋ CleanUp

$ make tear-down

👨‍💻 Credits

🤔 Inspiration