Vora
Vora

Reputation: 347

Getting error while enabling the Google Cloud Build API for my projects?

Before a few days i got mail.

Enable the Cloud Build API for your projects before April 20, 2020, to ensure Cloud Function is built and deployed correctly.

  1. Access the Cloud Build API link in the Cloud Console.
  2. Select your project from the drop-down menu.
  3. Click Continue to enable the Cloud Build API for the project. A box will appear in the lower-left corner to confirm the API is enabled.

After click i getting following error for some permission

This API cannot be enabled at the moment. You may lack appropriate permissions. 

Error Image.

So, which type of permission required i need to enable this service ?

Upvotes: 8

Views: 10090

Answers (2)

Michael Nelles
Michael Nelles

Reputation: 5992

The error I was getting


This API cannot be enabled at the moment. You may lack appropriate permissions.


The issue for me was I have multiple google / gmail accounts and when I changed deploy location I had to logout and then log back in:

firebase logout

and then log back in

firebase login

This was followed by opening browser and then selecting the appropriate google user to deploy application with.

Upvotes: 1

Maximus Macdonald
Maximus Macdonald

Reputation: 171

The specific permissions that a user needs to enable APIs for a GCP project are:

  • serviceusage.services.enable

  • servicemanagement.services.bind

If you are already the owner of your project, you shouldn't have to add the roles/servicemanagement.serviceConsumer role to your account to enable an API.

You also need to enable billing on the project before you can enable new APIs.

Upvotes: 9

Related Questions