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-2025-10-01"
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"
}
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"
}