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.
| Name | Version |
|---|---|
| terraform | >= 1.0 |
| aws | >= 5.0 |
| tls | >= 4.0 |
| Name | Version |
|---|---|
| aws | >= 5.0 |
| tls | >= 4.0 |
No modules.
| 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 |
| 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 |
No outputs.
This module is maintained by Rob Lazzurs and is currently maintained.
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.