Simple Serverless Site Boilerplate

A fairly common pattern used to deploy a serverless website on AWS is CloudFront + API Gateway + Lambdas. In this post, I’ll introduce my take as I realize that I have been using this pattern fairly regularly so I figured I would note it down here so I can copy-paste it for future use. The general approach is as follows: Static site contents deployed to an S3 bucket Backend deployed as lambdas, integrated with API Gateway Everything behind CloudFront for caching Tied together with AWS CDK Prerequisites You will need:...

June 25, 2023 · 8 min · 1529 words · Hans Song

Setting Up a Hugo Blog

I’ve been told by others that I should probably get things out of my mind into text, especially all of my learnings in my platform engineering type projects. Hence, I’ll be starting off by walking through how I set up this blog here, fairly straightforward although there were some issues with the hosting. It appears Hugo has some custom logic to make URLs pretty that does not work well with S3....

May 28, 2023 · 4 min · 756 words · Hans Song