Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
@resourcefulhumans/update-lambda-environment-config
Advanced tools
A helper script to update lambda environment variables with the current version and deploy time
This script takes the output of aws lambda get-function-configuration
and returns an updated environment configuration string with added version, deployTime and node environment from environment variables.
Given this is the configuration for your lambda:
{
"FunctionName": "myLambdaFunction",
…
"Environment": {
"Variables": {
"FOO": "BAR"
}
}
}
If called like this:
$ VERSION=1.2.3
$ DEPLOY_TIME=1234567890
$ NODE_ENV=production
$ VARS=`aws lambda get-function-configuration \
--function-name myLambdaFunction \
| ./node_modules/.bin/update-lambda-environment-config`
it sets $VARS
to this
FOO="BAR",VERSION="1.2.3",DEPLOY_TIME="1234567890",NODE_ENV="production"
which can be used for updating it via aws lambda update-function-configuration
:
aws lambda update-function-configuration \
--function-name "myLambdaFunction" \
--environment "Variables={$(VARS)}"
See it in action here.
FAQs
A helper script to update lambda environment variables with the current version and deploy time
The npm package @resourcefulhumans/update-lambda-environment-config receives a total of 0 weekly downloads. As such, @resourcefulhumans/update-lambda-environment-config popularity was classified as not popular.
We found that @resourcefulhumans/update-lambda-environment-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.