terraform { required_providers { hcloud = { source = "hetznercloud/hcloud" version = "~> 1.50" } } } provider "hcloud" { token = var.hcloud_token } resource "hcloud_server" "main" { name = "learningunix" server_type = "cx23" image = "debian-13" location = var.location ssh_keys = [var.ssh_key_name] }