mrserverless / serverless-golang

AWS Lambda Go functions using Serverless Framework and Python shim
Other
302 stars 21 forks source link

Passing lambda environment variables #35

Closed slotix closed 6 years ago

slotix commented 6 years ago

When creating lambda manually I can pass environment variables like that

aws lambda create-function --function-name hello ... --environment Variables="{VAR1=var1,VAR2=2,VAR3='0.5'}" ...

How to pass them using serverless deploy?

slotix commented 6 years ago

Please disregard this question. They should be listed in .env and have references in serverless.yml This way they can be passed to aws successfully.