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" }