blog/How this site is hosted

How this site is hosted

#aws #hosting #infrastructure #copilot #security

It’s not a ground-breaking first technical post, but I wanted to show you how the website is hosted. I needed a diagram to do it, so I taught the blog to draw with Mermaid. That became a small story of its own, so here I will stick to the infra and cover the drawing in a follow-up post.

The infra

The whole site is static, fronted by CloudFront over a private S3 bucket:

HTTPS

OAC, read-only

TLS

DNS alias

Client

CloudFront + security headers

Private S3 bucket

ACM cert

Route 53

Why did I choose this approach when there are cheaper options, like a plain VPS running Nginx? Because I know AWS really well; having spent well over a decade with it I know CloudFormation, CDK, Terraform, IAM and the rest, so setting this up was mostly muscle memory. That made it a perfect task for Copilot to draft, because I knew exactly what it should look like, I just didn’t need to type the IaC from scratch.

Pros of my approach

Cons of my approach

References

The AWS building blocks and docs behind this setup, if you want to dig deeper: