Examples

Basic Instance

provider "krutrim" {}

resource "krutrim_instance" "vm" {
  name          = "demo-instance"
  image         = "ubuntu-22.04"
  instance_type = "cpu.medium"
}

GPU Instance

resource "krutrim_instance" "gpu_vm" {
  name          = "gpu-instance"
  image         = "ubuntu-22.04"
  instance_type = "gpu.large"
}

Run Commands

terraform init
terraform apply

Last updated

Was this helpful?