Project 1: Serverless Contact Form

AWS Lambda, DynamoDB & API Gateway Integration

Overview

This project demonstrates building a fully serverless contact form using AWS Lambda to handle submissions, API Gateway as the interface, and DynamoDB for storage. Ideal for static sites and scalable solutions.

Technologies Used

AWS Lambda Amazon API Gateway DynamoDB IAM Roles JavaScript Bootstrap Amazon S3 CloudFront CloudWatch

Step-by-Step with Screenshots

Step 1: Design the Contact Form
Contact Form UI Screenshot
Step 2: Create DynamoDB Table
API Gateway Setup Screenshot
Step 3: Write Lambda Function
  • Log in to AWS Console & open API Gateway.
  • Create a new REST API while creating lambda post and get attach role with permissions eg : DynamoDB full access for lambda to read and write.
  • POST Lambda — receives form data and stores it in DynamoDB with a unique ID .
  • GET Lambda — retrieves saved contact entries from DynamoDB.
  • Enable CORS for frontend access and assign the Lambda execution role the necessary DynamoDB permissions and test using sample payloads.
  • Deploy API to a stage (e.g, prod).
  • GET Lambda IMAGE Lambda Function Screenshot POST Lambda IMAGE Lambda Function Screenshot
    Step 4: Set Up API Gateway
    DynamoDB Table Screenshot
    Step 5: Deploy Frontend to S3
    Testing Screenshot
    Step 6: Deploy Frontend to S3 + CloudFront
    S3 and CloudFront Deployment Screenshot
    Step 7: (Optional) Configure a Custom Domain with Route 53
    Security and Monitoring Screenshot
    ← Back to Projects