Updated on 2025-07-10 GMT+08:00

Adding an Event Source

After creating the OBS buckets and function, add an event source to the function by creating an OBS Application Service trigger. Perform the following procedure:

  1. On the fss_examples_image_watermark page, click the Triggers tab and click Create Trigger.
  2. Select OBS Application Service for Trigger Type, and set the trigger information, as shown in Figure 1.

    • Trigger Name: Customize a trigger name.
    • Bucket Name: Select bucket-input-fg created in Creating OBS Buckets.
    • Event Type: Select Create or override bucket objects via UI or Put request or Create or override bucket objects via Post request.
      Figure 1 Creating an OBS Application Service trigger

  3. Click OK.

    After the trigger is created, when an image is uploaded or updated to bucket bucket-input-fg, an event is generated to trigger the function.