ssm-tls-ssh-key-pair

cloudposse/ssm-tls-ssh-key-pair/aws

Terraform Module HCL AWS

Terraform module that provisions an SSH TLS Key pair and writes it to SSM Parameter Store

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

terraform-aws-ssm-tls-ssh-key-pair ![Latest Release](https://github.com/cloudposse/terraform-aws-ssm-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 that provisions an SSH TLS key pair and writes it to SSM Parameter Store. This is useful for bot accounts (e.g. for GitHub). Easily rotate SSH secrets by simply tainting the module resource and reapplying. --- 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 u

Inputs (27)
NameTypeDescriptionDefault
label_key_casestringControls the letter case of the `tags` keys (label names) for tags generated by required
delimiterstringDelimiter to be used between ID elements. Defaults to `-` (hyphen). Set to `""` 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
namestringID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. Thi required
namespacestringID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp' required
label_value_casestringControls the letter case of ID elements (labels) as included in `id`, set as tag 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
id_length_limitnumberLimit `id` to this many characters (minimum 6). Set to `0` for unlimited length. required
enabledboolSet to false to prevent the module from creating any resources required
ssh_public_key_namestringSSM Parameter name of the SSH public key""
ssm_path_prefixstringThe SSM parameter path prefix (e.g. /$ssm_path_prefix/$key_name)"ssh_keys"
attributeslist(string)ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`, []
tagsmap(string)Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`). Neither the tag keys nor the t{}
rsa_bitsnumberWhen ssh_key_algorithm is 'RSA', the size of the generated RSA key in bits4096
ecdsa_curvestringWhen ssh_key_algorithm is 'ECDSA', the name of the elliptic curve to use. May be"P256"
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{}
overwrite_ssm_parameterboolWhether to overwrite an existing SSM parametertrue
contextanySingle object for setting entire context at once. See description of individual { "additional_tag_map": {}, "attribu
descriptor_formatsanyDescribe additional descriptors to be output in the `descriptors` output map. Ma{}
kms_key_idstringKMS Key ID used for encryption""
ssh_private_key_namestringSSM Parameter name of the SSH private key""
ssh_key_algorithmstringSSH key algorithm to use. Currently-supported values are 'RSA' and 'ECDSA'"RSA"
ssm_path_formatstringSSM path format"/%s/%s"
Outputs (4)
public_key — Content of the generated public key
key_name — Name of SSH key
ssh_public_key_ssm_path — SSM path of the generated public key
ssh_private_key_ssm_path — SSM path of the generated private key
Resources (2)
aws_ssm_parametertls_private_key
Details
FrameworkTerraform Module
LanguageHCL
Version0.10.2
Cloud AWS
★ Stars23
Forks17
Total downloads231.0k
Inputs27
Outputs4
Resources2
Examples1
LicenseApache-2.0
Namespacecloudposse
Updated