serverless-plugin icon indicating copy to clipboard operation
serverless-plugin copied to clipboard

Update environment variable placement.

Open SyedAbbuTurab opened this issue 3 years ago • 2 comments

I'm working on a Serverless framework service along with the Yandex cloud platform. I tend to use the environment variables mostly and pass them while deployment. Basically, In the serverless.yml file provider section, we can provide the environment configuration but it's not working. Anyhow, I tried another possible way that is to assign the same environment variable to each function then it's working, It does cost me extra lines of code though!.

provider: name: yandex-cloud runtime: nodejs14

stage: ${self:custom.currentStage} environment: STAGE: ${opt: stage}

SyedAbbuTurab avatar Feb 03 '22 10:02 SyedAbbuTurab

Is there any update on this?

SyedAbbuTurab avatar Feb 20 '22 06:02 SyedAbbuTurab

Is there any update on this?

Not yet, sorry. Will take a look at this next week.

DavyJohnes avatar Feb 21 '22 11:02 DavyJohnes