Closed bernardobelchior closed 5 years ago
interesting. I'll take a look.
noting this for reference and follow up https://github.com/serverless/serverless/pull/5988
I did face the same issue. I couldn't pass environment variables like that either, so it may be a problem with the framework itself.
https://github.com/serverless/serverless/pull/5988 was merged. Fix included in v1.41.0 of serverless, which should be out shortly.
🐛 Bug description
According to the
AWS - Invoke Local
page in the Serverless documentation, runningsls invoke local
should set theIS_LOCAL
environment variable. I have tried with a NodeJS lambda function and the variable is set, which leads me to believe that the problem comes from this package.🤔 Expected Behavior
The
IS_LOCAL
environment variable should be set.👟 Steps to reproduce
Having the serverless framework installed:
🌍 Your environment
serverless version: 1.40.0
rust-plugin version: 0.3.2
OS: Linux