Deploying Gen2 Function in GCP console with Firestore Trigger does not work with Wildcard.
Basic Database setup:
Trigger Configuration:
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.