github.com/jmbataller/terraform@v0.6.8-0.20151125192640-b7a12e3a580c/website/source/docs/providers/do/r/ssh_key.html.markdown (about)

     1  ---
     2  layout: "digitalocean"
     3  page_title: "DigitalOcean: digitalocean_ssh_key"
     4  sidebar_current: "docs-do-resource-ssh-key"
     5  description: |-
     6    Provides a DigitalOcean SSH key resource.
     7  ---
     8  
     9  # digitalocean\_ssh_key
    10  
    11  Provides a DigitalOcean SSH key resource to allow you manage SSH
    12  keys for Droplet access. Keys created with this resource
    13  can be referenced in your droplet configuration via their ID or
    14  fingerprint.
    15  
    16  ## Example Usage
    17  
    18  ```
    19  # Create a new SSH key
    20  resource "digitalocean_ssh_key" "default" {
    21      name = "Terraform Example"
    22      public_key = "${file("/Users/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