devopsing.dev

This site: Hugo on a private S3 bucket behind CloudFront with a custom domain, provisioned by Terraform and shipped by GitHub Actions.

Status
Live
CI/CD
GitHub Actions: plan on PR, apply + deploy on merge (OIDC)
Cost
< $0.10/month
Stack
  • S3
  • CloudFront
  • CloudFront Functions
  • ACM
  • Cloudflare DNS
  • Terraform
  • GitHub Actions
  • Hugo
Architecture diagram coming soon

Cloudflare DNS → CloudFront (ACM certificate, TLS 1.2+, HTTP/3) → private S3 bucket via Origin Access Control. A CloudFront Function maps /path/ to /path/index.html; missing pages return a custom 404.

Key decisions

CI/CD

Problems I hit

What’s next