serverless-google-cloudfunctions: Environment variables are not supported
Environment vars (through environment under both provider and in the actual function declaration in serverless.yml doesn’t seem to be supported. Furthermore, there isn’t even a warning about it. As someone pretty much forced to deploy something on GCF as opposed to AWS Lamda this is rather confusing and an obvious feature to have. Is there somewhere I can find documentation about this?
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 16 (4 by maintainers)
It looks like environment variables are a beta feature in Google’s API now, so adding this feature shouldn’t be too hard. It would be very similar to how I added labels (#95)
Where’s the docs?
I mean how far away is this feature?? 😦
I created a pull request that adds environment variables 2 weeks ago: #117
@nethunter thanks. It works. I made a sample for passing environment variables:
.env=>serverless.yml=>cloud functionshttps://github.com/mrdulin/nodejs-serverless-framework/tree/master