Contact Form — High Level Overview
Modern Serverless Setup for Portfolio Contact form
Summary
This project implements a lightweight, serverless contact form for my portfolio site. It uses Google reCAPTCHA (server-side verification), AWS API Gateway, Lambda, and SES to deliver messages securely and efficiently.
Why this approach?
- Low cost: Pay-per-use pricing keeps running costs near zero for low-to-medium traffic.
- Auto-scaling: API Gateway and Lambda scale automatically with traffic.
- Low maintenance: No servers to patch or manage.
- Security-first: Server-side reCAPTCHA verification, IAM permissions, and CORS controls.
- Fast to iterate: Small Lambda function and managed services speed development and deployment.
How it works
- The frontend loads the reCAPTCHA widget and posts form data + token to
POST /contact on API Gateway.
- API Gateway applies throttling; if allowed it invokes the Lambda.
- Lambda verifies the token with Google siteverify, validates input, and on success sends an email via SES.
For full architecture and details (diagram, payload examples, CLI hints) please do not hesitate to reach out.