Yandex Cloud
Documentation
PresentationContact UsTry it for free
© 2026 Direct Cursus Technology L.L.C.
Yandex Serverless Containers
  • Comparing with other Yandex Cloud services
    • Overview
    • Container
    • Invoking a container
    • Asynchronous container invocation
    • Runtime
    • Networking
    • Mounting external resources to a container file system
    • Long-lived containers
    • Container termination notifications
      • Overview
      • Timer
      • Trigger for Message Queue
      • Trigger for Object Storage
      • Trigger for Container Registry
      • Trigger for Yandex Cloud Logging
      • Trigger for budgets
      • Trigger for Data Streams
      • Email trigger
      • Telegram Trigger
    • Dead Letter Queue
    • Container logs
    • Backups
    • Quotas and limits
  • Access management
  • Tools
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes
  • FAQ

In this article:

  • Events for setting up a trigger
  • Filtering events by object
  • Roles required for the proper operation of a trigger for Object Storage
  • Object Storage trigger message format
  • Useful links
  1. Concepts
  2. Trigger
  3. Trigger for Object Storage

Trigger for Object Storage that invokes a Serverless Containers container

Written by
Yandex Cloud
Updated at September 30, 2026
View as Markdown
  • Events for setting up a trigger
    • Filtering events by object
  • Roles required for the proper operation of a trigger for Object Storage
  • Object Storage trigger message format
  • Useful links

A trigger for Object Storage runs a Serverless Containers container when a specific event occurs with a Object Storage object. The trigger must be in the same cloud as the bucket whose events it is subscribed to.

A trigger for Object Storage needs a service account to invoke the container.

For more information about creating a trigger for Object Storage, see Creating a trigger for Object Storage that invokes a container from Serverless Containers.

Events for setting up a triggerEvents for setting up a trigger

Events with bucket objects that can be tracked using a trigger:

  • Creating an object
  • Editing an object ACL
  • Deleting an object

Filtering events by objectFiltering events by object

Events are filtered using prefixes and suffixes for an object key.

  • The prefix is a part at the beginning of the object key.
  • The suffix is a part at the end of the object key.

Prefixes and suffixes can be of any length. When using a prefix and a suffix at the same time, filtering is based on the logical AND: for the trigger to fire, the object key must match both the prefix and the suffix.

Roles required for the proper operation of a trigger for Object StorageRoles required for the proper operation of a trigger for Object Storage

  • 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.
  • To use a trigger, the service account needs the serverless.containers.invoker role for the folder with the container the trigger will invoke.

Learn more about access management here.

Object Storage trigger message formatObject Storage trigger message format

After the trigger is activated, it sends the following message to the container:

{
  "messages": [
    {
      "event_metadata": {
        "event_id": "bb1dd06d-a82c-49b4-af98-d8e0********",
        "event_type": "yandex.cloud.events.storage.ObjectDelete",
        "created_at": "2019-12-19T14:17:47.847365Z",
        "tracing_context": {
          "trace_id": "dd52ace7********",
          "span_id": "",
          "parent_span_id": ""
        },
        "cloud_id": "b1gvlrnlei4l********",
        "folder_id": "b1g88tflru0e********"
      },
      "details": {
        "bucket_id": "s3-for-trigger",
        "object_id": "dev/0_15a775_972dbde4_orig12.jpg"
      }
    }
  ]
}

Useful linksUseful links

  • Trigger for Object Storage that invokes a Cloud Functions function
  • Trigger for Object Storage that sends messages to WebSocket connections

Was the article helpful?

Previous
Trigger for Message Queue
Next
Trigger for Container Registry
© 2026 Direct Cursus Technology L.L.C.