The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

569532 (7) [Avatar] Offline
#1
When I run the local debugger using VS, I noticed that the environment variables specified in the Launch.json are not taken into consideration, instead [I think] serverless is fetching deployed variables.

(OS: windows)

Am I doing something wrong?

Here are few screenshots.

image

image
Yan Cui (73) [Avatar] Offline
#2
Hi, I think the problem was introduced by a recent update to the serverless framework.

So far the only workaround I have found is to temporarily comment out the environment variables in the serverless.yml whenever you need to invoke the function locally.

I'll report that as an issue in the serverless framework's repo and hopefully it'll be addressed in the future.
Yan Cui (73) [Avatar] Offline
#3
Turns out someone already reported it, keep an eye out for this issue