provider "hcloud" {} resource "hcloud_ssh_key" "cv_infra" { name = "cv-infra" public_key = file(pathexpand(var.ssh_public_key_path)) } resource "hcloud_server" "control_plane" { name = "cv-control-plane" server_type = var.server_type image = var.server_image location = var.server_location ssh_keys = [hcloud_ssh_key.cv_infra.id] labels = { role = "cv-control-plane" } public_net { ipv4_enabled = true ipv6_enabled = false } }