15 lines
323 B
HCL
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
|
|
}
|
|
} |