mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-06-30 18:42:58 +00:00
15 lines
446 B
HCL
15 lines
446 B
HCL
resource "local_file" "example_ssh_private_key" {
|
|
filename = "${path.module}/autogenerated/id_rsa"
|
|
sensitive_content = "${tls_private_key.example.private_key_pem}"
|
|
}
|
|
|
|
resource "local_file" "example_ssh_public_key" {
|
|
filename = "${path.module}/autogenerated/id_rsa.pub"
|
|
sensitive_content = "${tls_private_key.example.public_key_openssh}"
|
|
}
|
|
|
|
resource "tls_private_key" "example" {
|
|
algorithm = "RSA"
|
|
rsa_bits = 2048
|
|
}
|