Terraform providerReferenceResources
odinex_ssh_key
Manages an SSH key of the project.
Manages an SSH key of the project.
Example Usage
resource "odinex_ssh_key" "admin" {
name = "admin"
public_key = file("~/.ssh/id_ed25519.pub")
}Schema
Required
name(String) Name of the SSH key.public_key(String) Public key in OpenSSH format. Changing it recreates the key.
Optional
labels(Map of String) User-defined labels (key/value pairs). Up to 64 pairs; keys and values up to 63 characters.
Read-Only
fingerprint(String) Fingerprint of the key.id(String) Unique ID of the resource.
Import
Import is supported using the following syntax:
The terraform import command can be used, for example:
# Import by ID or by name.
terraform import odinex_ssh_key.admin 7
terraform import odinex_ssh_key.admin admin