DNS
Route 53 points both portfolio domains to the same CloudFront distribution using A and AAAA alias records.
AWS Architecture
CloudFront serves bryanweizeang.dev and www.bryanweizeang.dev over HTTPS. Origin Access Control lets the distribution read the private S3 origin.
Route 53 points both portfolio domains to the same CloudFront distribution using A and AAAA alias records.
CloudFront uses an ACM certificate created in us-east-1 because CloudFront is a global service.
The website bucket blocks public access and grants the CloudFront distribution read access through Origin Access Control.
The distribution uses an AWS WAF web ACL and serves a custom 404 page for missing content.
Serverless Contact Form
Exposes a public HTTPS endpoint for form submissions. Its CORS configuration allows browser requests from both portfolio domains.
Validates the form payload, applies basic spam handling, stores the submission, and calls SES without running a dedicated server.
Stores valid contact submissions with a message ID, timestamp, sender details, message content, source IP, and user agent for backup and review.
Sends email from the verified portfolio domain to the configured inbox, with the visitor email used as the reply-to address.
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
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
Stores HTML and hashed CSS and JavaScript for both domains. CloudFront serves files from this private origin.
The private, versioned bucket stores web release snapshots for rollback.
Receives S3 server access logs from the main website bucket and remains separate from website assets.
Release Workflow
CDK packages the contact handler and catalog reader separately and deploys them as content-hashed assets.
The release command uploads hashed assets before HTML, retains earlier assets for rollback, and invalidates changed HTML paths in CloudFront.