When I manually run gcloud app deploy
from Cloud Shell, I am able to deploy the application to App Engine and it works.
But when I try to do the same via Cloud Build, the build succeeds, but the application URL returns a 500 Error.
The Winston library tries to create a logs directory when the npm start script it run. Seems like the Service Account is unable to create that directory according to the Logs Explorer. This error does not appear when I deploy it through Cloud Shell.
What does the Cloud Build Service Account need?