[REQUIRED] Version info
node: 16
firebase-functions: 4.0.1
firebase-tools: 11.15.0
firebase-admin: n/a
[REQUIRED] Test case
https://github.com/akauppi/cfv2-deploy-311022
[REQUIRED] Steps to reproduce
You will need:
- A Firebase project created, with Cloud Functions enabled
- Docker running
Follow the instructions in the above repo's README.md and PROBLEM-2.md, to reproduce.
[REQUIRED] Expected behavior
I am able to deploy a Firebase "v2" scheduled function, to any Firebase region.
[REQUIRED] Actual behavior
On europe-west2 (at least), deployment succeeds.
On europe-north1 and europe-west4, I get:
HTTP Error: 403, The principal (user or service account) lacks IAM permission "cloudscheduler.jobs.update" for the resource "projects/abc-3011/locations/europe-west4/jobs/firebase-schedule-abc-europe-west4" (or the resource may not exist).
Were you able to successfully deploy your functions?
Yes, but only to europe-west2.