» gridscale_sshkey

Provides an SSH public key resource. This can be used to create, modify and delete SSH public keys.

» Example Usage

The following example shows how one might use this resource to add an SSH public key to gridscale:

resource "gridscale_sshkey" "sshkey-john"{
    name = "john's computer"
    sshkey = "an ssh public key"
    timeouts {

» Argument Reference

The following arguments are supported:

  • name - (Required) The human-readable name of the object. It supports the full UTF-8 charset, with a maximum of 64 characters.

  • sshkey - (Required) This is the OpenSSH public key string (all key types are supported => ed25519, ecdsa, dsa, rsa, rsa1).

  • labels - (Optional) List of labels in the format [ "label1", "label2" ].

» Timeouts

Timeouts configuration options (in seconds): More info: https://www.terraform.io/docs/configuration/resources.html#operation-timeouts

  • create - (Default value is "5m" - 5 minutes) Used for Creating resource.
  • update - (Default value is "5m" - 5 minutes) Used for Updating resource.
  • delete - (Default value is "5m" - 5 minutes) Used for Deleteing resource.

» Attributes

This resource exports the following attributes:

  • name - See Argument Reference above.
  • sshkey - See Argument Reference above.
  • labels - See Argument Reference above.
  • status - status indicates the status of the object.
  • create_time - The time the object was created.
  • change_time - Defines the date and time of the last object change.