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"
}
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)
| Name | Type | Description | Default |
|---|---|---|---|
| key_name | string | required | |
| rsa_bits | number | 2048 | |
| keyfile_extension | string | "pub" | |
| write_public_key_file | bool | Should terraform write this keypair in ~/.ssh/? | true |
| ssh_folder_prefix | string | "~/.ssh" | |
| file_public_permission_mask | number | 644 | |
| file_private_permission_mask | number | 600 | |
| folder_permission_mask | number | 700 | |
| ecdsa_curve | string | "P521" | |
| encryption_algorithm | string | "ECDSA" | |
| write_private_key_file | bool | Should terraform write this keypair in ~/.ssh/? | true |
Outputs (3)
private_keypublic_keykeypairResources (2)
local_filetls_private_key
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.0
Cloud HASHICORP
Total downloads809
Inputs11
Outputs3
Resources2
Namespacejd4883
Updated