Succesfully deployed a firebase function, using a service account.
This was me trying not to use the ci token as it was flagged unsafe.
This gist contains the roles needed for your service account to deploy properly
It also contains a list of APIs that should must be enabled on Google Cloud Console.
Just know that I was very frustrated at this point I may have forgotten a few other roles or APIs. If so, may God help you as you figure out what was left out.
### Roles
- Artifact Registry Writer
- Cloud Functions Admin
- Cloud Run Viewer
- Firebase Authentication Admin
- Firebase Hosting Admin
- Service Account User### APIs
- Cloud Functions API
- Firebase Hosting API
- Cloud Logging API
- Service Usage API
- Firebase Management API
- Cloud Resource Manager API
- Identity Toolkit API
- Cloud Pub/Sub API
- Cloud Runtime Configuration API
- Cloud Firestore API
- Firebase Installations API
- Artifact Registry API
- Identity and Access Management (IAM) API
- Cloud Build APIIf anyone ever finds this gist, just know that I work this hard so you won't have to...
HERE LIES A HERO
Add the
Firebase Develop AdminRole if you want to update Firebase config with CLI.The
Firebase Develop Adminwill allow commands like this to work