Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @mpoteat/aws-tools with all npm packages installed. Try it out:

@mpoteat/aws-tools lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("@mpoteat/aws-tools/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@mpoteat/aws-tools v1.1.1

Upload and invoke lambda functions from npm.

aws-tools

Upload and invoke lambda functions from npm.

Installation

npm i -g npx
npm i -D @mpoteat/aws-tools webpack webpack-cli

Add to package.json:

{
  "arn": "arn:aws:lambda:us-east-1:749275109232548:function:example"
}

Must have webpack configuration file defined. Must have ~/.aws/credentials.

Usage

To upload to AWS lambda:

npx upload

To invoke:

npx invoke
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free