Google Cloud Platform doesn't describe how to deal with environmental variables in your app.yaml
.
Starting up with GCP and Google App Engine, I read about setting my config variables in app.yaml
which makes sense in a way, but I don't want to put my password/secrets/keys/etc in my GIT repository.
Presuming that @Google's engineers are smart enough to not want this either, I'd guess that the best practise would be to put app.yaml
in .gitignore
.
Executing gcloud app deploy
results in a perfectly working app. But it still it remains an unfinished issue to me and I strongly believe there should be a article somewhere that describes what the best practise is.
Can someone confirm that:
- putting
app.yaml
in.gitignore
, and then, - set my secrets in
app.yaml
, and then, - performing
gcloud app deploy
is the way to go?