You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
there are three steps to give the appropriate permissions so one can start a task from a Firebase Function. I'm trying to follow the 2nd gen version.
I created everything, but I'm lost in the second step in this IAM Policy section, namely:
Please follow Google Cloud IAM documentation to add App Engine default service account as user of App Engine default service account.
I tried to do that, but it was impossible to figure out. One of the nice things about Firebase Functions is that you can get started with something without being a cloud expert, and I'm expecting a step-by-step guide here.
In the docs, it links to Service account impersonation, which seems impossible for me to figure out without wrapping my head around many technologies...
I believe this is a major gap in documentation here. Could you provide what exactly we need to do in this example to simply have this long running task execute?
Is it easier in 1st gen? If so I'll try that. But it has the same docs about permissions so I doubt that. Please help!
The text was updated successfully, but these errors were encountered:
What worked for me was to go to Cloud Functions in Google Cloud Console, select the task function that was created with onTaskDispatched, and give Cloud Functions Admin role to the Firebase Service Account. I hope this helps someone. This was a very easy thing to do and docs were unnecessarily cryptic. If this is too broad of a permission, it is upon the docs authors to clearly present what's needed.
Which sample?
taskqueues-backup-images IAM Policy
What is the issue with this sample's docs?
In https://firebase.google.com/docs/functions/task-functions?gen=2nd#iam_permissions and https://github.com/firebase/functions-samples/tree/main/Node/taskqueues-backup-images#iam-policy
there are three steps to give the appropriate permissions so one can start a task from a Firebase Function. I'm trying to follow the 2nd gen version.
I created everything, but I'm lost in the second step in this IAM Policy section, namely:
Please follow Google Cloud IAM documentation to add App Engine default service account as user of App Engine default service account.
I tried to do that, but it was impossible to figure out. One of the nice things about Firebase Functions is that you can get started with something without being a cloud expert, and I'm expecting a step-by-step guide here.
In the docs, it links to Service account impersonation, which seems impossible for me to figure out without wrapping my head around many technologies...
I believe this is a major gap in documentation here. Could you provide what exactly we need to do in this example to simply have this long running task execute?
Is it easier in 1st gen? If so I'll try that. But it has the same docs about permissions so I doubt that. Please help!
The text was updated successfully, but these errors were encountered: