ssh-keypair-generator

jd4883/ssh-keypair-generator/hashicorp

Terraform Module HCL HASHICORP

A small terraform module to generate SSH keypairs. For now, this creates and outputs a private and public keypair, and by default writes these into a public and private key file. These can be toggled via bool.

Install
module "ssh-keypair-generator" {
source = "jd4883/ssh-keypair-generator/hashicorp"
version = "1.0.0"
}
plain text: /constructs/tfmod-jd4883-ssh-keypair-generator-hashicorp/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-hashicorp-ssh-keypair-generator A small terraform module to generate SSH keypairs. For now, this creates and outputs a private and public keypair, and by default writes these into a public and private key file. These can be toggled via bool.

Inputs (11)
NameTypeDescriptionDefault
key_namestring required
rsa_bitsnumber2048
keyfile_extensionstring"pub"
write_public_key_fileboolShould terraform write this keypair in ~/.ssh/?true
ssh_folder_prefixstring"~/.ssh"
file_public_permission_masknumber644
file_private_permission_masknumber600
folder_permission_masknumber700
ecdsa_curvestring"P521"
encryption_algorithmstring"ECDSA"
write_private_key_fileboolShould terraform write this keypair in ~/.ssh/?true
Outputs (3)
private_key
public_key
keypair
Resources (2)
local_filetls_private_key
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.0
Cloud HASHICORP
Total downloads809
Inputs11
Outputs3
Resources2
Namespacejd4883
Updated