Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
serverless-leo
Advanced tools
Serverless plugin. Deploy your leo bots and microservices using serverless.
npm install --save-dev serverless-leo
plugins:
- serverless-leo
custom:
stage: ${opt:stage, 'dev'}
dev:
# The name of your leo platform stack
leoStack: TestBus
test:
# The arn for the LeoInstallFunction lambda in your leo platform stack.
# This is an alternative to using the leoStack variable. EG: the bus and lambda are in different accounts.
leoRegister: arn:aws:lambda:us-east-1:123456:function:TestBus-LeoInstallFunction-2IMP25UOQ64G
functions:
hello:
handler: index.handler
events:
- leo: helloWorldTestQueue
world:
handler: index.handler
leoCron: 0 0 1 * * *
Use the standard serverless deploy
cli command to deploy your microservice. Optional -s or -stage parameter (standard serverless).
Requires the leo platform (bus). Step 2 in this guide: https://github.com/LeoPlatform/Leo#install-the-leo-platform-stack
Create a "bot" that will run when events are added to a queue. The events will be handled in order and only one lambda will handle events at a time.
hello:
handler: index.handler
events:
- leo: helloWorldTestQueue
hello:
handler: index.handler
events:
- leo:
queue: helloWorldTestQueue
name: helloBot
Create a "bot" that will run on a cron schedule. Only one lambda will run at any given time for a single bot.
world:
handler: index.handler
leoCron: 0 0 1 * * *
Handle different versions of bot by adding "botCount". This will create the number of bots specified and pass in "botNumber" into the event when the bot is ran.
world:
handler: index.handler
leoCron: 0 0 1 * * *
botCount: 4
This allows you to partition the queue, or change the configuration of the bot based on the value of the variable at run time.
FAQs
Serverless plugin for leo microservices
The npm package serverless-leo receives a total of 250 weekly downloads. As such, serverless-leo popularity was classified as not popular.
We found that serverless-leo demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers 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.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.