Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • 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
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Terraform in Yandex Cloud
  • Getting started
  • Solution library
    • Overview
    • Release notes
          • function
          • function_iam_binding
          • function_scaling_policy
          • function_trigger

In this article:

  • Example usage
  • Schema
  • Required
  • Optional
  • Read-Only
  • Nested Schema for policy
  • Import
  1. Terraform reference
  2. Resources
  3. Serverless Cloud Functions
  4. Resources
  5. function_scaling_policy

yandex_function_scaling_policy (Resource)

Written by
Yandex Cloud
Updated at August 7, 2025
  • Example usage
  • Schema
    • Required
    • Optional
    • Read-Only
    • Nested Schema for policy
  • Import

Allows management of Yandex Cloud Function Scaling Policies.

Example usageExample usage

//
// Create a new Cloud Function Scaling Policy.
//
resource "yandex_function_scaling_policy" "my_scaling_policy" {
  function_id = "d4e45**********pqvd3"
  policy {
    tag                  = "$latest"
    zone_instances_limit = 3
    zone_requests_limit  = 100
  }
  policy {
    tag                  = "my_tag"
    zone_instances_limit = 4
    zone_requests_limit  = 150
  }
}

SchemaSchema

RequiredRequired

  • function_id (String) Yandex Cloud Function id used to define function.

OptionalOptional

  • policy (Block Set) List definition for Yandex Cloud Function scaling policies. (see below for nested schema)

Read-OnlyRead-Only

  • id (String) The ID of this resource.

Nested Schema for Nested Schema for policy

Required:

  • tag (String) Yandex Cloud Function version tag for Yandex Cloud Function scaling policy.

Optional:

  • zone_instances_limit (Number) Max number of instances in one zone for Yandex Cloud Function with tag.
  • zone_requests_limit (Number) Max number of requests in one zone for Yandex Cloud Function with tag.

ImportImport

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

# terraform import yandex_function_scaling_policy.<resource Name> <resource Id>
terraform import yandex_function_scaling_policy.my_policy ...

Was the article helpful?

Previous
function_iam_binding
Next
function_trigger
© 2025 Direct Cursus Technology L.L.C.