Files
HetznerTerra/terraform/ssh.tf
MichaelFisher1997 1607387529
Some checks failed
Deploy Cluster / Terraform (push) Failing after 24s
Deploy Cluster / Ansible (push) Has been skipped
fix: Simplify SSH key handling - delete existing key from Hetzner first
2026-02-28 21:58:19 +00:00

9 lines
223 B
HCL

data "local_file" "ssh_public_key" {
filename = pathexpand(var.ssh_public_key)
}
resource "hcloud_ssh_key" "cluster" {
name = "${var.cluster_name}-ssh-key"
public_key = data.local_file.ssh_public_key.content
}