- Creating Key pair file. A key pair is used to control login access to EC2 instances.
- Generates a local file with the given content.
| Name | Version |
|---|---|
| terraform | >= 0.14 |
| aws | >= 3.61.0 |
| Name | Version |
|---|---|
| aws | >= 3.61.0 |
| local | n/a |
| tls | n/a |
| Name | Type |
|---|---|
| aws_key_pair.generated_key | resource |
| local_file.key_file | resource |
| tls_private_key.this | resource |
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| create_key | Determines whether resources will be created, if true | bool |
false |
no |
| create_key_file | Determines whether resources will be created, if true | bool |
false |
no |
| file_permission | Permissions to set for the output file, expressed as string in numeric notation. Default value is 0777 | string |
"0777" |
no |
| key_file_name | (Required) The path to the file that will be created. Missing parent directories will be created. If the file already exists, it will be overridden with the given content. | string |
null |
no |
| key_name | The name for the key pair. Conflicts with key_name_prefix |
string |
null |
no |
| Name | Description |
|---|---|
| aws_key_pair_name | n/a |