GoogleCloudPlatform / cloud-code-vscode

Cloud Code for Visual Studio Code: Issues, Documentation and more
Other
412 stars 110 forks source link

Cloud Functions - setting runtime/secret variables in launch.json #678

Open craigmckeever-sky opened 1 year ago

craigmckeever-sky commented 1 year ago

Looking to be able to deploy cloud functions but unable to pass in runtime variables or secret variables from launch.json. image

Being able to set these variables through the launch.json as would be nice to be able to set every param that exists on the frontend.

 "env": {
                "runtime-vars": {  "CLI_ENV": "dev"
                                          }
                "secret-vars": "xxxx"
           }

I'm able to do this manually with shell scripts but looking to move to cloud code if I'm able to do so :)

davidponder commented 1 year ago

Hi @craigmckeever-sky !

Thanks for the suggestion! I've added this as a feature request for our team to take a look at for future work.

Thanks again!

arfsyed commented 1 year ago

Hi @davidponder , Any update here? Was this feature added?

duizendstra commented 5 months ago

Ran into the same issue, any update or workaround?

tve commented 4 months ago

ditto