From 27cb06910159d86fb81c85ef232cf8552194bab4 Mon Sep 17 00:00:00 2001 From: MichaelFisher1997 Date: Sat, 28 Feb 2026 22:03:46 +0000 Subject: [PATCH] fix: Use existing 'infra' SSH key instead of creating new one --- terraform/ssh.tf | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/terraform/ssh.tf b/terraform/ssh.tf index 7041784..94f2d51 100644 --- a/terraform/ssh.tf +++ b/terraform/ssh.tf @@ -2,7 +2,6 @@ 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 +data "hcloud_ssh_key" "cluster" { + name = "infra" }