nuǝɯ pǝɥsᴉꞁod mǝu
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

lambda_exec

1.0.3 • Public • Published

Important

- As of March 23, 2017, this is no longer needed because AWS already fixed this issue.

lambda_exec

lambda_exec allows you to run arbitrary binary executables on AWS Lambda 4.3+

Installation

Make sure that lambda_exec is inside your node_modules directory. Simply run:

npm install lambda_exec

Requirements

  • Binaries must be statically-linked as much as possible.
  • Put all your binaries inside the bin/ directory in your project directory.
  • In case your binary needs a shared library, put them inside bin/lib/.

Usage

'use strict';

const exec = require('lambda_exec').exec;

exports.handler = (event, context, callback) => {
    const cmd = 'echo Hello world!';
    const child = exec(cmd, (error) => {
        callback(error, 'Process complete!');
    });

    child.stdout.on('data', console.log);
    child.stderr.on('data', console.error);
};

Keywords

install

npm i lambda_exec

Downloadsweekly downloads

9

version

1.0.3

license

BSD-3-Clause

repository

githubgithub

last publish

collaborators

  • avatar