slsenv
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

SLSENV

Load the contents of .env into serverless.yml (Serverless Component V2).

Install

$ npm i -g slsenv

Run

In project root folder which has .env and serverless.yml, run:

$ slsenv

Changes are write back to serverless.yml.

Config

Create .slsenvrc in project root folder

{
  "path": "inputs.functionConf.environment",
  "excludes": ["TENCENT_SECRET_ID", "TENCENT_SECRET_KEY"]
}
  • path: key path to environment variables
  • excludes: excluded .env variables

Dependents (0)

Package Sidebar

Install

npm i slsenv

Weekly Downloads

3

Version

0.1.2

License

MIT

Unpacked Size

7.6 kB

Total Files

4

Last publish

Collaborators

  • qszhu