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
          • function_scaling_policy

In this article:

  • Example usage
  • Arguments & Attributes Reference
  • 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 February 9, 2026
  • Example usage
  • Arguments & Attributes Reference
  • 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
  }
}

Arguments & Attributes ReferenceArguments & Attributes Reference

  • function_id (Required)(String). Yandex Cloud Function id used to define function.
  • id (String).
  • policy [Block]. List definition for Yandex Cloud Function scaling policies.
    • tag (Required)(String). Yandex Cloud Function version tag for Yandex Cloud Function scaling policy.
    • 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 it you can use Yandex Cloud Web Console or Yandex Cloud 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_scaling_policy
Next
serverless_eventrouter_bus
© 2026 Direct Cursus Technology L.L.C.