-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Closed
Copy link
Labels
Description
[REQUIRED] Environment info
Deployment via Ubuntu npm install -g [email protected]
(this version was released yesterday)
[REQUIRED] Test case
Deployment fails when using a function leveraging the event type of google.cloud.storage.object.v1.finalized
[REQUIRED] Steps to reproduce
- Deploy system with an
onObjectFinalized()
vianpm run firebase-deploy
const mediaStorageUploadTrigger = onObjectFinalized(
{
minInstances: 2,
maxInstances: 10,
timeoutSeconds: 60,
memory: '256MiB',
bucket: '**'
},
async () => {
return { success: true }
}
);
- Notice deployment error:
Error: Error: storage event trigger is missing bucket filter: {
"eventType": "google.cloud.storage.object.v1.finalized",
"retry": false,
"eventFilters": {
"resource": "***"
}
}
- Change firebase-tools version to previous:
npm install -g [email protected]
- Run
npm run firebase-deploy
- Deployment successful
[REQUIRED] Expected behavior
Deployment is successful with the new firebase-tools version
[REQUIRED] Actual behavior
Error: Error: storage event trigger is missing bucket filter: {
"eventType": "google.cloud.storage.object.v1.finalized",
"retry": false,
"eventFilters": {
"resource": "***"
}
}