You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| <aname="input_create_key_pair"></a> [create\_key\_pair](#input\_create\_key\_pair)| Controls if key pair should be created |`bool`|`true`| no |
81
-
| <aname="input_key_name"></a> [key\_name](#input\_key\_name)| The name for the key pair. |`string`|`null`| no |
82
-
| <aname="input_key_name_prefix"></a> [key\_name\_prefix](#input\_key\_name\_prefix)| Creates a unique name beginning with the specified prefix. Conflicts with key\_name. |`string`|`null`| no |
83
-
| <aname="input_public_key"></a> [public\_key](#input\_public\_key)| The public key material. |`string`|`""`| no |
84
-
| <aname="input_tags"></a> [tags](#input\_tags)| A map of tags to add to key pair resource. |`map(string)`|`{}`| no |
95
+
| <aname="input_create"></a> [create](#input\_create)| Determines whether resources will be created (affects all resources) |`bool`|`true`| no |
96
+
| <aname="input_create_private_key"></a> [create\_private\_key](#input\_create\_private\_key)| Determines whether a private key will be created |`bool`|`false`| no |
97
+
| <aname="input_key_name"></a> [key\_name](#input\_key\_name)| The name for the key pair. Conflicts with `key_name_prefix`|`string`|`null`| no |
98
+
| <aname="input_key_name_prefix"></a> [key\_name\_prefix](#input\_key\_name\_prefix)| Creates a unique name beginning with the specified prefix. Conflicts with `key_name`|`string`|`null`| no |
99
+
| <aname="input_private_key_algorithm"></a> [private\_key\_algorithm](#input\_private\_key\_algorithm)| Name of the algorithm to use when generating the private key. Currently-supported values are `RSA` and `ED25519`|`string`|`"RSA"`| no |
100
+
| <aname="input_private_key_rsa_bits"></a> [private\_key\_rsa\_bits](#input\_private\_key\_rsa\_bits)| When algorithm is `RSA`, the size of the generated RSA key, in bits (default: `4096`) |`number`|`4096`| no |
101
+
| <aname="input_public_key"></a> [public\_key](#input\_public\_key)| The public key material |`string`|`""`| no |
102
+
| <aname="input_tags"></a> [tags](#input\_tags)| A map of tags to add to all resources |`map(string)`|`{}`| no |
85
103
86
104
## Outputs
87
105
88
106
| Name | Description |
89
107
|------|-------------|
90
-
| <aname="output_key_pair_fingerprint"></a> [key\_pair\_fingerprint](#output\_key\_pair\_fingerprint)| The MD5 public key fingerprint as specified in section 4 of RFC 4716. |
91
-
| <aname="output_key_pair_key_name"></a> [key\_pair\_key\_name](#output\_key\_pair\_key\_name)| The key pair name. |
92
-
| <aname="output_key_pair_key_pair_id"></a> [key\_pair\_key\_pair\_id](#output\_key\_pair\_key\_pair\_id)| The key pair ID. |
108
+
| <aname="output_key_pair_arn"></a> [key\_pair\_arn](#output\_key\_pair\_arn)| The key pair ARN |
109
+
| <aname="output_key_pair_fingerprint"></a> [key\_pair\_fingerprint](#output\_key\_pair\_fingerprint)| The MD5 public key fingerprint as specified in section 4 of RFC 4716 |
110
+
| <aname="output_key_pair_id"></a> [key\_pair\_id](#output\_key\_pair\_id)| The key pair ID |
111
+
| <aname="output_key_pair_name"></a> [key\_pair\_name](#output\_key\_pair\_name)| The key pair name |
112
+
| <aname="output_private_key_id"></a> [private\_key\_id](#output\_private\_key\_id)| Unique identifier for this resource: hexadecimal representation of the SHA1 checksum of the resource |
113
+
| <aname="output_private_key_openssh"></a> [private\_key\_openssh](#output\_private\_key\_openssh)| Private key data in OpenSSH PEM (RFC 4716) format |
114
+
| <aname="output_private_key_pem"></a> [private\_key\_pem](#output\_private\_key\_pem)| Private key data in PEM (RFC 1421) format |
115
+
| <aname="output_public_key_fingerprint_md5"></a> [public\_key\_fingerprint\_md5](#output\_public\_key\_fingerprint\_md5)| The fingerprint of the public key data in OpenSSH MD5 hash format, e.g. `aa:bb:cc:....` Only available if the selected private key format is compatible, similarly to `public_key_openssh` and the ECDSA P224 limitations |
116
+
| <aname="output_public_key_fingerprint_sha256"></a> [public\_key\_fingerprint\_sha256](#output\_public\_key\_fingerprint\_sha256)| The fingerprint of the public key data in OpenSSH SHA256 hash format, e.g. `SHA256:....` Only available if the selected private key format is compatible, similarly to `public_key_openssh` and the ECDSA P224 limitations |
117
+
| <aname="output_public_key_openssh"></a> [public\_key\_openssh](#output\_public\_key\_openssh)| The public key data in "Authorized Keys" format. This is populated only if the configured private key is supported: this includes all `RSA` and `ED25519` keys |
118
+
| <aname="output_public_key_pem"></a> [public\_key\_pem](#output\_public\_key\_pem)| Public key data in PEM (RFC 1421) format |
Please consult the `examples` directory for reference example configurations. If you find a bug, please open an issue with supporting configuration to reproduce.
4
+
5
+
## List of backwards incompatible changes
6
+
7
+
- Minimum supported version of Terraform AWS provider updated to v4.21 to support latest resources
8
+
- Minimum supported version of Terraform updated to v1.0
9
+
- The variable `create_key_pair` is now simply `create`
10
+
11
+
## Additional changes
12
+
13
+
### Added
14
+
15
+
- Support for creating private key within the module using the commonly used `tls_private_key` resource
Please note - the examples provided serve two primary means:
4
+
5
+
1. Show users working examples of the various ways in which the module can be configured and features supported
6
+
2. A means of testing/validating module changes
7
+
8
+
Please do not mistake the examples provided as "best practices". It is up to users to consult the AWS service documentation for best practices, usage recommendations, etc.
| <aname="output_key_pair_fingerprint"></a> [key\_pair\_fingerprint](#output\_key\_pair\_fingerprint)| The MD5 public key fingerprint as specified in section 4 of RFC 4716. |
57
-
| <aname="output_key_pair_key_name"></a> [key\_pair\_key\_name](#output\_key\_pair\_key\_name)| The key pair name. |
58
-
| <aname="output_key_pair_key_pair_id"></a> [key\_pair\_key\_pair\_id](#output\_key\_pair\_key\_pair\_id)| The key pair ID. |
57
+
| <aname="output_external_key_pair_arn"></a> [external\_key\_pair\_arn](#output\_external\_key\_pair\_arn)| The key pair ARN |
58
+
| <aname="output_external_key_pair_fingerprint"></a> [external\_key\_pair\_fingerprint](#output\_external\_key\_pair\_fingerprint)| The MD5 public key fingerprint as specified in section 4 of RFC 4716 |
59
+
| <aname="output_external_key_pair_id"></a> [external\_key\_pair\_id](#output\_external\_key\_pair\_id)| The key pair ID |
60
+
| <aname="output_external_key_pair_name"></a> [external\_key\_pair\_name](#output\_external\_key\_pair\_name)| The key pair name |
61
+
| <aname="output_external_private_key_id"></a> [external\_private\_key\_id](#output\_external\_private\_key\_id)| Unique identifier for this resource: hexadecimal representation of the SHA1 checksum of the resource |
62
+
| <aname="output_external_private_key_openssh"></a> [external\_private\_key\_openssh](#output\_external\_private\_key\_openssh)| Private key data in OpenSSH PEM (RFC 4716) format |
63
+
| <aname="output_external_private_key_pem"></a> [external\_private\_key\_pem](#output\_external\_private\_key\_pem)| Private key data in PEM (RFC 1421) format |
64
+
| <aname="output_external_public_key_fingerprint_md5"></a> [external\_public\_key\_fingerprint\_md5](#output\_external\_public\_key\_fingerprint\_md5)| The fingerprint of the public key data in OpenSSH MD5 hash format, e.g. `aa:bb:cc:....` Only available if the selected private key format is compatible, similarly to `public_key_openssh` and the ECDSA P224 limitations |
65
+
| <aname="output_external_public_key_fingerprint_sha256"></a> [external\_public\_key\_fingerprint\_sha256](#output\_external\_public\_key\_fingerprint\_sha256)| The fingerprint of the public key data in OpenSSH SHA256 hash format, e.g. `SHA256:....` Only available if the selected private key format is compatible, similarly to `public_key_openssh` and the ECDSA P224 limitations |
66
+
| <aname="output_external_public_key_openssh"></a> [external\_public\_key\_openssh](#output\_external\_public\_key\_openssh)| The public key data in "Authorized Keys" format. This is populated only if the configured private key is supported: this includes all `RSA` and `ED25519` keys |
67
+
| <aname="output_external_public_key_pem"></a> [external\_public\_key\_pem](#output\_external\_public\_key\_pem)| Public key data in PEM (RFC 1421) format |
68
+
| <aname="output_key_pair_arn"></a> [key\_pair\_arn](#output\_key\_pair\_arn)| The key pair ARN |
69
+
| <aname="output_key_pair_fingerprint"></a> [key\_pair\_fingerprint](#output\_key\_pair\_fingerprint)| The MD5 public key fingerprint as specified in section 4 of RFC 4716 |
70
+
| <aname="output_key_pair_id"></a> [key\_pair\_id](#output\_key\_pair\_id)| The key pair ID |
71
+
| <aname="output_key_pair_name"></a> [key\_pair\_name](#output\_key\_pair\_name)| The key pair name |
72
+
| <aname="output_private_key_id"></a> [private\_key\_id](#output\_private\_key\_id)| Unique identifier for this resource: hexadecimal representation of the SHA1 checksum of the resource |
73
+
| <aname="output_private_key_openssh"></a> [private\_key\_openssh](#output\_private\_key\_openssh)| Private key data in OpenSSH PEM (RFC 4716) format |
74
+
| <aname="output_private_key_pem"></a> [private\_key\_pem](#output\_private\_key\_pem)| Private key data in PEM (RFC 1421) format |
75
+
| <aname="output_public_key_fingerprint_md5"></a> [public\_key\_fingerprint\_md5](#output\_public\_key\_fingerprint\_md5)| The fingerprint of the public key data in OpenSSH MD5 hash format, e.g. `aa:bb:cc:....` Only available if the selected private key format is compatible, similarly to `public_key_openssh` and the ECDSA P224 limitations |
76
+
| <aname="output_public_key_fingerprint_sha256"></a> [public\_key\_fingerprint\_sha256](#output\_public\_key\_fingerprint\_sha256)| The fingerprint of the public key data in OpenSSH SHA256 hash format, e.g. `SHA256:....` Only available if the selected private key format is compatible, similarly to `public_key_openssh` and the ECDSA P224 limitations |
77
+
| <aname="output_public_key_openssh"></a> [public\_key\_openssh](#output\_public\_key\_openssh)| The public key data in "Authorized Keys" format. This is populated only if the configured private key is supported: this includes all `RSA` and `ED25519` keys |
78
+
| <aname="output_public_key_pem"></a> [public\_key\_pem](#output\_public\_key\_pem)| Public key data in PEM (RFC 1421) format |
0 commit comments