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