Compute – Instances
What this page covers
Basic example
terraform {
required_providers {
verda = {
source = "verda-cloud/verda"
version = "~> 1.0"
}
}
}
provider "verda" {}
resource "verda_instance" "example" {
name = "training-01"
instance_type = "gpu-a100-80gb" # example
image = "ubuntu-22.04" # example
# Optional: root disk size (if supported by your instance type)
# disk_size_gb = 200
# Optional: attach SSH keys managed by Terraform
# ssh_key_ids = [verda_ssh_key.main.id]
# Optional: run a startup script on first boot
# startup_script = file("${path.module}/startup.sh")
}
output "instance_id" {
value = verda_instance.example.id
}
output "public_ip" {
value = verda_instance.example.public_ip
}Key concepts
Instance identity
Instance types
Images
SSH access
Startup scripts
Common configuration options
Safe updates and lifecycle controls
Import an existing instance
Troubleshooting
Last updated
Was this helpful?