Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Cloud Desktop
    • Yandex SIEM
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • Serverless Integrations
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • 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
  • Setting up Yandex Cloud Terraform provider authentication
  • Solution library
    • Overview
    • Release notes
          • compute_disk
          • compute_disk_placement_group
          • compute_filesystem
          • compute_gpu_cluster
          • compute_image
          • compute_instance
          • compute_instance_group
          • compute_placement_group
          • compute_reserved_instance_pool
          • compute_snapshot
          • compute_snapshot_schedule

In this article:

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

yandex_compute_instance_group (DataSource)

Written by
Yandex Cloud
Updated at September 23, 2026
View in Markdown
  • Example usage
  • Arguments & Attributes Reference

Get information about a Yandex Compute instance group.

Example usageExample usage

//
// Get information about existing Compute Instance Group (IG)
//
data "yandex_compute_instance_group" "my_group" {
  instance_group_id = "some_instance_group_id"
}

output "instance_external_ip" {
  value = data.yandex_compute_instance_group.my_group.instances.*.network_interface.0.nat_ip_address
}

Arguments & Attributes ReferenceArguments & Attributes Reference

  • allocation_policy (Read-Only) (List Of Object).
    • instance_tags_pool .
      • tags .
      • zone .
    • zones .
  • application_balancer_state (Read-Only) (List Of Object).
    • status_message .
    • target_group_id .
  • application_load_balancer (Read-Only) (List Of Object).
    • ignore_health_checks .
    • max_opening_traffic_duration .
    • status_message .
    • target_group_description .
    • target_group_id .
    • target_group_labels .
    • target_group_name .
  • created_at (Read-Only) (String). The creation timestamp of the resource.
  • deletion_protection (Read-Only) (Bool). The true value means that resource is protected from accidental deletion.
  • deploy_policy (Read-Only) (List Of Object).
    • max_creating .
    • max_deleting .
    • max_expansion .
    • max_unavailable .
    • startup_duration .
    • strategy .
  • description (Read-Only) (String). The resource description.
  • folder_id (Read-Only) (String). The folder identifier that resource belongs to. If it is not provided, the default provider folder-id is used.
  • health_check (Read-Only) (List Of Object).
    • healthy_threshold .
    • http_options .
      • path .
      • port .
    • interval .
    • tcp_options .
      • port .
    • timeout .
    • unhealthy_threshold .
  • id (String).
  • instance_group_id (Required)(String). The ID of a specific instance group.
  • instance_template (Read-Only) (List Of Object).
    • boot_disk .
      • device_name .
      • disk_id .
      • initialize_params .
        • description .
        • image_id .
        • size .
        • snapshot_id .
        • type .
      • mode .
      • name .
    • description .
    • filesystem .
      • device_name .
      • filesystem_id .
      • mode .
    • hostname .
    • labels .
    • metadata .
    • metadata_options .
      • aws_v1_http_endpoint .
      • aws_v1_http_token .
      • aws_v2_http_endpoint .
      • aws_v2_http_token .
      • gce_http_endpoint .
      • gce_http_token .
    • name .
    • network_interface .
      • dns_record .
        • dns_zone_id .
        • fqdn .
        • ptr .
        • ttl .
      • ip_address .
      • ipv4 .
      • ipv6 .
      • ipv6_address .
      • ipv6_dns_record .
        • dns_zone_id .
        • fqdn .
        • ptr .
        • ttl .
      • nat .
      • nat_dns_record .
        • dns_zone_id .
        • fqdn .
        • ptr .
        • ttl .
      • nat_ip_address .
      • network_id .
      • security_group_ids .
      • subnet_ids .
    • network_settings .
      • type .
    • placement_policy .
      • placement_group_id .
    • platform_id .
    • reserved_instance_pool_id .
    • resources .
      • core_fraction .
      • cores .
      • gpus .
      • memory .
    • scheduling_policy .
      • preemptible .
    • secondary_disk .
      • device_name .
      • disk_id .
      • initialize_params .
        • description .
        • image_id .
        • size .
        • snapshot_id .
        • type .
      • mode .
      • name .
    • service_account_id .
  • instances (Read-Only) (List Of Object).
    • fqdn .
    • instance_id .
    • instance_tag .
    • name .
    • network_interface .
      • index .
      • ip_address .
      • ipv4 .
      • ipv6 .
      • ipv6_address .
      • mac_address .
      • nat .
      • nat_ip_address .
      • nat_ip_version .
      • subnet_id .
    • status .
    • status_changed_at .
    • status_message .
    • zone_id .
  • labels (Read-Only) (Map Of String). A set of key/value label pairs which assigned to resource.
  • load_balancer (Read-Only) (List Of Object).
    • ignore_health_checks .
    • max_opening_traffic_duration .
    • status_message .
    • target_group_description .
    • target_group_id .
    • target_group_labels .
    • target_group_name .
  • load_balancer_state (Read-Only) (List Of Object).
    • status_message .
    • target_group_id .
  • max_checking_health_duration (Read-Only) (Number). Timeout for waiting for the VM to become healthy. If the timeout is exceeded, the VM will be turned off based on the deployment policy. Specified in seconds.
  • name (Read-Only) (String). The resource name.
  • scale_policy (Read-Only) (List Of Object).
    • auto_scale .
      • auto_scale_type .
      • cpu_utilization_target .
      • custom_rule .
        • folder_id .
        • labels .
        • metric_name .
        • metric_type .
        • rule_type .
        • service .
        • target .
      • initial_size .
      • max_size .
      • measurement_duration .
      • min_zone_size .
      • stabilization_duration .
      • warmup_duration .
    • fixed_scale .
      • size .
    • test_auto_scale .
      • auto_scale_type .
      • cpu_utilization_target .
      • custom_rule .
        • folder_id .
        • labels .
        • metric_name .
        • metric_type .
        • rule_type .
        • service .
        • target .
      • initial_size .
      • max_size .
      • measurement_duration .
      • min_zone_size .
      • stabilization_duration .
      • warmup_duration .
  • service_account_id (Read-Only) (String). Service account which linked to the resource.
  • status (Read-Only) (String). The status of the instance.
  • variables (Read-Only) (Map Of String). A set of key/value variables pairs to assign to the instance group.

Was the article helpful?

Previous
compute_instance
Next
compute_placement_group
© 2026 Direct Cursus Technology L.L.C.