9 lines
223 B
Terraform
9 lines
223 B
Terraform
|
|
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
|
||
|
|
}
|