New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@gidw/aws-lambda-deploy

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gidw/aws-lambda-deploy

Helper module for deploying AWS Lambda functions in Node.js.

  • 1.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

aws-lambda-deploy

Usage

gald [command] [option]

There are 3 commands available

gald init
gald test
gald deploy

Commands

init

Create (missing) configuration files that provide information to the module about the AWS Lambda function.

After running init you should consider adding lambda-secrets.json to your .gitignore.

The Handler property consists of the module name and the function name.

For example a file handler.js with:

exports.myHandler = function () {};

The resulting Handler property looks like this:

"Handler": "handler.myHandler"
test

Execute all defined tests in lambda-test.json or a different JSON file.

gald test [optional json file]
deploy

Deploys the Lambda function to AWS Lambda. In case the Lambda function does not exist or the configuration has been changed, the user will be notified.

Deploy looks for the archive defined in lambda-config.json under the property archiveName. Your build system will have to provide a zip file with the necessary components for the AWS Lambda function.

For example, have a build script that looks like this:

zip -r -9 archive.zip handler.js

If your AWS Lambda function depends on other packages, make sure to include the node_modules folder, with the dependencies installed, in your zip file.

Keywords

FAQs

Package last updated on 30 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc