From 7d11b16e31c9a843113de961c89fef51cac8298d Mon Sep 17 00:00:00 2001 From: Marques Johansson Date: Thu, 13 Jun 2024 11:23:30 -0400 Subject: [PATCH] fix: use "pem" format for local SSH key to be usable in MacOS Signed-off-by: Marques Johansson --- modules/sshkey/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/sshkey/main.tf b/modules/sshkey/main.tf index 90165fc..22db87a 100644 --- a/modules/sshkey/main.tf +++ b/modules/sshkey/main.tf @@ -21,7 +21,7 @@ resource "equinix_metal_ssh_key" "ssh_pub_key" { } resource "local_file" "cluster_private_key_pem" { - content = chomp(tls_private_key.ssh_key_pair.private_key_openssh) + content = chomp(tls_private_key.ssh_key_pair.private_key_pem) filename = pathexpand(format("~/.ssh/%s", local.ssh_key_name)) file_permission = "0600" }