dtcloud_ssh_key (Data Source)
Looks up a single SSH key by name.
Use it to reference a key that Terraform did not create. Declaring one as a resource instead would hand Terraform ownership of it, and a later destroy would remove it.
Example Usage
data "dtcloud_ssh_key" "deploy" {
name = "deploy-key"
}
Schema
Required
name(String) The name of the SSH key.
Read-Only
created_at(String) When the SSH key was created, in RFC 3339 format.fingerprint(String) The fingerprint of the SSH key.id(String) The ID of this resource.public_key(String) The public key material.user_id(String) The ID of the user that owns the SSH key.
Behaviour worth knowing
- A key that does not exist is an error, and so is a key the platform reports as deleted.