github.com/turtlemonvh/terraform@v0.6.9-0.20151204001754-8e40b6b855e8/website/source/docs/providers/packet/r/ssh_key.html.markdown (about)

     1  ---
     2  layout: "packet"
     3  page_title: "Packet: packet_ssh_key"
     4  sidebar_current: "docs-packet-resource-ssh-key"
     5  description: |-
     6    Provides a Packet SSH key resource.
     7  ---
     8  
     9  # packet\_ssh_key
    10  
    11  Provides a Packet SSH key resource to allow you manage SSH
    12  keys on your account. All ssh keys on your account are loaded on
    13  all new devices, they do not have to be explicitly declared on
    14  device creation.
    15  
    16  ## Example Usage
    17  
    18  ```
    19  # Create a new SSH key
    20  resource "packet_ssh_key" "key1" {
    21      name = "terraform-1"
    22      public_key = "${file("/home/terraform/.ssh/id_rsa.pub")}"
    23  }
    24  ```
    25  
    26  ## Argument Reference
    27  
    28  The following arguments are supported:
    29  
    30  * `name` - (Required) The name of the SSH key for identification
    31  * `public_key` - (Required) The public key. If this is a file, it
    32  can be read using the file interpolation function
    33  
    34  ## Attributes Reference
    35  
    36  The following attributes are exported:
    37  
    38  * `id` - The unique ID of the key
    39  * `name` - The name of the SSH key
    40  * `public_key` - The text of the public key
    41  * `fingerprint` - The fingerprint of the SSH key
    42  * `created` - The timestamp for when the SSH key was created
    43  * `updated` - The timestamp for the last time the SSH key was udpated