Your first steps in setting up Cloud Build for deploying Google Cloud Functions but running into yet another error? You’re not alone. With this blog post, I hope to put you on your way again.
Have you run into the following error?
“Permission ‘cloudfunctions.functions.get’ denied on resource […]”
Here’s what’s going on. Cloud Build needs a service account to access the resources you’re trying to deploy.
Option 1: Cloud Build Settings
By going to the Settings section of Cloud Build, you’ll be able to enable the Cloud Functions Developer role, which has the cloudfunctions.functions.get permission.
![](https://www.roelpeters.be/wp-content/uploads/2020/10/Screenshot-2020-10-21-at-21.20.49.png)
By enabling the status of this role, you will be able to deploy your function.
Option 2: IAM
You can also provide the service account with the proper role/permissions by visiting the IAM page and adding a new member to the project.
![](https://www.roelpeters.be/wp-content/uploads/2020/10/image-15.png)
Great success!
Thank you! It solved an issue with our github actions unable to deploy to our hosting.
Thing I don’t understand is why it suddenly stopped to work.
Too easy. Thanks!
of course like your website however you have to test the spelling on quite a few of
your posts. A number of them are rife with spelling problems and
I in finding it very troublesome to tell the reality however
I’ll definitely come again again.
My web page – Chloe
What’s up, yup this post is truly pleasant and I have learned lot of things from it regarding blogging.
thanks.
Feel free to surf to my website; situs terdaftar mahjong ways hari ini