Security News
Highlights from the 2024 Rails Community Survey
A record 2,709 developers participated in the 2024 Ruby on Rails Community Survey, revealing key tools, practices, and trends shaping the Rails ecosystem.
build-lambda-layer
Advanced tools
Build Lambda Layer is a small utility CLI for building Lambda Layers with control for AWS Node Lambda projects.
Build Lambda Layer takes all complexity out of building lambda layers.
By running:
build-layer my-lambda-layer
Build Lambda Layer will:
package.json
dependencies to your lambda layer, andBy running:
build-layer my-lambda-layer --files 'packages/**/package.json'
Build Lambda Layer will:
package/**/package.json
dependencies to your lambda layer, andBuild Lambda Layer supports specificity with ignore
and include
options.
Add a "lambdaLayer"
object to your package.json
file to configure ignore
and include
:
{
"buildLambda": {
"ignore": ["@types/aws-lambda"],
"include": {
"aws-lambda": "latest"
}
}
}
If you want to preserve your package.json
file, you can add a lambdaLayerrc
file to your project root:
{
"ignore": ["@types/aws-lambda"],
"include": {
"aws-lambda": "latest"
}
}
There is nothing stopping you from creating your own dependency object to install.
Add a <my-dependencies>.json
file to your project root:
{
"dependencies": {
"aws-lambda": "latest"
}
}
And run:
build-layer my-lambda-layer --files '<my-dependencies>.json'
pnpm install build-lambda-layer
Usage: build-layer [options] <dir>
Build Lambda Layer, Build node awesome lambda layers with controls 🕹
Arguments:
dir lambda layer directory to build to
Options:
--architectures [architectures...] architectures for deployment to AWS
--bucket <bucket> bucket to deploy to using AWS
-c, --config <config> path to a config file
--deploy deploy your lambda layer
-n, --name <name> lambda layer name
--debug enable debugging
-f, --files [files...] file glob pattern
-i, --ignore [ignore...] ignore glob pattern
--isTesting enable running fn tests w/o overwriting
--noZip don't zip lambda layer
-o, --output <output> output path
-r, --rootDir <rootDir> root directory to start search
--runner <runner> npm, pnpm, or yarn
--runtimes [runtimes...] runtimes for deployment to AWS
-t, --isTestingCLI enable CLI only testing
-h, --help display help for command
Gets you logging in your terminal
build-layer <dir> --debug
Just build you a directory
build-layer <dir> --noZip
Build everything with a runner besides npm
. Options are npm
, pnpm
, or yarn
build-layer <dir> --runner 'pnpm'
Assumes you're authenticated and have the AWS CLI
build-layer <dir> --bucket <bucket> --runtimes [runtimes...] --architectures [architectures...]
Made by @yowainwright for fun with passion! MIT, 2022
FAQs
Build node awesome lambda layers with controls 🕹
The npm package build-lambda-layer receives a total of 29 weekly downloads. As such, build-lambda-layer popularity was classified as not popular.
We found that build-lambda-layer 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.
Security News
A record 2,709 developers participated in the 2024 Ruby on Rails Community Survey, revealing key tools, practices, and trends shaping the Rails ecosystem.
Security News
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.