Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (25 sloc) 897 Bytes
layout page_title sidebar_current description
openstack
OpenStack: openstack_compute_keypair_v2
docs-openstack-datasource-compute-keypair-v2
Get information on an OpenStack Keypair.

openstack_compute_keypair_v2

Use this data source to get the ID and public key of an OpenStack keypair.

Example Usage

data "openstack_compute_keypair_v2" "kp" {
  name = "sand"
}

Argument Reference

  • region - (Optional) The region in which to obtain the V2 Compute client. If omitted, the region argument of the provider is used.

  • name - (Required) The unique name of the keypair.

Attributes Reference

The following attributes are exported:

  • region - See Argument Reference above.
  • name - See Argument Reference above.
  • fingerprint - The fingerprint of the OpenSSH key.
  • public_key - The OpenSSH-formatted public key of the keypair.
You can’t perform that action at this time.