mirror of
https://github.com/oscarhermoso/terraform-provider-binarylane
synced 2026-10-18 05:36:04 +11:00
46117cf31d
* 👨⚕️ Create docs * 👩⚕️ self pr feedback * 👩⚕️ more self pr feedback
1.1 KiB
1.1 KiB
page_title, subcategory, description
| page_title | subcategory | description |
|---|---|---|
| binarylane_ssh_key Resource - terraform-provider-binarylane |
binarylane_ssh_key (Resource)
Example Usage
resource "binarylane_ssh_key" "example" {
name = "tf-example"
# Generate with: ssh-keygen -t ed25519 -C "name@example.com"
public_key = file("~/.ssh/id_ed25519.pub")
}
resource "binarylane_server" "example" {
# ...
ssh_keys = [binarylane_ssh_key.example.id]
}
Schema
Required
name(String) A name to help you identify the key.public_key(String) The public key in OpenSSH "authorized_keys" format.
Optional
default(Boolean) Iftrue, this SSH key will be included on all new server installations (if the operating system supports SSH key injection). Default isfalse.
Read-Only
fingerprint(String) The fingerprint of the SSH key.id(Number) The numeric ID of the SSH key.
Import
Import is supported using the following syntax:
terraform import binarylane_ssh_key.example "<SSH Key ID or fingerprint>"