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
          • cdn_origin_group
          • cdn_resource

In this article:

  • Example usage
  • Arguments & Attributes Reference
  1. Terraform reference
  2. Resources
  3. Cloud CDN
  4. Data Sources
  5. cdn_origin_group

yandex_cdn_origin_group (DataSource)

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

Get information about a Yandex CDN Origin Group. For more information, see the official documentation.

Warning

One of origin_group_id or name should be specified.

Example usageExample usage

//
// Get information about existing CDN Origin Group
//
data "yandex_cdn_origin_group" "my_group" {
  origin_group_id = "some_instance_id"
}

output "origin_group_name" {
  value = data.yandex_cdn_origin_group.my_group.name
}

Arguments & Attributes ReferenceArguments & Attributes Reference

  • folder_id (String). The folder identifier that resource belongs to. If it is not provided, the default provider folder-id is used.
  • id (String).
  • name (Required)(String). The resource name.
  • origin [Block]. A set of available origins, an origins group must contain at least one enabled origin with fields below.
    • backup (Bool). Specifies whether the origin is used in its origin group as backup. A backup origin is used when one of active origins becomes unavailable.
    • enabled (Bool). The origin is enabled and used as a source for the CDN. Default enabled.
    • origin_group_id (Read-Only) (String). The ID of a specific origin group.
    • source (Required)(String). IP address or Domain name of your origin and the port.
  • origin_group_id (String). The ID of a specific origin group.
  • provider_type (String). CDN provider is a content delivery service provider. Possible values: "ourcdn" (default) or "gcore"
  • use_next (Bool). If the option is active (has true value), in case the origin responds with 4XX or 5XX codes, use the next origin from the list.

Was the article helpful?

Previous
backup_policy_bindings
Next
cdn_resource
© 2026 Direct Cursus Technology L.L.C.