Enabling Compression for Lambda with AWS HTTP APIs

AWS HTTP APIs provides a new way to deploy REST-based APIs in AWS; providing a number of simplifications over the original REST APIs. However, when working with HTTP APIs we need to be aware of a few gotchas, such as what types to use for handler arguments. REST APIs also used to provide a way … Continue reading Enabling Compression for Lambda with AWS HTTP APIs

SES, Terraform and TypeScript Starter Project

Amazon Simple Email Service (SES) is a serverless service for sending emails from your applications. Like other AWS services, you can send emails with SES using the AWS REST API or the AWS SDKs. In this article, I want to look at how to send emails using SES with TypeScript specifically. tl;dr Fork the automatically … Continue reading SES, Terraform and TypeScript Starter Project

Deploy Serverless Next.js to AWS with Terraform 1.1

Terraform for better or worse is frequently updated with new versions. Many of these introduce incompatibilities with previous versions that require manual rework of Terraform definitions as well as require updating the local or remote Terraform state. I originally developed a solution for deploying Next.js to AWS using Terraform version 0.12 and that has been … Continue reading Deploy Serverless Next.js to AWS with Terraform 1.1

Serverless API with TypeScript on AWS

There are many ways to stand up a REST API. Nearly every programming language provides a way for us to develop a simple web server, such as Express.js, Go Gin or Python Flask. However, with the advent of serverless computing, we need to rethink some of the fundamentals of how APIs are developed and deployed. … Continue reading Serverless API with TypeScript on AWS

Next.js 11 Images with Static Export

Next.js 11 includes an exciting new feature for dynamically optimising images using the <Image> tag. Unfortunately, this new feature does not play nicely with exporting a static version of the Next.js app using yarn next export by its very design. This is not great for serverless deployments, which often will rely on uploading the static … Continue reading Next.js 11 Images with Static Export