ssh-key-pair

cloudposse/ssh-key-pair/tls

Terraform Module HCL TLS

Terraform module for generating an SSH public/private key file.

Install
module "ssh-key-pair" {
source = "cloudposse/ssh-key-pair/tls"
version = "0.7.1"
}
⭐ Source on GitHub 📦 Registry page
README

terraform-tls-ssh-key-pair ![Codefresh Build Status](https://g.codefresh.io/public/accounts/cloudposse/pipelines/5d1ba1ec95dc303d119861cd) ![Latest Release](https://github.com/cloudposse/terraform-tls-ssh-key-pair/releases/latest) ![Slack Community](https://slack.cloudposse.com) [![README Header][readme_header_img]][readme_header_link] [![Cloud Posse][logo]](https://cpco.io/homepage) Terraform module for generating an SSH public key file. --- This project is part of our comprehensive "SweetOps" approach towards DevOps. [ ][share_email] [ ][share_googleplus] [ ][share_facebook] [ ][share_reddit] [ ][share_linkedin] [ ][share_twitter] ![Terraform Open Source Modules][terraform_modules] It's 100% Open Source and licensed under the APACHE2. We literally have [hundreds of terraform modules][ter

Inputs (24)
NameTypeDescriptionDefault
delimiterstringDelimiter to be used between ID elements. Defaults to `-` (hyphen). Set to `""` required
label_value_casestringControls the letter case of ID elements (labels) as included in `id`, set as tag required
namespacestringID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp' required
namestringID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. Thi required
label_orderlist(string)The order in which the labels (ID elements) appear in the `id`. Defaults to ["na required
tenantstringID element _(Rarely used, not included by default)_. A customer identifier, indi required
environmentstringID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'st required
stagestringID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'bu required
regex_replace_charsstringTerraform regular expression (regex) string. Characters matching the regex will required
label_key_casestringControls the letter case of the `tags` keys (label names) for tags generated by required
ssh_public_key_pathstringPath to SSH public key directory (e.g. `/secrets`) required
enabledboolSet to false to prevent the module from creating any resources required
id_length_limitnumberLimit `id` to this many characters (minimum 6). Set to `0` for unlimited length. required
chmod_commandstringTemplate of the command executed on the private key file"chmod 600 %v"
tagsmap(string)Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`). Neither the tag keys nor the t{}
private_key_output_enabledboolAdd the private key as a terraform output private_keyfalse
contextanySingle object for setting entire context at once. See description of individual { "additional_tag_map": {}, "attribu
private_key_extensionstringPrivate key extension""
attributeslist(string)ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`, []
labels_as_tagsset(string)Set of labels (ID elements) to include as tags in the `tags` output. Default is [ "default" ]
additional_tag_mapmap(string)Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not add{}
ssh_key_algorithmstringSSH key algorithm"RSA"
public_key_extensionstringPublic key extension".pub"
descriptor_formatsanyDescribe additional descriptors to be output in the `descriptors` output map. Ma{}
Outputs (3)
key_name — Name of SSH key
public_key — Content of the generated public key
private_key — Content of the generated private key
Resources (3)
local_filenull_resourcetls_private_key
Details
FrameworkTerraform Module
LanguageHCL
Version0.7.1
Cloud TLS
★ Stars36
Forks27
Total downloads16.9k
Inputs24
Outputs3
Resources3
Examples1
LicenseApache-2.0
Namespacecloudposse
Updated