You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Environment configuration example
./your_configs/dev.ini
# will be available for both functionsMY_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 functionsMY_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"
Usage and command line options
# 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
Contributing
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.
License
MIT
About
Nice serverless plugin to setup environment variables with ini file