» Data Source: hcloud_ssh_keys

Provides details about Hetzner Cloud SSH Keys. This resource is useful if you want to use a non-terraform managed SSH Key.

» Example Usage

data "hcloud_ssh_keys" "all_keys" {
}
data "hcloud_ssh_keys" "keys_by_selector" {
  with_selector = "foo=bar"
}
resource "hcloud_server" "main" {
  ssh_keys  = "${data.hcloud_ssh_keys.all_keys.ssh_keys.*.name}"
}

» Argument Reference

» Attributes Reference

  • ssh_keys - (list) List of all matches SSH keys. See data.hcloud_ssh_key for schema.