Reputation: 347
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 ?
Upvotes: 8
Views: 10090
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
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