twilio-labs / serverless-toolkit

CLI tool to develop, debug and deploy Twilio Functions

Home Page:https://www.twilio.com/docs/labs/serverless-toolkit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Request: Dynamic Environment Variables

idcmp opened this issue · comments

commented

It'd be handy if environment variables could be adjusted without needing to redeploy everything.

Sometimes some functions have different "modes" I'd like them to run in. I don't want to rely on all the moving parts of making an external call to get the desired "mode", and would much rather just change an environment variable value.

Thank you so much for opening your first issue in this project! We'll try to get back to it as quickly as possible. While you are waiting...here's a random picture of a corgi (powered by dog.ceo)

picture of dog

commented

Looks like I can do this through twilio. Nevermind. Thanks for the cute puppy though :)

I'm not sure if this was the solution you came to, but the serverless plugin does give you access to change the env variables without a deploy using the twilio serverless:env:set command or through twilio-run with the command twilio-run env set.

commented

Yup! That's what I came up with.