I am deploying a SpringBoot application to GAE and want to set some system properties to be used in my application.yml
file. Other cloud providers like Azure or Heroku allow me to define system properties for each application but I can't find out how to do this in GAE. I don't want the values in source control since they contain passwords.
What I want to do specifically:
- Add a system property
MONGODB_URI
somewhere on GAE - Reference it in
application.yml
like so:MONGODB_URI: ${MONGODB_URI}
This seems like a pretty standard use case to me but I can't find anything (satisfying) about it. These questions regard the same matter:
- Securely storing environment variables in GAE with app.yaml
- Set environment variables in GAE control panel
I understand I can create entities and access them through an api in the code. But it bothers me that I need to make code changes for a simple use case like this, and it should be possible to pass some secret environment properties to the container.