Serverless

Create a Serverless Webapp on AWS: Greeetings

Introduction

This tutorial guides you through creating a serverless web application on AWS that displays “Hello World” greetings in different languages. The application uses AWS S3 for hosting the front-end, AWS Lambda and API Gateway for backend processing and DynamoDB to store the greetings. We’ll walk through each step, ensuring you verify the functionality at each stage.

Method

  1. Develop a simple web page.
  2. Set up S3 for static website hosting.
  3. Create a basic Lambda function.
  4. Create API Gateway as a trigger.
  5. Develop the web page to show the Lambda response.
    • Enable CORS
  6. Add a DynamoDB table.
  7. Update the Lambda function to read from the DynamoDB table.
    • Add IAM permissions

Prerequisites

  • An AWS account. If you don’t have one, sign up here.
  • Basic familiarity with the AWS Management Console, AWS CLI, Python, HTML, and JavaScript.

Step 1: Develop a Simple Web Page

  1. Create an index.html file with the following content:

    »

Create a Serverless Webapp on AWS: Contact Form

Introduction

This tutorial guides you through creating a serverless web application with a contact form on AWS. The application uses AWS S3 for hosting the front-end, AWS Lambda and API Gateway for backend processing and DynamoDB to store information. When contact information is entered in the form it will be saved in DynamoDB and an email is sent, using SES, as a notification. We’ll walk through each step, ensuring you verify the functionality at each stage.

»

Deploy Serverless Snake Game on AWS

Goal

Build and deploy a complete serverless application on AWS using only the AWS Management Console. You’ll create a fully functional Snake game with a high score leaderboard, demonstrating real-world serverless architecture patterns without Infrastructure as Code.

What you’ll learn:

  • How to manually configure AWS serverless services in the console
  • When to use DynamoDB Global Secondary Indexes for efficient queries
  • Best practices for Lambda function configuration and IAM permissions
  • How to build and secure REST APIs with API Gateway and CORS
  • Techniques for hosting static websites on S3 with dynamic API integration

Prerequisites

Before starting, ensure you have:

»