Skip to content

version 13.19.0 Deployment Error: storage event trigger is missing bucket filter #7726

@codin-play

Description

@codin-play

[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

  1. Deploy system with an onObjectFinalized() via npm run firebase-deploy
const mediaStorageUploadTrigger = onObjectFinalized(
  {
    minInstances: 2,
    maxInstances: 10,
    timeoutSeconds: 60,
    memory: '256MiB',
    bucket: '**'
  },
  async () => {
    return { success: true }
  }
);
  1. Notice deployment error:
Error: Error: storage event trigger is missing bucket filter: {
  "eventType": "google.cloud.storage.object.v1.finalized",
  "retry": false,
  "eventFilters": {
    "resource": "***"
  }
}
  1. Change firebase-tools version to previous: npm install -g [email protected]
  2. Run npm run firebase-deploy
  3. 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": "***"
  }
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions