Updated May 10, 2026 Registers an SSH public key for use when creating Linux VMs. The key string itself is immutable; rename in place. The detected algorithm is exposed asDocumentation Index
Fetch the complete documentation index at: https://docs.rafftechnologies.com/llms.txt
Use this file to discover all available pages before exploring further.
key_type.
Example — from a file
Example — inline
Argument reference
Required
| Argument | Type | Description |
|---|---|---|
name | string | Display name. Updates rename in place |
public_key | string | Full SSH public key string. ForceNew |
Attribute reference (computed)
| Attribute | Description |
|---|---|
id | SSH key UUID |
key_type | Detected algorithm — ed25519, rsa, etc. |
created_at / updated_at | RFC3339 timestamps |
Lifecycle
| Operation | Behavior |
|---|---|
terraform apply (create) | Registers the key |
Change name | In-place rename |
Change public_key | Replacement — destroy + recreate |
terraform destroy | Deletes the key from the registry. Existing VMs that already received the key keep it on disk |
Importing existing keys
Permissions
The API key needsssh_key.create, ssh_key.manage, and ssh_key.delete at the account level. The system role Account Admin grants all of these.
Data sources
Related
raff_vm
Reference key IDs in raff_vm.ssh_keys.
raff_api_key
API keys for programmatic access.
CLI: raff ssh-key
Imperative equivalent.