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.
After click i getting following error for some permission
This API cannot be enabled at the moment. You may lack appropriate permissions.
.
So, which type of permission required i need to enable this service ?
To enable the API, you must first create an Google Cloud Platform project. This project forms the basis for creating, enabling, and using all Google Cloud Platform (GCP) services, including managing APIs, enabling billing, adding and removing collaborators, and managing permissions. Open the Google Cloud Console.
Google APIs define a set of standard error payloads for error details, which you can find in google/rpc/error_details.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With