Files
kubernetes-the-hard-way/terraform/main.tf
2025-12-22 10:50:43 -05:00

15 lines
323 B
HCL

resource "hcloud_ssh_key" "main" {
name = "my-ssh-key"
public_key = file("~/.ssh/id_ed25519.pub")
}
resource "hcloud_server" "jumphost" {
for_each = local.boxes
name = each.key.name
image = "debian-12"
server_type = "cx23"
public_net {
ipv4_enabled = true
ipv6_enabled = true
}
}