After creating a function, you can create a trigger to associate the function with an event source. The associated event source will trigger the function synchronously or asynchronously as specified when an event is generated, and the event will be passed to the entry function as an input parameter upon triggering.
A function trigger can be created in the console or through Serverless Framework CLI.
For more information on what to enter for specific triggers, please see the applicable documents of triggers.
To cancel the creation process, click Cancel.
Before starting, please install the Serverless Framework CLI tool first as instructed in Installing Serverless Framework.
For local functions, please add the trigger description in the
serverless.yml file. Then, run the
sls deploy command on Serverless Framework CLI to add a trigger to the function.
A trigger can be created on a specified version of a function. An event of the trigger created in this manner will trigger the code on the specified version.
When creating such a trigger in the console, you can switch to the desired version by choosing it in the version list in the top-right corner on the function page and then create the trigger on the "Triggers" tab.
There are certain quota limits for the total number of triggers and number of triggers in each type for a function. Based on the function configuration, triggers created on different versions take up the quota of the function. To increase the limit, please contact us for application.