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. Locate the target function in the target service and click the function name.
  5. Click Triggers tab, and then click Create Trigger.
  6. Fulfill theCreate Trigger dialog box. and 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