Skip to main content

AWS Lambda Example

This example demonstrates deploying a serverless application to AWS using Lambda Functions, DynamoDB Tables, SQS Queues, and IAM Roles.

Features

  • Lambda Function: Serverless compute with Function URL
  • DynamoDB Table: NoSQL database with partition key
  • SQS Queue: Message queue for async processing
  • IAM Role: Execution role with appropriate permissions
  • ESBuild Bundle: Optimized TypeScript bundling

Project Setup

Key Features Explained

DynamoDB Table

Create a table with partition key:

IAM Role

Define the Lambda execution role:

ESBuild Bundle

Bundle your TypeScript code:

Function URL

Enable public HTTP access:

SQS Queue

Create a message queue:

Source Code

View the complete source code: examples/aws-app