Files
HetznerTerra/terraform/ssh.tf

9 lines
223 B
Terraform
Raw Normal View History

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
}