Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
serverless-develop
Advanced tools
Deploy your functions to AWS Lambda as you code and get realtime feedback.
Right now, unpolished PoC.
Iterating with Serverless Framework is slow.
Plugins like serverless-offline or emulator try to solve that problem by Emulating AWS Lambda environment locally. That solution is far from perfect because of different container, different environment, different IAM roles etc. etc. - Inconsistency.
This plugin, instead of running Lambdas offline, deploys your code to AWS Lambda as you type, in realtime. Welcome back to 2000's, where PHP FTP deployments were made every time CMD+S
was hit.
npm install serverless-develop --save
serverless-develop
to your serverless.yml
plugins
section:plugins:
- serverless-develop
serverless develop
serverless-develop
can be configured by changing following variables in serverless.yml
file.
custom:
develop:
middleware:
- npm run build # Runs `npm run build` before packaging
buildPath: build # Packages files from `build` directory
sourcePath: src # Points to source files directory
changeInterval: 0.2 # Specifies max amount of seconds between deployments
verbose: true # Adds much more information what happens under the hood
First, plugin builds individual artifacts, one for each function. Then, once a change is applied, plugin checks which functions are affected. Then it patches archives located in .serverless
directory and re-deploys them to AWS Lambda without updating CloudFormation or performing checks.
Heavily inspired by @keithwhor's article and @mthenw thoughts.
FAQs
Deploy your functions to AWS Lambda as you code.
The npm package serverless-develop receives a total of 2 weekly downloads. As such, serverless-develop popularity was classified as not popular.
We found that serverless-develop demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.