github.com/hobbeswalsh/terraform@v0.3.7-0.20150619183303-ad17cf55a0fa/website/source/docs/providers/openstack/r/compute_keypair_v2.html.markdown (about)

     1  ---
     2  layout: "openstack"
     3  page_title: "OpenStack: openstack_compute_keypair_v2"
     4  sidebar_current: "docs-openstack-resource-compute-keypair-v2"
     5  description: |-
     6    Manages a V2 keypair resource within OpenStack.
     7  ---
     8  
     9  # openstack\_compute\_keypair_v2
    10  
    11  Manages a V2 keypair resource within OpenStack.
    12  
    13  ## Example Usage
    14  
    15  ```
    16  resource "openstack_compute_keypair_v2" "test-keypair" {
    17    name = "my-keypair"
    18    public_key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAjpC1hwiOCCmKEWxJ4qzTTsJbKzndLotBCz5PcwtUnflmU+gHJtWMZKpuEGVi29h0A/+ydKek1O18k10Ff+4tyFjiHDQAnOfgWf7+b1yK+qDip3X1C0UPMbwHlTfSGWLGZqd9LvEFx9k3h/M+VtMvwR1lJ9LUyTAImnNjWG7TaIPmui30HvM2UiFEmqkr4ijq45MyX2+fLIePLRIF61p4whjHAQYufqyno3BS48icQb4p6iVEZPo4AE2o9oIyQvj2mx4dk5Y8CgSETOZTYDOR3rU2fZTRDRgPJDH9FWvQjF5tA0p3d9CoWWd2s6GKKbfoUIi8R/Db1BSPJwkqB"
    19  }
    20  ```
    21  
    22  ## Argument Reference
    23  
    24  The following arguments are supported:
    25  
    26  * `region` - (Required) The region in which to obtain the V2 Compute client.
    27      Keypairs are associated with accounts, but a Compute client is needed to
    28      create one. If omitted, the `OS_REGION_NAME` environment variable is used.
    29      Changing this creates a new keypair.
    30  
    31  * `name` - (Required) A unique name for the keypair. Changing this creates a new
    32      keypair.
    33  
    34  * `public_key` - (Required) A pregenerated OpenSSH-formatted public key.
    35      Changing this creates a new keypair.
    36  
    37  ## Attributes Reference
    38  
    39  The following attributes are exported:
    40  
    41  * `region` - See Argument Reference above.
    42  * `name` - See Argument Reference above.
    43  * `public_key` - See Argument Reference above.