Static sites have become incredibly popular for portfolios, landing pages, and business websites. Services like S3 static hosting and CloudFront make deployment simple and cheap. However, there is one common challenge: handling user input.
A contact form seems straightforward until you remember that static sites have no server to process form submissions. You need somewhere to receive the data, validate it, and do something useful with it.
This article walks through building a serverless contact form backend using AWS services. By the end, you will have a solution that receives form submissions, sends email notifications, and costs nearly nothing to operate.
Architecture Overview
The serverless contact form backend uses three core AWS services working together.
Amazon API Gateway provides an HTTPS endpoint that your frontend form can call. It receives the POST request containing the form dat…


