Compute
ComputeVMs
resource nirvana_compute_vm
required
computed
nirvana_compute_vm
resource "nirvana_compute_vm" "example_compute_vm" {
boot_volume = {
size = 100
type = "abs"
tags = ["production", "ethereum"]
}
instance_type = "n1-standard-8"
name = "my-vm"
os_image_name = "ubuntu-noble-2026-05-18"
project_id = "123e4567-e89b-12d3-a456-426614174000"
public_ip_enabled = true
region = "us-sva-2"
ssh_key = {
public_key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBIASkmwNiLcdlW6927Zjt1Hf7Kw/PpEZ4Zm+wU9wn2"
}
subnet_id = "123e4567-e89b-12d3-a456-426614174000"
data_volumes = [{
name = "my-data-volume"
size = 100
type = "abs"
tags = ["production", "ethereum"]
}]
tags = ["production", "ethereum"]
}
data nirvana_compute_vm
computed
nirvana_compute_vm
data "nirvana_compute_vm" "example_compute_vm" {
vm_id = "vm_id"
}
data nirvana_compute_vms
nirvana_compute_vms
data "nirvana_compute_vms" "example_compute_vms" {
project_id = "project_id"
name = "name"
public_ip_enabled = true
region = "region"
status = "ready"
subnet_id = "subnet_id"
tags = ["string"]
vpc_id = "vpc_id"
}
ComputeVMsOS Images
data nirvana_compute_vm_os_images
nirvana_compute_vm_os_images
data "nirvana_compute_vm_os_images" "example_compute_vm_os_images" {
display_name = "display_name"
name = "name"
}
ComputeVolumes
resource nirvana_compute_volume
required
computed
nirvana_compute_volume
resource "nirvana_compute_volume" "example_compute_volume" {
name = "my-data-volume"
project_id = "123e4567-e89b-12d3-a456-426614174000"
region = "us-sva-2"
size = 100
type = "abs"
tags = ["production", "ethereum"]
vm_id = "123e4567-e89b-12d3-a456-426614174000"
}
data nirvana_compute_volume
computed
nirvana_compute_volume
data "nirvana_compute_volume" "example_compute_volume" {
volume_id = "volume_id"
}
data nirvana_compute_volumes
nirvana_compute_volumes
data "nirvana_compute_volumes" "example_compute_volumes" {
project_id = "project_id"
attached = true
kind = "boot"
name = "name"
region = "region"
status = "ready"
tags = ["string"]
type = "nvme"
vm_id = "vm_id"
}