hosted target - get runtime config value in app.yaml file

How to get run time value based on the virtual environments in the app.yaml file.

For example:

runtime: node

env:

- name: credentials

valueRef:

name: Config

key: Credentials{} - there are multiple keys for different environments for ex, dev, test, qa, prod ,etc.. values would be Credentialsdev, Credentialstest, Credentialsqa, Credentialsprod etc..

How to get runtime Keys based on environments with condition? Any suggestions please?

0 1 65
1 REPLY 1

Hi Murugan,

There's no way within the app.yaml to switch based off of environment. This would either have to be a new section of your code (e.g switch which env var you ingest based off of which env your in) or a small change you make to your app.yaml on deployment to a new environment.