Problem:
I'm encountering an error when deploying Firebase Cloud Functions:
Error: <number>[email protected] not found
This error occurred after the default Compute Engine service account, <number>[email protected], was deleted more than 30 days ago.
I understand that after 30 days, service accounts are permanently deleted and cannot be recovered.
Attempts to Resolve:
Re-enabling Compute Engine API:
I re-enabled the Compute Engine API for my project
- But this did not restore the deleted service account.
Setting a New Default Service Account:
I attempted to set a new default Compute Engine service account through the Compute Engine metadata.
- However, the Firebase CLI continues to attempt to use the deleted <number>[email protected].
Questions:
How can I restore the <number>[email protected] account?
How can I configure the Firebase CLI to use a newly created or existing service account for Cloud Functions deployment instead of the deleted default?
Is there a way to override the default service account that the Firebase CLI is trying to use at the project level?
Relevant Information:
I am using Firebase deploy pipe from atlassian to deploy my cloud functions(Bitbucket)
In the pipe I am setting the KEY_FILE to use a specific service account for deployment
Yet the included key for the service account is not being used, still searching for the default compute engine
[2025-04-03T08:41:06.826Z] <<< [apiv2][body] GET https://us.gcr.io/v2/<project-id>/gcf/us-central1/tags/list {"child":[],"manifest":{},"name":"<project-id>/gcf/us-central1","tags":[]}
"message": "HTTP Error: 404, Service account projects/-/serviceAccounts/<uid>[email protected] was not found.",
Expected Behavior:
I expect the Firebase CLI to successfully deploy Cloud Functions using a valid, existing service account.
Actual Behavior:
The deployment fails with the " <number>[email protected] not found" error.
Additional Notes:
I suspect the Firebase CLI is hardcoded to use the original, now-deleted default service account. I'm looking for a way to explicitly specify a service account for Cloud Functions deployment.