google_compute_instance

Get information about a VM instance resource within GCE. For more information see the official documentation and API.

Example Usage

data "google_compute_instance" "appserver" {
  name = "primary-application-server"
  zone = "us-central1-a"
}

Argument Reference

The following arguments are supported:


Attributes Reference


The boot_disk block supports:

The initialize_params block supports:

The scratch_disk block supports:

The attached_disk block supports:

The network_interface block supports:

The access_config block supports:

The alias_ip_range block supports:

The service_account block supports:

The scheduling block supports:

The guest_accelerator block supports:

The shielded_instance_config block supports:

The network_performance_config block supports: