mvila / serverless-plugin-scripts

Add scripting capabilities to the Serverless Framework
123 stars 15 forks source link

Passing ENV variables #7

Closed AhmedNourJamalElDin closed 5 years ago

AhmedNourJamalElDin commented 5 years ago

Hello,

In my serverless.yml, there are many env variables that I want to pass to the command that I have defined which is:

scripts:
    commands:
      nosetests: nosetests

so if I run sls nosetests, it throws an exception stating that env vars are not defined.. How can I solve it? or is there any other solution to run nosetests with env variables?

Thanks :D

mvila commented 5 years ago

I am sorry, but it is not possible. See #6.