Trying to create cloudbuild config for App Engine on Google cloud.
There are some encrypted environment variables that app needs. I did everything as this documentation says. When new Git commit has been pushed I'm always getting this error in cloudbuild log:
invalid build: failed to check access to "projects/$PROJECT_ID/locations/global/keyRings/my-key-ring/cryptoKeys/my-key"
Also, there is one more question. If I execute gcloud app deploy
command from my laptop app is being deployed and then fails to run because of absent environment variables. Is that correct that I need to define these variables along with command like
> MY_VAR1=a MY_VAR2=b gcloud app deploy
? And if that's correct why it's not working?
app.yaml
file following the link i posted before. Then just usegcloud app deploy
, the env variables will automatically propagate to the instance and be accessible by the app. as for the first question can you please post yourcloudbuild.yaml
file as well as full error message. Don't forget to remove sensible information from them first. – Emil Gi