Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Cloud Functions
  • Comparison with other Yandex Cloud services
    • Overview
    • Function
    • Invoking a function
    • Asynchronous function invocation
    • Long-lived functions
    • Function termination notifications
    • Networking
    • Mounting external resources to a function file system
    • Builder
      • Overview
      • 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
    • Dead Letter Queue
    • Function logs
    • Backups
    • Quotas and limits
  • Tools
  • Pricing policy
  • Access management
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  • FAQ

In this article:

  • Roles required for the proper operation of a trigger for Data Streams
  • Format of the message from the trigger for Data Streams
  • Use cases
  • See also
  1. Concepts
  2. Trigger
  3. Trigger for Data Streams

Trigger for Data Streams that invokes a Cloud Functions function

Written by
Yandex Cloud
Updated at April 18, 2025
  • Roles required for the proper operation of a trigger for Data Streams
  • Format of the message from the trigger for Data Streams
  • Use cases
  • See also

Trigger for Data Streams calls a Cloud Functions function when data is sent to a stream.

A trigger for Data Streams needs service accounts to manage a stream and invoke a function. You can use the same service account for both operations.

For more information about creating a trigger for Data Streams, see Creating a trigger for Data Streams that invokes a Cloud Functions function.

Roles required for the proper operation of a trigger for Data StreamsRoles required for the proper operation of a trigger for Data Streams

  • To create a trigger, you need a permission for the service account under which the trigger runs the operation. This permission comes with the iam.serviceAccounts.user and editor roles or higher.
  • For the trigger to fire, service accounts need the following roles:
    • functions.functionInvoker for the function the trigger invokes.
    • yds.admin for the stream that invokes the trigger when data is sent there.

Format of the message from the trigger for Data StreamsFormat of the message from the trigger for Data Streams

The trigger for Data Streams accepts and sends messages in JSON format only.

Once the trigger fires, it will send a message with the messages array to the function:

{
   "messages":[
      {
         "key1":"value1"
      },
      {
         "key2":"value2"
      }
   ]
}

Use casesUse cases

  • Streaming Yandex Cloud Postbox events to Yandex Data Streams and analyzing them using Yandex DataLens

See alsoSee also

  • Trigger for Data Streams that invokes a Serverless Containers container
  • Trigger for Data Streams that sends messages to WebSocket connections

Was the article helpful?

Previous
Trigger for budgets
Next
Email trigger
© 2025 Direct Cursus Technology L.L.C.