Search code examples
google-cloud-platformgoogle-cloud-build

What has happened to my default cloudbuild account in GCP


I have created a build trigger to build a cloud function from a BitBucket repository when the main branch is pushed. The trigger fires, but the build fails due to lack of permissions for creating the function itself.

I want to update the service account to give it the required permissions but I have run into an issue.

The cloud build details say that it was executed using the expected service account

{project number}@cloudbuild.gserviceaccount.com

but when I go to "IAM & Admin > IAM" no such service account is listed

I am the owner of the GCP project, so if it exists I should see it.

How might I go about fixing the problem?


Solution

  • Because the account doesn't belong to your project. You have to check Include Google-provided role grants.

    In fact, this is well documented so check the docs first.