» yandex_compute_image

Get information about a Yandex Compute image. For more information, see the official documentation.

» Example Usage

data "yandex_compute_image" "my_image" {
  family = "ubuntu-1804-lts"

resource "yandex_compute_instance" "default" {

  boot_disk {
    initialize_params {
      image_id = "${data.yandex_compute_image.my_image.id}"

» Argument Reference

The following arguments are supported:

  • image_id - (Optional) The ID of a specific image.

  • family - (Optional) The family name of an image. Used to search the latest image in a family.

  • name - (Optional) The name of the image.

  • folder_id - (Optional) Folder that the resource belongs to. If value is omitted, the default provider folder is used.

» Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

  • description - An optional description of this image.
  • family - The OS family name of the image.
  • min_disk_size - Minimum size of the disk which is created from this image.
  • size - The size of the image, specified in Gb.
  • status - The status of the image.
  • product_ids - License IDs that indicate which licenses are attached to this image.
  • os_type - Operating system type that the image contains.
  • labels - A map of labels applied to this image.
  • created_at - Image creation timestamp.