
Security News
TC39 Advances 11 Proposals for Math Precision, Binary APIs, and More
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
serverless-ini-env
Advanced tools
Nice serverless plugin to setup environment variables with ini file
npm install -D serverless-ini-env
or
serverless plugin install --name serverless-ini-env
Add the plugin to your serverless.yml
file:
plugins:
- serverless-ini-env
custom:
serverless-ini-env:
dev: "./your_configs/dev.ini"
prod: "./your_configs/prod.ini"
functions:
my_function_name_a:
handler: handler.a_func
my_function_name_b:
handler: handler.b_func
Note:
If you did not specify any configuration, plugins will consider root folder and stage options ex.
sls deploy --stage qa
-> ./qa.ini
sls deploy --stage dev
-> ./dev.ini
./your_configs/dev.ini
# will be available for both functions
MY_GLOBAL_VAR=DEV_VALUE
[my_function_name_a]
NAME="function A"
FOO=DEV_VALUE
[my_function_name_b]
NAME="function B"
BAR=DEV_VALUE
[my_function_name_a,my_function_name_b]
SHARED_VARS="function A and B"
./your_configs/prod.ini
# will be available for both functions
MY_GLOBAL_VAR=PROD_VALUE
[my_function_name_a]
NAME="function A"
FOO=PROD_VALUE
[my_function_name_b]
NAME="function B"
BAR=PROD_VALUE
[my_function_name_a,my_function_name_b]
SHARED_VARS="function A and B"
# Update all lambda environments
sls update-environments --stage prod
# Update a single function environments vars
sls update-environments function -f my_function_name_a --stage qa
Yes, thank you! This plugin is community-driven, most of its features are from different authors. Please update the docs and tests and add your name to the package.json file. We try to follow Airbnb's JavaScript Style Guide.
MIT
FAQs
Nice serverless plugin to setup environment variables with ini file
The npm package serverless-ini-env receives a total of 200 weekly downloads. As such, serverless-ini-env popularity was classified as not popular.
We found that serverless-ini-env 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
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.