serverless-examples / express-to-aws-lambda

Example for converting express to AWS Lambda
MIT License
28 stars 2 forks source link

Express to AWS Lambda

What is this?

This repo provides examples of AWS Lambda apps using the Serverless Framework and Apex Framework. It contains basic Nodejs apps that use Express framework and the equivalent app on AWS Lambda.

Why

AWS Lambda and other compute services (Google Cloud Functions, Azure Functions, ect), are playing an increasingly more important role in Application Architecture.

When I first looked at AWS Lambda it was very unclear to me how to structure and deploy a Lambda based application. I'm hoping these examples will help others that want to learn more about AWS Lambda.

Examples

Each branch has a different example. There are complete examples for the Serverless Framework and Apex Framework.

Serverless

Version 0.5

  1. Getting started - basic request and response - Part 1
  2. Request Templates - Part 2
  3. Response Templates - Part 3
  4. Authentication - Part 4
  5. Events - Part 5

Apex

  1. Getting started - basic request and response - Part 1
  2. Request Templates - Part 2
  3. Response Templates - Part 2
  4. Authentication - Part 3
  5. Events - Part 3

Reading

If you want to dig deeper into AWS Lambda and Serverless frameworks. I recommend reading: