serverless-command-line-event-args

1.0.0 • Public • Published

serverless

Serverless CommandLine Event Args

Overview

This is a Serverless Framework plugin. Event JSON passes a Lambda function in commandline. Support to Serverless 1.0

Usage

Execute your Lambda function. Add -e '<JSON>' or --event '<JSON>'.

$ serverless invoke -f YourFunction --event '{"foo":"var"}'

it is displayed {"foo":"var"}.

module.exports.handler = function(event, context, cb) {
    console.log(event);
};

Install

Execute npm install in your Serverless project.

$ npm install serverless-command-line-event-args

add the plugin to your serverless.yml file

plugins:
  - serverless-command-line-event-args

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    1
  • 0.1.0
    0

Package Sidebar

Install

npm i serverless-command-line-event-args

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • horike37