scalr_ssh_key
Data Source: scalr_ssh_key
Retrieves details of a specific SSH key by ID or name.
Example Usage
data "scalr_ssh_key" "example1" {
id = "ssh-xxxxxxxxxx"
account_id = "acc-xxxxxxxxxx"
}
data "scalr_ssh_key" "example2" {
name = "ssh_key_name"
account_id = "acc-xxxxxxxxxx"
}
Schema
Optional
account_id
(String) ID of the account, in the formatacc-<RANDOM STRING>
.id
(String) ID of the SSH key.name
(String) Name of the SSH key.
Read-Only
environments
(List of String) List of environment IDs where the SSH key is available, or["*"]
if shared with all environments.
Updated 12 days ago