Triggers in Cloud Functions. Overview
Written by
Updated at April 18, 2025
Triggers are criteria that automatically launch a Cloud Functions function when met. Triggers allow you to automate your work with other Yandex Cloud services, such as Yandex Object Storage, Yandex Message Queue, and Yandex Container Registry.
Note
The trigger is initiated within 5 minutes of being created.
The following types of triggers are available in Cloud Functions:
- Timer
- Trigger for Message Queue
- Trigger for Object Storage
- Trigger for Container Registry
- Trigger for Cloud Logging
- Trigger for Yandex IoT Core
- Trigger for budgets
- Trigger for Data Streams
- Email trigger
Specifics of functions invoked by triggers
Triggers call functions based on preset quotas and limits.
When a function is called by a trigger, the following specifics apply:
- Functions are always called by triggers with the
?integration=raw
query string parameter. More about function calls. - Before the trigger delivers messages to a function, it changes their format. Each trigger type uses a message format of its own. Read more about this in the relevant trigger description.
Use cases
- Writing data from a device into a database
- Streaming Yandex Cloud Postbox events to Yandex Data Streams and analyzing them using Yandex DataLens
- Configuring responses in Yandex Cloud Logging and Cloud Functions
- Writing load balancer logs to PostgreSQL
- Running computations on a schedule in DataSphere
- Creating a budget trigger that invokes a Cloud Functions function to stop VM instances
- Converting a video to a GIF in Python