Yandex Cloud
  • Services
  • Solutions
  • Why Yandex Cloud
  • Blog
  • Pricing
  • Documentation
  • Contact us
Get started
Language / Region
Yandex project
© 2023 Yandex.Cloud LLC
Yandex Serverless Containers
  • Comparison with other Yandex Cloud services
  • Getting started
  • Step-by-step instructions
  • Concepts
    • Overview
    • Container
    • Invoking a container
    • Networking
    • Runtime environments
    • Trigger
      • 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
    • Container logs
    • Backups
    • Quotas and limits
  • Practical guidelines
  • Access management
  • Pricing policy
  • Containers API reference
  • API Triggers reference
  • Questions and answers
  1. Concepts
  2. Trigger
  3. Trigger for Data Streams

Trigger for Data Streams that invokes a Serverless Containers container

Written by
Yandex Cloud
  • Roles required for the proper operation of a trigger for Data Streams
  • Format of the message from the trigger for Data Streams
  • See also

Trigger for Data Streams calls a Serverless Containers container when data is sent to a stream.

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

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

  • To create a trigger, you need a permission for a service account that runs the trigger executing the operation. This permission is included in the iam.serviceAccounts.user and editor roles and higher.
  • To run a trigger, service accounts need the following roles:
    • serverless.containers.invoker for the container that 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 Streams

After the trigger is activated, it sends a message to the container. The message format depends on the source and is an array of messages:

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

See also

  • Trigger for Data Streams that invokes a Cloud Functions function.

Was the article helpful?

Language / Region
Yandex project
© 2023 Yandex.Cloud LLC
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
  • See also