Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 1.79 KB

sshkey.html.md

File metadata and controls

55 lines (39 loc) · 1.79 KB
layout page_title sidebar_current description
gridscale
gridscale: gridscale_sshkey
docs-gridscale-resource-sshkey
Manages an SSH public key in gridscale.

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" //or file("/path/to/ssh.pub")
  timeouts {
    create="10m"
  }
}

Argument Reference

The following arguments are supported:

  • name - (Required) The human-readable name of the object. It supports the full UTF-8 character set, 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: terraform.io/docs/configuration/resources.html#operation-timeouts

  • create - (Default value is "5m" - 5 minutes) Used for creating a resource.
  • update - (Default value is "5m" - 5 minutes) Used for updating a resource.
  • delete - (Default value is "5m" - 5 minutes) Used for deleting a 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.