Is it possible to set environment variables for GCF so that all of these parameters are visible to all functions? Or maybe there are some options for setting it up in the project area?
I just need a parameterization mechanism for all environments, such as local-dev, dev, stage, prod for functions. At the moment, I'm trying to configure a local data warehouse emulator and configure the development / debugging / testing workflow without writing statements inside the code. As I understand it, such things can be configured through env. veriables, but I don’t know how this will work on the target platform in the cloud.
In the future, deployment will be carried out by separation environments for separate cloud projects with their own databases and repositories, as well as env. variables.
Is this possible or is there some kind of solution for something like this?
source
share