Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Terraform in Yandex Cloud
  • Getting started
  • Solution library
    • Overview
    • Release notes
          • api_gateway
          • function
          • function_iam_binding
          • function_trigger
          • iot_core_broker
          • iot_core_registry
          • logging_group
          • serverless_container
          • serverless_container_iam_binding

In this article:

  • Example usage
  • Arguments & Attributes Reference
  • Import
  1. Terraform reference
  2. Resources
  3. Cloud Logging
  4. Resources
  5. function_trigger

yandex_function_trigger (Resource)

Written by
Yandex Cloud
Updated at February 9, 2026
  • Example usage
  • Arguments & Attributes Reference
  • Import

Allows management of Yandex Cloud Functions Trigger.

Example usageExample usage

//
// Create a new Cloud Function Trigger.
//
resource "yandex_function_trigger" "my_trigger" {
  name        = "some_name"
  description = "any description"
  timer {
    cron_expression = "* * * * ? *"
  }
  function {
    id = "tf-test"
  }
}

Arguments & Attributes ReferenceArguments & Attributes Reference

  • created_at (Read-Only) (String). The creation timestamp of the resource.
  • description (String). The resource description.
  • folder_id (String). The folder identifier that resource belongs to. If it is not provided, the default provider folder-id is used.
  • id (String).
  • labels (Map Of String). A set of key/value label pairs which assigned to resource.
  • name (Required)(String). The resource name.
  • container [Block]. Yandex Cloud Serverless Container settings definition for Yandex Cloud Functions Trigger.
    • id (Required)(String). Yandex Cloud Serverless Container ID for Yandex Cloud Functions Trigger.
    • path (String). Path for Yandex Cloud Serverless Container for Yandex Cloud Functions Trigger.
    • retry_attempts (String). Retry attempts for Yandex Cloud Serverless Container for Yandex Cloud Functions Trigger.
    • retry_interval (String). Retry interval in seconds for Yandex Cloud Serverless Container for Yandex Cloud Functions Trigger.
    • service_account_id (String). Service account ID for Yandex Cloud Serverless Container for Yandex Cloud Functions Trigger.
  • container_registry [Block]. Container Registry settings definition for Yandex Cloud Functions Trigger, if present.
    • batch_cutoff (Required)(String). Batch Duration in seconds for Yandex Cloud Functions Trigger.
    • batch_size (String). Batch Size for Yandex Cloud Functions Trigger.
    • create_image (Bool). Boolean flag for setting create image event for Yandex Cloud Functions Trigger.
    • create_image_tag (Bool). Boolean flag for setting create image tag event for Yandex Cloud Functions Trigger.
    • delete_image (Bool). Boolean flag for setting delete image event for Yandex Cloud Functions Trigger.
    • delete_image_tag (Bool). Boolean flag for setting delete image tag event for Yandex Cloud Functions Trigger.
    • image_name (String). Image name filter setting for Yandex Cloud Functions Trigger.
    • registry_id (Required)(String). Container Registry ID for Yandex Cloud Functions Trigger.
    • tag (String). Image tag filter setting for Yandex Cloud Functions Trigger.
  • data_streams [Block]. Data Streams settings definition for Yandex Cloud Functions Trigger, if present.
    • batch_cutoff (Required)(String). Batch Duration in seconds for Yandex Cloud Functions Trigger.
    • batch_size (String). Batch Size for Yandex Cloud Functions Trigger.
    • database (Required)(String). Stream database for Yandex Cloud Functions Trigger.
    • service_account_id (Required)(String). Service account ID to access data stream for Yandex Cloud Functions Trigger.
    • stream_name (Required)(String). Stream name for Yandex Cloud Functions Trigger.
  • dlq [Block]. Dead Letter Queue (DLQ) settings definition for Yandex Cloud Functions Trigger.
    • queue_id (Required)(String). ID of Dead Letter Queue for Trigger (Queue ARN).
    • service_account_id (Required)(String). Service Account ID for Dead Letter Queue for Yandex Cloud Functions Trigger.
  • function [Block]. Yandex Cloud Function settings definition for Yandex Cloud Functions Trigger.
    • id (Required)(String). Yandex Cloud Function ID.
    • retry_attempts (String). Retry attempts for Yandex Cloud Function for Yandex Cloud Functions Trigger.
    • retry_interval (String). Retry interval in seconds for Yandex Cloud Function for Yandex Cloud Functions Trigger.
    • service_account_id (String). Service account ID for Yandex Cloud Function.
    • tag (String). Tag for Yandex Cloud Function for Yandex Cloud Functions Trigger.
  • iot [Block]. IoT settings definition for Yandex Cloud Functions Trigger, if present. Only one section iot or message_queue.
    • batch_cutoff (Required)(String). Batch Duration in seconds for Yandex Cloud Functions Trigger.
    • batch_size (String). Batch Size for Yandex Cloud Functions Trigger.
    • device_id (String). IoT Device ID for Yandex Cloud Functions Trigger.
    • registry_id (Required)(String). IoT Registry ID for Yandex Cloud Functions Trigger.
    • topic (String). IoT Topic for Yandex Cloud Functions Trigger.
  • log_group [Block]. Deprecated Logging settings definition for Yandex Cloud Functions Trigger. Please, use logging instead.
    • batch_cutoff (Required)(String). Batch Duration in seconds for Yandex Cloud Functions Trigger.
    • batch_size (String). Batch Size for Yandex Cloud Functions Trigger.
    • log_group_ids (Required)(Set Of String). Log group IDs for Yandex Cloud Functions Trigger.
  • logging [Block]. Logging settings definition for Yandex Cloud Functions Trigger, if present.
    • batch_cutoff (Required)(String). Batch Duration in seconds for Yandex Cloud Functions Trigger.
    • batch_size (String). Batch Size for Yandex Cloud Functions Trigger.
    • group_id (Required)(String). Logging group ID for Yandex Cloud Functions Trigger.
    • levels (Set Of String). Logging level filter setting for Yandex Cloud Functions Trigger.
    • resource_ids (Set Of String). Resource ID filter setting for Yandex Cloud Functions Trigger.
    • resource_types (Set Of String). Resource type filter setting for Yandex Cloud Functions Trigger.
    • stream_names (Set Of String). Logging stream name filter setting for Yandex Cloud Functions Trigger.
  • mail [Block]. Mail settings definition for Yandex Cloud Functions Trigger, if present.
    • attachments_bucket_id (String). Object Storage Bucket ID for Yandex Cloud Functions Trigger.
    • batch_cutoff (Required)(String). Batch Duration in seconds for Yandex Cloud Functions Trigger.
    • batch_size (String). Batch Size for Yandex Cloud Functions Trigger.
    • service_account_id (String). Service account ID to access object storage for Yandex Cloud Functions Trigger.
  • message_queue [Block]. Message Queue settings definition for Yandex Cloud Functions Trigger, if present.
    • batch_cutoff (Required)(String). Batch Duration in seconds for Yandex Cloud Functions Trigger.
    • batch_size (String). Batch Size for Yandex Cloud Functions Trigger.
    • queue_id (Required)(String). Message Queue ID for Yandex Cloud Functions Trigger.
    • service_account_id (Required)(String). Message Queue Service Account ID for Yandex Cloud Functions Trigger.
    • visibility_timeout (String). Visibility timeout for Yandex Cloud Functions Trigger.
  • object_storage [Block]. Object Storage settings definition for Yandex Cloud Functions Trigger, if present.
    • batch_cutoff (Required)(String). Batch Duration in seconds for Yandex Cloud Functions Trigger.
    • batch_size (String). Batch Size for Yandex Cloud Functions Trigger.
    • bucket_id (Required)(String). Object Storage Bucket ID for Yandex Cloud Functions Trigger.
    • create (Bool). Boolean flag for setting create event for Yandex Cloud Functions Trigger.
    • delete (Bool). Boolean flag for setting delete event for Yandex Cloud Functions Trigger.
    • prefix (String). Prefix for Object Storage for Yandex Cloud Functions Trigger.
    • suffix (String). Suffix for Object Storage for Yandex Cloud Functions Trigger.
    • update (Bool). Boolean flag for setting update event for Yandex Cloud Functions Trigger.
  • timer [Block]. Timer settings definition for Yandex Cloud Functions Trigger, if present.
    • cron_expression (Required)(String). Cron expression for timer for Yandex Cloud Functions Trigger.
    • payload (String). Payload to be passed to function.

ImportImport

The resource can be imported by using their resource ID. For getting it you can use Yandex Cloud Web Console or Yandex Cloud CLI.

# terraform import yandex_function_trigger.<resource Name> <resource Id>
terraform import yandex_function_trigger.my_trigger a1scn**********3ur32

Was the article helpful?

Previous
function_iam_binding
Next
iot_core_broker
© 2026 Direct Cursus Technology L.L.C.