Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Gen2 Function with EventArc Firestore trigger and wildcard not working

Deploying Gen2 Function in GCP console with Firestore Trigger does not work with Wildcard.

Basic Database setup:

Yo007_0-1718325671978.png

Yo007_1-1718325682830.png

Trigger Configuration:

Yo007_2-1718325709503.png

When using
Attribute value 2:
document equal
C_REGISTRY_000/D_ABCD/C_EFGH/D_IJKL
Function triggered by event on: //firestore.googleapis.com/projects/--------/databases/(default)

Attribute value 2:
document equal
C_REGISTRY_000/D_ABCD/C_EFGH/D_MNOP
Function triggered by event on: //firestore.googleapis.com/projects/--------/databases/(default)

Below are all the tested values I have tried for
Attribute value 2:
document equal
C_REGISTRY_000/{test}
C_REGISTRY_000/{test=**}
C_REGISTRY_000/D_ABCD/C_EFGH/{test}
C_REGISTRY_000/D_ABCD/C_EFGH/{test=*}
C_REGISTRY_000/D_ABCD/C_EFGH/{test=**}

C_REGISTRY_000/D_ABCD/C_EFGH/{*}
C_REGISTRY_000/D_ABCD/C_EFGH/{**}
but none of them trigger the function.
Anyone with an idea ?

I have already read and double checked:
https://cloud.google.com/functions/docs/calling/cloud-firestore
https://cloud.google.com/datastore/docs/extend-with-functions-2nd-gen
https://cloud.google.com/eventarc/docs/issues?hl=en

  • users/{user=**}: valid trigger.
    Monitors all user documents and any documents in subcollections under each user document such as
    /users/userID/address/home or /users/userID/phone/work.

  • users/{username}: valid trigger. Monitors all user documents. Wildcards are used to monitor all documents in the collection.

0 0 277
0 REPLIES 0