Updated on 2023-10-27 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 trigger. Perform the following procedure:

  1. On the fss_examples_dew page, choose Configuration > Triggers and click Create Trigger.
  2. Select Object Storage Service (OBS) for Trigger Type, and set the trigger information, as shown in Figure 1.

    Select bucket input_bucket.

    For Events, select Post and Put.

    Figure 1 Creating an OBS trigger

  3. Click OK.

    After the OBS trigger is created, when a file is uploaded or updated to bucket dew-bucket-input, an event is generated to trigger the function.