{"id":21031915,"url":"https://github.com/agutoli/serverless-ini-env","last_synced_at":"2025-07-05T23:05:36.838Z","repository":{"id":47599153,"uuid":"167917747","full_name":"agutoli/serverless-ini-env","owner":"agutoli","description":"Nice serverless plugin to setup environment variables with ini file","archived":false,"fork":false,"pushed_at":"2021-08-22T17:34:48.000Z","size":21,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-24T15:27:09.023Z","etag":null,"topics":["aws","aws-lambda","ini","javascript","js","serverless","serverless-plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/agutoli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-28T07:26:28.000Z","updated_at":"2019-10-11T08:05:54.000Z","dependencies_parsed_at":"2022-09-10T13:42:05.007Z","dependency_job_id":null,"html_url":"https://github.com/agutoli/serverless-ini-env","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agutoli%2Fserverless-ini-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agutoli%2Fserverless-ini-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agutoli%2Fserverless-ini-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agutoli%2Fserverless-ini-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agutoli","download_url":"https://codeload.github.com/agutoli/serverless-ini-env/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243473652,"owners_count":20296591,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","aws-lambda","ini","javascript","js","serverless","serverless-plugin"],"created_at":"2024-11-19T12:38:39.780Z","updated_at":"2025-03-13T19:43:38.273Z","avatar_url":"https://github.com/agutoli.png","language":"JavaScript","readme":"# serverless-ini-env\n[![serverless](http://public.serverless.com/badges/v3.svg)](http://www.serverless.com)\n[![Issues](https://img.shields.io/github/issues/agutoli/serverless-ini-env.svg)](https://github.com/agutoli/serverless-ini-env/issues) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://www.npmjs.com/package/serverless-ini-env)\n[![NPM](https://img.shields.io/npm/v/serverless-ini-env.svg)](https://www.npmjs.com/package/serverless-ini-env)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](#contributing)\n\n## Install\n\n`npm install -D serverless-ini-env`\n\nor \n\n`serverless plugin install --name serverless-ini-env`\n\nAdd the plugin to your `serverless.yml` file:\n\n```yaml\nplugins:\n  - serverless-ini-env\n```\n\n## Serverless configuration\n```yaml\ncustom:\n  serverless-ini-env:\n    dev: \"./your_configs/dev.ini\"\n    prod: \"./your_configs/prod.ini\"\n\nfunctions:\n  my_function_name_a:\n    handler: handler.a_func\n  my_function_name_b:\n    handler: handler.b_func\n```\n\n`Note:` If you did not specify any configuration, plugins will consider root folder and stage options ex.\n\n`sls deploy --stage qa` -\u003e `./qa.ini`\n\n`sls deploy --stage dev` -\u003e `./dev.ini`\n\n## Environment configuration example\n\n`./your_configs/dev.ini`\n\n```ini\n# will be available for both functions\nMY_GLOBAL_VAR=DEV_VALUE\n\n[my_function_name_a]\n  NAME=\"function A\"\n  FOO=DEV_VALUE\n\n[my_function_name_b]\n  NAME=\"function B\"\n  BAR=DEV_VALUE\n\n[my_function_name_a,my_function_name_b]\n  SHARED_VARS=\"function A and B\"\n```\n\n`./your_configs/prod.ini`\n\n```ini\n# will be available for both functions\nMY_GLOBAL_VAR=PROD_VALUE\n\n[my_function_name_a]\n  NAME=\"function A\"\n  FOO=PROD_VALUE\n\n[my_function_name_b]\n  NAME=\"function B\"\n  BAR=PROD_VALUE\n\n[my_function_name_a,my_function_name_b]\n  SHARED_VARS=\"function A and B\"\n```\n\n# Usage and command line options\n```shell\n# Update all lambda environments\nsls update-environments --stage prod\n\n# Update a single function environments vars\nsls update-environments function -f my_function_name_a --stage qa\n```\n\n## Contributing\n\nYes, thank you!\nThis plugin is community-driven, most of its features are from different authors.\nPlease update the docs and tests and add your name to the package.json file.\nWe try to follow [Airbnb's JavaScript Style Guide](https://github.com/airbnb/javascript).\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagutoli%2Fserverless-ini-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagutoli%2Fserverless-ini-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagutoli%2Fserverless-ini-env/lists"}