AWS Architecture

AWS hosting for the portfolio, project catalog, and contact form.

CloudFront serves bryanweizeang.dev and www.bryanweizeang.dev over HTTPS. Origin Access Control lets the distribution read the private S3 origin.

User over HTTPS
to
Route 53 DNS
alias
CloudFront Distribution
signed request
Origin Access Control
S3 REST endpoint
Private S3 Website Bucket

DNS

Route 53 points both portfolio domains to the same CloudFront distribution using A and AAAA alias records.

HTTPS

CloudFront uses an ACM certificate created in us-east-1 because CloudFront is a global service.

Private Origin

The website bucket blocks public access and grants the CloudFront distribution read access through Origin Access Control.

CloudFront

The distribution uses an AWS WAF web ACL and serves a custom 404 page for missing content.

Serverless Contact Form

The contact page uses a small serverless backend for message storage and delivery.

Contact Form
POST JSON
API Gateway HTTP API
invokes
Lambda Function
stores and notifies
DynamoDB and Amazon SES

API Gateway

Exposes a public HTTPS endpoint for form submissions. Its CORS configuration allows browser requests from both portfolio domains.

Lambda

Validates the form payload, applies basic spam handling, stores the submission, and calls SES without running a dedicated server.

DynamoDB

Stores valid contact submissions with a message ID, timestamp, sender details, message content, source IP, and user agent for backup and review.

Amazon SES

Sends email from the verified portfolio domain to the configured inbox, with the visitor email used as the reply-to address.

IAM Permissions

The Lambda execution role can write to the contact table and its CloudWatch log group. SES permissions require a fixed sender and recipient.

Project Catalog

Home and Projects refresh from the catalog API.

The web build generates the initial project cards from the repository catalog. The browser requests GET /projects from API Gateway and validates the response before replacing the cards. The generated HTML stays visible when JavaScript is disabled or the API is unavailable.

A separate Lambda reads the active catalog from DynamoDB. The publishing CLI validates the committed catalog and uses a dedicated IAM role to publish it.

Storage and Logging

Separate S3 buckets store the website, releases, and access logs.

Bucket 1

Main website bucket

Stores HTML and hashed CSS and JavaScript for both domains. CloudFront serves files from this private origin.

Bucket 2

Deployments bucket

The private, versioned bucket stores web release snapshots for rollback.

Bucket 3

Logging bucket

Receives S3 server access logs from the main website bucket and remains separate from website assets.

Release Workflow

CDK deploys the backend and the web release command publishes the site.

Lambda releases

CDK packages the contact handler and catalog reader separately and deploys them as content-hashed assets.

Web releases

The release command uploads hashed assets before HTML, retains earlier assets for rollback, and invalidates changed HTML paths in CloudFront.