Some time ago I remember receiving an email from Google announcing that projects deployed to App Engine (even via the gcloud tool
) will use the Cloud Build
service during deployment time. I didn't really take too much notice of that as it wasn't stressed in the email so didn't bother setting anything up, then my deployments started to fail with this error...
Checking the build log (linked to in the error message from gcloud) gave me a bit more information...
From the log it was quite obvious what I didn't do, yes I should have set up all the account permissions when I received that email from Google! Anyway this page details the process - Setting service account permissions
and also this one - Deploying to App Engine
As expected my Cloud Build settings had everything disabled (which is the default)...
I Enabled the Cloud Functions service, which prompted me to enable Service Accounts too. I also enabled App Engine.
Once all of that was done, I tried deploying my app again...and it worked!
Hope you found this post useful...
...so please read on! I love writing articles that provide beneficial information,
tips and examples to my readers. All information on my blog is provided free of
charge and I encourage you to share it as you wish. There is a small favour I ask in return however -
engage in comments below, provide feedback, and if you see mistakes let me know.
If you want to show additional support and help me pay for web hosting and
domain name registration,
donations, no matter how small, are always welcome!
Use of any information contained in this blog post/article is subject to this disclaimer
Other posts you may like...