This topic describes how to create a Tablestore trigger in the Function Compute console.

Create a trigger

  1. Log on to the Function Compute console.
  2. In the top navigation bar, select a region.
  3. In the left-side navigation pane, click Service/Function.
  4. Find the required function in the required service and click the name of the function.
  5. Click the Triggers tab. On the tab, click Create Trigger.
  6. In the Create Trigger dialog box, enter the related information. Then click OK.
    Parameter Settings
    Trigger Type Select Tablestore Trigger.
    Trigger Name Enter a name for the trigger.
    Version/Alias Enter a version or an alias for the trigger. Default value: LATEST. For more information, see Introduction to versions.
    Instance Select the target Tablestore instance from the drop-down list.
    Table Select the target table from the drop-down list.
    Role Operation
    1. Select Quick Authorize from the drop-down list.
    2. Click Authorize.
    3. On the page that appears, click Confirm Authorization Policy.

    The trigger role is AliyunTableStoreStreamNotificationRole.

What to do next

  1. Write a function
  2. Debug a function