» opc_compute_ssh_key

Use this data source to access the attributes of an SSH Key.

» Example Usage

data "opc_compute_ssh_key" "test" {
  name    = "/Compute-${var.domain}/${var.user}/test-key"
}

output "public_ssh_key" {
  value = "${data.opc_compute_ssh_key.test.key}"
}

» Argument Reference

  • name - (Required) The unique (within this identity domain) name of the SSH key.

» Attributes Reference

  • key - The public SSH key.

  • enabled - Whether or not the key is enabled.