lazzurs/terraform-aws-ssm-key-pair

Terraform module for terraform-aws-ssm-key-pair

★ 0Forks 0HCLGitHub ↗Compare

README

terraform-aws-ssm-key-pair

Module that will generate a TLS key pair, store the public key as an AWS key pair and put all of the outputs in AWS SSM Parameter Store.

This module has been written because of the sheer frustration with the existing modules either expecting the use of the Terraform outputs or worst only storing part of the key output in SSM but not all of them making the module either only useful for Linux or Windows and leaving key conversion between key storage types to the user.

Requirements

Name Version
terraform >= 1.0
aws >= 5.0
tls >= 4.0

Providers

Name Version
aws >= 5.0
tls >= 4.0

Modules

No modules.

Resources

Name Type
aws_key_pair.example resource
aws_ssm_parameter.private_key_openssh resource
aws_ssm_parameter.private_key_pem resource
aws_ssm_parameter.public_key_openssh resource
aws_ssm_parameter.public_key_pem resource
tls_private_key.generated_key resource

Inputs

Name Description Type Default Required
key_algorithm Algorithm for key generation string "RSA" no
key_bits Key length in bits number 4096 no
key_name Name of the key pair string n/a yes
ssm_prefix Prefix for SSM parameter names string n/a yes

Outputs

No outputs.

Authors

This module is maintained by Rob Lazzurs and is currently maintained.

License

This module is licenced under the MIT license to allow the widest possible use. This module is mostly configuration and as such I see no value in using the GPL or similar to ensure continued freedom.

Contributors

lazzursdependabot[bot]

Issues