express-aws-lambda

0.1.1 • Public • Published

express-aws-lambda

This library is a express.js extension for AWS Lambda and ALB. You can run your web application for the express.js on AWS Lambda.

This is simillar to aws-serverless-express. But this implementation don't use a socket.

Getting Started

npm install express-aws-lambda
'use strict';

const express = require('express');
const app = express();

app.use(express.json());
app.use(function (req, res) {
    // You can access to lambda arguments
    console.log(req.source.event);
    console.log(req.source.context);

    res.json({
        message: "Hello world!"
    });
});

exports.handler = require('express-aws-lambda')(app);

You have to use a API Gateway or a Application Load Balancer with your lambda application when you want to use this module.

Readme

Keywords

none

Package Sidebar

Install

npm i express-aws-lambda

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

8.7 kB

Total Files

6

Last publish

Collaborators

  • hidekatsu-izuno