github.com/danp/terraform@v0.9.5-0.20170426144147-39d740081351/website/source/docs/providers/opc/r/opc_compute_ssh_key.html.markdown (about)

     1  ---
     2  layout: "opc"
     3  page_title: "Oracle: opc_compute_ssh_key"
     4  sidebar_current: "docs-opc-resource-ssh-key"
     5  description: |-
     6    Creates and manages an SSH key in an OPC identity domain.
     7  ---
     8  
     9  # opc\_compute\_ssh_key
    10  
    11  The ``opc_compute_ssh_key`` resource creates and manages an SSH key in an OPC identity domain.
    12  
    13  ## Example Usage
    14  
    15  ```hcl
    16  resource "opc_compute_ssh_key" "%s" {
    17    name    = "test-key"
    18    key     = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCqw6JwbjIk..."
    19    enabled = true
    20  }
    21  ```
    22  
    23  ## Argument Reference
    24  
    25  The following arguments are supported:
    26  
    27  * `name` - (Required) The unique (within this identity domain) name of the SSH key.
    28  
    29  * `key` - (Required) The SSH key itself
    30  
    31  * `enabled` - (Optional) Whether or not the key is enabled. This is useful if you want to temporarily disable an SSH key,
    32  without removing it entirely from your Terraform resource definition. Defaults to `true`
    33  
    34  ## Import
    35  
    36  SSH Key's can be imported using the `resource name`, e.g.
    37  
    38  ```shell
    39  $ terraform import opc_compute_ssh_key.key1 example
    40  ```