Skip to content

rso_ssh_key (Data Source)

A key already in the tenant's SSH key store, looked up by name, to use in rso_instance.ssh_key_ids.

Example Usage

# A key someone already added in the console.
data "rso_ssh_key" "ops" {
  name = "ops"
}

resource "rso_instance" "vm" {
  name        = "web-1"
  template    = "ubuntu-26.04"
  cpus        = 2
  memory_mb   = 4096
  ssh_key_ids = [data.rso_ssh_key.ops.id]
}

Schema

Required

  • name (String) Name of the key in the store.

Read-Only

  • fingerprint (String) SHA256 fingerprint.
  • id (String) The ID of this resource.
  • key_type (String)
  • public_key (String) The key: type and base64, without a comment.
  • scope (String) tenant or personal.