Search code examples
google-app-enginegoogle-cloud-platformapp-engine-flexiblegoogle-app-engine-go

How to change environment variable of a Google App Engine Flex application and restart it, without redeploying


I have a Golang application deployed to Google App Engine Flex which has a lot of environment variables. Now and then, I need to change a couple of these environment variable to test my application. However, I could not find a way in GAE Flex Console, where I can change the variables and restart the app. Every time I need to change a variable, I have to do this in app.yaml and re-deploy the app, which is cumbersome and kills a lot of time.

Is there a way to change the environment variable of an application in GAE Flex console, without redeploying it? I used similar thing in Pivotal Cloud Foundry, which is quite neat. After all, that's why anybody keep environment variables in an app, which can be set to different values as and when required.

Any help or pointers is highly appreciated.

Update: No specific info on the asked topic is available in GCP docs or in SO. The following question in SO says its not possible: Google App Engine Flexible - environment variables


Solution

  • Unfortunately, no. You have to "gcloud app deploy" again whenever you make a change such as updating a environmental variable in the app.yaml.