So I want to triggering a cloud function based on addition of some file in a specific folder on my bucket. Now in gcp the trigger is set on entire bucket level. It means any file dumped into the bucket will trigger function. Is there any way to set a folder level trigger in cloud function ?
Also is this possible in gen2 of cloud function ?
This can be done using below workflow:
GCS Bucket Event >> Storage Notification >> PubSub >> Push Subscription >> Cloud Function. In your pubsub subscription, you can add the filter.
Regards,
Avikash